[03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:15]OFD Sender: No OFD packet to send [03:01:20]OFD Sender: No OFD packet to send [03:01:25]OFD Sender: No OFD packet to send [03:01:30]OFD Sender: No OFD packet to send [03:01:35]OFD Sender: No OFD packet to send [03:01:40]OFD Sender: No OFD packet to send [03:01:45]OFD Sender: No OFD packet to send [03:01:50]OFD Sender: No OFD packet to send [03:01:55]OFD Sender: No OFD packet to send [03:02:00]OFD Sender: No OFD packet to send [03:02:05]OFD Sender: No OFD packet to send [03:02:10]OFD Sender: No OFD packet to send [03:02:15]OFD Sender: No OFD packet to send [03:02:20]OFD Sender: No OFD packet to send [03:02:25]OFD Sender: No OFD packet to send [03:02:30]OFD Sender: No OFD packet to send [03:02:35]OFD Sender: No OFD packet to send [03:02:40]OFD Sender: No OFD packet to send [03:02:45]OFD Sender: No OFD packet to send [03:02:50]OFD Sender: No OFD packet to send [03:02:55]OFD Sender: No OFD packet to send [03:03:00]OFD Sender: No OFD packet to send [03:03:05]OFD Sender: No OFD packet to send [03:03:10]OFD Sender: No OFD packet to send [03:03:15]OFD Sender: No OFD packet to send [03:03:20]OFD Sender: No OFD packet to send [03:03:25]OFD Sender: No OFD packet to send [03:03:30]OFD Sender: No OFD packet to send [03:03:35]OFD Sender: No OFD packet to send [03:03:40]OFD Sender: No OFD packet to send [03:03:45]OFD Sender: No OFD packet to send [03:03:50]OFD Sender: No OFD packet to send [03:03:55]OFD Sender: No OFD packet to send [03:04:00]OFD Sender: No OFD packet to send [03:04:05]OFD Sender: No OFD packet to send [03:04:10]OFD Sender: No OFD packet to send [03:04:15]OFD Sender: No OFD packet to send [03:04:20]OFD Sender: No OFD packet to send [03:04:25]OFD Sender: No OFD packet to send [03:04:30]OFD Sender: No OFD packet to send [03:04:35]OFD Sender: No OFD packet to send [03:04:40]OFD Sender: No OFD packet to send [03:04:45]OFD Sender: No OFD packet to send [03:04:50]OFD Sender: No OFD packet to send [03:04:55]OFD Sender: No OFD packet to send [03:05:00]OFD Sender: No OFD packet to send [03:05:05]OFD Sender: No OFD packet to send [03:05:10]OFD Sender: No OFD packet to send [03:05:16]OFD Sender: No OFD packet to send [03:05:21]OFD Sender: No OFD packet to send [03:05:26]OFD Sender: No OFD packet to send [03:05:31]OFD Sender: No OFD packet to send [03:05:36]OFD Sender: No OFD packet to send [03:05:41]OFD Sender: No OFD packet to send [03:05:46]OFD Sender: No OFD packet to send [03:05:51]OFD Sender: No OFD packet to send [03:05:56]OFD Sender: No OFD packet to send [03:06:01]OFD Sender: No OFD packet to send [03:06:06]OFD Sender: No OFD packet to send [03:06:11]OFD Sender: No OFD packet to send [03:06:16]OFD Sender: No OFD packet to send [03:06:21]OFD Sender: No OFD packet to send [03:06:26]OFD Sender: No OFD packet to send [03:06:31]OFD Sender: No OFD packet to send [03:06:36]OFD Sender: No OFD packet to send [03:06:41]OFD Sender: No OFD packet to send [03:06:46]OFD Sender: No OFD packet to send [03:06:51]OFD Sender: No OFD packet to send [03:06:56]OFD Sender: No OFD packet to send [03:07:01]OFD Sender: No OFD packet to send [03:07:06]OFD Sender: No OFD packet to send [03:07:11]OFD Sender: No OFD packet to send [03:07:16]OFD Sender: No OFD packet to send [03:07:21]OFD Sender: No OFD packet to send [03:07:26]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:06]OFD Sender: No OFD packet to send [03:27:11]OFD Sender: No OFD packet to send [03:27:16]OFD Sender: No OFD packet to send [03:27:21]OFD Sender: No OFD packet to send [03:27:26]OFD Sender: No OFD packet to send [03:27: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:42]OFD Sender: No OFD packet to send [03:46:47]OFD Sender: No OFD packet to send [03:46:52]OFD Sender: No OFD packet to send [03:46:57]OFD Sender: No OFD packet to send [03:47:02]OFD Sender: No OFD packet to send [03:47:07]OFD Sender: No OFD packet to send [03:47:12]OFD Sender: No OFD packet to send [03:47:17]OFD Sender: No OFD packet to send [03:47:22]OFD Sender: No OFD packet to send [03:47:27]OFD Sender: No OFD packet to send [03:47:32]OFD Sender: No OFD packet to send [03:47:37]OFD Sender: No OFD packet to send [03:47:42]OFD Sender: No OFD packet to send [03:47:47]OFD Sender: No OFD packet to send [03:47:52]OFD Sender: No OFD packet to send [03:47:57]OFD Sender: No OFD packet to send [03:48:02]OFD Sender: No OFD packet to send [03:48:07]OFD Sender: No OFD packet to send [03:48:12]OFD Sender: No OFD packet to send [03:48:17]OFD Sender: No OFD packet to send [03:48:22]OFD Sender: No OFD packet to send [03:48:27]OFD Sender: No OFD packet to send [03:48:32]OFD Sender: No OFD packet to send [03:48:37]OFD Sender: No OFD packet to send [03:48:42]OFD Sender: No OFD packet to send [03:48:47]OFD Sender: No OFD packet to send [03:48:52]OFD Sender: No OFD packet to send [03:48:57]OFD Sender: No OFD packet to send [03:49:02]OFD Sender: No OFD packet to send [03:49:07]OFD Sender: No OFD packet to send [03:49:12]OFD Sender: No OFD packet to send [03:49:17]OFD Sender: No OFD packet to send [03:49:22]OFD Sender: No OFD packet to send [03:49:27]OFD Sender: No OFD packet to send [03:49:32]OFD Sender: No OFD packet to send [03:49: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:18]OFD Sender: No OFD packet to send [04:06:23]OFD Sender: No OFD packet to send [04:06:28]OFD Sender: No OFD packet to send [04:06:33]OFD Sender: No OFD packet to send [04:06:38]OFD Sender: No OFD packet to send [04:06:43]OFD Sender: No OFD packet to send [04:06:48]OFD Sender: No OFD packet to send [04:06:53]OFD Sender: No OFD packet to send [04:06:58]OFD Sender: No OFD packet to send [04:07:03]OFD Sender: No OFD packet to send [04:07:08]OFD Sender: No OFD packet to send [04:07:13]OFD Sender: No OFD packet to send [04:07:18]OFD Sender: No OFD packet to send [04:07:23]OFD Sender: No OFD packet to send [04:07:28]OFD Sender: No OFD packet to send [04:07:33]OFD Sender: No OFD packet to send [04:07:38]OFD Sender: No OFD packet to send [04:07:43]OFD Sender: No OFD packet to send [04:07:48]OFD Sender: No OFD packet to send [04:07:53]OFD Sender: No OFD packet to send [04:07:58]OFD Sender: No OFD packet to send [04:08:03]OFD Sender: No OFD packet to send [04:08:08]OFD Sender: No OFD packet to send [04:08:13]OFD Sender: No OFD packet to send [04:08:18]OFD Sender: No OFD packet to send [04:08:23]OFD Sender: No OFD packet to send [04:08:28]OFD Sender: No OFD packet to send [04:08:33]OFD Sender: No OFD packet to send [04:08:38]OFD Sender: No OFD packet to send [04:08:43]OFD Sender: No OFD packet to send [04:08:48]OFD Sender: No OFD packet to send [04:08:53]OFD Sender: No OFD packet to send [04:08:58]OFD Sender: No OFD packet to send [04:09:03]OFD Sender: No OFD packet to send [04:09:08]OFD Sender: No OFD packet to send [04:09:13]OFD Sender: No OFD packet to send [04:09:18]OFD Sender: No OFD packet to send [04:09:23]OFD Sender: No OFD packet to send [04:09:28]OFD Sender: No OFD packet to send [04:09:33]OFD Sender: No OFD packet to send [04:09:38]OFD Sender: No OFD packet to send [04:09:43]OFD Sender: No OFD packet to send [04:09:48]OFD Sender: No OFD packet to send [04:09:53]OFD Sender: No OFD packet to send [04:09:58]OFD Sender: No OFD packet to send [04:10:03]OFD Sender: No OFD packet to send [04:10:08]OFD Sender: No OFD packet to send [04:10:13]OFD Sender: No OFD packet to send [04:10:18]OFD Sender: No OFD packet to send [04:10:23]OFD Sender: No OFD packet to send [04:10:28]OFD Sender: No OFD packet to send [04:10:33]OFD Sender: No OFD packet to send [04:10:38]OFD Sender: No OFD packet to send [04:10:43]OFD Sender: No OFD packet to send [04:10:48]OFD Sender: No OFD packet to send [04:10:53]OFD Sender: No OFD packet to send [04:10:58]OFD Sender: No OFD packet to send [04:11:03]OFD Sender: No OFD packet to send [04:11:08]OFD Sender: No OFD packet to send [04:11:13]OFD Sender: No OFD packet to send [04:11:18]OFD Sender: No OFD packet to send [04:11:23]OFD Sender: No OFD packet to send [04:11:28]OFD Sender: No OFD packet to send [04:11:33]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:19]OFD Sender: No OFD packet to send [04:14:24]OFD Sender: No OFD packet to send [04:14:29]OFD Sender: No OFD packet to send [04:14:34]OFD Sender: No OFD packet to send [04:14:39]OFD Sender: No OFD packet to send [04:14:44]OFD Sender: No OFD packet to send [04:14:49]OFD Sender: No OFD packet to send [04:14:54]OFD Sender: No OFD packet to send [04:14:59]OFD Sender: No OFD packet to send [04:15:04]OFD Sender: No OFD packet to send [04:15:09]OFD Sender: No OFD packet to send [04:15:14]OFD Sender: No OFD packet to send [04:15:19]OFD Sender: No OFD packet to send [04:15:24]OFD Sender: No OFD packet to send [04:15:29]OFD Sender: No OFD packet to send [04:15:34]OFD Sender: No OFD packet to send [04:15:39]OFD Sender: No OFD packet to send [04:15:44]OFD Sender: No OFD packet to send [04:15:49]OFD Sender: No OFD packet to send [04:15:54]OFD Sender: No OFD packet to send [04:15:59]OFD Sender: No OFD packet to send [04:16:04]OFD Sender: No OFD packet to send [04:16:09]OFD Sender: No OFD packet to send [04:16:14]OFD Sender: No OFD packet to send [04:16:19]OFD Sender: No OFD packet to send [04:16:24]OFD Sender: No OFD packet to send [04:16:29]OFD Sender: No OFD packet to send [04:16:34]OFD Sender: No OFD packet to send [04:16:39]OFD Sender: No OFD packet to send [04:16:44]OFD Sender: No OFD packet to send [04:16:49]OFD Sender: No OFD packet to send [04:16:54]OFD Sender: No OFD packet to send [04:16:59]OFD Sender: No OFD packet to send [04:17:04]OFD Sender: No OFD packet to send [04:17:09]OFD Sender: No OFD packet to send [04:17:14]OFD Sender: No OFD packet to send [04:17:19]OFD Sender: No OFD packet to send [04:17:24]OFD Sender: No OFD packet to send [04:17:29]OFD Sender: No OFD packet to send [04:17:34]OFD Sender: No OFD packet to send [04:17:39]OFD Sender: No OFD packet to send [04:17:44]OFD Sender: No OFD packet to send [04:17:49]OFD Sender: No OFD packet to send [04:17:54]OFD Sender: No OFD packet to send [04:17:59]OFD Sender: No OFD packet to send [04:18:04]OFD Sender: No OFD packet to send [04:18:09]OFD Sender: No OFD packet to send [04:18:14]OFD Sender: No OFD packet to send [04:18:19]OFD Sender: No OFD packet to send [04:18:24]OFD Sender: No OFD packet to send [04:18:29]OFD Sender: No OFD packet to send [04:18:34]OFD Sender: No OFD packet to send [04:18:39]OFD Sender: No OFD packet to send [04:18:44]OFD Sender: No OFD packet to send [04:18:49]OFD Sender: No OFD packet to send [04:18:54]OFD Sender: No OFD packet to send [04:18:59]OFD Sender: No OFD packet to send [04:19:04]OFD Sender: No OFD packet to send [04:19:09]OFD Sender: No OFD packet to send [04:19:14]OFD Sender: No OFD packet to send [04:19:19]OFD Sender: No OFD packet to send [04:19:24]OFD Sender: No OFD packet to send [04:19:29]OFD Sender: No OFD packet to send [04:19:34]OFD Sender: No OFD packet to send [04:19:39]OFD Sender: No OFD packet to send [04:19:44]OFD Sender: No OFD packet to send [04:19:49]OFD Sender: No OFD packet to send [04:19:54]OFD Sender: No OFD packet to send [04:19:59]OFD Sender: No OFD packet to send [04:20:04]OFD Sender: No OFD packet to send [04:20:09]OFD Sender: No OFD packet to send [04:20:14]OFD Sender: No OFD packet to send [04:20:19]OFD Sender: No OFD packet to send [04:20:24]OFD Sender: No OFD packet to send [04:20:29]OFD Sender: No OFD packet to send [04:20:34]OFD Sender: No OFD packet to send [04:20:39]OFD Sender: No OFD packet to send [04:20:44]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]OFD Sender: No OFD packet to send [04:21:59]OFD Sender: No OFD packet to send [04:22:04]OFD Sender: No OFD packet to send [04:22:09]OFD Sender: No OFD packet to send [04:22:14]OFD Sender: No OFD packet to send [04:22:19]OFD Sender: No OFD packet to send [04:22:24]OFD Sender: No OFD packet to send [04:22:29]OFD Sender: No OFD packet to send [04:22:34]OFD Sender: No OFD packet to send [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:09]OFD Sender: No OFD packet to send [04:24:14]OFD Sender: No OFD packet to send [04:24:19]OFD Sender: No OFD packet to send [04:24:24]OFD Sender: No OFD packet to send [04:24:29]OFD Sender: No OFD packet to send [04:24:34]OFD Sender: No OFD packet to send [04:24:39]OFD Sender: No OFD packet to send [04:24:44]OFD Sender: No OFD packet to send [04:24:49]OFD Sender: No OFD packet to send [04:24:54]OFD Sender: No OFD packet to send [04:24:59]OFD Sender: No OFD packet to send [04:25:04]OFD Sender: No OFD packet to send [04:25:09]OFD Sender: No OFD packet to send [04:25:14]OFD Sender: No OFD packet to send [04:25:19]OFD Sender: No OFD packet to send [04:25:24]OFD Sender: No OFD packet to send [04:25:29]OFD Sender: No OFD packet to send [04:25:34]OFD Sender: No OFD packet to send [04:25:39]OFD Sender: No OFD packet to send [04:25:44]OFD Sender: No OFD packet to send [04:25:49]OFD Sender: No OFD packet to send [04:25:54]OFD Sender: No OFD packet to send [04:25:59]OFD Sender: No OFD packet to send [04:26:04]OFD Sender: No OFD packet to send [04:26:09]OFD Sender: No OFD packet to send [04:26:14]OFD Sender: No OFD packet to send [04:26:19]OFD Sender: No OFD packet to send [04:26:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]OFD Sender: No OFD packet to send [04:27:04]OFD Sender: No OFD packet to send [04:27:09]OFD Sender: No OFD packet to send [04:27:14]OFD Sender: No OFD packet to send [04:27:19]OFD Sender: No OFD packet to send [04:27:24]OFD Sender: No OFD packet to send [04:27:29]OFD Sender: No OFD packet to send [04:27:34]OFD Sender: No OFD packet to send [04:27:39]OFD Sender: No OFD packet to send [04:27:44]OFD Sender: No OFD packet to send [04:27:49]OFD Sender: No OFD packet to send [04:27:54]OFD Sender: No OFD packet to send [04:27:59]OFD Sender: No OFD packet to send [04:28:04]OFD Sender: No OFD packet to send [04:28:09]OFD Sender: No OFD packet to send [04:28:14]OFD Sender: No OFD packet to send [04:28:19]OFD Sender: No OFD packet to send [04:28:24]OFD Sender: No OFD packet to send [04:28:29]OFD Sender: No OFD packet to send [04:28:34]OFD Sender: No OFD packet to send [04:28:39]OFD Sender: No OFD packet to send [04:28:44]OFD Sender: No OFD packet to send [04:28:49]OFD Sender: No OFD packet to send [04:28:54]OFD Sender: No OFD packet to send [04:28:59]OFD Sender: No OFD packet to send [04:29:04]OFD Sender: No OFD packet to send [04:29:09]OFD Sender: No OFD packet to send [04:29:14]OFD Sender: No OFD packet to send [04:29:19]OFD Sender: No OFD packet to send [04:29:24]OFD Sender: No OFD packet to send [04:29:29]OFD Sender: No OFD packet to send [04:29:34]OFD Sender: No OFD packet to send [04:29:39]OFD Sender: No OFD packet to send [04:29:44]OFD Sender: No OFD packet to send [04:29:49]OFD Sender: No OFD packet to send [04:29:54]OFD Sender: No OFD packet to send [04:29:59]OFD Sender: No OFD packet to send [04:30:04]OFD Sender: No OFD packet to send [04:30:09]OFD Sender: No OFD packet to send [04:30:14]OFD Sender: No OFD packet to send [04:30:19]OFD Sender: No OFD packet to send [04:30:24]OFD Sender: No OFD packet to send [04:30:29]OFD Sender: No OFD packet to send [04:30:34]OFD Sender: No OFD packet to send [04:30:39]OFD Sender: No OFD packet to send [04:30:44]OFD Sender: No OFD packet to send [04:30:49]OFD Sender: No OFD packet to send [04:30:54]OFD Sender: No OFD packet to send [04:30:59]OFD Sender: No OFD packet to send [04:31:04]OFD Sender: No OFD packet to send [04:31:09]OFD Sender: No OFD packet to send [04:31:14]OFD Sender: No OFD packet to send [04:31:19]OFD Sender: No OFD packet to send [04:31:24]OFD Sender: No OFD packet to send [04:31:29]OFD Sender: No OFD packet to send [04:31:34]OFD Sender: No OFD packet to send [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:24]OFD Sender: No OFD packet to send [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:39]OFD Sender: No OFD packet to send [04:33:45]OFD Sender: No OFD packet to send [04:33:50]OFD Sender: No OFD packet to send [04:33:55]OFD Sender: No OFD packet to send [04:34:00]OFD Sender: No OFD packet to send [04:34:05]OFD Sender: No OFD packet to send [04:34:10]OFD Sender: No OFD packet to send [04:34:15]OFD Sender: No OFD packet to send [04:34:20]OFD Sender: No OFD packet to send [04:34:25]OFD Sender: No OFD packet to send [04:34:30]OFD Sender: No OFD packet to send [04:34:35]OFD Sender: No OFD packet to send [04:34:40]OFD Sender: No OFD packet to send [04:34:45]OFD Sender: No OFD packet to send [04:34:50]OFD Sender: No OFD packet to send [04:34:55]OFD Sender: No OFD packet to send [04:35:00]OFD Sender: No OFD packet to send [04:35:05]OFD Sender: No OFD packet to send [04:35:10]OFD Sender: No OFD packet to send [04:35:15]OFD Sender: No OFD packet to send [04:35:20]OFD Sender: No OFD packet to send [04:35:25]OFD Sender: No OFD packet to send [04:35:30]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:30]OFD Sender: No OFD packet to send [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]OFD Sender: No OFD packet to send [04:54:50]OFD Sender: No OFD packet to send [04:54:55]OFD Sender: No OFD packet to send [04:55:00]OFD Sender: No OFD packet to send [04:55:05]OFD Sender: No OFD packet to send [04:55:10]OFD Sender: No OFD packet to send [04:55:15]OFD Sender: No OFD packet to send [04:55:20]OFD Sender: No OFD packet to send [04:55:25]OFD Sender: No OFD packet to send [04:55:30]OFD Sender: No OFD packet to send [04:55:35]OFD Sender: No OFD packet to send [04:55:40]OFD Sender: No OFD packet to send [04:55:45]OFD Sender: No OFD packet to send [04:55:50]OFD Sender: No OFD packet to send [04:55:56]OFD Sender: No OFD packet to send [04:56:01]OFD Sender: No OFD packet to send [04:56:06]OFD Sender: No OFD packet to send [04:56:11]OFD Sender: No OFD packet to send [04:56:16]OFD Sender: No OFD packet to send [04:56:21]OFD Sender: No OFD packet to send [04:56:26]OFD Sender: No OFD packet to send [04:56:31]OFD Sender: No OFD packet to send [04:56:36]OFD Sender: No OFD packet to send [04:56:41]OFD Sender: No OFD packet to send [04:56:46]OFD Sender: No OFD packet to send [04:56:51]OFD Sender: No OFD packet to send [04:56:56]OFD Sender: No OFD packet to send [04:57:01]OFD Sender: No OFD packet to send [04:57:06]OFD Sender: No OFD packet to send [04:57:11]OFD Sender: No OFD packet to send [04:57:16]OFD Sender: No OFD packet to send [04:57:21]OFD Sender: No OFD packet to send [04:57:26]OFD Sender: No OFD packet to send [04:57:31]OFD Sender: No OFD packet to send [04:57:36]OFD Sender: No OFD packet to send [04:57:41]OFD Sender: No OFD packet to send [04:57:46]OFD Sender: No OFD packet to send [04:57:51]OFD Sender: No OFD packet to send [04:57:56]OFD Sender: No OFD packet to send [04:58:01]OFD Sender: No OFD packet to send [04:58:06]OFD Sender: No OFD packet to send [04:58:11]OFD Sender: No OFD packet to send [04:58:16]OFD Sender: No OFD packet to send [04:58:21]OFD Sender: No OFD packet to send [04:58:26]OFD Sender: No OFD packet to send [04:58:31]OFD Sender: No OFD packet to send [04:58:36]OFD Sender: No OFD packet to send [04:58:41]OFD Sender: No OFD packet to send [04:58:46]OFD Sender: No OFD packet to send [04:58:51]OFD Sender: No OFD packet to send [04:58:56]OFD Sender: No OFD packet to send [04:59:01]OFD Sender: No OFD packet to send [04:59:06]OFD Sender: No OFD packet to send [04:59:11]OFD Sender: No OFD packet to send [04:59:16]OFD Sender: No OFD packet to send [04:59:21]OFD Sender: No OFD packet to send [04:59:26]OFD Sender: No OFD packet to send [04:59:31]OFD Sender: No OFD packet to send [04:59:36]OFD Sender: No OFD packet to send [04:59:41]OFD Sender: No OFD packet to send [04:59:46]OFD Sender: No OFD packet to send [04:59:51]OFD Sender: No OFD packet to send [04:59:56]OFD Sender: No OFD packet to send [05:00:01]OFD Sender: No OFD packet to send [05:00:06]OFD Sender: No OFD packet to send [05:00:11]OFD Sender: No OFD packet to send [05:00:16]OFD Sender: No OFD packet to send [05:00:21]OFD Sender: No OFD packet to send [05:00:26]OFD Sender: No OFD packet to send [05:00:31]OFD Sender: No OFD packet to send [05:00:36]OFD Sender: No OFD packet to send [05:00:41]OFD Sender: No OFD packet to send [05:00:46]OFD Sender: No OFD packet to send [05:00:51]OFD Sender: No OFD packet to send [05:00:56]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]OFD Sender: No OFD packet to send [05:03:31]OFD Sender: No OFD packet to send [05:03:36]OFD Sender: No OFD packet to send [05:03:41]OFD Sender: No OFD packet to send [05:03:46]OFD Sender: No OFD packet to send [05:03:51]OFD Sender: No OFD packet to send [05:03:56]OFD Sender: No OFD packet to send [05:04:01]OFD Sender: No OFD packet to send [05:04:06]OFD Sender: No OFD packet to send [05:04:11]OFD Sender: No OFD packet to send [05:04:16]OFD Sender: No OFD packet to send [05:04:21]OFD Sender: No OFD packet to send [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:41]OFD Sender: No OFD packet to send [05:06:46]OFD Sender: No OFD packet to send [05:06:51]OFD Sender: No OFD packet to send [05:06:56]OFD Sender: No OFD packet to send [05:07:01]OFD Sender: No OFD packet to send [05:07:06]OFD Sender: No OFD packet to send [05:07:11]OFD Sender: No OFD packet to send [05:07:16]OFD Sender: No OFD packet to send [05:07:21]OFD Sender: No OFD packet to send [05:07:26]OFD Sender: No OFD packet to send [05:07:31]OFD Sender: No OFD packet to send [05:07:36]OFD Sender: No OFD packet to send [05:07:41]OFD Sender: No OFD packet to send [05:07:46]OFD Sender: No OFD packet to send [05:07:51]OFD Sender: No OFD packet to send [05:07:56]OFD Sender: No OFD packet to send [05:08:01]OFD Sender: No OFD packet to send [05:08:06]OFD Sender: No OFD packet to send [05:08:11]OFD Sender: No OFD packet to send [05:08:16]OFD Sender: No OFD packet to send [05:08:21]OFD Sender: No OFD packet to send [05:08:26]OFD Sender: No OFD packet to send [05:08:31]OFD Sender: No OFD packet to send [05:08:36]OFD Sender: No OFD packet to send [05:08:41]OFD Sender: No OFD packet to send [05:08:46]OFD Sender: No OFD packet to send [05:08:51]OFD Sender: No OFD packet to send [05:08:56]OFD Sender: No OFD packet to send [05:09:01]OFD Sender: No OFD packet to send [05:09:06]OFD Sender: No OFD packet to send [05:09:11]OFD Sender: No OFD packet to send [05:09:16]OFD Sender: No OFD packet to send [05:09:21]OFD Sender: No OFD packet to send [05:09:26]OFD Sender: No OFD packet to send [05:09:31]OFD Sender: No OFD packet to send [05:09:36]OFD Sender: No OFD packet to send [05:09:41]OFD Sender: No OFD packet to send [05:09:46]OFD Sender: No OFD packet to send [05:09:51]OFD Sender: No OFD packet to send [05:09:56]OFD Sender: No OFD packet to send [05:10:01]OFD Sender: No OFD packet to send [05:10:06]OFD Sender: No OFD packet to send [05:10:11]OFD Sender: No OFD packet to send [05:10:16]OFD Sender: No OFD packet to send [05:10:21]OFD Sender: No OFD packet to send [05:10:26]OFD Sender: No OFD packet to send [05:10:31]OFD Sender: No OFD packet to send [05:10:36]OFD Sender: No OFD packet to send [05:10:41]OFD Sender: No OFD packet to send [05:10:46]OFD Sender: No OFD packet to send [05:10:51]OFD Sender: No OFD packet to send [05:10:56]OFD Sender: No OFD packet to send [05:11:01]OFD Sender: No OFD packet to send [05:11:06]OFD Sender: No OFD packet to send [05:11:11]OFD Sender: No OFD packet to send [05:11:16]OFD Sender: No OFD packet to send [05:11:21]OFD Sender: No OFD packet to send [05:11:26]OFD Sender: No OFD packet to send [05:11:31]OFD Sender: No OFD packet to send [05:11:36]OFD Sender: No OFD packet to send [05:11:41]OFD Sender: No OFD packet to send [05:11:46]OFD Sender: No OFD packet to send [05:11:51]OFD Sender: No OFD packet to send [05:11:56]OFD Sender: No OFD packet to send [05:12:01]OFD Sender: No OFD packet to send [05:12:06]OFD Sender: No OFD packet to send [05:12:11]OFD Sender: No OFD packet to send [05:12:16]OFD Sender: No OFD packet to send [05:12:21]OFD Sender: No OFD packet to send [05:12:26]OFD Sender: No OFD packet to send [05:12:31]OFD Sender: No OFD packet to send [05:12:36]OFD Sender: No OFD packet to send [05:12:41]OFD Sender: No OFD packet to send [05:12:46]OFD Sender: No OFD packet to send [05:12:51]OFD Sender: No OFD packet to send [05:12:56]OFD Sender: No OFD packet to send [05:13:01]OFD Sender: No OFD packet to send [05:13:06]OFD Sender: No OFD packet to send [05:13:11]OFD Sender: No OFD packet to send [05:13:16]OFD Sender: No OFD packet to send [05:13:21]OFD Sender: No OFD packet to send [05:13:26]OFD Sender: No OFD packet to send [05:13:31]OFD Sender: No OFD packet to send [05:13:36]OFD Sender: No OFD packet to send [05:13:41]OFD Sender: No OFD packet to send [05:13:46]OFD Sender: No OFD packet to send [05:13:51]OFD Sender: No OFD packet to send [05:13:56]OFD Sender: No OFD packet to send [05:14:01]OFD Sender: No OFD packet to send [05:14:06]OFD Sender: No OFD packet to send [05:14:11]OFD Sender: No OFD packet to send [05:14:16]OFD Sender: No OFD packet to send [05:14:21]OFD Sender: No OFD packet to send [05:14:26]OFD Sender: No OFD packet to send [05:14:31]OFD Sender: No OFD packet to send [05:14:36]OFD Sender: No OFD packet to send [05:14:41]OFD Sender: No OFD packet to send [05:14:46]OFD Sender: No OFD packet to send [05:14:51]OFD Sender: No OFD packet to send [05:14:56]OFD Sender: No OFD packet to send [05:15:01]OFD Sender: No OFD packet to send [05:15:06]OFD Sender: No OFD packet to send [05:15:11]OFD Sender: No OFD packet to send [05:15:16]OFD Sender: No OFD packet to send [05:15:21]OFD Sender: No OFD packet to send [05:15:26]OFD Sender: No OFD packet to send [05:15:31]OFD Sender: No OFD packet to send [05:15:36]OFD Sender: No OFD packet to send [05:15:41]OFD Sender: No OFD packet to send [05:15:46]OFD Sender: No OFD packet to send [05:15:51]OFD Sender: No OFD packet to send [05:15:56]OFD Sender: No OFD packet to send [05:16:01]OFD Sender: No OFD packet to send [05:16:06]OFD Sender: No OFD packet to send [05:16:11]OFD Sender: No OFD packet to send [05:16:16]OFD Sender: No OFD packet to send [05:16:21]OFD Sender: No OFD packet to send [05:16:26]OFD Sender: No OFD packet to send [05:16:31]OFD Sender: No OFD packet to send [05:16:36]OFD Sender: No OFD packet to send [05:16:41]OFD Sender: No OFD packet to send [05:16:46]OFD Sender: No OFD packet to send [05:16:51]OFD Sender: No OFD packet to send [05:16:56]OFD Sender: No OFD packet to send [05:17:01]OFD Sender: No OFD packet to send [05:17:06]OFD Sender: No OFD packet to send [05:17:11]OFD Sender: No OFD packet to send [05:17:16]OFD Sender: No OFD packet to send [05:17:21]OFD Sender: No OFD packet to send [05:17:26]OFD Sender: No OFD packet to send [05:17:31]OFD Sender: No OFD packet to send [05:17:36]OFD Sender: No OFD packet to send [05:17:41]OFD Sender: No OFD packet to send [05:17:46]OFD Sender: No OFD packet to send [05:17:51]OFD Sender: No OFD packet to send [05:17:56]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:17]OFD Sender: No OFD packet to send [05:25:22]OFD Sender: No OFD packet to send [05:25:27]OFD Sender: No OFD packet to send [05:25:32]OFD Sender: No OFD packet to send [05:25:37]OFD Sender: No OFD packet to send [05:25:42]OFD Sender: No OFD packet to send [05:25:47]OFD Sender: No OFD packet to send [05:25:52]OFD Sender: No OFD packet to send [05:25:57]OFD Sender: No OFD packet to send [05:26:02]OFD Sender: No OFD packet to send [05:26:07]OFD Sender: No OFD packet to send [05:26:12]OFD Sender: No OFD packet to send [05:26:17]OFD Sender: No OFD packet to send [05:26:22]OFD Sender: No OFD packet to send [05:26:27]OFD Sender: No OFD packet to send [05:26:32]OFD Sender: No OFD packet to send [05:26:37]OFD Sender: No OFD packet to send [05:26:42]OFD Sender: No OFD packet to send [05:26:47]OFD Sender: No OFD packet to send [05:26:52]OFD Sender: No OFD packet to send [05:26:57]OFD Sender: No OFD packet to send [05:27:02]OFD Sender: No OFD packet to send [05:27:07]OFD Sender: No OFD packet to send [05:27:12]OFD Sender: No OFD packet to send [05:27:17]OFD Sender: No OFD packet to send [05:27:22]OFD Sender: No OFD packet to send [05:27:27]OFD Sender: No OFD packet to send [05:27:32]OFD Sender: No OFD packet to send [05:27:37]OFD Sender: No OFD packet to send [05:27:42]OFD Sender: No OFD packet to send [05:27:47]OFD Sender: No OFD packet to send [05:27:52]OFD Sender: No OFD packet to send [05:27:57]OFD Sender: No OFD packet to send [05:28:02]OFD Sender: No OFD packet to send [05:28:07]OFD Sender: No OFD packet to send [05:28:12]OFD Sender: No OFD packet to send [05:28:17]OFD Sender: No OFD packet to send [05:28:22]OFD Sender: No OFD packet to send [05:28:27]OFD Sender: No OFD packet to send [05:28:32]OFD Sender: No OFD packet to send [05:28:37]OFD Sender: No OFD packet to send [05:28:42]OFD Sender: No OFD packet to send [05:28:47]OFD Sender: No OFD packet to send [05:28:52]OFD Sender: No OFD packet to send [05:28:57]OFD Sender: No OFD packet to send [05:29:02]OFD Sender: No OFD packet to send [05:29:07]OFD Sender: No OFD packet to send [05:29:12]OFD Sender: No OFD packet to send [05:29:17]OFD Sender: No OFD packet to send [05:29:22]OFD Sender: No OFD packet to send [05:29:27]OFD Sender: No OFD packet to send [05:29:32]OFD Sender: No OFD packet to send [05:29:37]OFD Sender: No OFD packet to send [05:29:42]OFD Sender: No OFD packet to send [05:29:47]OFD Sender: No OFD packet to send [05:29:52]OFD Sender: No OFD packet to send [05:29:57]OFD Sender: No OFD packet to send [05:30:02]OFD Sender: No OFD packet to send [05:30:07]OFD Sender: No OFD packet to send [05:30:12]OFD Sender: No OFD packet to send [05:30:17]OFD Sender: No OFD packet to send [05:30:22]OFD Sender: No OFD packet to send [05:30:27]OFD Sender: No OFD packet to send [05:30:32]OFD Sender: No OFD packet to send [05:30:37]OFD Sender: No OFD packet to send [05:30:42]OFD Sender: No OFD packet to send [05:30:47]OFD Sender: No OFD packet to send [05:30:52]OFD Sender: No OFD packet to send [05:30:57]OFD Sender: No OFD packet to send [05:31:02]OFD Sender: No OFD packet to send [05:31:07]OFD Sender: No OFD packet to send [05:31:12]OFD Sender: No OFD packet to send [05:31:17]OFD Sender: No OFD packet to send [05:31:22]OFD Sender: No OFD packet to send [05:31:27]OFD Sender: No OFD packet to send [05:31:32]OFD Sender: No OFD packet to send [05:31:37]OFD Sender: No OFD packet to send [05:31:42]OFD Sender: No OFD packet to send [05:31:47]OFD Sender: No OFD packet to send [05:31:52]OFD Sender: No OFD packet to send [05:31:57]OFD Sender: No OFD packet to send [05:32:02]OFD Sender: No OFD packet to send [05:32:07]OFD Sender: No OFD packet to send [05:32:12]OFD Sender: No OFD packet to send [05:32:17]OFD Sender: No OFD packet to send [05:32:22]OFD Sender: No OFD packet to send [05:32:27]OFD Sender: No OFD packet to send [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:17]OFD Sender: No OFD packet to send [05:34:22]OFD Sender: No OFD packet to send [05:34:27]OFD Sender: No OFD packet to send [05:34:32]OFD Sender: No OFD packet to send [05:34:37]OFD Sender: No OFD packet to send [05:34:42]OFD Sender: No OFD packet to send [05:34:47]OFD Sender: No OFD packet to send [05:34:52]OFD Sender: No OFD packet to send [05:34:57]OFD Sender: No OFD packet to send [05:35:02]OFD Sender: No OFD packet to send [05:35:07]OFD Sender: No OFD packet to send [05:35:12]OFD Sender: No OFD packet to send [05:35:17]OFD Sender: No OFD packet to send [05:35:22]OFD Sender: No OFD packet to send [05:35:27]OFD Sender: No OFD packet to send [05:35:32]OFD Sender: No OFD packet to send [05:35:37]OFD Sender: No OFD packet to send [05:35:42]OFD Sender: No OFD packet to send [05:35:47]OFD Sender: No OFD packet to send [05:35:52]OFD Sender: No OFD packet to send [05:35:57]OFD Sender: No OFD packet to send [05:36:02]OFD Sender: No OFD packet to send [05:36:07]OFD Sender: No OFD packet to send [05:36:12]OFD Sender: No OFD packet to send [05:36:17]OFD Sender: No OFD packet to send [05:36:22]OFD Sender: No OFD packet to send [05:36:27]OFD Sender: No OFD packet to send [05:36:32]OFD Sender: No OFD packet to send [05:36:37]OFD Sender: No OFD packet to send [05:36:42]OFD Sender: No OFD packet to send [05:36:47]OFD Sender: No OFD packet to send [05:36:52]OFD Sender: No OFD packet to send [05:36:57]OFD Sender: No OFD packet to send [05:37:02]OFD Sender: No OFD packet to send [05:37:07]OFD Sender: No OFD packet to send [05:37:12]OFD Sender: No OFD packet to send [05:37:17]OFD Sender: No OFD packet to send [05:37:22]OFD Sender: No OFD packet to send [05:37:27]OFD Sender: No OFD packet to send [05:37:32]OFD Sender: No OFD packet to send [05:37:37]OFD Sender: No OFD packet to send [05:37:42]OFD Sender: No OFD packet to send [05:37:47]OFD Sender: No OFD packet to send [05:37:52]OFD Sender: No OFD packet to send [05:37:57]OFD Sender: No OFD packet to send [05:38:02]OFD Sender: No OFD packet to send [05:38:07]OFD Sender: No OFD packet to send [05:38:12]OFD Sender: No OFD packet to send [05:38:17]OFD Sender: No OFD packet to send [05:38:22]OFD Sender: No OFD packet to send [05:38:27]OFD Sender: No OFD packet to send [05:38:32]OFD Sender: No OFD packet to send [05:38:37]OFD Sender: No OFD packet to send [05:38:42]OFD Sender: No OFD packet to send [05:38:47]OFD Sender: No OFD packet to send [05:38:52]OFD Sender: No OFD packet to send [05:38:57]OFD Sender: No OFD packet to send [05:39:02]OFD Sender: No OFD packet to send [05:39:07]OFD Sender: No OFD packet to send [05:39:12]OFD Sender: No OFD packet to send [05:39:17]OFD Sender: No OFD packet to send [05:39:22]OFD Sender: No OFD packet to send [05:39:27]OFD Sender: No OFD packet to send [05:39:32]OFD Sender: No OFD packet to send [05:39:37]OFD Sender: No OFD packet to send [05:39:42]OFD Sender: No OFD packet to send [05:39:47]OFD Sender: No OFD packet to send [05:39:52]OFD Sender: No OFD packet to send [05:39:57]OFD Sender: No OFD packet to send [05:40:02]OFD Sender: No OFD packet to send [05:40:07]OFD Sender: No OFD packet to send [05:40:13]OFD Sender: No OFD packet to send [05:40:18]OFD Sender: No OFD packet to send [05:40:23]OFD Sender: No OFD packet to send [05:40:28]OFD Sender: No OFD packet to send [05:40:33]OFD Sender: No OFD packet to send [05:40:38]OFD Sender: No OFD packet to send [05:40:43]OFD Sender: No OFD packet to send [05:40:48]OFD Sender: No OFD packet to send [05:40:53]OFD Sender: No OFD packet to send [05:40:58]OFD Sender: No OFD packet to send [05:41:03]OFD Sender: No OFD packet to send [05:41:08]OFD Sender: No OFD packet to send [05:41:13]OFD Sender: No OFD packet to send [05:41:18]OFD Sender: No OFD packet to send [05:41:23]OFD Sender: No OFD packet to send [05:41:28]OFD Sender: No OFD packet to send [05:41:33]OFD Sender: No OFD packet to send [05:41:38]OFD Sender: No OFD packet to send [05:41:43]OFD Sender: No OFD packet to send [05:41:48]OFD Sender: No OFD packet to send [05:41:53]OFD Sender: No OFD packet to send [05:41:58]OFD Sender: No OFD packet to send [05:42:03]OFD Sender: No OFD packet to send [05:42:08]OFD Sender: No OFD packet to send [05:42:13]OFD Sender: No OFD packet to send [05:42:18]OFD Sender: No OFD packet to send [05:42:23]OFD Sender: No OFD packet to send [05:42:28]OFD Sender: No OFD packet to send [05:42:33]OFD Sender: No OFD packet to send [05:42:38]OFD Sender: No OFD packet to send [05:42:43]OFD Sender: No OFD packet to send [05:42:48]OFD Sender: No OFD packet to send [05:42:53]OFD Sender: No OFD packet to send [05:42:58]OFD Sender: No OFD packet to send [05:43:03]OFD Sender: No OFD packet to send [05:43:08]OFD Sender: No OFD packet to send [05:43:13]OFD Sender: No OFD packet to send [05:43:18]OFD Sender: No OFD packet to send [05:43:23]OFD Sender: No OFD packet to send [05:43:28]OFD Sender: No OFD packet to send [05:43:33]OFD Sender: No OFD packet to send [05:43:38]OFD Sender: No OFD packet to send [05:43:43]OFD Sender: No OFD packet to send [05:43:48]OFD Sender: No OFD packet to send [05:43:53]OFD Sender: No OFD packet to send [05:43:58]OFD Sender: No OFD packet to send [05:44:03]OFD Sender: No OFD packet to send [05:44:08]OFD Sender: No OFD packet to send [05:44:13]OFD Sender: No OFD packet to send [05:44:18]OFD Sender: No OFD packet to send [05:44:23]OFD Sender: No OFD packet to send [05:44:28]OFD Sender: No OFD packet to send [05:44:33]OFD Sender: No OFD packet to send [05:44:38]OFD Sender: No OFD packet to send [05:44:43]OFD Sender: No OFD packet to send [05:44:48]OFD Sender: No OFD packet to send [05:44:53]OFD Sender: No OFD packet to send [05:44:58]OFD Sender: No OFD packet to send [05:45:03]OFD Sender: No OFD packet to send [05:45:08]OFD Sender: No OFD packet to send [05:45:13]OFD Sender: No OFD packet to send [05:45:18]OFD Sender: No OFD packet to send [05:45:23]OFD Sender: No OFD packet to send [05:45:28]OFD Sender: No OFD packet to send [05:45:33]OFD Sender: No OFD packet to send [05:45:38]OFD Sender: No OFD packet to send [05:45:43]OFD Sender: No OFD packet to send [05:45:48]OFD Sender: No OFD packet to send [05:45:53]OFD Sender: No OFD packet to send [05:45:58]OFD Sender: No OFD packet to send [05:46:03]OFD Sender: No OFD packet to send [05:46:08]OFD Sender: No OFD packet to send [05:46:13]OFD Sender: No OFD packet to send [05:46:18]OFD Sender: No OFD packet to send [05:46:23]OFD Sender: No OFD packet to send [05:46:28]OFD Sender: No OFD packet to send [05:46:33]OFD Sender: No OFD packet to send [05:46:38]OFD Sender: No OFD packet to send [05:46:43]OFD Sender: No OFD packet to send [05:46:48]OFD Sender: No OFD packet to send [05:46:53]OFD Sender: No OFD packet to send [05:46:58]OFD Sender: No OFD packet to send [05:47:03]OFD Sender: No OFD packet to send [05:47:08]OFD Sender: No OFD packet to send [05:47:13]OFD Sender: No OFD packet to send [05:47:18]OFD Sender: No OFD packet to send [05:47:23]OFD Sender: No OFD packet to send [05:47:28]OFD Sender: No OFD packet to send [05:47:33]OFD Sender: No OFD packet to send [05:47:38]OFD Sender: No OFD packet to send [05:47:43]OFD Sender: No OFD packet to send [05:47:48]OFD Sender: No OFD packet to send [05:47:53]OFD Sender: No OFD packet to send [05:47:58]OFD Sender: No OFD packet to send [05:48:03]OFD Sender: No OFD packet to send [05:48:08]OFD Sender: No OFD packet to send [05:48:13]OFD Sender: No OFD packet to send [05:48:18]OFD Sender: No OFD packet to send [05:48:23]OFD Sender: No OFD packet to send [05:48:28]OFD Sender: No OFD packet to send [05:48:33]OFD Sender: No OFD packet to send [05:48:38]OFD Sender: No OFD packet to send [05:48:43]OFD Sender: No OFD packet to send [05:48:48]OFD Sender: No OFD packet to send [05:48:53]OFD Sender: No OFD packet to send [05:48:58]OFD Sender: No OFD packet to send [05:49:03]OFD Sender: No OFD packet to send [05:49:08]OFD Sender: No OFD packet to send [05:49:13]OFD Sender: No OFD packet to send [05:49:18]OFD Sender: No OFD packet to send [05:49:23]OFD Sender: No OFD packet to send [05:49:28]OFD Sender: No OFD packet to send [05:49:33]OFD Sender: No OFD packet to send [05:49:38]OFD Sender: No OFD packet to send [05:49:43]OFD Sender: No OFD packet to send [05:49:48]OFD Sender: No OFD packet to send [05:49:53]OFD Sender: No OFD packet to send [05:49:58]OFD Sender: No OFD packet to send [05:50:03]OFD Sender: No OFD packet to send [05:50:08]OFD Sender: No OFD packet to send [05:50:13]OFD Sender: No OFD packet to send [05:50:18]OFD Sender: No OFD packet to send [05:50:23]OFD Sender: No OFD packet to send [05:50:28]OFD Sender: No OFD packet to send [05:50:33]OFD Sender: No OFD packet to send [05:50:38]OFD Sender: No OFD packet to send [05:50:43]OFD Sender: No OFD packet to send [05:50:48]OFD Sender: No OFD packet to send [05:50:53]OFD Sender: No OFD packet to send [05:50:58]OFD Sender: No OFD packet to send [05:51:03]OFD Sender: No OFD packet to send [05:51:08]OFD Sender: No OFD packet to send [05:51:13]OFD Sender: No OFD packet to send [05:51:18]OFD Sender: No OFD packet to send [05:51:23]OFD Sender: No OFD packet to send [05:51:28]OFD Sender: No OFD packet to send [05:51:33]OFD Sender: No OFD packet to send [05:51:38]OFD Sender: No OFD packet to send [05:51:43]OFD Sender: No OFD packet to send [05:51:48]OFD Sender: No OFD packet to send [05:51:53]OFD Sender: No OFD packet to send [05:51:58]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]accept exits with 9 [05:53:53]New connection [05:53:53]New thread 3066707300 created [05:53:53]Thread 3066850660 joined [05:53:53]Waiting for new connection... [05:53:53] Sock 9.Parse request [05:53:53]Sock 9.Check first char [05:53:53]Sock 9.First char is OK [05:53:53]request: POST /json_proto HTTP/1.0 [05:53:53]Method: POST [05:53:53]URL: /json_proto [05:53:53]Method is POST - this is cgi request [05:53:53]url: /json_proto [05:53:53]query_string will be loaded in cgi processing [05:53:53]execute_cgi json_proto POST (null) [05:53:53]execute_cgi path=json_proto method=POST [05:53:53]POST find Content-Length [05:53:53]Host: 172.17.52.132:8080 [05:53:53]Content-Length: 603 [05:53:53]Content-Type: application/json [05:53:53] [05:53:53]POST finish read [05:53:53]Found Content-Length = 603 [05:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99800", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 2.000, "sum" : 88.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 88.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:53]execute_script... [05:53: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 : (3)99800", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 2.000, "sum" : 88.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 88.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:53:53]POST & json_proto [05:53:53]process_json_proto [05:53:53]json parsed OK: [05:53:53]protocol is kg_v1.0 [05:53:53]action value=close_receipt [05:53:53]process_action close_receipt [05:53:53]cmd_close_receipt [05:53:53]MH_GetDate [05:53:53]Write to MH i2c: F0 00 00 55 0D 51 [05:53:53]Write i2c OK [05:53:53]MH_I2C_Read... [05:53:53]Read from MH i2c: F0 [05:53:53]MH_I2C_Read... [05:53:53]Read from MH i2c: F0 09 00 [05:53:53]MH_I2C_Read... [05:53:53]Read from MH i2c: F0 09 00 55 0D 00 F4 F7 11 67 5A BE F6 66 31 [05:53:53]GetLastDocTimeStamp 1729214720 [05:53:53]current date 1729230836 [05:53:53]FM_GetShiftState [05:53:53]SAM_PROTO_GetShiftState [05:53:53]wFMCommunicate request_size=4 [05:53:53]MH_SAM_APDU [05:53:53]CAPDU: 80 13 01 00 [05:53:53]Write to MH i2c: E2 08 00 56 0D 80 13 01 00 00 00 00 00 E0 [05:53:53]Write i2c OK [05:53:53]MH_I2C_Read... [05:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:53]Read from MH i2c: E2 [05:53:53]MH_I2C_Read... [05:53:53]Read from MH i2c: E2 0E 00 [05:53:53]MH_I2C_Read... [05:53:53]Read from MH i2c: E2 0E 00 56 0D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 7E [05:53:53]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [05:53:53]wFMCommunicate OK [05:53:53]SAM_PROTO_GetShiftState done [05:53:53]FM_GetShiftState done [05:53:53]opened in 1729209717 [05:53:53]opened+sec_in_day 1729296117 [05:53:53]quantity*price = 8800 [05:53:53]sum+1 = 8801 [05:53:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 88.00 ÐСП 1% : 0.78 ÐДС 12% : 9.34 Ðаличными: 88.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 2 18.10.2024 05:53 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2377 ФПД: 29424873407172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T055356&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2377&fm=29424873407172&tin=02508201610067®Number=0000000000207295&sum=8800 0 [05:53:54]StoreToDocumentArchive [05:53:54]shift 22 fd 2377 [05:53:54]save to /storage/0022/doc_00002377 [05:53:54]save last doc name /storage/0022/doc_00002377 to /storage/kkm_last_doc_name [05:53:54]save OK [05:53:54]Clear old archive folders... [05:53:54]ProcessDocumentItem done err = 0, tmpTLVsize=275 [05:53:54]tlvbuf is 013355D0 [05:53:54]SAM_PROTO_ClearQueue [05:53:54]wFMCommunicate request_size=4 [05:53:54]MH_SAM_APDU [05:53:54]CAPDU: 80 09 00 00 [05:53:54]Write to MH i2c: E2 08 00 63 0D 80 09 00 00 00 00 00 00 E2 [05:53:54]Write i2c OK [05:53:54]MH_I2C_Read... [05:53:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:53:54]Read from MH i2c: E2 [05:53:54]MH_I2C_Read... [05:53:54]Read from MH i2c: E2 03 00 [05:53:54]MH_I2C_Read... [05:53:54]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [05:53:54]RAPDU: 90 00 [05:53:54]wFMCommunicate OK [05:53:54]SAM_PROTO_ClearQueue done [05:53:54]KKMCreateOFDPacket [05:53:54]OFDProtocolAddRootSTLVToBuf [05:53:54]FM_MakeSignedData [05:53:54]FM_MakeSignedData [05:53:54]SAM_PROTO_SignData [05:53:54]wFMCommunicate request_size=4 [05:53:54]MH_SAM_APDU [05:53:54]CAPDU: 80 0D 01 02 [05:53:54]Write to MH i2c: E2 08 00 64 0D 80 0D 01 02 00 00 00 00 EA [05:53:54]Write i2c OK [05:53:54]MH_I2C_Read... [05:53:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:53:54]Read from MH i2c: E2 [05:53:54]MH_I2C_Read... [05:53:54]Read from MH i2c: E2 03 00 [05:53:54]MH_I2C_Read... [05:53:54]Read from MH i2c: E2 03 00 64 0D 00 90 00 E5 [05:53:54]RAPDU: 90 00 [05:53:54]wFMCommunicate OK [05:53:54]wFMCommunicate request_size=255 [05:53:54]MH_SAM_APDU [05:53:54]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 60 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 03 00 00 00 00 07 04 06 00 60 22 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 F4 F7 11 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 [05:53:54]Write to MH i2c: E2 02 01 65 0D 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 60 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 03 00 00 00 00 07 04 06 00 60 22 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 F4 F7 11 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 00 00 AA [05:53:54]Write i2c OK [05:53:54]MH_I2C_Read... [05:53:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:54]Read from MH i2c: E2 [05:53:54]MH_I2C_Read... [05:53:54]Read from MH i2c: E2 03 00 [05:53:54]MH_I2C_Read... [05:53:54]Read from MH i2c: E2 03 00 65 0D 00 90 00 E6 [05:53:54]RAPDU: 90 00 [05:53:54]wFMCommunicate OK [05:53:54]wFMCommunicate request_size=34 [05:53:54]MH_SAM_APDU [05:53:54]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 49 09 00 00 35 04 06 00 1A C3 03 20 82 C4 [05:53:54]Write to MH i2c: E2 25 00 66 0D 80 0D 02 02 1D 00 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 49 09 00 00 35 04 06 00 1A C3 03 20 82 C4 00 00 3B [05:53:54]Write i2c OK [05:53:54]MH_I2C_Read... [05:53:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:53:55]Read from MH i2c: E2 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: E2 03 00 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: E2 03 00 66 0D 00 90 00 E7 [05:53:55]RAPDU: 90 00 [05:53:55]wFMCommunicate OK [05:53:55]wFMCommunicate request_size=4 [05:53:55]MH_SAM_APDU [05:53:55]CAPDU: 80 0D 03 02 [05:53:55]Write to MH i2c: E2 08 00 67 0D 80 0D 03 02 00 00 00 00 EF [05:53:55]Write i2c OK [05:53:55]MH_I2C_Read... [05:53:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:53:55]Read from MH i2c: E2 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: E2 0B 00 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: E2 0B 00 67 0D 00 E0 20 5A 0C E9 D5 86 01 90 00 9B [05:53:55]RAPDU: E0 20 5A 0C E9 D5 86 01 90 00 [05:53:55]wFMCommunicate OK [05:53:55]SAM_PROTO_SignData done [05:53:55]FM_MakeSignedData done [05:53:55]CreateOFDProtocolMessage [05:53:55]wFMCommunicate request_size=4 [05:53:55]MH_SAM_APDU [05:53:55]CAPDU: 80 11 00 00 [05:53:55]Write to MH i2c: E2 08 00 68 0D 80 11 00 00 00 00 00 00 EF [05:53:55]Write i2c OK [05:53:55]MH_I2C_Read... [05:53:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:55]Read from MH i2c: E2 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: E2 17 00 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: E2 17 00 68 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 37 [05:53:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [05:53:55]wFMCommunicate OK [05:53:55]CreateOFDProtocolMessage done [05:53:55]OFDSenderStorePacket 2377 [05:53:55]StoreOFDPacket docnum=2377 [05:53:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 27 01 00 00 0A 20 1F 01 C5 CB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 60 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 03 00 00 00 00 07 04 06 00 60 22 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 F4 F7 11 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 49 09 00 00 35 04 06 00 1A C3 03 20 82 C4 E0 20 5A 0C E9 D5 86 01 [05:53:55]CheckFolder [05:53:55]dirname=/storage/ofd_packets [05:53:55]CheckFolder done [05:53:55]ProducePacketName [05:53:55]name=ofd_packets/00002377 [05:53:55]NVStorageSaveData ofd_packets/00002377 [05:53:55]File name is /storage/ofd_packets/00002377 [05:53:55]Write 325 bytes [05:53:55]NVStorageSaveData done [05:53:55]OFDSenderStorePacket done [05:53:55]KKMCreateOFDPacket done [05:53:55]NVStorageSaveData kkm_last_timestamp [05:53:55]File name is /storage/kkm_last_timestamp [05:53:55]Write 4 bytes [05:53:55]NVStorageSaveData done [05:53:55]ExternCall_PrintAddStr [05:53:55]wPrintStart [05:53:55]Write to MH i2c: 01 00 00 69 0D 76 [05:53:55]Write i2c OK [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: 01 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: 01 07 00 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: 01 07 00 69 0D 00 00 00 00 00 FF 0F 8B [05:53:55]RasterBufferAndPrint [05:53:55]line Счет N : (3)99800 [05:53:55]line ИÐÐ: 02508201610067 [05:53:55]line Контрольно-КаÑÑовый Чек [05:53:55]line ПРОДÐЖР[05:53:55]line Товар: 4870112003925 [05:53:55]line Конд ULKER-Albeni 40gr (6*24) [05:53:55]line 2.000 * 44.00 [05:53:55]line = 88.00 [05:53:55]line ÐДС 12% ÐСП 1% [05:53:55]line > о реализуемом товаре [05:53:55]line ИТОГО: 88.00 [05:53:55]line ÐСП 1% : 0.78 [05:53:55]line ÐДС 12% : 9.34 [05:53:55]line Ðаличными: 88.00 [05:53:55]line Безнал.: 0.00 [05:53:55]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [05:53:55]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [05:53:55]line СÐО: Общий режим [05:53:55]line Чек 2 18.10.2024 05:53 [05:53:55]line Смена: 22 ФФД: 1.0 [05:53:55]line ЗÐМ: 0300000191 [05:53:55]line РÐМ: 0000000000207295 [05:53:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [05:53:55]line ФМ: 0000000002342820 [05:53:55]line ФД: 2377 [05:53:55]line ФПД: 29424873407172 [05:53:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T055356&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2377&fm=29424873407172&tin=02508201610067®Number=0000000000207295&sum=8800 [05:53:55]line 0 [05:53:55]OFD Sender: Processing packet 2377 [packets to send 1, broken 0] [05:53:55]ProducePacketName [05:53:55]name=ofd_packets/00002377 [05:53:55]OFD Sender: To server: ‡•öpG, [05:53:55]CommunicateWithHost lk.salyk.kg:30040 [05:53:55]ConnectInit lk.salyk.kg [05:53:55]written 0, free lines is 4095 [05:53:55]Connected sock=10 [05:53:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 27 01 00 00 0A 20 1F 01 C5 CB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 60 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 03 00 00 00 00 07 04 06 00 60 22 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 F4 F7 11 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 49 09 00 00 35 04 06 00 1A C3 03 20 82 C4 E0 20 5A 0C E9 D5 86 01 [05:53:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 3B AC 47 00 C1 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 32 33 34 32 38 32 30 10 04 04 00 49 09 00 00 F4 03 04 00 58 A3 11 67 B6 04 01 00 00 D8 E4 21 C5 FB EB 36 58 [05:53:55]CommunicateWithHost err = 0 [05:53:55]CheckOFDResponse [05:53:55]1017 (14) - 77093643461234 [05:53:55]1041 (16) - 0000000002342820 [05:53:55]1040 (4) - 2377 [05:53:55]1012 (4) - 17.10.2024 23:52 [05:53:55]1206 (1) - 0 [05:53:55]OFD Sender: Remove packet 2377 [05:53:55]ProducePacketName [05:53:55]name=ofd_packets/00002377 [05:53:55]NVStorageDeleteData [05:53:55]Write to MH i2c: 01 00 00 91 0D 9E [05:53:55]Write i2c OK [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: 01 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: 01 07 00 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 B8 0C 69 [05:53:55]RasterBufferAndPrint [05:53:55]line [05:53:55]line [05:53:55]line [05:53:55]line [05:53:55]line [05:53:55]written 0, free lines is 3260 [05:53:55]MH_Cut [05:53:55]Write to MH i2c: D1 01 00 98 0D 01 77 [05:53:55]Write i2c OK [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: D1 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: D1 01 00 [05:53:55]MH_I2C_Read... [05:53:55]Read from MH i2c: D1 01 00 98 0D 00 76 [05:53:55]Write to MH i2c: 01 00 00 99 0D A6 [05:53:55]Write i2c OK [05:53:55]MH_I2C_Read... [05:53:56]OFD Sender: No OFD packet to send [05:53:56]*** Cut start [05:53:56]*** Partial cut [05:53:56]*** CUTSNS_PIN = 1 [05:53:56]*** CUTSNS_PIN = 0 [05:53:57]*** Brake cut motor [05:53:57]Read from MH i2c: 01 [05:53:57]MH_I2C_Read... [05:53:57]*** Stop cut motor [05:53:57]*** Cut end [05:53:57]Read from MH i2c: 01 07 00 [05:53:57]MH_I2C_Read... [05:53:57]Read from MH i2c: 01 07 00 99 0D 00 00 00 00 00 FF 0F BB [05:53:57]process_action close_receipt done [05:53:57]requested_data is exist [05:53:57]produce_requested_data [05:53:57]requested_item fm.sn is exist - process it [05:53:57]wFMCommunicate request_size=4 [05:53:57]MH_SAM_APDU [05:53:57]CAPDU: 80 11 00 00 [05:53:57]Write to MH i2c: E2 08 00 9A 0D 80 11 00 00 00 00 00 00 21 [05:53:57]Write i2c OK [05:53:57]MH_I2C_Read... [05:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:53:57]Read from MH i2c: E2 [05:53:57]MH_I2C_Read... [05:53:57]Read from MH i2c: E2 17 00 [05:53:57]MH_I2C_Read... [05:53:57]Read from MH i2c: E2 17 00 9A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 69 [05:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [05:53:57]wFMCommunicate OK [05:53:57]requested_item fd.num is exist - process it [05:53:57]SAM_PROTO_GetFieldsCounters [05:53:57]wFMCommunicate request_size=4 [05:53:57]MH_SAM_APDU [05:53:57]CAPDU: 80 13 00 00 [05:53:57]Write to MH i2c: E2 08 00 9B 0D 80 13 00 00 00 00 00 00 24 [05:53:57]Write i2c OK [05:53:57]MH_I2C_Read... [05:53:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:53:57]Read from MH i2c: E2 [05:53:57]MH_I2C_Read... [05:53:57]Read from MH i2c: E2 62 00 [05:53:57]MH_I2C_Read... [05:53:57]Read from MH i2c: E2 62 00 9B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 49 09 00 00 0E 04 04 00 16 00 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 A8 [05:53:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 49 09 00 00 0E 04 04 00 16 00 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 [05:53:57]wFMCommunicate OK [05:53:57]SAM_PROTO_GetFieldsCounters done [05:53:57]requested_item shift.num is exist - process it [05:53:57]requested_item shift.opened is exist - process it [05:53:57]req_shift_opened [05:53:57]FM_GetShiftState [05:53:57]SAM_PROTO_GetShiftState [05:53:57]wFMCommunicate request_size=4 [05:53:57]MH_SAM_APDU [05:53:57]CAPDU: 80 13 01 00 [05:53:57]Write to MH i2c: E2 08 00 9C 0D 80 13 01 00 00 00 00 00 26 [05:53:57]Write i2c OK [05:53:57]MH_I2C_Read... [05:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:53:57]Read from MH i2c: E2 [05:53:57]MH_I2C_Read... [05:53:57]Read from MH i2c: E2 0E 00 [05:53:57]MH_I2C_Read... [05:53:57]Read from MH i2c: E2 0E 00 9C 0D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C4 [05:53:57]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [05:53:57]wFMCommunicate OK [05:53:57]SAM_PROTO_GetShiftState done [05:53:57]FM_GetShiftState done [05:53:57]req_shift_opened done [05:53:57]requested_item shift.open_date is exist - process it [05:53:57]req_shift_open_date [05:53:57]req_shift_open_date done [05:53:57]produce_requested_data done [05:53:57]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2377,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [05:53:57]process_action_free close_receipt [05:53:57]json_value_free [05:53:57]json_value_free done [05:53:57]process_json_proto returns [05:53:57]Send response to host [05:53:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2377,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [05:53:57]free response buf [05:53:57]execute_script done [05:53:57]execute_script returns [05:53:57]free content buf [05:53:57]Sock 9.Close socket [05:53:57]Sock 9.Thread stoped [05:54:01]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:11]OFD Sender: No OFD packet to send [05:56:16]OFD Sender: No OFD packet to send [05:56:21]OFD Sender: No OFD packet to send [05:56:26]OFD Sender: No OFD packet to send [05:56:31]OFD Sender: No OFD packet to send [05:56:36]OFD Sender: No OFD packet to send [05:56:41]OFD Sender: No OFD packet to send [05:56:46]OFD Sender: No OFD packet to send [05:56:51]OFD Sender: No OFD packet to send [05:56:56]OFD Sender: No OFD packet to send [05:57:01]OFD Sender: No OFD packet to send [05:57:06]OFD Sender: No OFD packet to send [05:57:11]OFD Sender: No OFD packet to send [05:57:16]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:06]OFD Sender: No OFD packet to send [06:01:11]OFD Sender: No OFD packet to send [06:01:16]OFD Sender: No OFD packet to send [06:01:21]OFD Sender: No OFD packet to send [06:01:26]OFD Sender: No OFD packet to send [06:01:31]OFD Sender: No OFD packet to send [06:01:36]OFD Sender: No OFD packet to send [06:01:41]OFD Sender: No OFD packet to send [06:01:46]OFD Sender: No OFD packet to send [06:01:51]OFD Sender: No OFD packet to send [06:01:56]OFD Sender: No OFD packet to send [06:02:01]OFD Sender: No OFD packet to send [06:02:06]OFD Sender: No OFD packet to send [06:02:11]OFD Sender: No OFD packet to send [06:02:16]OFD Sender: No OFD packet to send [06:02:21]OFD Sender: No OFD packet to send [06:02:26]OFD Sender: No OFD packet to send [06:02:31]OFD Sender: No OFD packet to send [06:02:36]OFD Sender: No OFD packet to send [06:02:41]OFD Sender: No OFD packet to send [06:02:46]OFD Sender: No OFD packet to send [06:02:51]OFD Sender: No OFD packet to send [06:02:56]OFD Sender: No OFD packet to send [06:03:01]OFD Sender: No OFD packet to send [06:03:06]OFD Sender: No OFD packet to send [06:03:11]OFD Sender: No OFD packet to send [06:03:16]OFD Sender: No OFD packet to send [06:03:21]OFD Sender: No OFD packet to send [06:03:26]OFD Sender: No OFD packet to send [06:03:31]OFD Sender: No OFD packet to send [06:03:36]OFD Sender: No OFD packet to send [06:03:41]OFD Sender: No OFD packet to send [06:03:46]OFD Sender: No OFD packet to send [06:03:51]OFD Sender: No OFD packet to send [06:03:56]OFD Sender: No OFD packet to send [06:04:01]OFD Sender: No OFD packet to send [06:04:06]OFD Sender: No OFD packet to send [06:04:11]OFD Sender: No OFD packet to send [06:04:16]OFD Sender: No OFD packet to send [06:04:21]OFD Sender: No OFD packet to send [06:04:26]OFD Sender: No OFD packet to send [06:04:31]OFD Sender: No OFD packet to send [06:04:36]OFD Sender: No OFD packet to send [06:04:41]OFD Sender: No OFD packet to send [06:04:46]OFD Sender: No OFD packet to send [06:04:51]OFD Sender: No OFD packet to send [06:04:56]OFD Sender: No OFD packet to send [06:05:01]OFD Sender: No OFD packet to send [06:05:06]OFD Sender: No OFD packet to send [06:05:11]OFD Sender: No OFD packet to send [06:05:16]OFD Sender: No OFD packet to send [06:05:21]OFD Sender: No OFD packet to send [06:05:26]OFD Sender: No OFD packet to send [06:05:31]OFD Sender: No OFD packet to send [06:05:36]OFD Sender: No OFD packet to send [06:05:41]OFD Sender: No OFD packet to send [06:05:46]OFD Sender: No OFD packet to send [06:05:51]OFD Sender: No OFD packet to send [06:05:56]OFD Sender: No OFD packet to send [06:06:01]OFD Sender: No OFD packet to send [06:06:06]OFD Sender: No OFD packet to send [06:06:11]OFD Sender: No OFD packet to send [06:06:16]OFD Sender: No OFD packet to send [06:06:21]OFD Sender: No OFD packet to send [06:06:26]OFD Sender: No OFD packet to send [06:06:31]OFD Sender: No OFD packet to send [06:06:36]OFD Sender: No OFD packet to send [06:06:41]OFD Sender: No OFD packet to send [06:06:46]OFD Sender: No OFD packet to send [06:06:51]OFD Sender: No OFD packet to send [06:06:56]OFD Sender: No OFD packet to send [10:58:12]ConnectInit Can't connect to host [10:58:14]OFD Sender: Processing packet 2378 [packets to send 24, broken 0] [10:58:14]ProducePacketName [10:58:14]name=ofd_packets/00002378 [10:58:14]OFD Sender: To server: ‡•öpG, [10:58:14]CommunicateWithHost lk.salyk.kg:30040 [10:58:14]ConnectInit lk.salyk.kg [10:58:17]Connected sock=7 [10:58:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 38 01 00 00 E2 39 30 01 87 56 5A 03 01 00 03 00 24 01 1E 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 00 00 00 F4 03 04 00 83 FB 11 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 4A 09 00 00 35 04 06 00 4B 00 7A 28 21 7D 95 FC 7A 26 CB 93 EB 27 [10:58:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B9 2D 47 00 39 4B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 4A 09 00 00 F4 03 04 00 AF EA 11 67 B6 04 01 00 00 06 30 21 EC B9 D6 E8 E3 [10:58:17]CommunicateWithHost err = 0 [10:58:17]CheckOFDResponse [10:58:17]1017 (14) - 77093643461234 [10:58:17]1041 (16) - 0000000002342820 [10:58:17]1040 (4) - 2378 [10:58:17]1012 (4) - 18.10.2024 04:57 [10:58:17]1206 (1) - 0 [10:58:17]OFD Sender: Remove packet 2378 [10:58:17]ProducePacketName [10:58:17]name=ofd_packets/00002378 [10:58:17]NVStorageDeleteData [10:58:18]OFD Sender: Processing packet 2379 [packets to send 23, broken 0] [10:58:18]ProducePacketName [10:58:18]name=ofd_packets/00002379 [10:58:18]OFD Sender: To server: ‡•öpG, [10:58:18]CommunicateWithHost lk.salyk.kg:30040 [10:58:18]ConnectInit lk.salyk.kg [10:58:18]Connected sock=7 [10:58:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 89 01 00 00 7F DC 81 01 BC B6 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 58 53 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 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 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 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 ED FC 11 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 4B 09 00 00 35 04 06 00 25 31 74 4A F1 2F F5 7E 30 B8 9E B5 67 42 [10:58:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 A3 07 47 00 8F 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 32 33 34 32 38 32 30 10 04 04 00 4B 09 00 00 F4 03 04 00 B0 EA 11 67 B6 04 01 00 00 7B 1F 61 17 9F 50 D5 93 [10:58:18]CommunicateWithHost err = 0 [10:58:18]CheckOFDResponse [10:58:18]1017 (14) - 77093643461234 [10:58:18]1041 (16) - 0000000002342820 [10:58:18]1040 (4) - 2379 [10:58:18]1012 (4) - 18.10.2024 04:57 [10:58:18]1206 (1) - 0 [10:58:18]OFD Sender: Remove packet 2379 [10:58:18]ProducePacketName [10:58:18]name=ofd_packets/00002379 [10:58:18]NVStorageDeleteData [10:58:19]OFD Sender: Processing packet 2380 [packets to send 22, broken 0] [10:58:19]ProducePacketName [10:58:19]name=ofd_packets/00002380 [10:58:19]OFD Sender: To server: ‡•öpG, [10:58:19]CommunicateWithHost lk.salyk.kg:30040 [10:58:19]ConnectInit lk.salyk.kg [10:58:19]Connected sock=7 [10:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 F1 3E 1D 01 66 EB 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 49 0F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 4C 09 00 00 35 04 06 00 F4 A7 61 B6 CD 06 A5 56 11 03 FF 2B 71 FF [10:58:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 06 DA 47 00 1C CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 4C 09 00 00 F4 03 04 00 B1 EA 11 67 B6 04 01 00 00 4F DB FE E6 54 FA B7 A0 [10:58:19]CommunicateWithHost err = 0 [10:58:19]CheckOFDResponse [10:58:19]1017 (14) - 77093643461234 [10:58:19]1041 (16) - 0000000002342820 [10:58:19]1040 (4) - 2380 [10:58:19]1012 (4) - 18.10.2024 04:57 [10:58:19]1206 (1) - 0 [10:58:19]OFD Sender: Remove packet 2380 [10:58:19]ProducePacketName [10:58:19]name=ofd_packets/00002380 [10:58:19]NVStorageDeleteData [10:58:19]OFD Sender: Processing packet 2381 [packets to send 21, broken 0] [10:58:19]ProducePacketName [10:58:19]name=ofd_packets/00002381 [10:58:19]OFD Sender: To server: ‡•öpG, [10:58:19]CommunicateWithHost lk.salyk.kg:30040 [10:58:19]ConnectInit lk.salyk.kg [10:58:19]Connected sock=7 [10:58:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3D 01 00 00 8C BC 35 01 E9 49 5A 03 01 00 03 00 29 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 34 36 30 32 36 30 36 30 31 35 30 37 33 06 04 37 00 D0 9C D0 B0 D1 80 D0 BC D0 B5 D0 BB D0 B0 D0 B4 20 D0 A7 D0 A7 20 D0 9A D0 B8 D1 81 D0 BB D1 8B D0 B5 20 D1 80 D0 BE D0 BB D0 BB D1 81 D1 8B 20 33 30 2A 37 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 3C 28 00 00 00 00 13 04 06 00 78 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8C 08 00 00 00 00 07 04 06 00 78 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 13 10 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 4D 09 00 00 35 04 06 00 38 BD 5F F2 F9 DD EA 8F 25 7D DC 22 71 31 [10:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 55 D5 47 00 97 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 32 33 34 32 38 32 30 10 04 04 00 4D 09 00 00 F4 03 04 00 B1 EA 11 67 B6 04 01 00 00 18 32 A3 D6 5C 2F 27 9A [10:58:20]CommunicateWithHost err = 0 [10:58:20]CheckOFDResponse [10:58:20]1017 (14) - 77093643461234 [10:58:20]1041 (16) - 0000000002342820 [10:58:20]1040 (4) - 2381 [10:58:20]1012 (4) - 18.10.2024 04:57 [10:58:20]1206 (1) - 0 [10:58:20]OFD Sender: Remove packet 2381 [10:58:20]ProducePacketName [10:58:20]name=ofd_packets/00002381 [10:58:20]NVStorageDeleteData [10:58:20]OFD Sender: Processing packet 2382 [packets to send 20, broken 0] [10:58:20]ProducePacketName [10:58:20]name=ofd_packets/00002382 [10:58:20]OFD Sender: To server: ‡•öpG, [10:58:20]CommunicateWithHost lk.salyk.kg:30040 [10:58:20]ConnectInit lk.salyk.kg [10:58:20]Connected sock=7 [10:58:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 FB 2E 20 01 98 C5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 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 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 07 00 00 00 F4 03 04 00 BD 19 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 4E 09 00 00 35 04 06 00 83 E5 BC E9 C1 AD 41 2A 31 65 28 4B 27 7F [10:58:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 EB 34 47 00 78 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 32 33 34 32 38 32 30 10 04 04 00 4E 09 00 00 F4 03 04 00 B2 EA 11 67 B6 04 01 00 00 B6 FD A6 43 56 03 E0 DC [10:58:20]CommunicateWithHost err = 0 [10:58:20]CheckOFDResponse [10:58:20]1017 (14) - 77093643461234 [10:58:20]1041 (16) - 0000000002342820 [10:58:20]1040 (4) - 2382 [10:58:20]1012 (4) - 18.10.2024 04:57 [10:58:20]1206 (1) - 0 [10:58:20]OFD Sender: Remove packet 2382 [10:58:20]ProducePacketName [10:58:20]name=ofd_packets/00002382 [10:58:20]NVStorageDeleteData [10:58:21]OFD Sender: Processing packet 2383 [packets to send 19, broken 0] [10:58:21]ProducePacketName [10:58:21]name=ofd_packets/00002383 [10:58:21]OFD Sender: To server: ‡•öpG, [10:58:21]CommunicateWithHost lk.salyk.kg:30040 [10:58:21]ConnectInit lk.salyk.kg [10:58:21]Connected sock=7 [10:58:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 74 D2 1D 01 D0 E1 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 B0 1A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 4F 09 00 00 35 04 06 00 78 97 83 4B 53 C9 0F B9 39 F9 8B 23 13 FD [10:58:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 1F F0 47 00 2D 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 32 33 34 32 38 32 30 10 04 04 00 4F 09 00 00 F4 03 04 00 B3 EA 11 67 B6 04 01 00 00 82 EA 71 3C BA EE 33 7D [10:58:21]CommunicateWithHost err = 0 [10:58:21]CheckOFDResponse [10:58:21]1017 (14) - 77093643461234 [10:58:21]1041 (16) - 0000000002342820 [10:58:21]1040 (4) - 2383 [10:58:21]1012 (4) - 18.10.2024 04:57 [10:58:21]1206 (1) - 0 [10:58:21]OFD Sender: Remove packet 2383 [10:58:21]ProducePacketName [10:58:21]name=ofd_packets/00002383 [10:58:21]NVStorageDeleteData [10:58:22]OFD Sender: Processing packet 2384 [packets to send 18, broken 0] [10:58:22]ProducePacketName [10:58:22]name=ofd_packets/00002384 [10:58:22]OFD Sender: To server: ‡•öpG, [10:58:22]CommunicateWithHost lk.salyk.kg:30040 [10:58:22]ConnectInit lk.salyk.kg [10:58:22]Connected sock=7 [10:58:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 E4 5D 26 01 31 7A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 D9 1A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 50 09 00 00 35 04 06 00 2C 49 5F 0E 65 B1 73 1C 8C 6A 61 B5 A2 3F [10:58:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 83 48 47 00 1F B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 50 09 00 00 F4 03 04 00 B4 EA 11 67 B6 04 01 00 00 65 F6 D1 BA FA 59 49 88 [10:58:22]CommunicateWithHost err = 0 [10:58:22]CheckOFDResponse [10:58:22]1017 (14) - 77093643461234 [10:58:22]1041 (16) - 0000000002342820 [10:58:22]1040 (4) - 2384 [10:58:22]1012 (4) - 18.10.2024 04:57 [10:58:22]1206 (1) - 0 [10:58:22]OFD Sender: Remove packet 2384 [10:58:22]ProducePacketName [10:58:22]name=ofd_packets/00002384 [10:58:22]NVStorageDeleteData [10:58:23]OFD Sender: Processing packet 2385 [packets to send 17, broken 0] [10:58:23]ProducePacketName [10:58:23]name=ofd_packets/00002385 [10:58:23]OFD Sender: To server: ‡•öpG, [10:58:23]CommunicateWithHost lk.salyk.kg:30040 [10:58:23]ConnectInit lk.salyk.kg [10:58:23]Connected sock=7 [10:58:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 CD EE 20 01 C4 69 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E2 1A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 51 09 00 00 35 04 06 00 6E 14 52 02 46 C5 E7 1A 22 8B 3E 3E ED C3 [10:58:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 03 F8 47 00 3C B4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 51 09 00 00 F4 03 04 00 B5 EA 11 67 B6 04 01 00 00 24 F8 11 DE E8 BF 55 51 [10:58:23]CommunicateWithHost err = 0 [10:58:23]CheckOFDResponse [10:58:23]1017 (14) - 77093643461234 [10:58:23]1041 (16) - 0000000002342820 [10:58:23]1040 (4) - 2385 [10:58:23]1012 (4) - 18.10.2024 04:57 [10:58:23]1206 (1) - 0 [10:58:23]OFD Sender: Remove packet 2385 [10:58:23]ProducePacketName [10:58:23]name=ofd_packets/00002385 [10:58:23]NVStorageDeleteData [10:58:23]OFD Sender: Processing packet 2386 [packets to send 16, broken 0] [10:58:23]ProducePacketName [10:58:23]name=ofd_packets/00002386 [10:58:23]OFD Sender: To server: ‡•öpG, [10:58:23]CommunicateWithHost lk.salyk.kg:30040 [10:58:23]ConnectInit lk.salyk.kg [10:58:24]Connected sock=7 [10:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 30 01 00 00 0F 6D 28 01 CD 59 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 E8 1A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 52 09 00 00 35 04 06 00 80 A5 B0 97 62 B1 36 D0 42 DC B2 61 7D 00 [10:58:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 39 10 47 00 17 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 32 33 34 32 38 32 30 10 04 04 00 52 09 00 00 F4 03 04 00 B5 EA 11 67 B6 04 01 00 00 B6 C3 64 5D A6 DC EF 71 [10:58:24]CommunicateWithHost err = 0 [10:58:24]CheckOFDResponse [10:58:24]1017 (14) - 77093643461234 [10:58:24]1041 (16) - 0000000002342820 [10:58:24]1040 (4) - 2386 [10:58:24]1012 (4) - 18.10.2024 04:57 [10:58:24]1206 (1) - 0 [10:58:24]OFD Sender: Remove packet 2386 [10:58:24]ProducePacketName [10:58:24]name=ofd_packets/00002386 [10:58:24]NVStorageDeleteData [10:58:24]OFD Sender: Processing packet 2387 [packets to send 15, broken 0] [10:58:24]ProducePacketName [10:58:24]name=ofd_packets/00002387 [10:58:24]OFD Sender: To server: ‡•öpG, [10:58:24]CommunicateWithHost lk.salyk.kg:30040 [10:58:24]ConnectInit lk.salyk.kg [10:58:24]Connected sock=7 [10:58:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 86 01 00 00 D7 7B 7E 01 0A 19 5A 03 01 00 03 00 72 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 08 00 34 36 31 34 31 35 33 38 06 04 1D 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 42 75 62 62 6C 65 6D 69 6E 74 20 31 33 2C 36 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 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 A3 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 80 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 00 00 00 F4 03 04 00 16 23 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 53 09 00 00 35 04 06 00 59 60 AD 1B 18 47 4D 67 69 E8 30 8F 5F 49 [10:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B7 3D 47 00 4B 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 32 33 34 32 38 32 30 10 04 04 00 53 09 00 00 F4 03 04 00 B6 EA 11 67 B6 04 01 00 00 69 4B F3 3A 21 92 4A 51 [10:58:25]CommunicateWithHost err = 0 [10:58:25]CheckOFDResponse [10:58:25]1017 (14) - 77093643461234 [10:58:25]1041 (16) - 0000000002342820 [10:58:25]1040 (4) - 2387 [10:58:25]1012 (4) - 18.10.2024 04:57 [10:58:25]1206 (1) - 0 [10:58:25]OFD Sender: Remove packet 2387 [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00002387 [10:58:25]NVStorageDeleteData [10:58:25]OFD Sender: Processing packet 2388 [packets to send 14, broken 0] [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00002388 [10:58:25]OFD Sender: To server: ‡•öpG, [10:58:25]CommunicateWithHost lk.salyk.kg:30040 [10:58:25]ConnectInit lk.salyk.kg [10:58:25]Connected sock=7 [10:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 A3 13 20 01 39 6C 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 0D 00 00 00 F4 03 04 00 51 23 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 54 09 00 00 35 04 06 00 7A CE EE 38 C4 EF 46 57 99 26 44 6F C6 FD [10:58:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 31 EB 47 00 10 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 32 33 34 32 38 32 30 10 04 04 00 54 09 00 00 F4 03 04 00 B7 EA 11 67 B6 04 01 00 00 9B F4 EF 6F B3 1E 72 8C [10:58:25]CommunicateWithHost err = 0 [10:58:25]CheckOFDResponse [10:58:25]1017 (14) - 77093643461234 [10:58:25]1041 (16) - 0000000002342820 [10:58:25]1040 (4) - 2388 [10:58:25]1012 (4) - 18.10.2024 04:57 [10:58:25]1206 (1) - 0 [10:58:25]OFD Sender: Remove packet 2388 [10:58:25]ProducePacketName [10:58:25]name=ofd_packets/00002388 [10:58:25]NVStorageDeleteData [10:58:26]OFD Sender: Processing packet 2389 [packets to send 13, broken 0] [10:58:26]ProducePacketName [10:58:26]name=ofd_packets/00002389 [10:58:26]OFD Sender: To server: ‡•öpG, [10:58:26]CommunicateWithHost lk.salyk.kg:30040 [10:58:26]ConnectInit lk.salyk.kg [10:58:26]Connected sock=7 [10:58:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 26 01 00 00 CD 3E 1E 01 1D 6B 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 C4 86 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 31 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 0E 00 00 00 00 07 04 06 00 C4 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 8C 23 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 55 09 00 00 35 04 06 00 A1 E4 71 67 7F 0A 47 14 55 C4 B9 62 94 2A [10:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 82 F4 47 00 4E 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 32 33 34 32 38 32 30 10 04 04 00 55 09 00 00 F4 03 04 00 B8 EA 11 67 B6 04 01 00 00 52 37 79 2E E5 09 84 72 [10:58:26]CommunicateWithHost err = 0 [10:58:26]CheckOFDResponse [10:58:26]1017 (14) - 77093643461234 [10:58:26]1041 (16) - 0000000002342820 [10:58:26]1040 (4) - 2389 [10:58:26]1012 (4) - 18.10.2024 04:57 [10:58:26]1206 (1) - 0 [10:58:26]OFD Sender: Remove packet 2389 [10:58:26]ProducePacketName [10:58:26]name=ofd_packets/00002389 [10:58:26]NVStorageDeleteData [10:58:27]OFD Sender: Processing packet 2390 [packets to send 12, broken 0] [10:58:27]ProducePacketName [10:58:27]name=ofd_packets/00002390 [10:58:27]OFD Sender: To server: ‡•öpG, [10:58:27]CommunicateWithHost lk.salyk.kg:30040 [10:58:27]ConnectInit lk.salyk.kg [10:58:27]Connected sock=7 [10:58:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 89 01 00 00 8F 46 81 01 E5 EC 5A 03 01 00 03 00 75 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 58 53 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 65 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B7 10 00 00 00 00 07 04 06 00 6C 9D 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 4F 25 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 56 09 00 00 35 04 06 00 84 E0 B7 A9 CC BD 38 70 3E 25 0C 97 16 66 [10:58:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 04 11 47 00 CB 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 56 09 00 00 F4 03 04 00 B9 EA 11 67 B6 04 01 00 00 A6 3E 21 37 F4 2E 04 87 [10:58:27]CommunicateWithHost err = 0 [10:58:27]CheckOFDResponse [10:58:27]1017 (14) - 77093643461234 [10:58:27]1041 (16) - 0000000002342820 [10:58:27]1040 (4) - 2390 [10:58:27]1012 (4) - 18.10.2024 04:57 [10:58:27]1206 (1) - 0 [10:58:27]OFD Sender: Remove packet 2390 [10:58:27]ProducePacketName [10:58:27]name=ofd_packets/00002390 [10:58:27]NVStorageDeleteData [10:58:28]OFD Sender: Processing packet 2391 [packets to send 11, broken 0] [10:58:28]ProducePacketName [10:58:28]name=ofd_packets/00002391 [10:58:28]OFD Sender: To server: ‡•öpG, [10:58:28]CommunicateWithHost lk.salyk.kg:30040 [10:58:28]ConnectInit lk.salyk.kg [10:58:28]Connected sock=7 [10:58:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 8C 01 00 00 A4 4A 84 01 27 5D 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 69 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 28 0B 00 00 00 00 07 04 06 00 14 69 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 C7 25 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 57 09 00 00 35 04 06 00 AE F0 D2 40 4D B3 9E 03 5D AB 93 FD 2C FB [10:58:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 C5 4F 47 00 9D 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 32 33 34 32 38 32 30 10 04 04 00 57 09 00 00 F4 03 04 00 BA EA 11 67 B6 04 01 00 00 27 26 C4 C4 A3 E4 3F 7A [10:58:28]CommunicateWithHost err = 0 [10:58:28]CheckOFDResponse [10:58:28]1017 (14) - 77093643461234 [10:58:28]1041 (16) - 0000000002342820 [10:58:28]1040 (4) - 2391 [10:58:28]1012 (4) - 18.10.2024 04:57 [10:58:28]1206 (1) - 0 [10:58:28]OFD Sender: Remove packet 2391 [10:58:28]ProducePacketName [10:58:28]name=ofd_packets/00002391 [10:58:28]NVStorageDeleteData [10:58:28]OFD Sender: Processing packet 2392 [packets to send 10, broken 0] [10:58:28]ProducePacketName [10:58:28]name=ofd_packets/00002392 [10:58:28]OFD Sender: To server: ‡•öpG, [10:58:28]CommunicateWithHost lk.salyk.kg:30040 [10:58:28]ConnectInit lk.salyk.kg [10:58:28]Connected sock=7 [10:58:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 60 6B 07 01 F7 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 A0 28 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 58 09 00 00 35 04 06 00 1D 9D D4 88 83 32 CB 84 B5 C3 54 55 32 F7 [10:58:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 F6 D3 47 00 1D 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 58 09 00 00 F4 03 04 00 BA EA 11 67 B6 04 01 00 00 C6 CC 66 C7 39 4B BC 94 [10:58:29]CommunicateWithHost err = 0 [10:58:29]CheckOFDResponse [10:58:29]1017 (14) - 77093643461234 [10:58:29]1041 (16) - 0000000002342820 [10:58:29]1040 (4) - 2392 [10:58:29]1012 (4) - 18.10.2024 04:57 [10:58:29]1206 (1) - 0 [10:58:29]OFD Sender: Remove packet 2392 [10:58:29]ProducePacketName [10:58:29]name=ofd_packets/00002392 [10:58:29]NVStorageDeleteData [10:58:29]OFD Sender: Processing packet 2393 [packets to send 9, broken 0] [10:58:29]ProducePacketName [10:58:29]name=ofd_packets/00002393 [10:58:29]OFD Sender: To server: ‡•öpG, [10:58:29]CommunicateWithHost lk.salyk.kg:30040 [10:58:29]ConnectInit lk.salyk.kg [10:58:29]Connected sock=7 [10:58:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 17 01 00 00 EA 87 0F 01 A6 40 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 AE 28 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 59 09 00 00 35 04 06 00 51 3F 76 1C 56 83 2E 1A CF 2C 7E 20 CC 33 [10:58:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 22 0B 47 00 DE 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 32 33 34 32 38 32 30 10 04 04 00 59 09 00 00 F4 03 04 00 BB EA 11 67 B6 04 01 00 00 04 8E 79 CD A1 C8 43 DD [10:58:29]CommunicateWithHost err = 0 [10:58:29]CheckOFDResponse [10:58:29]1017 (14) - 77093643461234 [10:58:29]1041 (16) - 0000000002342820 [10:58:29]1040 (4) - 2393 [10:58:29]1012 (4) - 18.10.2024 04:57 [10:58:29]1206 (1) - 0 [10:58:29]OFD Sender: Remove packet 2393 [10:58:29]ProducePacketName [10:58:29]name=ofd_packets/00002393 [10:58:29]NVStorageDeleteData [10:58:30]OFD Sender: Processing packet 2394 [packets to send 8, broken 0] [10:58:30]ProducePacketName [10:58:30]name=ofd_packets/00002394 [10:58:30]OFD Sender: To server: ‡•öpG, [10:58:30]CommunicateWithHost lk.salyk.kg:30040 [10:58:30]ConnectInit lk.salyk.kg [10:58:30]Connected sock=7 [10:58:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 14 02 00 00 1D 75 0C 02 EF 99 5A 03 01 00 03 00 00 02 1E 04 01 00 01 23 04 75 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 31 35 06 04 31 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 85 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2F 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3A 0E 00 00 00 00 07 04 06 00 FC 85 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 09 2B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 5A 09 00 00 35 04 06 00 57 5D 4B A4 BC 7F 71 6F 3C BE 87 83 31 29 [10:58:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 7C F5 47 00 6E 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 32 33 34 32 38 32 30 10 04 04 00 5A 09 00 00 F4 03 04 00 BC EA 11 67 B6 04 01 00 00 54 EB 8B E9 FF 9A DD 68 [10:58:30]CommunicateWithHost err = 0 [10:58:30]CheckOFDResponse [10:58:30]1017 (14) - 77093643461234 [10:58:30]1041 (16) - 0000000002342820 [10:58:30]1040 (4) - 2394 [10:58:30]1012 (4) - 18.10.2024 04:57 [10:58:30]1206 (1) - 0 [10:58:30]OFD Sender: Remove packet 2394 [10:58:30]ProducePacketName [10:58:30]name=ofd_packets/00002394 [10:58:30]NVStorageDeleteData [10:58:31]OFD Sender: Processing packet 2395 [packets to send 7, broken 0] [10:58:31]ProducePacketName [10:58:31]name=ofd_packets/00002395 [10:58:31]OFD Sender: To server: ‡•öpG, [10:58:31]CommunicateWithHost lk.salyk.kg:30040 [10:58:31]ConnectInit lk.salyk.kg [10:58:31]Connected sock=7 [10:58:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 30 01 00 00 F9 CB 28 01 25 92 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 1A 2B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 5B 09 00 00 35 04 06 00 C4 D7 A0 9B 30 DA 21 C9 3C 4A B4 9D 23 54 [10:58:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 22 73 47 00 55 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 32 33 34 32 38 32 30 10 04 04 00 5B 09 00 00 F4 03 04 00 BD EA 11 67 B6 04 01 00 00 B1 47 75 64 51 73 D3 DB [10:58:31]CommunicateWithHost err = 0 [10:58:31]CheckOFDResponse [10:58:31]1017 (14) - 77093643461234 [10:58:31]1041 (16) - 0000000002342820 [10:58:31]1040 (4) - 2395 [10:58:31]1012 (4) - 18.10.2024 04:57 [10:58:31]1206 (1) - 0 [10:58:31]OFD Sender: Remove packet 2395 [10:58:31]ProducePacketName [10:58:31]name=ofd_packets/00002395 [10:58:31]NVStorageDeleteData [10:58:31]OFD Sender: Processing packet 2396 [packets to send 6, broken 0] [10:58:31]ProducePacketName [10:58:31]name=ofd_packets/00002396 [10:58:31]OFD Sender: To server: ‡•öpG, [10:58:31]CommunicateWithHost lk.salyk.kg:30040 [10:58:31]ConnectInit lk.salyk.kg [10:58:32]Connected sock=7 [10:58:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 7C 03 20 01 C6 34 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 20 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 92 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 7C 2C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 5C 09 00 00 35 04 06 00 6E 14 52 AE DF 7E DC FA 42 11 A7 B9 DE FE [10:58:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 1C 65 47 00 F4 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 32 33 34 32 38 32 30 10 04 04 00 5C 09 00 00 F4 03 04 00 BD EA 11 67 B6 04 01 00 00 F6 64 3C 87 9E 4D 19 1A [10:58:32]CommunicateWithHost err = 0 [10:58:32]CheckOFDResponse [10:58:32]1017 (14) - 77093643461234 [10:58:32]1041 (16) - 0000000002342820 [10:58:32]1040 (4) - 2396 [10:58:32]1012 (4) - 18.10.2024 04:57 [10:58:32]1206 (1) - 0 [10:58:32]OFD Sender: Remove packet 2396 [10:58:32]ProducePacketName [10:58:32]name=ofd_packets/00002396 [10:58:32]NVStorageDeleteData [10:58:32]OFD Sender: Processing packet 2397 [packets to send 5, broken 0] [10:58:32]ProducePacketName [10:58:32]name=ofd_packets/00002397 [10:58:32]OFD Sender: To server: ‡•öpG, [10:58:32]CommunicateWithHost lk.salyk.kg:30040 [10:58:32]ConnectInit lk.salyk.kg [10:58:32]Connected sock=7 [10:58:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 23 01 00 00 8E 77 1B 01 46 48 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 30 34 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 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 AF 2C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 5D 09 00 00 35 04 06 00 BF 84 BC 3A 80 53 7E F4 F2 4C D3 D5 2E D0 [10:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 45 69 47 00 37 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 5D 09 00 00 F4 03 04 00 BE EA 11 67 B6 04 01 00 00 89 91 6F 15 47 03 5C AD [10:58:33]CommunicateWithHost err = 0 [10:58:33]CheckOFDResponse [10:58:33]1017 (14) - 77093643461234 [10:58:33]1041 (16) - 0000000002342820 [10:58:33]1040 (4) - 2397 [10:58:33]1012 (4) - 18.10.2024 04:57 [10:58:33]1206 (1) - 0 [10:58:33]OFD Sender: Remove packet 2397 [10:58:33]ProducePacketName [10:58:33]name=ofd_packets/00002397 [10:58:33]NVStorageDeleteData [10:58:33]OFD Sender: Processing packet 2398 [packets to send 4, broken 0] [10:58:33]ProducePacketName [10:58:33]name=ofd_packets/00002398 [10:58:33]OFD Sender: To server: ‡•öpG, [10:58:33]CommunicateWithHost lk.salyk.kg:30040 [10:58:33]ConnectInit lk.salyk.kg [10:58:33]Connected sock=10 [10:58:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 35 01 00 00 23 FC 2D 01 5E 11 5A 03 01 00 03 00 21 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 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 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 D9 2D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 5E 09 00 00 35 04 06 00 17 10 AC 87 3D 70 3C FF FC B4 15 C0 13 5F [10:58:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 13 BD 47 00 47 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 5E 09 00 00 F4 03 04 00 BF EA 11 67 B6 04 01 00 00 F6 9C BA D6 BF FE 3B 64 [10:58:33]CommunicateWithHost err = 0 [10:58:33]CheckOFDResponse [10:58:33]1017 (14) - 77093643461234 [10:58:33]1041 (16) - 0000000002342820 [10:58:33]1040 (4) - 2398 [10:58:33]1012 (4) - 18.10.2024 04:57 [10:58:33]1206 (1) - 0 [10:58:33]OFD Sender: Remove packet 2398 [10:58:33]ProducePacketName [10:58:33]name=ofd_packets/00002398 [10:58:33]NVStorageDeleteData [10:58:34]OFD Sender: Processing packet 2399 [packets to send 3, broken 0] [10:58:34]ProducePacketName [10:58:34]name=ofd_packets/00002399 [10:58:34]OFD Sender: To server: ‡•öpG, [10:58:34]CommunicateWithHost lk.salyk.kg:30040 [10:58:34]ConnectInit lk.salyk.kg [10:58:34]Connected sock=7 [10:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 42 01 00 00 17 E5 3A 01 0C 5B 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 37 33 06 04 3C 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 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 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 D1 31 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 5F 09 00 00 35 04 06 00 A5 53 07 00 0D F7 FD 75 88 12 38 D3 FB E9 [10:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 E1 FE 47 00 C1 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 32 33 34 32 38 32 30 10 04 04 00 5F 09 00 00 F4 03 04 00 C0 EA 11 67 B6 04 01 00 00 03 F1 E8 CC 9F D9 CB 12 [10:58:34]CommunicateWithHost err = 0 [10:58:34]CheckOFDResponse [10:58:34]1017 (14) - 77093643461234 [10:58:34]1041 (16) - 0000000002342820 [10:58:34]1040 (4) - 2399 [10:58:34]1012 (4) - 18.10.2024 04:57 [10:58:34]1206 (1) - 0 [10:58:34]OFD Sender: Remove packet 2399 [10:58:34]ProducePacketName [10:58:34]name=ofd_packets/00002399 [10:58:34]NVStorageDeleteData [10:58:35]OFD Sender: Processing packet 2400 [packets to send 2, broken 0] [10:58:35]ProducePacketName [10:58:35]name=ofd_packets/00002400 [10:58:35]OFD Sender: To server: ‡•öpG, [10:58:35]CommunicateWithHost lk.salyk.kg:30040 [10:58:35]ConnectInit lk.salyk.kg [10:58:35]Connected sock=7 [10:58:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 12 02 00 00 97 6C 0A 02 C1 71 5A 03 01 00 03 00 FE 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 24 90 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 90 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 26 33 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 60 09 00 00 35 04 06 00 57 C9 15 9F F2 56 71 BB 9D 4D 2E 79 06 6F [10:58:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 3D 53 47 00 BA 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 32 33 34 32 38 32 30 10 04 04 00 60 09 00 00 F4 03 04 00 C1 EA 11 67 B6 04 01 00 00 F1 50 64 A6 30 8C 83 97 [10:58:35]CommunicateWithHost err = 0 [10:58:35]CheckOFDResponse [10:58:35]1017 (14) - 77093643461234 [10:58:35]1041 (16) - 0000000002342820 [10:58:35]1040 (4) - 2400 [10:58:35]1012 (4) - 18.10.2024 04:57 [10:58:35]1206 (1) - 0 [10:58:35]OFD Sender: Remove packet 2400 [10:58:35]ProducePacketName [10:58:35]name=ofd_packets/00002400 [10:58:35]NVStorageDeleteData [10:58:36]OFD Sender: Processing packet 2401 [packets to send 1, broken 0] [10:58:36]ProducePacketName [10:58:36]name=ofd_packets/00002401 [10:58:36]OFD Sender: To server: ‡•öpG, [10:58:36]CommunicateWithHost lk.salyk.kg:30040 [10:58:36]ConnectInit lk.salyk.kg [10:58:36]Connected sock=7 [10:58:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 8D 50 1D 01 08 DF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 36 31 31 36 34 38 32 06 04 24 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D1 8F D0 B3 D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D0 BC D0 B8 D0 BA D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 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 A1 3A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 61 09 00 00 35 04 06 00 B7 4C 6E 6D F5 6D CC CF 07 4B A7 11 08 9F [10:58:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 22 DA 47 00 19 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 32 33 34 32 38 32 30 10 04 04 00 61 09 00 00 F4 03 04 00 C2 EA 11 67 B6 04 01 00 00 82 8C 9E 40 46 94 4F 56 [10:58:36]CommunicateWithHost err = 0 [10:58:36]CheckOFDResponse [10:58:36]1017 (14) - 77093643461234 [10:58:36]1041 (16) - 0000000002342820 [10:58:36]1040 (4) - 2401 [10:58:36]1012 (4) - 18.10.2024 04:57 [10:58:36]1206 (1) - 0 [10:58:36]OFD Sender: Remove packet 2401 [10:58:36]ProducePacketName [10:58:36]name=ofd_packets/00002401 [10:58:36]NVStorageDeleteData [10:58:36]OFD Sender: No OFD packet to send [10:58:41]OFD Sender: No OFD packet to send [10:58:46]OFD Sender: No OFD packet to send [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:06]OFD Sender: No OFD packet to send [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:26]OFD Sender: No OFD packet to send [10:59:31]OFD Sender: No OFD packet to send [10:59:36]OFD Sender: No OFD packet to send [10:59:41]OFD Sender: No OFD packet to send [10:59:46]OFD Sender: No OFD packet to send [10:59:51]OFD Sender: No OFD packet to send [10:59:56]OFD Sender: No OFD packet to send [11:00:01]OFD Sender: No OFD packet to send [11:00:06]OFD Sender: No OFD packet to send [11:00:11]OFD Sender: No OFD packet to send [11:00:15]accept exits with 9 [11:00:15]New connection [11:00:15]New thread 3066850660 created [11:00:15]Thread 3066707300 joined [11:00:15]Waiting for new connection... [11:00:15] Sock 9.Parse request [11:00:15]Sock 9.Check first char [11:00:15]Sock 9.First char is OK [11:00:15]request: POST /json_proto HTTP/1.0 [11:00:15]Method: POST [11:00:15]URL: /json_proto [11:00:15]Method is POST - this is cgi request [11:00:15]url: /json_proto [11:00:15]query_string will be loaded in cgi processing [11:00:15]execute_cgi json_proto POST (null) [11:00:15]execute_cgi path=json_proto method=POST [11:00:15]POST find Content-Length [11:00:15]Host: 172.17.52.132:8080 [11:00:15]Content-Length: 752 [11:00:15]Content-Type: application/json [11:00:15] [11:00:15]POST finish read [11:00:15]Found Content-Length = 752 [11:00:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99832", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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: Mbank", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:15]execute_script... [11: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 : (3)99832", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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: Mbank", "payments": [ { "type": 1, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:00:15]POST & json_proto [11:00:15]process_json_proto [11:00:15]json parsed OK: [11:00:15]protocol is kg_v1.0 [11:00:15]action value=close_receipt [11:00:15]process_action close_receipt [11:00:15]cmd_close_receipt [11:00:15]MH_GetDate [11:00:15]Write to MH i2c: F0 00 00 27 15 2B [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: F0 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: F0 09 00 [11:00:15]MH_I2C_Read... [11:00:15]Read from MH i2c: F0 09 00 27 15 00 C3 3F 12 67 5A BE F6 66 23 [11:00:15]GetLastDocTimeStamp 1729247905 [11:00:15]current date 1729249219 [11:00:15]FM_GetShiftState [11:00:15]SAM_PROTO_GetShiftState [11:00:15]wFMCommunicate request_size=4 [11:00:15]MH_SAM_APDU [11:00:15]CAPDU: 80 13 01 00 [11:00:15]Write to MH i2c: E2 08 00 28 15 80 13 01 00 00 00 00 00 BA [11:00:15]Write i2c OK [11:00:15]MH_I2C_Read... [11:00:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:16]Read from MH i2c: E2 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 0E 00 [11:00:16]MH_I2C_Read... [11:00:16]Read from MH i2c: E2 0E 00 28 15 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 58 [11:00:16]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:00:16]wFMCommunicate OK [11:00:16]SAM_PROTO_GetShiftState done [11:00:16]FM_GetShiftState done [11:00:16]opened in 1729209717 [11:00:16]opened+sec_in_day 1729296117 [11:00:16]quantity*price = 11500 [11:00:16]sum+1 = 11501 [11:00:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 ÐСП 1% : 1.02 ÐДС 12% : 12.21 Ðаличными: 0.00 Безнал.: 115.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 27 18.10.2024 11:00 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2402 ФПД: 262469503074061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T110019&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2402&fm=262469503074061&tin=02508201610067®Number=0000000000207295&sum=11500 0 [11:00:17]StoreToDocumentArchive [11:00:17]shift 22 fd 2402 [11:00:17]save to /storage/0022/doc_00002402 [11:00:17]save last doc name /storage/0022/doc_00002402 to /storage/kkm_last_doc_name [11:00:17]save OK [11:00:17]Clear old archive folders... [11:00:17]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:00:17]tlvbuf is B6EA8370 [11:00:17]SAM_PROTO_ClearQueue [11:00:17]wFMCommunicate request_size=4 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 09 00 00 [11:00:17]Write to MH i2c: E2 08 00 35 15 80 09 00 00 00 00 00 00 BC [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 03 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 03 00 35 15 00 90 00 BE [11:00:17]RAPDU: 90 00 [11:00:17]wFMCommunicate OK [11:00:17]SAM_PROTO_ClearQueue done [11:00:17]KKMCreateOFDPacket [11:00:17]OFDProtocolAddRootSTLVToBuf [11:00:17]FM_MakeSignedData [11:00:17]FM_MakeSignedData [11:00:17]SAM_PROTO_SignData [11:00:17]wFMCommunicate request_size=4 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 0D 01 02 [11:00:17]Write to MH i2c: E2 08 00 36 15 80 0D 01 02 00 00 00 00 C4 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 03 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 03 00 36 15 00 90 00 BF [11:00:17]RAPDU: 90 00 [11:00:17]wFMCommunicate OK [11:00:17]wFMCommunicate request_size=255 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C3 3F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 [11:00:17]Write to MH i2c: E2 02 01 37 15 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C3 3F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 00 00 0C [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 03 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 03 00 37 15 00 90 00 C0 [11:00:17]RAPDU: 90 00 [11:00:17]wFMCommunicate OK [11:00:17]wFMCommunicate request_size=33 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 0D 02 02 1C 30 30 30 32 33 34 32 38 32 30 10 04 04 00 62 09 00 00 35 04 06 00 EE B6 F1 7E BF 0D [11:00:17]Write to MH i2c: E2 24 00 38 15 80 0D 02 02 1C 00 30 30 30 32 33 34 32 38 32 30 10 04 04 00 62 09 00 00 35 04 06 00 EE B6 F1 7E BF 0D 00 00 95 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 03 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 03 00 38 15 00 90 00 C1 [11:00:17]RAPDU: 90 00 [11:00:17]wFMCommunicate OK [11:00:17]wFMCommunicate request_size=4 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 0D 03 02 [11:00:17]Write to MH i2c: E2 08 00 39 15 80 0D 03 02 00 00 00 00 C9 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 0B 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 0B 00 39 15 00 8F CF C4 4D 66 D0 3A A9 90 00 52 [11:00:17]RAPDU: 8F CF C4 4D 66 D0 3A A9 90 00 [11:00:17]wFMCommunicate OK [11:00:17]SAM_PROTO_SignData done [11:00:17]FM_MakeSignedData done [11:00:17]CreateOFDProtocolMessage [11:00:17]wFMCommunicate request_size=4 [11:00:17]MH_SAM_APDU [11:00:17]CAPDU: 80 11 00 00 [11:00:17]Write to MH i2c: E2 08 00 3A 15 80 11 00 00 00 00 00 00 C9 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:17]Read from MH i2c: E2 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 17 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: E2 17 00 3A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 11 [11:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:00:17]wFMCommunicate OK [11:00:17]CreateOFDProtocolMessage done [11:00:17]OFDSenderStorePacket 2402 [11:00:17]StoreOFDPacket docnum=2402 [11:00:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 26 01 00 00 B0 A4 1E 01 D3 18 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C3 3F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 62 09 00 00 35 04 06 00 EE B6 F1 7E BF 0D 8F CF C4 4D 66 D0 3A A9 [11:00:17]CheckFolder [11:00:17]dirname=/storage/ofd_packets [11:00:17]CheckFolder done [11:00:17]ProducePacketName [11:00:17]name=ofd_packets/00002402 [11:00:17]NVStorageSaveData ofd_packets/00002402 [11:00:17]File name is /storage/ofd_packets/00002402 [11:00:17]Write 324 bytes [11:00:17]NVStorageSaveData done [11:00:17]OFDSenderStorePacket done [11:00:17]KKMCreateOFDPacket done [11:00:17]NVStorageSaveData kkm_last_timestamp [11:00:17]File name is /storage/kkm_last_timestamp [11:00:17]Write 4 bytes [11:00:17]NVStorageSaveData done [11:00:17]ExternCall_PrintAddStr [11:00:17]wPrintStart [11:00:17]Write to MH i2c: 01 00 00 3B 15 50 [11:00:17]Write i2c OK [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: 01 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: 01 07 00 [11:00:17]MH_I2C_Read... [11:00:17]Read from MH i2c: 01 07 00 3B 15 00 00 00 00 00 FF 0F 65 [11:00:17]RasterBufferAndPrint [11:00:17]line Счет N : (3)99832 [11:00:17]line ИÐÐ: 02508201610067 [11:00:17]line Контрольно-КаÑÑовый Чек [11:00:17]line ПРОДÐЖР[11:00:17]line Товар: 2000036240010 [11:00:17]line Кофе Латте (GABB TRADE) [11:00:17]line 1.000 * 115.00 [11:00:17]line = 115.00 [11:00:17]line ÐДС 12% ÐСП 1% [11:00:17]line > о реализуемом товаре [11:00:17]line ИТОГО: 115.00 [11:00:17]line ÐСП 1% : 1.02 [11:00:17]line ÐДС 12% : 12.21 [11:00:17]line Ðаличными: 0.00 [11:00:17]line Безнал.: 115.00 [11:00:17]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:00:17]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:00:17]line СÐО: Общий режим [11:00:17]line Чек 27 18.10.2024 11:00 [11:00:17]line Смена: 22 ФФД: 1.0 [11:00:17]line ЗÐМ: 0300000191 [11:00:17]line РÐМ: 0000000000207295 [11:00:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:00:17]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [11:00:17]line ФМ: 0000000002342820 [11:00:17]line ФД: 2402 [11:00:17]line ФПД: 262469503074061 [11:00:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T110019&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2402&fm=262469503074061&tin=02508201610067®Number=0000000000207295&sum=11500 [11:00:18]line 0 [11:00:18]OFD Sender: Processing packet 2402 [packets to send 1, broken 0] [11:00:18]ProducePacketName [11:00:18]name=ofd_packets/00002402 [11:00:18]OFD Sender: To server: ‡•öpG, [11:00:18]CommunicateWithHost lk.salyk.kg:30040 [11:00:18]ConnectInit lk.salyk.kg [11:00:18]written 0, free lines is 4095 [11:00:18]Connected sock=10 [11:00:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 26 01 00 00 B0 A4 1E 01 D3 18 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 C3 3F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 62 09 00 00 35 04 06 00 EE B6 F1 7E BF 0D 8F CF C4 4D 66 D0 3A A9 [11:00:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 73 4E 47 00 D2 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 32 33 34 32 38 32 30 10 04 04 00 62 09 00 00 F4 03 04 00 28 EB 11 67 B6 04 01 00 00 CB 34 4A 21 34 A6 53 04 [11:00:18]CommunicateWithHost err = 0 [11:00:18]CheckOFDResponse [11:00:18]1017 (14) - 77093643461234 [11:00:18]1041 (16) - 0000000002342820 [11:00:18]1040 (4) - 2402 [11:00:18]1012 (4) - 18.10.2024 04:59 [11:00:18]1206 (1) - 0 [11:00:18]OFD Sender: Remove packet 2402 [11:00:18]ProducePacketName [11:00:18]name=ofd_packets/00002402 [11:00:18]NVStorageDeleteData [11:00:18]Write to MH i2c: 01 00 00 64 15 79 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: 01 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: 01 07 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: 01 07 00 64 15 00 00 00 00 00 A9 0C 35 [11:00:18]RasterBufferAndPrint [11:00:18]line [11:00:18]line [11:00:18]line [11:00:18]line [11:00:18]line [11:00:18]written 0, free lines is 3245 [11:00:18]MH_Cut [11:00:18]Write to MH i2c: D1 01 00 6B 15 01 52 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: D1 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: D1 01 00 [11:00:18]MH_I2C_Read... [11:00:18]Read from MH i2c: D1 01 00 6B 15 00 51 [11:00:18]Write to MH i2c: 01 00 00 6C 15 81 [11:00:18]Write i2c OK [11:00:18]MH_I2C_Read... [11:00:18]OFD Sender: No OFD packet to send [11:00:19]*** Cut start [11:00:19]*** Partial cut [11:00:19]*** CUTSNS_PIN = 1 [11:00:19]*** CUTSNS_PIN = 0 [11:00:19]*** Brake cut motor [11:00:20]Read from MH i2c: 01 [11:00:20]MH_I2C_Read... [11:00:20]*** Stop cut motor [11:00:20]*** Cut end [11:00:20]Read from MH i2c: 01 07 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: 01 07 00 6C 15 00 00 00 00 00 FF 0F 96 [11:00:20]process_action close_receipt done [11:00:20]requested_data is exist [11:00:20]produce_requested_data [11:00:20]requested_item fm.sn is exist - process it [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 11 00 00 [11:00:20]Write to MH i2c: E2 08 00 6D 15 80 11 00 00 00 00 00 00 FC [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 17 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 17 00 6D 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 44 [11:00:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:00:20]wFMCommunicate OK [11:00:20]requested_item fd.num is exist - process it [11:00:20]SAM_PROTO_GetFieldsCounters [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 13 00 00 [11:00:20]Write to MH i2c: E2 08 00 6E 15 80 13 00 00 00 00 00 00 FF [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 62 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 62 00 6E 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 62 09 00 00 0E 04 04 00 16 00 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 E7 [11:00:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 62 09 00 00 0E 04 04 00 16 00 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 [11:00:20]wFMCommunicate OK [11:00:20]SAM_PROTO_GetFieldsCounters done [11:00:20]requested_item shift.num is exist - process it [11:00:20]requested_item shift.opened is exist - process it [11:00:20]req_shift_opened [11:00:20]FM_GetShiftState [11:00:20]SAM_PROTO_GetShiftState [11:00:20]wFMCommunicate request_size=4 [11:00:20]MH_SAM_APDU [11:00:20]CAPDU: 80 13 01 00 [11:00:20]Write to MH i2c: E2 08 00 6F 15 80 13 01 00 00 00 00 00 01 [11:00:20]Write i2c OK [11:00:20]MH_I2C_Read... [11:00:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:00:20]Read from MH i2c: E2 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 0E 00 [11:00:20]MH_I2C_Read... [11:00:20]Read from MH i2c: E2 0E 00 6F 15 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 9F [11:00:20]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:00:20]wFMCommunicate OK [11:00:20]SAM_PROTO_GetShiftState done [11:00:20]FM_GetShiftState done [11:00:20]req_shift_opened done [11:00:20]requested_item shift.open_date is exist - process it [11:00:20]req_shift_open_date [11:00:20]req_shift_open_date done [11:00:20]produce_requested_data done [11:00:20]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2402,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:00:20]process_action_free close_receipt [11:00:20]json_value_free [11:00:20]json_value_free done [11:00:20]process_json_proto returns [11:00:20]Send response to host [11:00:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2402,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:00:20]free response buf [11:00:20]execute_script done [11:00:20]execute_script returns [11:00:20]free content buf [11:00:20]Sock 9.Close socket [11:00:20]Sock 9.Thread stoped [11:00:23]OFD Sender: No OFD packet to send [11:00:28]OFD Sender: No OFD packet to send [11:00:33]OFD Sender: No OFD packet to send [11:00:38]OFD Sender: No OFD packet to send [11:00:43]OFD Sender: No OFD packet to send [11:00:48]OFD Sender: No OFD packet to send [11:00:53]OFD Sender: No OFD packet to send [11:00:58]OFD Sender: No OFD packet to send [11:01:03]OFD Sender: No OFD packet to send [11:01:08]OFD Sender: No OFD packet to send [11:01:13]OFD Sender: No OFD packet to send [11:01:18]OFD Sender: No OFD packet to send [11:01:23]OFD Sender: No OFD packet to send [11:01:28]OFD Sender: No OFD packet to send [11:01:33]OFD Sender: No OFD packet to send [11:01:38]OFD Sender: No OFD packet to send [11:01:43]OFD Sender: No OFD packet to send [11:01:48]OFD Sender: No OFD packet to send [11:01:53]OFD Sender: No OFD packet to send [11:01:58]OFD Sender: No OFD packet to send [11:02:03]OFD Sender: No OFD packet to send [11:02:08]OFD Sender: No OFD packet to send [11:02:13]OFD Sender: No OFD packet to send [11:02:18]OFD Sender: No OFD packet to send [11:02:23]OFD Sender: No OFD packet to send [11:02:25]accept exits with 7 [11:02:25]New connection [11:02:25]New thread 3066707300 created [11:02:25]Thread 3066850660 joined [11:02:25]Waiting for new connection... [11:02:25] Sock 7.Parse request [11:02:25]Sock 7.Check first char [11:02:25]Sock 7.First char is OK [11:02:25]request: POST /json_proto HTTP/1.0 [11:02:25]Method: POST [11:02:25]URL: /json_proto [11:02:25]Method is POST - this is cgi request [11:02:25]url: /json_proto [11:02:25]query_string will be loaded in cgi processing [11:02:25]execute_cgi json_proto POST (null) [11:02:25]execute_cgi path=json_proto method=POST [11:02:25]POST find Content-Length [11:02:25]Host: 172.17.52.132:8080 [11:02:25]Content-Length: 782 [11:02:25]Content-Type: application/json [11:02:25] [11:02:25]POST finish read [11:02:25]Found Content-Length = 782 [11:02:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99833", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.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: Mbank", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:25]execute_script... [11:02:25]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99833", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 2.000, "sum" : 190.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: Mbank", "payments": [ { "type": 1, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:25]POST & json_proto [11:02:25]process_json_proto [11:02:25]json parsed OK: [11:02:25]protocol is kg_v1.0 [11:02:25]action value=close_receipt [11:02:25]process_action close_receipt [11:02:25]cmd_close_receipt [11:02:25]MH_GetDate [11:02:25]Write to MH i2c: F0 00 00 70 15 74 [11:02:25]Write i2c OK [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: F0 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: F0 09 00 [11:02:25]MH_I2C_Read... [11:02:25]Read from MH i2c: F0 09 00 70 15 00 45 40 12 67 5A BE F6 66 EF [11:02:25]GetLastDocTimeStamp 1729249219 [11:02:25]current date 1729249349 [11:02:25]FM_GetShiftState [11:02:25]SAM_PROTO_GetShiftState [11:02:25]wFMCommunicate request_size=4 [11:02:25]MH_SAM_APDU [11:02:25]CAPDU: 80 13 01 00 [11:02:25]Write to MH i2c: E2 08 00 71 15 80 13 01 00 00 00 00 00 03 [11:02:25]Write i2c OK [11:02:25]MH_I2C_Read... [11:02:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:26]Read from MH i2c: E2 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 0E 00 [11:02:26]MH_I2C_Read... [11:02:26]Read from MH i2c: E2 0E 00 71 15 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A1 [11:02:26]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:02:26]wFMCommunicate OK [11:02:26]SAM_PROTO_GetShiftState done [11:02:26]FM_GetShiftState done [11:02:26]opened in 1729209717 [11:02:26]opened+sec_in_day 1729296117 [11:02:26]quantity*price = 19000 [11:02:26]sum+1 = 19001 [11:02:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 ÐСП 1% : 1.68 ÐДС 12% : 20.18 Ðаличными: 0.00 Безнал.: 190.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 28 18.10.2024 11:02 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2403 ФПД: 123352356240281 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T110229&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2403&fm=123352356240281&tin=02508201610067®Number=0000000000207295&sum=19000 0 [11:02:27]StoreToDocumentArchive [11:02:27]shift 22 fd 2403 [11:02:27]save to /storage/0022/doc_00002403 [11:02:27]save last doc name /storage/0022/doc_00002403 to /storage/kkm_last_doc_name [11:02:27]save OK [11:02:27]Clear old archive folders... [11:02:27]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:02:27]tlvbuf is B6E8F140 [11:02:27]SAM_PROTO_ClearQueue [11:02:27]wFMCommunicate request_size=4 [11:02:27]MH_SAM_APDU [11:02:27]CAPDU: 80 09 00 00 [11:02:27]Write to MH i2c: E2 08 00 7E 15 80 09 00 00 00 00 00 00 05 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 7E 15 00 90 00 07 [11:02:27]RAPDU: 90 00 [11:02:27]wFMCommunicate OK [11:02:27]SAM_PROTO_ClearQueue done [11:02:27]KKMCreateOFDPacket [11:02:27]OFDProtocolAddRootSTLVToBuf [11:02:27]FM_MakeSignedData [11:02:27]FM_MakeSignedData [11:02:27]SAM_PROTO_SignData [11:02:27]wFMCommunicate request_size=4 [11:02:27]MH_SAM_APDU [11:02:27]CAPDU: 80 0D 01 02 [11:02:27]Write to MH i2c: E2 08 00 7F 15 80 0D 01 02 00 00 00 00 0D [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 7F 15 00 90 00 08 [11:02:27]RAPDU: 90 00 [11:02:27]wFMCommunicate OK [11:02:27]wFMCommunicate request_size=255 [11:02:27]MH_SAM_APDU [11:02:27]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 40 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:02:27]Write to MH i2c: E2 02 01 80 15 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 40 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 D5 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 80 15 00 90 00 09 [11:02:27]RAPDU: 90 00 [11:02:27]wFMCommunicate OK [11:02:27]wFMCommunicate request_size=52 [11:02:27]MH_SAM_APDU [11:02:27]CAPDU: 80 0D 02 02 2F 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 63 09 00 00 35 04 06 00 70 30 35 60 3B 99 [11:02:27]Write to MH i2c: E2 37 00 81 15 80 0D 02 02 2F 00 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 63 09 00 00 35 04 06 00 70 30 35 60 3B 99 00 00 3D [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 03 00 81 15 00 90 00 0A [11:02:27]RAPDU: 90 00 [11:02:27]wFMCommunicate OK [11:02:27]wFMCommunicate request_size=4 [11:02:27]MH_SAM_APDU [11:02:27]CAPDU: 80 0D 03 02 [11:02:27]Write to MH i2c: E2 08 00 82 15 80 0D 03 02 00 00 00 00 12 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 0B 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 0B 00 82 15 00 BF B4 FC F3 9B 48 07 74 90 00 D3 [11:02:27]RAPDU: BF B4 FC F3 9B 48 07 74 90 00 [11:02:27]wFMCommunicate OK [11:02:27]SAM_PROTO_SignData done [11:02:27]FM_MakeSignedData done [11:02:27]CreateOFDProtocolMessage [11:02:27]wFMCommunicate request_size=4 [11:02:27]MH_SAM_APDU [11:02:27]CAPDU: 80 11 00 00 [11:02:27]Write to MH i2c: E2 08 00 83 15 80 11 00 00 00 00 00 00 12 [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:27]Read from MH i2c: E2 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 17 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: E2 17 00 83 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 5A [11:02:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:02:27]wFMCommunicate OK [11:02:27]CreateOFDProtocolMessage done [11:02:27]OFDSenderStorePacket 2403 [11:02:27]StoreOFDPacket docnum=2403 [11:02:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 39 01 00 00 C7 50 31 01 F3 4A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 40 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 63 09 00 00 35 04 06 00 70 30 35 60 3B 99 BF B4 FC F3 9B 48 07 74 [11:02:27]CheckFolder [11:02:27]dirname=/storage/ofd_packets [11:02:27]CheckFolder done [11:02:27]ProducePacketName [11:02:27]name=ofd_packets/00002403 [11:02:27]NVStorageSaveData ofd_packets/00002403 [11:02:27]File name is /storage/ofd_packets/00002403 [11:02:27]Write 343 bytes [11:02:27]NVStorageSaveData done [11:02:27]OFDSenderStorePacket done [11:02:27]KKMCreateOFDPacket done [11:02:27]NVStorageSaveData kkm_last_timestamp [11:02:27]File name is /storage/kkm_last_timestamp [11:02:27]Write 4 bytes [11:02:27]NVStorageSaveData done [11:02:27]ExternCall_PrintAddStr [11:02:27]wPrintStart [11:02:27]Write to MH i2c: 01 00 00 84 15 99 [11:02:27]OFD Sender: Processing packet 2403 [packets to send 1, broken 0] [11:02:27]ProducePacketName [11:02:27]name=ofd_packets/00002403 [11:02:27]OFD Sender: To server: ‡•öpG, [11:02:27]CommunicateWithHost lk.salyk.kg:30040 [11:02:27]ConnectInit lk.salyk.kg [11:02:27]Write i2c OK [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 07 00 [11:02:27]MH_I2C_Read... [11:02:27]Read from MH i2c: 01 07 00 84 15 00 00 00 00 00 FF 0F AE [11:02:27]RasterBufferAndPrint [11:02:27]line Счет N : (3)99833 [11:02:27]line ИÐÐ: 02508201610067 [11:02:27]line Контрольно-КаÑÑовый Чек [11:02:27]line ПРОДÐЖР[11:02:27]line Товар: 4700000480050 [11:02:27]line Ðапиток Nitro Energy Ñн green ж/б 0,45л [11:02:27]line 2.000 * 95.00 [11:02:27]line = 190.00 [11:02:27]line ÐДС 12% ÐСП 1% [11:02:27]line > о реализуемом товаре [11:02:27]line ИТОГО: 190.00 [11:02:27]line ÐСП 1% : 1.68 [11:02:27]line ÐДС 12% : 20.18 [11:02:27]line Ðаличными: 0.00 [11:02:27]line Безнал.: 190.00 [11:02:27]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:02:27]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:02:27]line СÐО: Общий режим [11:02:27]line Чек 28 18.10.2024 11:02 [11:02:27]line Смена: 22 ФФД: 1.0 [11:02:27]line ЗÐМ: 0300000191 [11:02:27]line РÐМ: 0000000000207295 [11:02:27]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:02:27]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [11:02:28]line ФМ: 0000000002342820 [11:02:28]line ФД: 2403 [11:02:28]line ФПД: 123352356240281 [11:02:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T110229&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2403&fm=123352356240281&tin=02508201610067®Number=0000000000207295&sum=19000 [11:02:28]line 0 [11:02:28]Connected sock=10 [11:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 39 01 00 00 C7 50 31 01 F3 4A 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 4A 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 45 40 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 63 09 00 00 35 04 06 00 70 30 35 60 3B 99 BF B4 FC F3 9B 48 07 74 [11:02:28]written 0, free lines is 4095 [11:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 27 4A 47 00 F1 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 32 33 34 32 38 32 30 10 04 04 00 63 09 00 00 F4 03 04 00 A9 EB 11 67 B6 04 01 00 00 48 7F 18 17 42 2A 56 30 [11:02:28]CommunicateWithHost err = 0 [11:02:28]CheckOFDResponse [11:02:28]1017 (14) - 77093643461234 [11:02:28]1041 (16) - 0000000002342820 [11:02:28]1040 (4) - 2403 [11:02:28]1012 (4) - 18.10.2024 05:01 [11:02:28]1206 (1) - 0 [11:02:28]OFD Sender: Remove packet 2403 [11:02:28]ProducePacketName [11:02:28]name=ofd_packets/00002403 [11:02:28]NVStorageDeleteData [11:02:28]Write to MH i2c: 01 00 00 AE 15 C3 [11:02:28]Write i2c OK [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: 01 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: 01 07 00 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: 01 07 00 AE 15 00 00 00 00 00 94 0C 6A [11:02:28]RasterBufferAndPrint [11:02:28]line [11:02:28]line [11:02:28]line [11:02:28]line [11:02:28]line [11:02:28]written 0, free lines is 3224 [11:02:28]MH_Cut [11:02:28]Write to MH i2c: D1 01 00 B5 15 01 9C [11:02:28]Write i2c OK [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: D1 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: D1 01 00 [11:02:28]MH_I2C_Read... [11:02:28]Read from MH i2c: D1 01 00 B5 15 00 9B [11:02:28]Write to MH i2c: 01 00 00 B6 15 CB [11:02:28]Write i2c OK [11:02:28]MH_I2C_Read... [11:02:28]OFD Sender: No OFD packet to send [11:02:29]*** Cut start [11:02:29]*** Partial cut [11:02:29]*** CUTSNS_PIN = 1 [11:02:29]*** CUTSNS_PIN = 0 [11:02:29]*** Brake cut motor [11:02:30]Read from MH i2c: 01 [11:02:30]MH_I2C_Read... [11:02:30]*** Stop cut motor [11:02:30]*** Cut end [11:02:30]Read from MH i2c: 01 07 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: 01 07 00 B6 15 00 00 00 00 00 FF 0F E0 [11:02:30]process_action close_receipt done [11:02:30]requested_data is exist [11:02:30]produce_requested_data [11:02:30]requested_item fm.sn is exist - process it [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 11 00 00 [11:02:30]Write to MH i2c: E2 08 00 B7 15 80 11 00 00 00 00 00 00 46 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 17 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 17 00 B7 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 8E [11:02:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:02:30]wFMCommunicate OK [11:02:30]requested_item fd.num is exist - process it [11:02:30]SAM_PROTO_GetFieldsCounters [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 13 00 00 [11:02:30]Write to MH i2c: E2 08 00 B8 15 80 13 00 00 00 00 00 00 49 [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 62 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 62 00 B8 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 63 09 00 00 0E 04 04 00 16 00 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 35 [11:02:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 63 09 00 00 0E 04 04 00 16 00 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 [11:02:30]wFMCommunicate OK [11:02:30]SAM_PROTO_GetFieldsCounters done [11:02:30]requested_item shift.num is exist - process it [11:02:30]requested_item shift.opened is exist - process it [11:02:30]req_shift_opened [11:02:30]FM_GetShiftState [11:02:30]SAM_PROTO_GetShiftState [11:02:30]wFMCommunicate request_size=4 [11:02:30]MH_SAM_APDU [11:02:30]CAPDU: 80 13 01 00 [11:02:30]Write to MH i2c: E2 08 00 B9 15 80 13 01 00 00 00 00 00 4B [11:02:30]Write i2c OK [11:02:30]MH_I2C_Read... [11:02:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:30]Read from MH i2c: E2 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 0E 00 [11:02:30]MH_I2C_Read... [11:02:30]Read from MH i2c: E2 0E 00 B9 15 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E9 [11:02:30]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:02:30]wFMCommunicate OK [11:02:30]SAM_PROTO_GetShiftState done [11:02:30]FM_GetShiftState done [11:02:30]req_shift_opened done [11:02:30]requested_item shift.open_date is exist - process it [11:02:30]req_shift_open_date [11:02:30]req_shift_open_date done [11:02:30]produce_requested_data done [11:02:30]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2403,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:02:30]process_action_free close_receipt [11:02:30]json_value_free [11:02:30]json_value_free done [11:02:30]process_json_proto returns [11:02:30]Send response to host [11:02:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2403,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:02:30]free response buf [11:02:30]execute_script done [11:02:30]execute_script returns [11:02:30]free content buf [11:02:30]Sock 7.Close socket [11:02:30]Sock 7.Thread stoped [11:02:33]OFD Sender: No OFD packet to send [11:02:38]OFD Sender: No OFD packet to send [11:02:43]OFD Sender: No OFD packet to send [11:02:48]OFD Sender: No OFD packet to send [11:02:53]OFD Sender: No OFD packet to send [11:02:58]OFD Sender: No OFD packet to send [11:03:03]OFD Sender: No OFD packet to send [11:03:08]OFD Sender: No OFD packet to send [11:03:13]OFD Sender: No OFD packet to send [11:03:18]OFD Sender: No OFD packet to send [11:03:23]OFD Sender: No OFD packet to send [11:03:28]OFD Sender: No OFD packet to send [11:03:33]OFD Sender: No OFD packet to send [11:03:38]OFD Sender: No OFD packet to send [11:03:43]OFD Sender: No OFD packet to send [11:03:48]OFD Sender: No OFD packet to send [11:03:53]OFD Sender: No OFD packet to send [11:03:58]OFD Sender: No OFD packet to send [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:16]accept exits with 9 [11:05:16]New connection [11:05:16]New thread 3066850660 created [11:05:16]Thread 3066707300 joined [11:05:16]Waiting for new connection... [11:05:16] Sock 9.Parse request [11:05:16]Sock 9.Check first char [11:05:16]Sock 9.First char is OK [11:05:16]request: POST /json_proto HTTP/1.0 [11:05:16]Method: POST [11:05:16]URL: /json_proto [11:05:16]Method is POST - this is cgi request [11:05:16]url: /json_proto [11:05:16]query_string will be loaded in cgi processing [11:05:16]execute_cgi json_proto POST (null) [11:05:16]execute_cgi path=json_proto method=POST [11:05:16]POST find Content-Length [11:05:16]Host: 172.17.52.132:8080 [11:05:16]Content-Length: 804 [11:05:16]Content-Type: application/json [11:05:16] [11:05:16]POST finish read [11:05:16]Found Content-Length = 804 [11:05:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99834", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:16]execute_script... [11:05:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99834", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:16]POST & json_proto [11:05:16]process_json_proto [11:05:16]json parsed OK: [11:05:16]protocol is kg_v1.0 [11:05:16]action value=close_receipt [11:05:16]process_action close_receipt [11:05:16]cmd_close_receipt [11:05:16]MH_GetDate [11:05:16]Write to MH i2c: F0 00 00 BA 15 BE [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 09 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: F0 09 00 BA 15 00 F0 40 12 67 5A BE F6 66 E4 [11:05:16]GetLastDocTimeStamp 1729249349 [11:05:16]current date 1729249520 [11:05:16]FM_GetShiftState [11:05:16]SAM_PROTO_GetShiftState [11:05:16]wFMCommunicate request_size=4 [11:05:16]MH_SAM_APDU [11:05:16]CAPDU: 80 13 01 00 [11:05:16]Write to MH i2c: E2 08 00 BB 15 80 13 01 00 00 00 00 00 4D [11:05:16]Write i2c OK [11:05:16]MH_I2C_Read... [11:05:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:16]Read from MH i2c: E2 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: E2 0E 00 [11:05:16]MH_I2C_Read... [11:05:16]Read from MH i2c: E2 0E 00 BB 15 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 EB [11:05:16]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:05:16]wFMCommunicate OK [11:05:16]SAM_PROTO_GetShiftState done [11:05:16]FM_GetShiftState done [11:05:16]opened in 1729209717 [11:05:16]opened+sec_in_day 1729296117 [11:05:16]quantity*price = 13000 [11:05:16]sum+1 = 13001 [11:05:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 ÐСП 1% : 1.15 ÐДС 12% : 13.80 Ðаличными: 0.00 Безнал.: 130.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 29 18.10.2024 11:05 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000002342820 ФД: 2404 ФПД: 155021045686936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T110520&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2404&fm=155021045686936&tin=02508201610067®Number=0000000000207295&sum=13000 0 [11:05:18]StoreToDocumentArchive [11:05:18]shift 22 fd 2404 [11:05:18]save to /storage/0022/doc_00002404 [11:05:18]save last doc name /storage/0022/doc_00002404 to /storage/kkm_last_doc_name [11:05:18]save OK [11:05:18]Clear old archive folders... [11:05:18]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:05:18]tlvbuf is B6EA8950 [11:05:18]SAM_PROTO_ClearQueue [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 09 00 00 [11:05:18]Write to MH i2c: E2 08 00 C8 15 80 09 00 00 00 00 00 00 4F [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 C8 15 00 90 00 51 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_ClearQueue done [11:05:18]KKMCreateOFDPacket [11:05:18]OFDProtocolAddRootSTLVToBuf [11:05:18]FM_MakeSignedData [11:05:18]FM_MakeSignedData [11:05:18]SAM_PROTO_SignData [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 01 02 [11:05:18]Write to MH i2c: E2 08 00 C9 15 80 0D 01 02 00 00 00 00 57 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 C9 15 00 90 00 52 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=255 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F0 40 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 [11:05:18]Write to MH i2c: E2 02 01 CA 15 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F0 40 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 00 00 4E [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 CA 15 00 90 00 53 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=35 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 64 09 00 00 35 04 06 00 8C FD A6 5C 62 98 [11:05:18]Write to MH i2c: E2 26 00 CB 15 80 0D 02 02 1E 00 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 64 09 00 00 35 04 06 00 8C FD A6 5C 62 98 00 00 34 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 03 00 CB 15 00 90 00 54 [11:05:18]RAPDU: 90 00 [11:05:18]wFMCommunicate OK [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 0D 03 02 [11:05:18]Write to MH i2c: E2 08 00 CC 15 80 0D 03 02 00 00 00 00 5C [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0B 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 0B 00 CC 15 00 19 71 13 FB 74 77 8A 69 90 00 D3 [11:05:18]RAPDU: 19 71 13 FB 74 77 8A 69 90 00 [11:05:18]wFMCommunicate OK [11:05:18]SAM_PROTO_SignData done [11:05:18]FM_MakeSignedData done [11:05:18]CreateOFDProtocolMessage [11:05:18]wFMCommunicate request_size=4 [11:05:18]MH_SAM_APDU [11:05:18]CAPDU: 80 11 00 00 [11:05:18]Write to MH i2c: E2 08 00 CD 15 80 11 00 00 00 00 00 00 5C [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:18]Read from MH i2c: E2 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 17 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: E2 17 00 CD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 A4 [11:05:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:05:18]wFMCommunicate OK [11:05:18]CreateOFDProtocolMessage done [11:05:18]OFDSenderStorePacket 2404 [11:05:18]StoreOFDPacket docnum=2404 [11:05:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 60 CD 20 01 43 9F 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F0 40 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 64 09 00 00 35 04 06 00 8C FD A6 5C 62 98 19 71 13 FB 74 77 8A 69 [11:05:18]CheckFolder [11:05:18]dirname=/storage/ofd_packets [11:05:18]CheckFolder done [11:05:18]ProducePacketName [11:05:18]name=ofd_packets/00002404 [11:05:18]NVStorageSaveData ofd_packets/00002404 [11:05:18]File name is /storage/ofd_packets/00002404 [11:05:18]Write 326 bytes [11:05:18]NVStorageSaveData done [11:05:18]OFDSenderStorePacket done [11:05:18]KKMCreateOFDPacket done [11:05:18]NVStorageSaveData kkm_last_timestamp [11:05:18]File name is /storage/kkm_last_timestamp [11:05:18]Write 4 bytes [11:05:18]NVStorageSaveData done [11:05:18]ExternCall_PrintAddStr [11:05:18]wPrintStart [11:05:18]Write to MH i2c: 01 00 00 CE 15 E3 [11:05:18]Write i2c OK [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 [11:05:18]MH_I2C_Read... [11:05:18]Read from MH i2c: 01 07 00 CE 15 00 00 00 00 00 FF 0F F8 [11:05:18]RasterBufferAndPrint [11:05:18]line Счет N : (3)99834 [11:05:18]line ИÐÐ: 02508201610067 [11:05:18]line Контрольно-КаÑÑовый Чек [11:05:18]line ПРОДÐЖР[11:05:18]line Товар: 2000036230011 [11:05:18]line Кофе Латте XL(GABB TRADE) [11:05:18]line 1.000 * 130.00 [11:05:18]line = 130.00 [11:05:18]line ÐДС 12% ÐСП 1% [11:05:18]line > о реализуемом товаре [11:05:18]line ИТОГО: 130.00 [11:05:18]line ÐСП 1% : 1.15 [11:05:18]line ÐДС 12% : 13.80 [11:05:18]line Ðаличными: 0.00 [11:05:18]line Безнал.: 130.00 [11:05:18]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:05:18]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:05:18]line СÐО: Общий режим [11:05:18]line Чек 29 18.10.2024 11:05 [11:05:18]line Смена: 22 ФФД: 1.0 [11:05:18]line ЗÐМ: 0300000191 [11:05:18]line РÐМ: 0000000000207295 [11:05:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:05:18]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [11:05:18]line ФМ: 0000000002342820 [11:05:18]line ФД: 2404 [11:05:18]line ФПД: 155021045686936 [11:05:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T110520&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2404&fm=155021045686936&tin=02508201610067®Number=0000000000207295&sum=13000 [11:05:18]line 0 [11:05:18]OFD Sender: Processing packet 2404 [packets to send 1, broken 0] [11:05:18]ProducePacketName [11:05:18]name=ofd_packets/00002404 [11:05:18]OFD Sender: To server: ‡•öpG, [11:05:18]CommunicateWithHost lk.salyk.kg:30040 [11:05:18]ConnectInit lk.salyk.kg [11:05:18]written 0, free lines is 4095 [11:05:19]Connected sock=10 [11:05:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 60 CD 20 01 43 9F 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C8 32 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 F0 40 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 64 09 00 00 35 04 06 00 8C FD A6 5C 62 98 19 71 13 FB 74 77 8A 69 [11:05:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 82 16 47 00 11 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 32 33 34 32 38 32 30 10 04 04 00 64 09 00 00 F4 03 04 00 54 EC 11 67 B6 04 01 00 00 E3 0B F9 1B 7E E5 52 1E [11:05:19]CommunicateWithHost err = 0 [11:05:19]CheckOFDResponse [11:05:19]1017 (14) - 77093643461234 [11:05:19]1041 (16) - 0000000002342820 [11:05:19]1040 (4) - 2404 [11:05:19]1012 (4) - 18.10.2024 05:04 [11:05:19]1206 (1) - 0 [11:05:19]OFD Sender: Remove packet 2404 [11:05:19]ProducePacketName [11:05:19]name=ofd_packets/00002404 [11:05:19]NVStorageDeleteData [11:05:19]Write to MH i2c: 01 00 00 F8 15 0D [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: 01 07 00 F8 15 00 00 00 00 00 9C 0C BC [11:05:19]RasterBufferAndPrint [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]line [11:05:19]written 0, free lines is 3233 [11:05:19]MH_Cut [11:05:19]Write to MH i2c: D1 01 00 FF 15 01 E6 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 [11:05:19]MH_I2C_Read... [11:05:19]Read from MH i2c: D1 01 00 FF 15 00 E5 [11:05:19]Write to MH i2c: 01 00 00 00 16 16 [11:05:19]Write i2c OK [11:05:19]MH_I2C_Read... [11:05:19]OFD Sender: No OFD packet to send [11:05:20]*** Cut start [11:05:20]*** Partial cut [11:05:20]*** CUTSNS_PIN = 1 [11:05:20]*** CUTSNS_PIN = 0 [11:05:20]*** Brake cut motor [11:05:20]Read from MH i2c: 01 [11:05:20]MH_I2C_Read... [11:05:20]*** Stop cut motor [11:05:20]*** Cut end [11:05:20]Read from MH i2c: 01 07 00 [11:05:20]MH_I2C_Read... [11:05:20]Read from MH i2c: 01 07 00 00 16 00 00 00 00 00 FF 0F 2B [11:05:21]process_action close_receipt done [11:05:21]requested_data is exist [11:05:21]produce_requested_data [11:05:21]requested_item fm.sn is exist - process it [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 11 00 00 [11:05:21]Write to MH i2c: E2 08 00 01 16 80 11 00 00 00 00 00 00 91 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 17 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 17 00 01 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D9 [11:05:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:05:21]wFMCommunicate OK [11:05:21]requested_item fd.num is exist - process it [11:05:21]SAM_PROTO_GetFieldsCounters [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 00 00 [11:05:21]Write to MH i2c: E2 08 00 02 16 80 13 00 00 00 00 00 00 94 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 62 00 02 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 64 09 00 00 0E 04 04 00 16 00 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 84 [11:05:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 64 09 00 00 0E 04 04 00 16 00 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 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetFieldsCounters done [11:05:21]requested_item shift.num is exist - process it [11:05:21]requested_item shift.opened is exist - process it [11:05:21]req_shift_opened [11:05:21]FM_GetShiftState [11:05:21]SAM_PROTO_GetShiftState [11:05:21]wFMCommunicate request_size=4 [11:05:21]MH_SAM_APDU [11:05:21]CAPDU: 80 13 01 00 [11:05:21]Write to MH i2c: E2 08 00 03 16 80 13 01 00 00 00 00 00 96 [11:05:21]Write i2c OK [11:05:21]MH_I2C_Read... [11:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:21]Read from MH i2c: E2 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 [11:05:21]MH_I2C_Read... [11:05:21]Read from MH i2c: E2 0E 00 03 16 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 34 [11:05:21]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:05:21]wFMCommunicate OK [11:05:21]SAM_PROTO_GetShiftState done [11:05:21]FM_GetShiftState done [11:05:21]req_shift_opened done [11:05:21]requested_item shift.open_date is exist - process it [11:05:21]req_shift_open_date [11:05:21]req_shift_open_date done [11:05:21]produce_requested_data done [11:05:21]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2404,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:05:21]process_action_free close_receipt [11:05:21]json_value_free [11:05:21]json_value_free done [11:05:21]process_json_proto returns [11:05:21]Send response to host [11:05:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2404,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:05:21]free response buf [11:05:21]execute_script done [11:05:21]execute_script returns [11:05:21]free content buf [11:05:21]Sock 9.Close socket [11:05:21]Sock 9.Thread stoped [11:05:24]OFD Sender: No OFD packet to send [11:05:29]OFD Sender: No OFD packet to send [11:05:34]OFD Sender: No OFD packet to send [11:05:39]OFD Sender: No OFD packet to send [11:05:44]OFD Sender: No OFD packet to send [11:05:49]OFD Sender: No OFD packet to send [11:05:54]OFD Sender: No OFD packet to send [11:05:59]OFD Sender: No OFD packet to send [11:06:04]OFD Sender: No OFD packet to send [11:06:09]OFD Sender: No OFD packet to send [11:06:14]OFD Sender: No OFD packet to send [11:06:19]OFD Sender: No OFD packet to send [11:06:24]OFD Sender: No OFD packet to send [11:06:29]OFD Sender: No OFD packet to send [11:06:34]OFD Sender: No OFD packet to send [11:06:39]OFD Sender: No OFD packet to send [11:06:44]OFD Sender: No OFD packet to send [11:06:49]OFD Sender: No OFD packet to send [11:06:54]OFD Sender: No OFD packet to send [11:06:59]OFD Sender: No OFD packet to send [11:07:04]OFD Sender: No OFD packet to send [11:07:09]OFD Sender: No OFD packet to send [11:07:14]OFD Sender: No OFD packet to send [11:07:19]OFD Sender: No OFD packet to send [11:07:24]OFD Sender: No OFD packet to send [11:07:29]OFD Sender: No OFD packet to send [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:08:59]OFD Sender: No OFD packet to send [11:09:04]OFD Sender: No OFD packet to send [11:09:09]OFD Sender: No OFD packet to send [11:09:14]OFD Sender: No OFD packet to send [11:09:19]OFD Sender: No OFD packet to send [11:09:24]OFD Sender: No OFD packet to send [11:09:29]OFD Sender: No OFD packet to send [11:09:34]OFD Sender: No OFD packet to send [11:09:39]OFD Sender: No OFD packet to send [11:09:44]OFD Sender: No OFD packet to send [11:09:49]OFD Sender: No OFD packet to send [11:09:54]OFD Sender: No OFD packet to send [11:09:59]OFD Sender: No OFD packet to send [11:10:04]OFD Sender: No OFD packet to send [11:10:09]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:35]OFD Sender: No OFD packet to send [11:10:40]OFD Sender: No OFD packet to send [11:10:45]OFD Sender: No OFD packet to send [11:10:50]OFD Sender: No OFD packet to send [11:10:55]OFD Sender: No OFD packet to send [11:11:00]OFD Sender: No OFD packet to send [11:11:05]OFD Sender: No OFD packet to send [11:11:09]accept exits with 7 [11:11:09]New connection [11:11:09]New thread 3066707300 created [11:11:09]Thread 3066850660 joined [11:11:09]Waiting for new connection... [11:11:09] Sock 7.Parse request [11:11:09]Sock 7.Check first char [11:11:09]Sock 7.First char is OK [11:11:09]request: POST /json_proto HTTP/1.0 [11:11:09]Method: POST [11:11:09]URL: /json_proto [11:11:09]Method is POST - this is cgi request [11:11:09]url: /json_proto [11:11:09]query_string will be loaded in cgi processing [11:11:09]execute_cgi json_proto POST (null) [11:11:09]execute_cgi path=json_proto method=POST [11:11:09]POST find Content-Length [11:11:09]Host: 172.17.52.132:8080 [11:11:09]Content-Length: 670 [11:11:09]Content-Type: application/json [11:11:09] [11:11:09]POST finish read [11:11:09]Found Content-Length = 670 [11:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475323", "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" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [11:11:09]execute_script... [11:11: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)475323", "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" : 68.40, "quantity" : 5.850, "sum" : 400.14, "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" ] } } [11:11:09]POST & json_proto [11:11:09]process_json_proto [11:11:09]json parsed OK: [11:11:09]protocol is kg_v1.0 [11:11:09]action value=close_receipt [11:11:09]process_action close_receipt [11:11:09]cmd_close_receipt [11:11:09]MH_GetDate [11:11:09]Write to MH i2c: F0 00 00 04 16 09 [11:11:09]Write i2c OK [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: F0 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: F0 09 00 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: F0 09 00 04 16 00 51 42 12 67 5A BE F6 66 92 [11:11:09]GetLastDocTimeStamp 1729249520 [11:11:09]current date 1729249873 [11:11:09]FM_GetShiftState [11:11:09]SAM_PROTO_GetShiftState [11:11:09]wFMCommunicate request_size=4 [11:11:09]MH_SAM_APDU [11:11:09]CAPDU: 80 13 01 00 [11:11:09]Write to MH i2c: E2 08 00 05 16 80 13 01 00 00 00 00 00 98 [11:11:09]Write i2c OK [11:11:09]MH_I2C_Read... [11:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:09]Read from MH i2c: E2 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: E2 0E 00 [11:11:09]MH_I2C_Read... [11:11:09]Read from MH i2c: E2 0E 00 05 16 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 36 [11:11:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:11:09]wFMCommunicate OK [11:11:09]SAM_PROTO_GetShiftState done [11:11:09]FM_GetShiftState done [11:11:09]opened in 1729209717 [11:11:09]opened+sec_in_day 1729296117 [11:11:09]quantity*price = 40014 [11:11:09]sum+1 = 40015 [11:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.14 ИТОГО: 400.00 ВнеÑено: 400.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.54 ÐДС 12% : 42.49 Ðаличными: 400.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 30 18.10.2024 11:11 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2405 ФПД: 277258456419752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111113&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2405&fm=277258456419752&tin=02508201610067®Number=0000000000207295&sum=40000 [11:11:10]StoreToDocumentArchive [11:11:10]shift 22 fd 2405 [11:11:10]save to /storage/0022/doc_00002405 [11:11:10]save last doc name /storage/0022/doc_00002405 to /storage/kkm_last_doc_name [11:11:10]save OK [11:11:10]Clear old archive folders... [11:11:10]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:11:10]tlvbuf is 01408500 [11:11:10]SAM_PROTO_ClearQueue [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 09 00 00 [11:11:10]Write to MH i2c: E2 08 00 12 16 80 09 00 00 00 00 00 00 9A [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 12 16 00 90 00 9C [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]SAM_PROTO_ClearQueue done [11:11:10]KKMCreateOFDPacket [11:11:10]OFDProtocolAddRootSTLVToBuf [11:11:10]FM_MakeSignedData [11:11:10]FM_MakeSignedData [11:11:10]SAM_PROTO_SignData [11:11:10]wFMCommunicate request_size=4 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 0D 01 02 [11:11:10]Write to MH i2c: E2 08 00 13 16 80 0D 01 02 00 00 00 00 A2 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:11:10]Read from MH i2c: E2 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 [11:11:10]MH_I2C_Read... [11:11:10]Read from MH i2c: E2 03 00 13 16 00 90 00 9D [11:11:10]RAPDU: 90 00 [11:11:10]wFMCommunicate OK [11:11:10]wFMCommunicate request_size=255 [11:11:10]MH_SAM_APDU [11:11:10]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 51 42 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 65 09 00 00 35 04 06 00 [11:11:10]Write to MH i2c: E2 02 01 14 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 51 42 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 65 09 00 00 35 04 06 00 00 00 69 [11:11:10]Write i2c OK [11:11:10]MH_I2C_Read... [11:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:11]Read from MH i2c: E2 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 03 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 03 00 14 16 00 90 00 9E [11:11:11]RAPDU: 90 00 [11:11:11]wFMCommunicate OK [11:11:11]wFMCommunicate request_size=11 [11:11:11]MH_SAM_APDU [11:11:11]CAPDU: 80 0D 02 02 06 FC 2A 43 CE 4D A8 [11:11:11]Write to MH i2c: E2 0E 00 15 16 80 0D 02 02 06 00 FC 2A 43 CE 4D A8 00 00 DD [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:11:11]Read from MH i2c: E2 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 03 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 03 00 15 16 00 90 00 9F [11:11:11]RAPDU: 90 00 [11:11:11]wFMCommunicate OK [11:11:11]wFMCommunicate request_size=4 [11:11:11]MH_SAM_APDU [11:11:11]CAPDU: 80 0D 03 02 [11:11:11]Write to MH i2c: E2 08 00 16 16 80 0D 03 02 00 00 00 00 A7 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:11:11]Read from MH i2c: E2 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 0B 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 0B 00 16 16 00 8D EF 26 40 6C 4C B0 7C 90 00 6E [11:11:11]RAPDU: 8D EF 26 40 6C 4C B0 7C 90 00 [11:11:11]wFMCommunicate OK [11:11:11]SAM_PROTO_SignData done [11:11:11]FM_MakeSignedData done [11:11:11]CreateOFDProtocolMessage [11:11:11]wFMCommunicate request_size=4 [11:11:11]MH_SAM_APDU [11:11:11]CAPDU: 80 11 00 00 [11:11:11]Write to MH i2c: E2 08 00 17 16 80 11 00 00 00 00 00 00 A7 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:11]Read from MH i2c: E2 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 17 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: E2 17 00 17 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EF [11:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:11:11]wFMCommunicate OK [11:11:11]CreateOFDProtocolMessage done [11:11:11]OFDSenderStorePacket 2405 [11:11:11]StoreOFDPacket docnum=2405 [11:11:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 21 A6 08 01 11 A8 5A 03 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 51 42 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 65 09 00 00 35 04 06 00 FC 2A 43 CE 4D A8 8D EF 26 40 6C 4C B0 7C [11:11:11]CheckFolder [11:11:11]dirname=/storage/ofd_packets [11:11:11]CheckFolder done [11:11:11]ProducePacketName [11:11:11]name=ofd_packets/00002405 [11:11:11]NVStorageSaveData ofd_packets/00002405 [11:11:11]File name is /storage/ofd_packets/00002405 [11:11:11]Write 302 bytes [11:11:11]NVStorageSaveData done [11:11:11]OFDSenderStorePacket done [11:11:11]KKMCreateOFDPacket done [11:11:11]NVStorageSaveData kkm_last_timestamp [11:11:11]File name is /storage/kkm_last_timestamp [11:11:11]Write 4 bytes [11:11:11]NVStorageSaveData done [11:11:11]ExternCall_PrintAddStr [11:11:11]wPrintStart [11:11:11]Write to MH i2c: 01 00 00 18 16 2E [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 18 16 00 00 00 00 00 FF 0F 43 [11:11:11]RasterBufferAndPrint [11:11:11]line Счет N : (1)475323 [11:11:11]line ИÐÐ: 02508201610067 [11:11:11]line Контрольно-КаÑÑовый Чек [11:11:11]line ПРОДÐЖР[11:11:11]line ТРК (МРК, ГÐК) : 23 [11:11:11]line Товар: 2710124130 [11:11:11]line SUPER-92-К-5 [11:11:11]line 5.850 * 68.40 [11:11:11]line = 400.14 [11:11:11]line ÐДС 12% ÐСП 1% [11:11:11]line > о реализуемом товаре [11:11:11]line ОКРУГЛЕÐИЕ: -0.14 [11:11:11]line ИТОГО: 400.00 [11:11:11]line ВнеÑено: 400.00 [11:11:11]line СДÐЧÐ: 0.00 [11:11:11]line ÐСП 1% : 3.54 [11:11:11]line ÐДС 12% : 42.49 [11:11:11]line Ðаличными: 400.00 [11:11:11]line Безнал.: 0.00 [11:11:11]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:11:11]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:11:11]line СÐО: Общий режим [11:11:11]line Чек 30 18.10.2024 11:11 [11:11:11]line Смена: 22 ФФД: 1.0 [11:11:11]line ЗÐМ: 0300000191 [11:11:11]line РÐМ: 0000000000207295 [11:11:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:11:11]line ФМ: 0000000002342820 [11:11:11]line ФД: 2405 [11:11:11]line ФПД: 277258456419752 [11:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111113&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2405&fm=277258456419752&tin=02508201610067®Number=0000000000207295&sum=40000 [11:11:11]OFD Sender: Processing packet 2405 [packets to send 1, broken 0] [11:11:11]ProducePacketName [11:11:11]name=ofd_packets/00002405 [11:11:11]OFD Sender: To server: ‡•öpG, [11:11:11]CommunicateWithHost lk.salyk.kg:30040 [11:11:11]ConnectInit lk.salyk.kg [11:11:11]written 0, free lines is 4095 [11:11:11]Connected sock=10 [11:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 21 A6 08 01 11 A8 5A 03 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 16 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 4E 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 99 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 51 42 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 65 09 00 00 35 04 06 00 FC 2A 43 CE 4D A8 8D EF 26 40 6C 4C B0 7C [11:11:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 F2 F3 47 00 BF 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 32 33 34 32 38 32 30 10 04 04 00 65 09 00 00 F4 03 04 00 B5 ED 11 67 B6 04 01 00 00 5D 40 70 48 05 15 F0 26 [11:11:11]CommunicateWithHost err = 0 [11:11:11]CheckOFDResponse [11:11:11]1017 (14) - 77093643461234 [11:11:11]1041 (16) - 0000000002342820 [11:11:11]1040 (4) - 2405 [11:11:11]1012 (4) - 18.10.2024 05:10 [11:11:11]1206 (1) - 0 [11:11:11]OFD Sender: Remove packet 2405 [11:11:11]ProducePacketName [11:11:11]name=ofd_packets/00002405 [11:11:11]NVStorageDeleteData [11:11:11]Write to MH i2c: 01 00 00 43 16 59 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: 01 07 00 43 16 00 00 00 00 00 90 0C FC [11:11:11]RasterBufferAndPrint [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]line [11:11:11]written 0, free lines is 3220 [11:11:11]MH_Cut [11:11:11]Write to MH i2c: D1 01 00 4A 16 01 32 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 01 00 [11:11:11]MH_I2C_Read... [11:11:11]Read from MH i2c: D1 01 00 4A 16 00 31 [11:11:11]Write to MH i2c: 01 00 00 4B 16 61 [11:11:11]Write i2c OK [11:11:11]MH_I2C_Read... [11:11:12]OFD Sender: No OFD packet to send [11:11:12]*** Cut start [11:11:12]*** Partial cut [11:11:12]*** CUTSNS_PIN = 1 [11:11:12]*** CUTSNS_PIN = 0 [11:11:13]*** Brake cut motor [11:11:13]Read from MH i2c: 01 [11:11:13]MH_I2C_Read... [11:11:13]*** Stop cut motor [11:11:13]*** Cut end [11:11:13]Read from MH i2c: 01 07 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: 01 07 00 4B 16 00 00 00 00 00 FF 0F 76 [11:11:13]process_action close_receipt done [11:11:13]requested_data is exist [11:11:13]produce_requested_data [11:11:13]requested_item fm.sn is exist - process it [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 11 00 00 [11:11:13]Write to MH i2c: E2 08 00 4C 16 80 11 00 00 00 00 00 00 DC [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 17 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 17 00 4C 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 24 [11:11:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:11:13]wFMCommunicate OK [11:11:13]requested_item fd.num is exist - process it [11:11:13]SAM_PROTO_GetFieldsCounters [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 13 00 00 [11:11:13]Write to MH i2c: E2 08 00 4D 16 80 13 00 00 00 00 00 00 DF [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 62 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 62 00 4D 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 65 09 00 00 0E 04 04 00 16 00 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 D3 [11:11:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 65 09 00 00 0E 04 04 00 16 00 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 [11:11:13]wFMCommunicate OK [11:11:13]SAM_PROTO_GetFieldsCounters done [11:11:13]requested_item shift.num is exist - process it [11:11:13]requested_item shift.opened is exist - process it [11:11:13]req_shift_opened [11:11:13]FM_GetShiftState [11:11:13]SAM_PROTO_GetShiftState [11:11:13]wFMCommunicate request_size=4 [11:11:13]MH_SAM_APDU [11:11:13]CAPDU: 80 13 01 00 [11:11:13]Write to MH i2c: E2 08 00 4E 16 80 13 01 00 00 00 00 00 E1 [11:11:13]Write i2c OK [11:11:13]MH_I2C_Read... [11:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:11:13]Read from MH i2c: E2 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 0E 00 [11:11:13]MH_I2C_Read... [11:11:13]Read from MH i2c: E2 0E 00 4E 16 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 7F [11:11:13]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:11:13]wFMCommunicate OK [11:11:13]SAM_PROTO_GetShiftState done [11:11:13]FM_GetShiftState done [11:11:13]req_shift_opened done [11:11:13]requested_item shift.open_date is exist - process it [11:11:13]req_shift_open_date [11:11:13]req_shift_open_date done [11:11:13]produce_requested_data done [11:11:13]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2405,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:11:13]process_action_free close_receipt [11:11:13]json_value_free [11:11:13]json_value_free done [11:11:13]process_json_proto returns [11:11:13]Send response to host [11:11:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2405,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:11:13]free response buf [11:11:13]execute_script done [11:11:13]execute_script returns [11:11:13]free content buf [11:11:13]Sock 7.Close socket [11:11:13]Sock 7.Thread stoped [11:11:17]OFD Sender: No OFD packet to send [11:11:22]OFD Sender: No OFD packet to send [11:11:27]OFD Sender: No OFD packet to send [11:11:32]OFD Sender: No OFD packet to send [11:11:37]OFD Sender: No OFD packet to send [11:11:42]OFD Sender: No OFD packet to send [11:11:47]OFD Sender: No OFD packet to send [11:11:52]OFD Sender: No OFD packet to send [11:11:57]OFD Sender: No OFD packet to send [11:12:02]OFD Sender: No OFD packet to send [11:12:07]OFD Sender: No OFD packet to send [11:12:12]OFD Sender: No OFD packet to send [11:12:17]OFD Sender: No OFD packet to send [11:12:22]OFD Sender: No OFD packet to send [11:12:27]OFD Sender: No OFD packet to send [11:12:32]OFD Sender: No OFD packet to send [11:12:37]OFD Sender: No OFD packet to send [11:12:42]OFD Sender: No OFD packet to send [11:12:47]OFD Sender: No OFD packet to send [11:12:52]OFD Sender: No OFD packet to send [11:12:57]OFD Sender: No OFD packet to send [11:13:02]OFD Sender: No OFD packet to send [11:13:07]OFD Sender: No OFD packet to send [11:13:12]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:27]accept exits with 9 [11:15:27]New connection [11:15:27]New thread 3066850660 created [11:15:27]Thread 3066707300 joined [11:15:27]Waiting for new connection... [11:15:27] Sock 9.Parse request [11:15:27]Sock 9.Check first char [11:15:27]Sock 9.First char is OK [11:15:27]request: POST /json_proto HTTP/1.0 [11:15:27]Method: POST [11:15:27]URL: /json_proto [11:15:27]Method is POST - this is cgi request [11:15:27]url: /json_proto [11:15:27]query_string will be loaded in cgi processing [11:15:27]execute_cgi json_proto POST (null) [11:15:27]execute_cgi path=json_proto method=POST [11:15:27]POST find Content-Length [11:15:27]Host: 172.17.52.132:8080 [11:15:27]Content-Length: 632 [11:15:27]Content-Type: application/json [11:15:27] [11:15:27]POST finish read [11:15:27]Found Content-Length = 632 [11:15:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475325", "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" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:27]execute_script... [11:15: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)475325", "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" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:15:27]POST & json_proto [11:15:27]process_json_proto [11:15:27]json parsed OK: [11:15:27]protocol is kg_v1.0 [11:15:27]action value=close_receipt [11:15:27]process_action close_receipt [11:15:27]cmd_close_receipt [11:15:27]MH_GetDate [11:15:27]Write to MH i2c: F0 00 00 4F 16 54 [11:15:27]Write i2c OK [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: F0 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: F0 09 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: F0 09 00 4F 16 00 53 43 12 67 5A BE F6 66 E0 [11:15:27]GetLastDocTimeStamp 1729249873 [11:15:27]current date 1729250131 [11:15:27]FM_GetShiftState [11:15:27]SAM_PROTO_GetShiftState [11:15:27]wFMCommunicate request_size=4 [11:15:27]MH_SAM_APDU [11:15:27]CAPDU: 80 13 01 00 [11:15:27]Write to MH i2c: E2 08 00 50 16 80 13 01 00 00 00 00 00 E3 [11:15:27]Write i2c OK [11:15:27]MH_I2C_Read... [11:15:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:27]Read from MH i2c: E2 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 0E 00 [11:15:27]MH_I2C_Read... [11:15:27]Read from MH i2c: E2 0E 00 50 16 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 81 [11:15:27]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:15:27]wFMCommunicate OK [11:15:27]SAM_PROTO_GetShiftState done [11:15:27]FM_GetShiftState done [11:15:27]opened in 1729209717 [11:15:27]opened+sec_in_day 1729296117 [11:15:27]quantity*price = 50000 [11:15:27]sum+1 = 50001 [11:15:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 ÐСП 1% : 4.42 ÐДС 12% : 53.10 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 31 18.10.2024 11:15 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2406 ФПД: 87277912819180 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111531&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2406&fm=87277912819180&tin=02508201610067®Number=0000000000207295&sum=50000 [11:15:28]StoreToDocumentArchive [11:15:28]shift 22 fd 2406 [11:15:28]save to /storage/0022/doc_00002406 [11:15:28]save last doc name /storage/0022/doc_00002406 to /storage/kkm_last_doc_name [11:15:28]save OK [11:15:28]Clear old archive folders... [11:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:15:28]tlvbuf is 013C1B30 [11:15:28]SAM_PROTO_ClearQueue [11:15:28]wFMCommunicate request_size=4 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 09 00 00 [11:15:28]Write to MH i2c: E2 08 00 5D 16 80 09 00 00 00 00 00 00 E5 [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:15:28]Read from MH i2c: E2 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 5D 16 00 90 00 E7 [11:15:28]RAPDU: 90 00 [11:15:28]wFMCommunicate OK [11:15:28]SAM_PROTO_ClearQueue done [11:15:28]KKMCreateOFDPacket [11:15:28]OFDProtocolAddRootSTLVToBuf [11:15:28]FM_MakeSignedData [11:15:28]FM_MakeSignedData [11:15:28]SAM_PROTO_SignData [11:15:28]wFMCommunicate request_size=4 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 0D 01 02 [11:15:28]Write to MH i2c: E2 08 00 5E 16 80 0D 01 02 00 00 00 00 ED [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:15:28]Read from MH i2c: E2 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 [11:15:28]MH_I2C_Read... [11:15:28]Read from MH i2c: E2 03 00 5E 16 00 90 00 E8 [11:15:28]RAPDU: 90 00 [11:15:28]wFMCommunicate OK [11:15:28]wFMCommunicate request_size=255 [11:15:28]MH_SAM_APDU [11:15:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 1F 00 00 00 F4 03 04 00 53 43 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 66 09 00 00 35 04 06 00 [11:15:28]Write to MH i2c: E2 02 01 5F 16 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 1F 00 00 00 F4 03 04 00 53 43 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 66 09 00 00 35 04 06 00 00 00 8B [11:15:28]Write i2c OK [11:15:28]MH_I2C_Read... [11:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:29]Read from MH i2c: E2 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: E2 03 00 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: E2 03 00 5F 16 00 90 00 E9 [11:15:29]RAPDU: 90 00 [11:15:29]wFMCommunicate OK [11:15:29]wFMCommunicate request_size=11 [11:15:29]MH_SAM_APDU [11:15:29]CAPDU: 80 0D 02 02 06 4F 60 F8 FD 85 EC [11:15:29]Write to MH i2c: E2 0E 00 60 16 80 0D 02 02 06 00 4F 60 F8 FD 85 EC 00 00 11 [11:15:29]Write i2c OK [11:15:29]MH_I2C_Read... [11:15:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:15:29]Read from MH i2c: E2 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: E2 03 00 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: E2 03 00 60 16 00 90 00 EA [11:15:29]RAPDU: 90 00 [11:15:29]wFMCommunicate OK [11:15:29]wFMCommunicate request_size=4 [11:15:29]MH_SAM_APDU [11:15:29]CAPDU: 80 0D 03 02 [11:15:29]Write to MH i2c: E2 08 00 61 16 80 0D 03 02 00 00 00 00 F2 [11:15:29]Write i2c OK [11:15:29]MH_I2C_Read... [11:15:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:15:29]Read from MH i2c: E2 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: E2 0B 00 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: E2 0B 00 61 16 00 F4 78 73 55 85 F2 77 E1 90 00 F6 [11:15:29]RAPDU: F4 78 73 55 85 F2 77 E1 90 00 [11:15:29]wFMCommunicate OK [11:15:29]SAM_PROTO_SignData done [11:15:29]FM_MakeSignedData done [11:15:29]CreateOFDProtocolMessage [11:15:29]wFMCommunicate request_size=4 [11:15:29]MH_SAM_APDU [11:15:29]CAPDU: 80 11 00 00 [11:15:29]Write to MH i2c: E2 08 00 62 16 80 11 00 00 00 00 00 00 F2 [11:15:29]Write i2c OK [11:15:29]MH_I2C_Read... [11:15:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:29]Read from MH i2c: E2 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: E2 17 00 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: E2 17 00 62 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 3A [11:15:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:15:29]wFMCommunicate OK [11:15:29]CreateOFDProtocolMessage done [11:15:29]OFDSenderStorePacket 2406 [11:15:29]StoreOFDPacket docnum=2406 [11:15:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 27 41 08 01 26 EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 1F 00 00 00 F4 03 04 00 53 43 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 66 09 00 00 35 04 06 00 4F 60 F8 FD 85 EC F4 78 73 55 85 F2 77 E1 [11:15:29]CheckFolder [11:15:29]dirname=/storage/ofd_packets [11:15:29]CheckFolder done [11:15:29]ProducePacketName [11:15:29]name=ofd_packets/00002406 [11:15:29]NVStorageSaveData ofd_packets/00002406 [11:15:29]File name is /storage/ofd_packets/00002406 [11:15:29]Write 302 bytes [11:15:29]NVStorageSaveData done [11:15:29]OFDSenderStorePacket done [11:15:29]KKMCreateOFDPacket done [11:15:29]NVStorageSaveData kkm_last_timestamp [11:15:29]File name is /storage/kkm_last_timestamp [11:15:29]Write 4 bytes [11:15:29]NVStorageSaveData done [11:15:29]ExternCall_PrintAddStr [11:15:29]wPrintStart [11:15:29]Write to MH i2c: 01 00 00 63 16 79 [11:15:29]OFD Sender: Processing packet 2406 [packets to send 1, broken 0] [11:15:29]ProducePacketName [11:15:29]name=ofd_packets/00002406 [11:15:29]OFD Sender: To server: ‡•öpG, [11:15:29]CommunicateWithHost lk.salyk.kg:30040 [11:15:29]ConnectInit lk.salyk.kg [11:15:29]Write i2c OK [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: 01 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: 01 07 00 [11:15:29]MH_I2C_Read... [11:15:29]Read from MH i2c: 01 07 00 63 16 00 00 00 00 00 FF 0F 8E [11:15:29]RasterBufferAndPrint [11:15:29]line Счет N : (1)475325 [11:15:29]line ИÐÐ: 02508201610067 [11:15:29]line Контрольно-КаÑÑовый Чек [11:15:29]line ПРОДÐЖР[11:15:29]line ТРК (МРК, ГÐК) : 33 [11:15:29]line Товар: 2710124130 [11:15:29]line SUPER-92-К-5 [11:15:29]line 7.310 * 68.40 [11:15:29]line = 500.00 [11:15:29]line ÐДС 12% ÐСП 1% [11:15:29]line > о реализуемом товаре [11:15:29]line ИТОГО: 500.00 [11:15:29]line ÐСП 1% : 4.42 [11:15:29]line ÐДС 12% : 53.10 [11:15:29]line Ðаличными: 500.00 [11:15:29]line Безнал.: 0.00 [11:15:29]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:15:29]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:15:29]line СÐО: Общий режим [11:15:29]line Чек 31 18.10.2024 11:15 [11:15:29]line Смена: 22 ФФД: 1.0 [11:15:29]line ЗÐМ: 0300000191 [11:15:29]line РÐМ: 0000000000207295 [11:15:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:15:29]line ФМ: 0000000002342820 [11:15:29]line ФД: 2406 [11:15:29]line ФПД: 87277912819180 [11:15:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111531&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2406&fm=87277912819180&tin=02508201610067®Number=0000000000207295&sum=50000 [11:15:29]Connected sock=10 [11:15:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 27 41 08 01 26 EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 written 0, free lines is 4095 [11:15:29]31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 1F 00 00 00 F4 03 04 00 53 43 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 66 09 00 00 35 04 06 00 4F 60 F8 FD 85 EC F4 78 73 55 85 F2 77 E1 [11:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 87 8A 47 00 C1 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 32 33 34 32 38 32 30 10 04 04 00 66 09 00 00 F4 03 04 00 B7 EE 11 67 B6 04 01 00 00 6A 41 64 28 7A 7B 51 C1 [11:15:29]CommunicateWithHost err = 0 [11:15:29]CheckOFDResponse [11:15:29]1017 (14) - 77093643461234 [11:15:29]1041 (16) - 0000000002342820 [11:15:29]1040 (4) - 2406 [11:15:29]1012 (4) - 18.10.2024 05:14 [11:15:29]1206 (1) - 0 [11:15:29]OFD Sender: Remove packet 2406 [11:15:29]ProducePacketName [11:15:29]name=ofd_packets/00002406 [11:15:29]NVStorageDeleteData [11:15:30]Write to MH i2c: 01 00 00 8B 16 A1 [11:15:30]Write i2c OK [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: 01 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: 01 07 00 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: 01 07 00 8B 16 00 00 00 00 00 C8 0C 7C [11:15:30]RasterBufferAndPrint [11:15:30]line [11:15:30]line [11:15:30]line [11:15:30]line [11:15:30]line [11:15:30]written 0, free lines is 3276 [11:15:30]MH_Cut [11:15:30]Write to MH i2c: D1 01 00 92 16 01 7A [11:15:30]Write i2c OK [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: D1 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: D1 01 00 [11:15:30]MH_I2C_Read... [11:15:30]Read from MH i2c: D1 01 00 92 16 00 79 [11:15:30]Write to MH i2c: 01 00 00 93 16 A9 [11:15:30]Write i2c OK [11:15:30]MH_I2C_Read... [11:15:30]OFD Sender: No OFD packet to send [11:15:30]*** Cut start [11:15:30]*** Partial cut [11:15:30]*** CUTSNS_PIN = 1 [11:15:31]*** CUTSNS_PIN = 0 [11:15:31]*** Brake cut motor [11:15:31]Read from MH i2c: 01 [11:15:31]MH_I2C_Read... [11:15:31]*** Stop cut motor [11:15:31]*** Cut end [11:15:31]Read from MH i2c: 01 07 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: 01 07 00 93 16 00 00 00 00 00 FF 0F BE [11:15:31]process_action close_receipt done [11:15:31]requested_data is exist [11:15:31]produce_requested_data [11:15:31]requested_item fm.sn is exist - process it [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 11 00 00 [11:15:31]Write to MH i2c: E2 08 00 94 16 80 11 00 00 00 00 00 00 24 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 17 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 17 00 94 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 6C [11:15:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:15:31]wFMCommunicate OK [11:15:31]requested_item fd.num is exist - process it [11:15:31]SAM_PROTO_GetFieldsCounters [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 13 00 00 [11:15:31]Write to MH i2c: E2 08 00 95 16 80 13 00 00 00 00 00 00 27 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 62 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 62 00 95 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 66 09 00 00 0E 04 04 00 16 00 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 1F [11:15:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 66 09 00 00 0E 04 04 00 16 00 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 [11:15:31]wFMCommunicate OK [11:15:31]SAM_PROTO_GetFieldsCounters done [11:15:31]requested_item shift.num is exist - process it [11:15:31]requested_item shift.opened is exist - process it [11:15:31]req_shift_opened [11:15:31]FM_GetShiftState [11:15:31]SAM_PROTO_GetShiftState [11:15:31]wFMCommunicate request_size=4 [11:15:31]MH_SAM_APDU [11:15:31]CAPDU: 80 13 01 00 [11:15:31]Write to MH i2c: E2 08 00 96 16 80 13 01 00 00 00 00 00 29 [11:15:31]Write i2c OK [11:15:31]MH_I2C_Read... [11:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:15:31]Read from MH i2c: E2 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 0E 00 [11:15:31]MH_I2C_Read... [11:15:31]Read from MH i2c: E2 0E 00 96 16 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C7 [11:15:31]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:15:31]wFMCommunicate OK [11:15:31]SAM_PROTO_GetShiftState done [11:15:31]FM_GetShiftState done [11:15:31]req_shift_opened done [11:15:31]requested_item shift.open_date is exist - process it [11:15:31]req_shift_open_date [11:15:31]req_shift_open_date done [11:15:31]produce_requested_data done [11:15:31]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2406,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:15:31]process_action_free close_receipt [11:15:31]json_value_free [11:15:31]json_value_free done [11:15:31]process_json_proto returns [11:15:31]Send response to host [11:15:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2406,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:15:31]free response buf [11:15:31]execute_script done [11:15:31]execute_script returns [11:15:31]free content buf [11:15:31]Sock 9.Close socket [11:15:31]Sock 9.Thread stoped [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]OFD Sender: No OFD packet to send [11:16:05]OFD Sender: No OFD packet to send [11:16:10]OFD Sender: No OFD packet to send [11:16:15]OFD Sender: No OFD packet to send [11:16:20]OFD Sender: No OFD packet to send [11:16:25]OFD Sender: No OFD packet to send [11:16:30]OFD Sender: No OFD packet to send [11:16:35]OFD Sender: No OFD packet to send [11:16:40]OFD Sender: No OFD packet to send [11:16:45]OFD Sender: No OFD packet to send [11:16:50]OFD Sender: No OFD packet to send [11:16:55]OFD Sender: No OFD packet to send [11:17:00]OFD Sender: No OFD packet to send [11:17:05]OFD Sender: No OFD packet to send [11:17:10]OFD Sender: No OFD packet to send [11:17:15]OFD Sender: No OFD packet to send [11:17:20]OFD Sender: No OFD packet to send [11:17:25]OFD Sender: No OFD packet to send [11:17:30]OFD Sender: No OFD packet to send [11:17:35]OFD Sender: No OFD packet to send [11:17:40]OFD Sender: No OFD packet to send [11:17:45]OFD Sender: No OFD packet to send [11:17:50]OFD Sender: No OFD packet to send [11:17:55]OFD Sender: No OFD packet to send [11:18:00]OFD Sender: No OFD packet to send [11:18:05]OFD Sender: No OFD packet to send [11:18:10]OFD Sender: No OFD packet to send [11:18:15]OFD Sender: No OFD packet to send [11:18:18]accept exits with 7 [11:18:18]New connection [11:18:18]New thread 3066707300 created [11:18:18]Thread 3066850660 joined [11:18:18]Waiting for new connection... [11:18:18] Sock 7.Parse request [11:18:18]Sock 7.Check first char [11:18:18]Sock 7.First char is OK [11:18:18]request: POST /json_proto HTTP/1.0 [11:18:18]Method: POST [11:18:18]URL: /json_proto [11:18:18]Method is POST - this is cgi request [11:18:18]url: /json_proto [11:18:18]query_string will be loaded in cgi processing [11:18:18]execute_cgi json_proto POST (null) [11:18:18]execute_cgi path=json_proto method=POST [11:18:18]POST find Content-Length [11:18:18]Host: 172.17.52.132:8080 [11:18:18]Content-Length: 677 [11:18:18]Content-Type: application/json [11:18:18] [11:18:18]POST finish read [11:18:18]Found Content-Length = 677 [11:18:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:18]execute_script... [11:18:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:18:18]POST & json_proto [11:18:18]process_json_proto [11:18:18]json parsed OK: [11:18:18]protocol is kg_v1.0 [11:18:18]action value=close_receipt [11:18:18]process_action close_receipt [11:18:18]cmd_close_receipt [11:18:18]MH_GetDate [11:18:18]Write to MH i2c: F0 00 00 97 16 9C [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: F0 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: F0 09 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: F0 09 00 97 16 00 FE 43 12 67 5A BE F6 66 D3 [11:18:18]GetLastDocTimeStamp 1729250131 [11:18:18]current date 1729250302 [11:18:18]FM_GetShiftState [11:18:18]SAM_PROTO_GetShiftState [11:18:18]wFMCommunicate request_size=4 [11:18:18]MH_SAM_APDU [11:18:18]CAPDU: 80 13 01 00 [11:18:18]Write to MH i2c: E2 08 00 98 16 80 13 01 00 00 00 00 00 2B [11:18:18]Write i2c OK [11:18:18]MH_I2C_Read... [11:18:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:18]Read from MH i2c: E2 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 0E 00 [11:18:18]MH_I2C_Read... [11:18:18]Read from MH i2c: E2 0E 00 98 16 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C9 [11:18:18]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:18:18]wFMCommunicate OK [11:18:18]SAM_PROTO_GetShiftState done [11:18:18]FM_GetShiftState done [11:18:18]opened in 1729209717 [11:18:18]opened+sec_in_day 1729296117 [11:18:18]quantity*price = 50041 [11:18:18]sum+1 = 50042 [11:18:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.41 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 32 18.10.2024 11:18 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2407 ФПД: 119119746595506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111822&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2407&fm=119119746595506&tin=02508201610067®Number=0000000000207295&sum=50000 [11:18:20]StoreToDocumentArchive [11:18:20]shift 22 fd 2407 [11:18:20]save to /storage/0022/doc_00002407 [11:18:20]save last doc name /storage/0022/doc_00002407 to /storage/kkm_last_doc_name [11:18:20]save OK [11:18:20]Clear old archive folders... [11:18:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:18:20]tlvbuf is 01408260 [11:18:20]SAM_PROTO_ClearQueue [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 09 00 00 [11:18:20]Write to MH i2c: E2 08 00 A5 16 80 09 00 00 00 00 00 00 2D [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 03 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 03 00 A5 16 00 90 00 2F [11:18:20]RAPDU: 90 00 [11:18:20]wFMCommunicate OK [11:18:20]SAM_PROTO_ClearQueue done [11:18:20]KKMCreateOFDPacket [11:18:20]OFDProtocolAddRootSTLVToBuf [11:18:20]FM_MakeSignedData [11:18:20]FM_MakeSignedData [11:18:20]SAM_PROTO_SignData [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 0D 01 02 [11:18:20]Write to MH i2c: E2 08 00 A6 16 80 0D 01 02 00 00 00 00 35 [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 03 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 03 00 A6 16 00 90 00 30 [11:18:20]RAPDU: 90 00 [11:18:20]wFMCommunicate OK [11:18:20]wFMCommunicate request_size=255 [11:18:20]MH_SAM_APDU [11:18: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FE 43 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 67 09 00 00 35 04 06 00 6C [11:18:20]Write to MH i2c: E2 02 01 A7 16 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FE 43 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 67 09 00 00 35 04 06 00 6C 00 00 85 [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 03 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 03 00 A7 16 00 90 00 31 [11:18:20]RAPDU: 90 00 [11:18:20]wFMCommunicate OK [11:18:20]wFMCommunicate request_size=10 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 0D 02 02 05 56 BA 2E 7A B2 [11:18:20]Write to MH i2c: E2 0D 00 A8 16 80 0D 02 02 05 00 56 BA 2E 7A B2 00 00 AC [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]OFD Sender: No OFD packet to send [11:18:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 03 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 03 00 A8 16 00 90 00 32 [11:18:20]RAPDU: 90 00 [11:18:20]wFMCommunicate OK [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 0D 03 02 [11:18:20]Write to MH i2c: E2 08 00 A9 16 80 0D 03 02 00 00 00 00 3A [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 0B 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 0B 00 A9 16 00 F3 D9 8B A6 65 F7 18 BD 90 00 69 [11:18:20]RAPDU: F3 D9 8B A6 65 F7 18 BD 90 00 [11:18:20]wFMCommunicate OK [11:18:20]SAM_PROTO_SignData done [11:18:20]FM_MakeSignedData done [11:18:20]CreateOFDProtocolMessage [11:18:20]wFMCommunicate request_size=4 [11:18:20]MH_SAM_APDU [11:18:20]CAPDU: 80 11 00 00 [11:18:20]Write to MH i2c: E2 08 00 AA 16 80 11 00 00 00 00 00 00 3A [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:20]Read from MH i2c: E2 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 17 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: E2 17 00 AA 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 82 [11:18:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:18:20]wFMCommunicate OK [11:18:20]CreateOFDProtocolMessage done [11:18:20]OFDSenderStorePacket 2407 [11:18:20]StoreOFDPacket docnum=2407 [11:18:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 27 49 07 01 5D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FE 43 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 67 09 00 00 35 04 06 00 6C 56 BA 2E 7A B2 F3 D9 8B A6 65 F7 18 BD [11:18:20]CheckFolder [11:18:20]dirname=/storage/ofd_packets [11:18:20]CheckFolder done [11:18:20]ProducePacketName [11:18:20]name=ofd_packets/00002407 [11:18:20]NVStorageSaveData ofd_packets/00002407 [11:18:20]File name is /storage/ofd_packets/00002407 [11:18:20]Write 301 bytes [11:18:20]NVStorageSaveData done [11:18:20]OFDSenderStorePacket done [11:18:20]KKMCreateOFDPacket done [11:18:20]NVStorageSaveData kkm_last_timestamp [11:18:20]File name is /storage/kkm_last_timestamp [11:18:20]Write 4 bytes [11:18:20]NVStorageSaveData done [11:18:20]ExternCall_PrintAddStr [11:18:20]wPrintStart [11:18:20]Write to MH i2c: 01 00 00 AB 16 C1 [11:18:20]Write i2c OK [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: 01 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: 01 07 00 [11:18:20]MH_I2C_Read... [11:18:20]Read from MH i2c: 01 07 00 AB 16 00 00 00 00 00 FF 0F D6 [11:18:20]RasterBufferAndPrint [11:18:20]line Счет N : (1)475327 [11:18:20]line ИÐÐ: 02508201610067 [11:18:20]line Контрольно-КаÑÑовый Чек [11:18:20]line ПРОДÐЖР[11:18:20]line ТРК (МРК, ГÐК) : 32 [11:18:20]line Товар: 2710124130 [11:18:20]line Ðи-92-К-5 [11:18:20]line 7.480 * 66.90 [11:18:20]line = 500.41 [11:18:20]line ÐДС 12% ÐСП 1% [11:18:20]line > о реализуемом товаре [11:18:20]line ОКРУГЛЕÐИЕ: -0.41 [11:18:20]line ИТОГО: 500.00 [11:18:20]line ВнеÑено: 500.00 [11:18:20]line СДÐЧÐ: 0.00 [11:18:20]line ÐСП 1% : 4.43 [11:18:20]line ÐДС 12% : 53.14 [11:18:20]line Ðаличными: 500.00 [11:18:20]line Безнал.: 0.00 [11:18:20]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:18:20]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:18:20]line СÐО: Общий режим [11:18:20]line Чек 32 18.10.2024 11:18 [11:18:20]line Смена: 22 ФФД: 1.0 [11:18:20]line ЗÐМ: 0300000191 [11:18:20]line РÐМ: 0000000000207295 [11:18:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:18:20]line ФМ: 0000000002342820 [11:18:20]line ФД: 2407 [11:18:20]line ФПД: 119119746595506 [11:18:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111822&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2407&fm=119119746595506&tin=02508201610067®Number=0000000000207295&sum=50000 [11:18:20]OFD Sender: Processing packet 2407 [packets to send 1, broken 0] [11:18:20]ProducePacketName [11:18:20]name=ofd_packets/00002407 [11:18:20]OFD Sender: To server: ‡•öpG, [11:18:20]CommunicateWithHost lk.salyk.kg:30040 [11:18:20]ConnectInit lk.salyk.kg [11:18:20]written 0, free lines is 4095 [11:18:21]Connected sock=10 [11:18:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 27 49 07 01 5D 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 FE 43 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 67 09 00 00 35 04 06 00 6C 56 BA 2E 7A B2 F3 D9 8B A6 65 F7 18 BD [11:18:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 94 09 47 00 46 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 32 33 34 32 38 32 30 10 04 04 00 67 09 00 00 F4 03 04 00 62 EF 11 67 B6 04 01 00 00 D6 CE 65 AE D2 1D 3F 6F [11:18:21]CommunicateWithHost err = 0 [11:18:21]CheckOFDResponse [11:18:21]1017 (14) - 77093643461234 [11:18:21]1041 (16) - 0000000002342820 [11:18:21]1040 (4) - 2407 [11:18:21]1012 (4) - 18.10.2024 05:17 [11:18:21]1206 (1) - 0 [11:18:21]OFD Sender: Remove packet 2407 [11:18:21]ProducePacketName [11:18:21]name=ofd_packets/00002407 [11:18:21]NVStorageDeleteData [11:18:21]Write to MH i2c: 01 00 00 D6 16 EC [11:18:21]Write i2c OK [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: 01 [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: 01 07 00 [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: 01 07 00 D6 16 00 00 00 00 00 8C 0C 8B [11:18:21]RasterBufferAndPrint [11:18:21]line [11:18:21]line [11:18:21]line [11:18:21]line [11:18:21]line [11:18:21]written 0, free lines is 3217 [11:18:21]MH_Cut [11:18:21]Write to MH i2c: D1 01 00 DD 16 01 C5 [11:18:21]Write i2c OK [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: D1 [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: D1 01 00 [11:18:21]MH_I2C_Read... [11:18:21]Read from MH i2c: D1 01 00 DD 16 00 C4 [11:18:21]Write to MH i2c: 01 00 00 DE 16 F4 [11:18:21]Write i2c OK [11:18:21]MH_I2C_Read... [11:18:21]OFD Sender: No OFD packet to send [11:18:22]*** Cut start [11:18:22]*** Partial cut [11:18:22]*** CUTSNS_PIN = 1 [11:18:22]*** CUTSNS_PIN = 0 [11:18:22]*** Brake cut motor [11:18:22]Read from MH i2c: 01 [11:18:22]MH_I2C_Read... [11:18:22]*** Stop cut motor [11:18:22]*** Cut end [11:18:22]Read from MH i2c: 01 07 00 [11:18:22]MH_I2C_Read... [11:18:22]Read from MH i2c: 01 07 00 DE 16 00 00 00 00 00 FF 0F 09 [11:18:22]process_action close_receipt done [11:18:22]requested_data is exist [11:18:22]produce_requested_data [11:18:22]requested_item fm.sn is exist - process it [11:18:22]wFMCommunicate request_size=4 [11:18:22]MH_SAM_APDU [11:18:22]CAPDU: 80 11 00 00 [11:18:22]Write to MH i2c: E2 08 00 DF 16 80 11 00 00 00 00 00 00 6F [11:18:22]Write i2c OK [11:18:22]MH_I2C_Read... [11:18:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:18:23]Read from MH i2c: E2 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: E2 17 00 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: E2 17 00 DF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B7 [11:18:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:18:23]wFMCommunicate OK [11:18:23]requested_item fd.num is exist - process it [11:18:23]SAM_PROTO_GetFieldsCounters [11:18:23]wFMCommunicate request_size=4 [11:18:23]MH_SAM_APDU [11:18:23]CAPDU: 80 13 00 00 [11:18:23]Write to MH i2c: E2 08 00 E0 16 80 13 00 00 00 00 00 00 72 [11:18:23]Write i2c OK [11:18:23]MH_I2C_Read... [11:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:18:23]Read from MH i2c: E2 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: E2 62 00 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: E2 62 00 E0 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 67 09 00 00 0E 04 04 00 16 00 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 6E [11:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 67 09 00 00 0E 04 04 00 16 00 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 [11:18:23]wFMCommunicate OK [11:18:23]SAM_PROTO_GetFieldsCounters done [11:18:23]requested_item shift.num is exist - process it [11:18:23]requested_item shift.opened is exist - process it [11:18:23]req_shift_opened [11:18:23]FM_GetShiftState [11:18:23]SAM_PROTO_GetShiftState [11:18:23]wFMCommunicate request_size=4 [11:18:23]MH_SAM_APDU [11:18:23]CAPDU: 80 13 01 00 [11:18:23]Write to MH i2c: E2 08 00 E1 16 80 13 01 00 00 00 00 00 74 [11:18:23]Write i2c OK [11:18:23]MH_I2C_Read... [11:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:18:23]Read from MH i2c: E2 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: E2 0E 00 [11:18:23]MH_I2C_Read... [11:18:23]Read from MH i2c: E2 0E 00 E1 16 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 12 [11:18:23]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:18:23]wFMCommunicate OK [11:18:23]SAM_PROTO_GetShiftState done [11:18:23]FM_GetShiftState done [11:18:23]req_shift_opened done [11:18:23]requested_item shift.open_date is exist - process it [11:18:23]req_shift_open_date [11:18:23]req_shift_open_date done [11:18:23]produce_requested_data done [11:18:23]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2407,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:18:23]process_action_free close_receipt [11:18:23]json_value_free [11:18:23]json_value_free done [11:18:23]process_json_proto returns [11:18:23]Send response to host [11:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2407,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:18:23]free response buf [11:18:23]execute_script done [11:18:23]execute_script returns [11:18:23]free content buf [11:18:23]Sock 7.Close socket [11:18:23]Sock 7.Thread stoped [11:18:26]OFD Sender: No OFD packet to send [11:18:31]OFD Sender: No OFD packet to send [11:18:36]OFD Sender: No OFD packet to send [11:18:41]OFD Sender: No OFD packet to send [11:18:46]OFD Sender: No OFD packet to send [11:18:51]OFD Sender: No OFD packet to send [11:18:56]OFD Sender: No OFD packet to send [11:19:01]OFD Sender: No OFD packet to send [11:19:06]OFD Sender: No OFD packet to send [11:19:11]OFD Sender: No OFD packet to send [11:19:16]OFD Sender: No OFD packet to send [11:19:21]OFD Sender: No OFD packet to send [11:19:22]accept exits with 9 [11:19:22]New connection [11:19:22]New thread 3066850660 created [11:19:22]Thread 3066707300 joined [11:19:22]Waiting for new connection... [11:19:22] Sock 9.Parse request [11:19:22]Sock 9.Check first char [11:19:22]Sock 9.First char is OK [11:19:22]request: POST /json_proto HTTP/1.0 [11:19:22]Method: POST [11:19:22]URL: /json_proto [11:19:22]Method is POST - this is cgi request [11:19:22]url: /json_proto [11:19:22]query_string will be loaded in cgi processing [11:19:22]execute_cgi json_proto POST (null) [11:19:22]execute_cgi path=json_proto method=POST [11:19:22]POST find Content-Length [11:19:22]Host: 172.17.52.132:8080 [11:19:22]Content-Length: 674 [11:19:22]Content-Type: application/json [11:19:22] [11:19:22]POST finish read [11:19:22]Found Content-Length = 674 [11:19:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.620, "sum" : 580.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:22]execute_script... [11:19: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)475328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.620, "sum" : 580.64, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 580.00, "total" : 580.00, "payments": [ { "type": 0, "sum" : 580.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:19:22]POST & json_proto [11:19:22]process_json_proto [11:19:22]json parsed OK: [11:19:22]protocol is kg_v1.0 [11:19:22]action value=close_receipt [11:19:22]process_action close_receipt [11:19:22]cmd_close_receipt [11:19:22]MH_GetDate [11:19:22]Write to MH i2c: F0 00 00 E2 16 E7 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: F0 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: F0 09 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: F0 09 00 E2 16 00 3E 44 12 67 5A BE F6 66 5F [11:19:22]GetLastDocTimeStamp 1729250302 [11:19:22]current date 1729250366 [11:19:22]FM_GetShiftState [11:19:22]SAM_PROTO_GetShiftState [11:19:22]wFMCommunicate request_size=4 [11:19:22]MH_SAM_APDU [11:19:22]CAPDU: 80 13 01 00 [11:19:22]Write to MH i2c: E2 08 00 E3 16 80 13 01 00 00 00 00 00 76 [11:19:22]Write i2c OK [11:19:22]MH_I2C_Read... [11:19:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:22]Read from MH i2c: E2 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 0E 00 [11:19:22]MH_I2C_Read... [11:19:22]Read from MH i2c: E2 0E 00 E3 16 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 14 [11:19:22]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:19:22]wFMCommunicate OK [11:19:22]SAM_PROTO_GetShiftState done [11:19:22]FM_GetShiftState done [11:19:22]opened in 1729209717 [11:19:22]opened+sec_in_day 1729296117 [11:19:22]quantity*price = 58064 [11:19:22]sum+1 = 58065 [11:19:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.64 ИТОГО: 580.00 ВнеÑено: 580.00 СДÐЧÐ: 0.00 ÐСП 1% : 5.14 ÐДС 12% : 61.66 Ðаличными: 580.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 33 18.10.2024 11:19 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2408 ФПД: 142103028138310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111926&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2408&fm=142103028138310&tin=02508201610067®Number=0000000000207295&sum=58000 [11:19:23]StoreToDocumentArchive [11:19:23]shift 22 fd 2408 [11:19:23]save to /storage/0022/doc_00002408 [11:19:23]save last doc name /storage/0022/doc_00002408 to /storage/kkm_last_doc_name [11:19:23]save OK [11:19:23]Clear old archive folders... [11:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:19:23]tlvbuf is 013E0930 [11:19:23]SAM_PROTO_ClearQueue [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 09 00 00 [11:19:23]Write to MH i2c: E2 08 00 F0 16 80 09 00 00 00 00 00 00 78 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 F0 16 00 90 00 7A [11:19:23]RAPDU: 90 00 [11:19:23]wFMCommunicate OK [11:19:23]SAM_PROTO_ClearQueue done [11:19:23]KKMCreateOFDPacket [11:19:23]OFDProtocolAddRootSTLVToBuf [11:19:23]FM_MakeSignedData [11:19:23]FM_MakeSignedData [11:19:23]SAM_PROTO_SignData [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 0D 01 02 [11:19:23]Write to MH i2c: E2 08 00 F1 16 80 0D 01 02 00 00 00 00 80 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 F1 16 00 90 00 7B [11:19:23]RAPDU: 90 00 [11:19:23]wFMCommunicate OK [11:19:23]wFMCommunicate request_size=255 [11:19:23]MH_SAM_APDU [11:19: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 C4 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D0 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3E 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 68 09 00 00 35 04 06 00 81 3D F0 83 [11:19:23]Write to MH i2c: E2 02 01 F2 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D0 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3E 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 68 09 00 00 35 04 06 00 81 3D F0 83 00 00 30 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 F2 16 00 90 00 7C [11:19:23]RAPDU: 90 00 [11:19:23]wFMCommunicate OK [11:19:23]wFMCommunicate request_size=7 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 0D 02 02 02 81 46 [11:19:23]Write to MH i2c: E2 0A 00 F3 16 80 0D 02 02 02 00 81 46 00 00 4E [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 03 00 F3 16 00 90 00 7D [11:19:23]RAPDU: 90 00 [11:19:23]wFMCommunicate OK [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 0D 03 02 [11:19:23]Write to MH i2c: E2 08 00 F4 16 80 0D 03 02 00 00 00 00 85 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 0B 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 0B 00 F4 16 00 9A C3 F5 74 C1 A1 43 4A 90 00 3B [11:19:23]RAPDU: 9A C3 F5 74 C1 A1 43 4A 90 00 [11:19:23]wFMCommunicate OK [11:19:23]SAM_PROTO_SignData done [11:19:23]FM_MakeSignedData done [11:19:23]CreateOFDProtocolMessage [11:19:23]wFMCommunicate request_size=4 [11:19:23]MH_SAM_APDU [11:19:23]CAPDU: 80 11 00 00 [11:19:23]Write to MH i2c: E2 08 00 F5 16 80 11 00 00 00 00 00 00 85 [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:23]Read from MH i2c: E2 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 17 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: E2 17 00 F5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CD [11:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:19:23]wFMCommunicate OK [11:19:23]CreateOFDProtocolMessage done [11:19:23]OFDSenderStorePacket 2408 [11:19:23]StoreOFDPacket docnum=2408 [11:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 93 D5 04 01 6A BF 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 C4 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D0 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3E 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 68 09 00 00 35 04 06 00 81 3D F0 83 81 46 9A C3 F5 74 C1 A1 43 4A [11:19:23]CheckFolder [11:19:23]dirname=/storage/ofd_packets [11:19:23]CheckFolder done [11:19:23]ProducePacketName [11:19:23]name=ofd_packets/00002408 [11:19:23]NVStorageSaveData ofd_packets/00002408 [11:19:23]File name is /storage/ofd_packets/00002408 [11:19:23]Write 298 bytes [11:19:23]NVStorageSaveData done [11:19:23]OFDSenderStorePacket done [11:19:23]KKMCreateOFDPacket done [11:19:23]NVStorageSaveData kkm_last_timestamp [11:19:23]File name is /storage/kkm_last_timestamp [11:19:23]Write 4 bytes [11:19:23]NVStorageSaveData done [11:19:23]ExternCall_PrintAddStr [11:19:23]wPrintStart [11:19:23]Write to MH i2c: 01 00 00 F6 16 0C [11:19:23]Write i2c OK [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 [11:19:23]MH_I2C_Read... [11:19:23]Read from MH i2c: 01 07 00 F6 16 00 00 00 00 00 FF 0F 21 [11:19:23]RasterBufferAndPrint [11:19:23]line Счет N : (1)475328 [11:19:23]line ИÐÐ: 02508201610067 [11:19:23]line Контрольно-КаÑÑовый Чек [11:19:23]line ПРОДÐЖР[11:19:23]line ТРК (МРК, ГÐК) : 64 [11:19:23]line Товар: 2710194210 [11:19:23]line ДТ-К-5 [11:19:23]line 7.620 * 76.20 [11:19:23]line = 580.64 [11:19:23]line ÐДС 12% ÐСП 1% [11:19:23]line > о реализуемом товаре [11:19:23]line ОКРУГЛЕÐИЕ: -0.64 [11:19:23]line ИТОГО: 580.00 [11:19:23]line ВнеÑено: 580.00 [11:19:23]line СДÐЧÐ: 0.00 [11:19:23]line ÐСП 1% : 5.14 [11:19:23]line ÐДС 12% : 61.66 [11:19:23]line Ðаличными: 580.00 [11:19:23]line Безнал.: 0.00 [11:19:23]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:19:23]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:19:24]line СÐО: Общий режим [11:19:24]line Чек 33 18.10.2024 11:19 [11:19:24]line Смена: 22 ФФД: 1.0 [11:19:24]line ЗÐМ: 0300000191 [11:19:24]line РÐМ: 0000000000207295 [11:19:24]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:19:24]line ФМ: 0000000002342820 [11:19:24]line ФД: 2408 [11:19:24]line ФПД: 142103028138310 [11:19:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T111926&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2408&fm=142103028138310&tin=02508201610067®Number=0000000000207295&sum=58000 [11:19:24]OFD Sender: Processing packet 2408 [packets to send 1, broken 0] [11:19:24]ProducePacketName [11:19:24]name=ofd_packets/00002408 [11:19:24]OFD Sender: To server: ‡•öpG, [11:19:24]CommunicateWithHost lk.salyk.kg:30040 [11:19:24]ConnectInit lk.salyk.kg [11:19:24]written 0, free lines is 4095 [11:19:24]Connected sock=10 [11:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 93 D5 04 01 6A BF 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 C4 1D 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D0 E2 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 E2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 02 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 16 18 00 00 00 00 07 04 06 00 90 E2 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 3E 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 68 09 00 00 35 04 06 00 81 3D F0 83 81 46 9A C3 F5 74 C1 A1 43 4A [11:19:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 49 24 47 00 7E 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 32 33 34 32 38 32 30 10 04 04 00 68 09 00 00 F4 03 04 00 A2 EF 11 67 B6 04 01 00 00 A0 83 16 97 63 0A A5 A1 [11:19:24]CommunicateWithHost err = 0 [11:19:24]CheckOFDResponse [11:19:24]1017 (14) - 77093643461234 [11:19:24]1041 (16) - 0000000002342820 [11:19:24]1040 (4) - 2408 [11:19:24]1012 (4) - 18.10.2024 05:18 [11:19:24]1206 (1) - 0 [11:19:24]OFD Sender: Remove packet 2408 [11:19:24]ProducePacketName [11:19:24]name=ofd_packets/00002408 [11:19:24]NVStorageDeleteData [11:19:24]Write to MH i2c: 01 00 00 21 17 38 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 07 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: 01 07 00 21 17 00 00 00 00 00 8C 0C D7 [11:19:24]RasterBufferAndPrint [11:19:24]line [11:19:24]line [11:19:24]line [11:19:24]line [11:19:24]line [11:19:24]written 0, free lines is 3216 [11:19:24]MH_Cut [11:19:24]Write to MH i2c: D1 01 00 28 17 01 11 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: D1 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: D1 01 00 [11:19:24]MH_I2C_Read... [11:19:24]Read from MH i2c: D1 01 00 28 17 00 10 [11:19:24]Write to MH i2c: 01 00 00 29 17 40 [11:19:24]Write i2c OK [11:19:24]MH_I2C_Read... [11:19:25]OFD Sender: No OFD packet to send [11:19:25]*** Cut start [11:19:25]*** Partial cut [11:19:25]*** CUTSNS_PIN = 1 [11:19:25]*** CUTSNS_PIN = 0 [11:19:25]*** Brake cut motor [11:19:26]Read from MH i2c: 01 [11:19:26]MH_I2C_Read... [11:19:26]*** Stop cut motor [11:19:26]*** Cut end [11:19:26]Read from MH i2c: 01 07 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: 01 07 00 29 17 00 00 00 00 00 FF 0F 55 [11:19:26]process_action close_receipt done [11:19:26]requested_data is exist [11:19:26]produce_requested_data [11:19:26]requested_item fm.sn is exist - process it [11:19:26]wFMCommunicate request_size=4 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 11 00 00 [11:19:26]Write to MH i2c: E2 08 00 2A 17 80 11 00 00 00 00 00 00 BB [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 17 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 17 00 2A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 03 [11:19:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:19:26]wFMCommunicate OK [11:19:26]requested_item fd.num is exist - process it [11:19:26]SAM_PROTO_GetFieldsCounters [11:19:26]wFMCommunicate request_size=4 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 13 00 00 [11:19:26]Write to MH i2c: E2 08 00 2B 17 80 13 00 00 00 00 00 00 BE [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 62 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 62 00 2B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 68 09 00 00 0E 04 04 00 16 00 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 BE [11:19:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 68 09 00 00 0E 04 04 00 16 00 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 [11:19:26]wFMCommunicate OK [11:19:26]SAM_PROTO_GetFieldsCounters done [11:19:26]requested_item shift.num is exist - process it [11:19:26]requested_item shift.opened is exist - process it [11:19:26]req_shift_opened [11:19:26]FM_GetShiftState [11:19:26]SAM_PROTO_GetShiftState [11:19:26]wFMCommunicate request_size=4 [11:19:26]MH_SAM_APDU [11:19:26]CAPDU: 80 13 01 00 [11:19:26]Write to MH i2c: E2 08 00 2C 17 80 13 01 00 00 00 00 00 C0 [11:19:26]Write i2c OK [11:19:26]MH_I2C_Read... [11:19:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:26]Read from MH i2c: E2 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 0E 00 [11:19:26]MH_I2C_Read... [11:19:26]Read from MH i2c: E2 0E 00 2C 17 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5E [11:19:26]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:19:26]wFMCommunicate OK [11:19:26]SAM_PROTO_GetShiftState done [11:19:26]FM_GetShiftState done [11:19:26]req_shift_opened done [11:19:26]requested_item shift.open_date is exist - process it [11:19:26]req_shift_open_date [11:19:26]req_shift_open_date done [11:19:26]produce_requested_data done [11:19:26]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2408,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:19:26]process_action_free close_receipt [11:19:26]json_value_free [11:19:26]json_value_free done [11:19:26]process_json_proto returns [11:19:26]Send response to host [11:19:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2408,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:19:26]free response buf [11:19:26]execute_script done [11:19:26]execute_script returns [11:19:26]free content buf [11:19:26]Sock 9.Close socket [11:19:26]Sock 9.Thread stoped [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:04]accept exits with 7 [11:20:04]New connection [11:20:04]New thread 3066707300 created [11:20:04]Thread 3066850660 joined [11:20:04]Waiting for new connection... [11:20:04] Sock 7.Parse request [11:20:04]Sock 7.Check first char [11:20:04]Sock 7.First char is OK [11:20:04]request: POST /json_proto HTTP/1.0 [11:20:04]Method: POST [11:20:04]URL: /json_proto [11:20:04]Method is POST - this is cgi request [11:20:04]url: /json_proto [11:20:04]query_string will be loaded in cgi processing [11:20:04]execute_cgi json_proto POST (null) [11:20:04]execute_cgi path=json_proto method=POST [11:20:04]POST find Content-Length [11:20:04]Host: 172.17.52.132:8080 [11:20:04]Content-Length: 766 [11:20:04]Content-Type: application/json [11:20:04] [11:20:04]POST finish read [11:20:04]Found Content-Length = 766 [11:20:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:04]execute_script... [11:20: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)475329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:04]POST & json_proto [11:20:04]process_json_proto [11:20:04]json parsed OK: [11:20:04]protocol is kg_v1.0 [11:20:04]action value=close_receipt [11:20:04]process_action close_receipt [11:20:04]cmd_close_receipt [11:20:04]MH_GetDate [11:20:04]Write to MH i2c: F0 00 00 2D 17 33 [11:20:04]Write i2c OK [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: F0 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: F0 09 00 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: F0 09 00 2D 17 00 68 44 12 67 5A BE F6 66 D5 [11:20:04]GetLastDocTimeStamp 1729250366 [11:20:04]current date 1729250408 [11:20:04]FM_GetShiftState [11:20:04]SAM_PROTO_GetShiftState [11:20:04]wFMCommunicate request_size=4 [11:20:04]MH_SAM_APDU [11:20:04]CAPDU: 80 13 01 00 [11:20:04]Write to MH i2c: E2 08 00 2E 17 80 13 01 00 00 00 00 00 C2 [11:20:04]Write i2c OK [11:20:04]MH_I2C_Read... [11:20:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:04]Read from MH i2c: E2 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 0E 00 [11:20:04]MH_I2C_Read... [11:20:04]Read from MH i2c: E2 0E 00 2E 17 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 60 [11:20:04]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:20:04]wFMCommunicate OK [11:20:04]SAM_PROTO_GetShiftState done [11:20:04]FM_GetShiftState done [11:20:04]opened in 1729209717 [11:20:04]opened+sec_in_day 1729296117 [11:20:04]quantity*price = 100050 [11:20:04]sum+1 = 100052 [11:20:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 ÐСП 1% : 8.85 ÐДС 12% : 106.25 Ðаличными: 0.00 Безнал.: 1000.51 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 34 18.10.2024 11:20 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2409 ФПД: 151014301715718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112008&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2409&fm=151014301715718&tin=02508201610067®Number=0000000000207295&sum=100051 [11:20:05]StoreToDocumentArchive [11:20:05]shift 22 fd 2409 [11:20:05]save to /storage/0022/doc_00002409 [11:20:05]save last doc name /storage/0022/doc_00002409 to /storage/kkm_last_doc_name [11:20:05]save OK [11:20:05]Clear old archive folders... [11:20:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:20:05]tlvbuf is 013AFB50 [11:20:05]SAM_PROTO_ClearQueue [11:20:05]wFMCommunicate request_size=4 [11:20:05]MH_SAM_APDU [11:20:05]CAPDU: 80 09 00 00 [11:20:05]Write to MH i2c: E2 08 00 3B 17 80 09 00 00 00 00 00 00 C4 [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:05]Read from MH i2c: E2 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 03 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 03 00 3B 17 00 90 00 C6 [11:20:05]RAPDU: 90 00 [11:20:05]wFMCommunicate OK [11:20:05]SAM_PROTO_ClearQueue done [11:20:05]KKMCreateOFDPacket [11:20:05]OFDProtocolAddRootSTLVToBuf [11:20:05]FM_MakeSignedData [11:20:05]FM_MakeSignedData [11:20:05]SAM_PROTO_SignData [11:20:05]wFMCommunicate request_size=4 [11:20:05]MH_SAM_APDU [11:20:05]CAPDU: 80 0D 01 02 [11:20:05]Write to MH i2c: E2 08 00 3C 17 80 0D 01 02 00 00 00 00 CC [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:05]Read from MH i2c: E2 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 03 00 [11:20:05]MH_I2C_Read... [11:20:05]Read from MH i2c: E2 03 00 3C 17 00 90 00 C7 [11:20:05]RAPDU: 90 00 [11:20:05]wFMCommunicate OK [11:20:05]wFMCommunicate request_size=255 [11:20:05]MH_SAM_APDU [11:20: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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 68 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 69 09 00 00 35 04 06 00 89 58 C1 CF [11:20:05]Write to MH i2c: E2 02 01 3D 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 68 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 69 09 00 00 35 04 06 00 89 58 C1 CF 00 00 EC [11:20:05]Write i2c OK [11:20:05]MH_I2C_Read... [11:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:06]Read from MH i2c: E2 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 03 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 03 00 3D 17 00 90 00 C8 [11:20:06]RAPDU: 90 00 [11:20:06]wFMCommunicate OK [11:20:06]wFMCommunicate request_size=7 [11:20:06]MH_SAM_APDU [11:20:06]CAPDU: 80 0D 02 02 02 4D 06 [11:20:06]Write to MH i2c: E2 0A 00 3E 17 80 0D 02 02 02 00 4D 06 00 00 26 [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:06]Read from MH i2c: E2 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 03 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 03 00 3E 17 00 90 00 C9 [11:20:06]RAPDU: 90 00 [11:20:06]wFMCommunicate OK [11:20:06]wFMCommunicate request_size=4 [11:20:06]MH_SAM_APDU [11:20:06]CAPDU: 80 0D 03 02 [11:20:06]Write to MH i2c: E2 08 00 3F 17 80 0D 03 02 00 00 00 00 D1 [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:06]Read from MH i2c: E2 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 0B 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 0B 00 3F 17 00 09 B3 25 7E B7 D0 19 94 90 00 65 [11:20:06]RAPDU: 09 B3 25 7E B7 D0 19 94 90 00 [11:20:06]wFMCommunicate OK [11:20:06]SAM_PROTO_SignData done [11:20:06]FM_MakeSignedData done [11:20:06]CreateOFDProtocolMessage [11:20:06]wFMCommunicate request_size=4 [11:20:06]MH_SAM_APDU [11:20:06]CAPDU: 80 11 00 00 [11:20:06]Write to MH i2c: E2 08 00 40 17 80 11 00 00 00 00 00 00 D1 [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:06]Read from MH i2c: E2 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 17 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: E2 17 00 40 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 19 [11:20:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:20:06]wFMCommunicate OK [11:20:06]CreateOFDProtocolMessage done [11:20:06]OFDSenderStorePacket 2409 [11:20:06]StoreOFDPacket docnum=2409 [11:20:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 F3 1F 04 01 89 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 68 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 69 09 00 00 35 04 06 00 89 58 C1 CF 4D 06 09 B3 25 7E B7 D0 19 94 [11:20:06]CheckFolder [11:20:06]dirname=/storage/ofd_packets [11:20:06]CheckFolder done [11:20:06]ProducePacketName [11:20:06]name=ofd_packets/00002409 [11:20:06]NVStorageSaveData ofd_packets/00002409 [11:20:06]File name is /storage/ofd_packets/00002409 [11:20:06]Write 298 bytes [11:20:06]NVStorageSaveData done [11:20:06]OFDSenderStorePacket done [11:20:06]KKMCreateOFDPacket done [11:20:06]NVStorageSaveData kkm_last_timestamp [11:20:06]File name is /storage/kkm_last_timestamp [11:20:06]Write 4 bytes [11:20:06]NVStorageSaveData done [11:20:06]ExternCall_PrintAddStr [11:20:06]wPrintStart [11:20:06]Write to MH i2c: 01 00 00 41 17 58 [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: 01 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: 01 07 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: 01 07 00 41 17 00 00 00 00 00 FF 0F 6D [11:20:06]RasterBufferAndPrint [11:20:06]line Счет N : (1)475329 [11:20:06]line ИÐÐ: 02508201610067 [11:20:06]line Контрольно-КаÑÑовый Чек [11:20:06]line ПРОДÐЖР[11:20:06]line ТРК (МРК, ГÐК) : 24 [11:20:06]line Товар: 2710194210 [11:20:06]line ДТ-К-5 [11:20:06]line 13.130 * 76.20 [11:20:06]line = 1000.51 [11:20:06]line ÐДС 12% ÐСП 1% [11:20:06]line > о реализуемом товаре [11:20:06]line ИТОГО: 1000.51 [11:20:06]line ÐСП 1% : 8.85 [11:20:06]line ÐДС 12% : 106.25 [11:20:06]line Ðаличными: 0.00 [11:20:06]line Безнал.: 1000.51 [11:20:06]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:20:06]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:20:06]line СÐО: Общий режим [11:20:06]line Чек 34 18.10.2024 11:20 [11:20:06]line Смена: 22 ФФД: 1.0 [11:20:06]line ЗÐМ: 0300000191 [11:20:06]line РÐМ: 0000000000207295 [11:20:06]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:20:06]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [11:20:06]line ФМ: 0000000002342820 [11:20:06]line ФД: 2409 [11:20:06]line ФПД: 151014301715718 [11:20:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112008&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2409&fm=151014301715718&tin=02508201610067®Number=0000000000207295&sum=100051 [11:20:06]OFD Sender: Processing packet 2409 [packets to send 1, broken 0] [11:20:06]ProducePacketName [11:20:06]name=ofd_packets/00002409 [11:20:06]OFD Sender: To server: ‡•öpG, [11:20:06]CommunicateWithHost lk.salyk.kg:30040 [11:20:06]ConnectInit lk.salyk.kg [11:20:06]written 0, free lines is 4095 [11:20:06]Connected sock=10 [11:20:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 F3 1F 04 01 89 FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 68 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 69 09 00 00 35 04 06 00 89 58 C1 CF 4D 06 09 B3 25 7E B7 D0 19 94 [11:20:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 ED 6D 47 00 83 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 69 09 00 00 F4 03 04 00 CC EF 11 67 B6 04 01 00 00 70 50 1D CA D2 A1 54 A9 [11:20:06]CommunicateWithHost err = 0 [11:20:06]CheckOFDResponse [11:20:06]1017 (14) - 77093643461234 [11:20:06]1041 (16) - 0000000002342820 [11:20:06]1040 (4) - 2409 [11:20:06]1012 (4) - 18.10.2024 05:19 [11:20:06]1206 (1) - 0 [11:20:06]OFD Sender: Remove packet 2409 [11:20:06]ProducePacketName [11:20:06]name=ofd_packets/00002409 [11:20:06]NVStorageDeleteData [11:20:06]Write to MH i2c: 01 00 00 6A 17 81 [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: 01 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: 01 07 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: 01 07 00 6A 17 00 00 00 00 00 C4 0C 58 [11:20:06]RasterBufferAndPrint [11:20:06]line [11:20:06]line [11:20:06]line [11:20:06]line [11:20:06]line [11:20:06]written 0, free lines is 3271 [11:20:06]MH_Cut [11:20:06]Write to MH i2c: D1 01 00 71 17 01 5A [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: D1 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: D1 01 00 [11:20:06]MH_I2C_Read... [11:20:06]Read from MH i2c: D1 01 00 71 17 00 59 [11:20:06]Write to MH i2c: 01 00 00 72 17 89 [11:20:06]Write i2c OK [11:20:06]MH_I2C_Read... [11:20:07]OFD Sender: No OFD packet to send [11:20:07]*** Cut start [11:20:07]*** Partial cut [11:20:07]*** CUTSNS_PIN = 1 [11:20:07]*** CUTSNS_PIN = 0 [11:20:08]*** Brake cut motor [11:20:08]Read from MH i2c: 01 [11:20:08]MH_I2C_Read... [11:20:08]*** Stop cut motor [11:20:08]*** Cut end [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 72 17 00 00 00 00 00 FF 0F 9E [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 73 17 80 11 00 00 00 00 00 00 04 [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 73 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 4C [11:20:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 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 74 17 80 13 00 00 00 00 00 00 07 [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 74 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 69 09 00 00 0E 04 04 00 16 00 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 0B [11:20:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 69 09 00 00 0E 04 04 00 16 00 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 [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 75 17 80 13 01 00 00 00 00 00 09 [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 75 17 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A7 [11:20:08]RAPDU: 09 00 01 75 A5 11 67 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":"0000000002342820","fd.num":2409,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [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":"0000000002342820","fd.num":2409,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [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 7.Close socket [11:20:08]Sock 7.Thread stoped [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:32]OFD Sender: No OFD packet to send [11:20:37]OFD Sender: No OFD packet to send [11:20:42]OFD Sender: No OFD packet to send [11:20:47]OFD Sender: No OFD packet to send [11:20:52]OFD Sender: No OFD packet to send [11:20:57]OFD Sender: No OFD packet to send [11:21:02]OFD Sender: No OFD packet to send [11:21:07]OFD Sender: No OFD packet to send [11:21:12]OFD Sender: No OFD packet to send [11:21:17]OFD Sender: No OFD packet to send [11:21:22]OFD Sender: No OFD packet to send [11:21:27]OFD Sender: No OFD packet to send [11:21:32]OFD Sender: No OFD packet to send [11:21:37]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:52]accept exits with 9 [11:21:52]New connection [11:21:52]New thread 3066850660 created [11:21:52]Thread 3066707300 joined [11:21:52]Waiting for new connection... [11:21:52] Sock 9.Parse request [11:21:52]Sock 9.Check first char [11:21:52]Sock 9.First char is OK [11:21:52]request: POST /json_proto HTTP/1.0 [11:21:52]Method: POST [11:21:52]URL: /json_proto [11:21:52]Method is POST - this is cgi request [11:21:52]url: /json_proto [11:21:52]query_string will be loaded in cgi processing [11:21:52]execute_cgi json_proto POST (null) [11:21:52]execute_cgi path=json_proto method=POST [11:21:52]POST find Content-Length [11:21:52]Host: 172.17.52.132:8080 [11:21:52]Content-Length: 708 [11:21:52]Content-Type: application/json [11:21:52] [11:21:52]POST finish read [11:21:52]Found Content-Length = 708 [11:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99835", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:52]execute_script... [11:21: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 : (3)99835", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:21:52]POST & json_proto [11:21:52]process_json_proto [11:21:52]json parsed OK: [11:21:52]protocol is kg_v1.0 [11:21:52]action value=close_receipt [11:21:52]process_action close_receipt [11:21:52]cmd_close_receipt [11:21:52]MH_GetDate [11:21:52]Write to MH i2c: F0 00 00 76 17 7C [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: F0 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: F0 09 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: F0 09 00 76 17 00 D4 44 12 67 5A BE F6 66 8A [11:21:52]GetLastDocTimeStamp 1729250408 [11:21:52]current date 1729250516 [11:21:52]FM_GetShiftState [11:21:52]SAM_PROTO_GetShiftState [11:21:52]wFMCommunicate request_size=4 [11:21:52]MH_SAM_APDU [11:21:52]CAPDU: 80 13 01 00 [11:21:52]Write to MH i2c: E2 08 00 77 17 80 13 01 00 00 00 00 00 0B [11:21:52]Write i2c OK [11:21:52]MH_I2C_Read... [11:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:52]Read from MH i2c: E2 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 0E 00 [11:21:52]MH_I2C_Read... [11:21:52]Read from MH i2c: E2 0E 00 77 17 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A9 [11:21:52]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:21:52]wFMCommunicate OK [11:21:52]SAM_PROTO_GetShiftState done [11:21:52]FM_GetShiftState done [11:21:52]opened in 1729209717 [11:21:52]opened+sec_in_day 1729296117 [11:21:52]quantity*price = 7500 [11:21:52]sum+1 = 7501 [11:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 ÐСП 1% : 0.66 ÐДС 12% : 7.96 Ðаличными: 75.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 35 18.10.2024 11:21 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2410 ФПД: 71092025518244 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112156&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2410&fm=71092025518244&tin=02508201610067®Number=0000000000207295&sum=7500 0 [11:21:54]StoreToDocumentArchive [11:21:54]shift 22 fd 2410 [11:21:54]save to /storage/0022/doc_00002410 [11:21:54]save last doc name /storage/0022/doc_00002410 to /storage/kkm_last_doc_name [11:21:54]save OK [11:21:54]Clear old archive folders... [11:21:54]ProcessDocumentItem done err = 0, tmpTLVsize=304 [11:21:54]tlvbuf is B6E8F8A0 [11:21:54]SAM_PROTO_ClearQueue [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 09 00 00 [11:21:54]Write to MH i2c: E2 08 00 84 17 80 09 00 00 00 00 00 00 0D [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 03 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 03 00 84 17 00 90 00 0F [11:21:54]RAPDU: 90 00 [11:21:54]wFMCommunicate OK [11:21:54]SAM_PROTO_ClearQueue done [11:21:54]KKMCreateOFDPacket [11:21:54]OFDProtocolAddRootSTLVToBuf [11:21:54]FM_MakeSignedData [11:21:54]FM_MakeSignedData [11:21:54]SAM_PROTO_SignData [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 0D 01 02 [11:21:54]Write to MH i2c: E2 08 00 85 17 80 0D 01 02 00 00 00 00 15 [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 03 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 03 00 85 17 00 90 00 10 [11:21:54]RAPDU: 90 00 [11:21:54]wFMCommunicate OK [11:21:54]wFMCommunicate request_size=255 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 D4 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 [11:21:54]Write to MH i2c: E2 02 01 86 17 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 D4 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 00 00 A3 [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 03 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 03 00 86 17 00 90 00 11 [11:21:54]RAPDU: 90 00 [11:21:54]wFMCommunicate OK [11:21:54]wFMCommunicate request_size=63 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6A 09 00 00 35 04 06 00 40 A8 66 ED 68 A4 [11:21:54]Write to MH i2c: E2 42 00 87 17 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6A 09 00 00 35 04 06 00 40 A8 66 ED 68 A4 00 00 11 [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 03 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 03 00 87 17 00 90 00 12 [11:21:54]RAPDU: 90 00 [11:21:54]wFMCommunicate OK [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 0D 03 02 [11:21:54]Write to MH i2c: E2 08 00 88 17 80 0D 03 02 00 00 00 00 1A [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 0B 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 0B 00 88 17 00 59 64 A3 47 DA 9E 8A A2 90 00 66 [11:21:54]RAPDU: 59 64 A3 47 DA 9E 8A A2 90 00 [11:21:54]wFMCommunicate OK [11:21:54]SAM_PROTO_SignData done [11:21:54]FM_MakeSignedData done [11:21:54]CreateOFDProtocolMessage [11:21:54]wFMCommunicate request_size=4 [11:21:54]MH_SAM_APDU [11:21:54]CAPDU: 80 11 00 00 [11:21:54]Write to MH i2c: E2 08 00 89 17 80 11 00 00 00 00 00 00 1A [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:54]Read from MH i2c: E2 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 17 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: E2 17 00 89 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 62 [11:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:21:54]wFMCommunicate OK [11:21:54]CreateOFDProtocolMessage done [11:21:54]OFDSenderStorePacket 2410 [11:21:54]StoreOFDPacket docnum=2410 [11:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 44 01 00 00 44 23 3C 01 F9 F9 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 D4 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6A 09 00 00 35 04 06 00 40 A8 66 ED 68 A4 59 64 A3 47 DA 9E 8A A2 [11:21:54]CheckFolder [11:21:54]dirname=/storage/ofd_packets [11:21:54]CheckFolder done [11:21:54]ProducePacketName [11:21:54]name=ofd_packets/00002410 [11:21:54]NVStorageSaveData ofd_packets/00002410 [11:21:54]File name is /storage/ofd_packets/00002410 [11:21:54]Write 354 bytes [11:21:54]NVStorageSaveData done [11:21:54]OFDSenderStorePacket done [11:21:54]KKMCreateOFDPacket done [11:21:54]NVStorageSaveData kkm_last_timestamp [11:21:54]File name is /storage/kkm_last_timestamp [11:21:54]Write 4 bytes [11:21:54]NVStorageSaveData done [11:21:54]ExternCall_PrintAddStr [11:21:54]wPrintStart [11:21:54]Write to MH i2c: 01 00 00 8A 17 A1 [11:21:54]Write i2c OK [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: 01 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: 01 07 00 [11:21:54]MH_I2C_Read... [11:21:54]Read from MH i2c: 01 07 00 8A 17 00 00 00 00 00 FF 0F B6 [11:21:54]RasterBufferAndPrint [11:21:54]line Счет N : (3)99835 [11:21:54]line ИÐÐ: 02508201610067 [11:21:54]line Контрольно-КаÑÑовый Чек [11:21:54]line ПРОДÐЖР[11:21:54]line Товар: 4870112003956 [11:21:54]line Шок батончик ALBENI SUPER Ðльбени Супер [11:21:54]line 1.000 * 75.00 [11:21:54]line = 75.00 [11:21:54]line ÐДС 12% ÐСП 1% [11:21:54]line > о реализуемом товаре [11:21:54]line ИТОГО: 75.00 [11:21:54]line ÐСП 1% : 0.66 [11:21:54]line ÐДС 12% : 7.96 [11:21:54]line Ðаличными: 75.00 [11:21:54]line Безнал.: 0.00 [11:21:54]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:21:54]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:21:54]line СÐО: Общий режим [11:21:54]line Чек 35 18.10.2024 11:21 [11:21:54]line Смена: 22 ФФД: 1.0 [11:21:54]line ЗÐМ: 0300000191 [11:21:54]line РÐМ: 0000000000207295 [11:21:54]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:21:54]line ФМ: 0000000002342820 [11:21:54]line ФД: 2410 [11:21:54]line ФПД: 71092025518244 [11:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112156&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2410&fm=71092025518244&tin=02508201610067®Number=0000000000207295&sum=7500 [11:21:54]line 0 [11:21:54]OFD Sender: Processing packet 2410 [packets to send 1, broken 0] [11:21:54]ProducePacketName [11:21:54]name=ofd_packets/00002410 [11:21:54]OFD Sender: To server: ‡•öpG, [11:21:54]CommunicateWithHost lk.salyk.kg:30040 [11:21:54]ConnectInit lk.salyk.kg [11:21:54]written 0, free lines is 4095 [11:21:55]Connected sock=10 [11:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 44 01 00 00 44 23 3C 01 F9 F9 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 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 D4 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6A 09 00 00 35 04 06 00 40 A8 66 ED 68 A4 59 64 A3 47 DA 9E 8A A2 [11:21:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CF 3B 47 00 B1 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 32 33 34 32 38 32 30 10 04 04 00 6A 09 00 00 F4 03 04 00 39 F0 11 67 B6 04 01 00 00 CB ED 11 9D AA C5 BA 54 [11:21:55]CommunicateWithHost err = 0 [11:21:55]CheckOFDResponse [11:21:55]1017 (14) - 77093643461234 [11:21:55]1041 (16) - 0000000002342820 [11:21:55]1040 (4) - 2410 [11:21:55]1012 (4) - 18.10.2024 05:20 [11:21:55]1206 (1) - 0 [11:21:55]OFD Sender: Remove packet 2410 [11:21:55]ProducePacketName [11:21:55]name=ofd_packets/00002410 [11:21:55]NVStorageDeleteData [11:21:55]Write to MH i2c: 01 00 00 B3 17 CA [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: 01 07 00 B3 17 00 00 00 00 00 C5 0C A2 [11:21:55]RasterBufferAndPrint [11:21:55]line [11:21:55]line [11:21:55]line [11:21:55]line [11:21:55]line [11:21:55]written 0, free lines is 3273 [11:21:55]MH_Cut [11:21:55]Write to MH i2c: D1 01 00 BA 17 01 A3 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: D1 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: D1 01 00 [11:21:55]MH_I2C_Read... [11:21:55]Read from MH i2c: D1 01 00 BA 17 00 A2 [11:21:55]Write to MH i2c: 01 00 00 BB 17 D2 [11:21:55]Write i2c OK [11:21:55]MH_I2C_Read... [11:21:55]OFD Sender: No OFD packet to send [11:21:56]*** Cut start [11:21:56]*** Partial cut [11:21:56]*** CUTSNS_PIN = 1 [11:21:56]*** CUTSNS_PIN = 0 [11:21:56]*** Brake cut motor [11:21:56]Read from MH i2c: 01 [11:21:56]MH_I2C_Read... [11:21:56]*** Stop cut motor [11:21:56]*** Cut end [11:21:56]Read from MH i2c: 01 07 00 [11:21:56]MH_I2C_Read... [11:21:56]Read from MH i2c: 01 07 00 BB 17 00 00 00 00 00 FF 0F E7 [11:21:56]process_action close_receipt done [11:21:56]requested_data is exist [11:21:56]produce_requested_data [11:21:56]requested_item fm.sn is exist - process it [11:21:56]wFMCommunicate request_size=4 [11:21:56]MH_SAM_APDU [11:21:56]CAPDU: 80 11 00 00 [11:21:56]Write to MH i2c: E2 08 00 BC 17 80 11 00 00 00 00 00 00 4D [11:21:56]Write i2c OK [11:21:56]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 17 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 17 00 BC 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 95 [11:21:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:21:57]wFMCommunicate OK [11:21:57]requested_item fd.num is exist - process it [11:21:57]SAM_PROTO_GetFieldsCounters [11:21:57]wFMCommunicate request_size=4 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 13 00 00 [11:21:57]Write to MH i2c: E2 08 00 BD 17 80 13 00 00 00 00 00 00 50 [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 62 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 62 00 BD 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6A 09 00 00 0E 04 04 00 16 00 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 58 [11:21:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6A 09 00 00 0E 04 04 00 16 00 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 [11:21:57]wFMCommunicate OK [11:21:57]SAM_PROTO_GetFieldsCounters done [11:21:57]requested_item shift.num is exist - process it [11:21:57]requested_item shift.opened is exist - process it [11:21:57]req_shift_opened [11:21:57]FM_GetShiftState [11:21:57]SAM_PROTO_GetShiftState [11:21:57]wFMCommunicate request_size=4 [11:21:57]MH_SAM_APDU [11:21:57]CAPDU: 80 13 01 00 [11:21:57]Write to MH i2c: E2 08 00 BE 17 80 13 01 00 00 00 00 00 52 [11:21:57]Write i2c OK [11:21:57]MH_I2C_Read... [11:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:21:57]Read from MH i2c: E2 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 0E 00 [11:21:57]MH_I2C_Read... [11:21:57]Read from MH i2c: E2 0E 00 BE 17 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 F0 [11:21:57]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:21:57]wFMCommunicate OK [11:21:57]SAM_PROTO_GetShiftState done [11:21:57]FM_GetShiftState done [11:21:57]req_shift_opened done [11:21:57]requested_item shift.open_date is exist - process it [11:21:57]req_shift_open_date [11:21:57]req_shift_open_date done [11:21:57]produce_requested_data done [11:21:57]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2410,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:21:57]process_action_free close_receipt [11:21:57]json_value_free [11:21:57]json_value_free done [11:21:57]process_json_proto returns [11:21:57]Send response to host [11:21:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2410,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:21:57]free response buf [11:21:57]execute_script done [11:21:57]execute_script returns [11:21:57]free content buf [11:21:57]Sock 9.Close socket [11:21:57]Sock 9.Thread stoped [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:35]accept exits with 7 [11:22:35]New connection [11:22:35]New thread 3066707300 created [11:22:35]Thread 3066850660 joined [11:22:35]Waiting for new connection... [11:22:35] Sock 7.Parse request [11:22:35]Sock 7.Check first char [11:22:35]Sock 7.First char is OK [11:22:35]request: POST /json_proto HTTP/1.0 [11:22:35]Method: POST [11:22:35]URL: /json_proto [11:22:35]Method is POST - this is cgi request [11:22:35]url: /json_proto [11:22:35]query_string will be loaded in cgi processing [11:22:35]execute_cgi json_proto POST (null) [11:22:35]execute_cgi path=json_proto method=POST [11:22:35]POST find Content-Length [11:22:35]Host: 172.17.52.132:8080 [11:22:35]Content-Length: 675 [11:22:35]Content-Type: application/json [11:22:35] [11:22:35]POST finish read [11:22:35]Found Content-Length = 675 [11:22:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.140, "sum" : 925.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 925.00, "total" : 925.00, "payments": [ { "type": 0, "sum" : 925.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:35]execute_script... [11:22: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)475330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 12.140, "sum" : 925.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 925.00, "total" : 925.00, "payments": [ { "type": 0, "sum" : 925.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:22:35]POST & json_proto [11:22:35]process_json_proto [11:22:35]json parsed OK: [11:22:35]protocol is kg_v1.0 [11:22:35]action value=close_receipt [11:22:35]process_action close_receipt [11:22:35]cmd_close_receipt [11:22:35]MH_GetDate [11:22:35]Write to MH i2c: F0 00 00 BF 17 C5 [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: F0 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: F0 09 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: F0 09 00 BF 17 00 FF 44 12 67 5A BE F6 66 FE [11:22:35]GetLastDocTimeStamp 1729250516 [11:22:35]current date 1729250559 [11:22:35]FM_GetShiftState [11:22:35]SAM_PROTO_GetShiftState [11:22:35]wFMCommunicate request_size=4 [11:22:35]MH_SAM_APDU [11:22:35]CAPDU: 80 13 01 00 [11:22:35]Write to MH i2c: E2 08 00 C0 17 80 13 01 00 00 00 00 00 54 [11:22:35]Write i2c OK [11:22:35]MH_I2C_Read... [11:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:35]Read from MH i2c: E2 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 0E 00 [11:22:35]MH_I2C_Read... [11:22:35]Read from MH i2c: E2 0E 00 C0 17 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 F2 [11:22:35]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:22:35]wFMCommunicate OK [11:22:35]SAM_PROTO_GetShiftState done [11:22:35]FM_GetShiftState done [11:22:35]opened in 1729209717 [11:22:35]opened+sec_in_day 1729296117 [11:22:35]quantity*price = 92506 [11:22:35]sum+1 = 92508 [11:22:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.07 ИТОГО: 925.00 ВнеÑено: 925.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.19 ÐДС 12% : 98.24 Ðаличными: 925.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 36 18.10.2024 11:22 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2411 ФПД: 101337443773737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112239&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2411&fm=101337443773737&tin=02508201610067®Number=0000000000207295&sum=92500 [11:22:37]StoreToDocumentArchive [11:22:37]shift 22 fd 2411 [11:22:37]save to /storage/0022/doc_00002411 [11:22:37]save last doc name /storage/0022/doc_00002411 to /storage/kkm_last_doc_name [11:22:37]save OK [11:22:37]Clear old archive folders... [11:22:37]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:22:37]tlvbuf is 013E0BF0 [11:22:37]SAM_PROTO_ClearQueue [11:22:37]wFMCommunicate request_size=4 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 09 00 00 [11:22:37]Write to MH i2c: E2 08 00 CD 17 80 09 00 00 00 00 00 00 56 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 CD 17 00 90 00 58 [11:22:37]RAPDU: 90 00 [11:22:37]wFMCommunicate OK [11:22:37]SAM_PROTO_ClearQueue done [11:22:37]KKMCreateOFDPacket [11:22:37]OFDProtocolAddRootSTLVToBuf [11:22:37]FM_MakeSignedData [11:22:37]FM_MakeSignedData [11:22:37]SAM_PROTO_SignData [11:22:37]wFMCommunicate request_size=4 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 0D 01 02 [11:22:37]Write to MH i2c: E2 08 00 CE 17 80 0D 01 02 00 00 00 00 5E [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [11:22:37]RAPDU: 90 00 [11:22:37]wFMCommunicate OK [11:22:37]wFMCommunicate request_size=255 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 69 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 69 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 26 00 00 00 00 07 04 06 00 54 69 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 FF 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6B 09 00 00 35 04 06 00 5C 2A 76 56 [11:22:37]Write to MH i2c: E2 02 01 CF 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 2F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 69 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 69 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 26 00 00 00 00 07 04 06 00 54 69 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 FF 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6B 09 00 00 35 04 06 00 5C 2A 76 56 00 00 E5 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 CF 17 00 90 00 5A [11:22:37]RAPDU: 90 00 [11:22:37]wFMCommunicate OK [11:22:37]wFMCommunicate request_size=7 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 0D 02 02 02 AD 29 [11:22:37]Write to MH i2c: E2 0A 00 D0 17 80 0D 02 02 02 00 AD 29 00 00 3B [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 03 00 D0 17 00 90 00 5B [11:22:37]RAPDU: 90 00 [11:22:37]wFMCommunicate OK [11:22:37]wFMCommunicate request_size=4 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 0D 03 02 [11:22:37]Write to MH i2c: E2 08 00 D1 17 80 0D 03 02 00 00 00 00 63 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 0B 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 0B 00 D1 17 00 74 17 4B AD 28 CB D5 FC 90 00 AB [11:22:37]RAPDU: 74 17 4B AD 28 CB D5 FC 90 00 [11:22:37]wFMCommunicate OK [11:22:37]SAM_PROTO_SignData done [11:22:37]FM_MakeSignedData done [11:22:37]CreateOFDProtocolMessage [11:22:37]wFMCommunicate request_size=4 [11:22:37]MH_SAM_APDU [11:22:37]CAPDU: 80 11 00 00 [11:22:37]Write to MH i2c: E2 08 00 D2 17 80 11 00 00 00 00 00 00 63 [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:37]Read from MH i2c: E2 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 17 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: E2 17 00 D2 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 AB [11:22:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:22:37]wFMCommunicate OK [11:22:37]CreateOFDProtocolMessage done [11:22:37]OFDSenderStorePacket 2411 [11:22:37]StoreOFDPacket docnum=2411 [11:22:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 5C 32 04 01 4C 0C 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 6C 2F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 69 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 69 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 26 00 00 00 00 07 04 06 00 54 69 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 FF 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6B 09 00 00 35 04 06 00 5C 2A 76 56 AD 29 74 17 4B AD 28 CB D5 FC [11:22:37]CheckFolder [11:22:37]dirname=/storage/ofd_packets [11:22:37]CheckFolder done [11:22:37]ProducePacketName [11:22:37]name=ofd_packets/00002411 [11:22:37]NVStorageSaveData ofd_packets/00002411 [11:22:37]File name is /storage/ofd_packets/00002411 [11:22:37]Write 298 bytes [11:22:37]NVStorageSaveData done [11:22:37]OFDSenderStorePacket done [11:22:37]KKMCreateOFDPacket done [11:22:37]NVStorageSaveData kkm_last_timestamp [11:22:37]File name is /storage/kkm_last_timestamp [11:22:37]Write 4 bytes [11:22:37]NVStorageSaveData done [11:22:37]ExternCall_PrintAddStr [11:22:37]wPrintStart [11:22:37]Write to MH i2c: 01 00 00 D3 17 EA [11:22:37]Write i2c OK [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: 01 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: 01 07 00 [11:22:37]MH_I2C_Read... [11:22:37]Read from MH i2c: 01 07 00 D3 17 00 00 00 00 00 FF 0F FF [11:22:37]RasterBufferAndPrint [11:22:37]line Счет N : (1)475330 [11:22:37]line ИÐÐ: 02508201610067 [11:22:37]line Контрольно-КаÑÑовый Чек [11:22:37]line ПРОДÐЖР[11:22:37]line ТРК (МРК, ГÐК) : 24 [11:22:37]line Товар: 2710194210 [11:22:37]line ДТ-К-5 [11:22:37]line 12.140 * 76.20 [11:22:37]line = 925.07 [11:22:37]line ÐДС 12% ÐСП 1% [11:22:37]line > о реализуемом товаре [11:22:37]line ОКРУГЛЕÐИЕ: -0.07 [11:22:37]line ИТОГО: 925.00 [11:22:37]line ВнеÑено: 925.00 [11:22:37]line СДÐЧÐ: 0.00 [11:22:37]line ÐСП 1% : 8.19 [11:22:37]line ÐДС 12% : 98.24 [11:22:37]line Ðаличными: 925.00 [11:22:37]line Безнал.: 0.00 [11:22:37]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:22:37]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:22:37]line СÐО: Общий режим [11:22:37]line Чек 36 18.10.2024 11:22 [11:22:37]line Смена: 22 ФФД: 1.0 [11:22:37]line ЗÐМ: 0300000191 [11:22:37]line РÐМ: 0000000000207295 [11:22:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:22:37]line ФМ: 0000000002342820 [11:22:37]line ФД: 2411 [11:22:37]line ФПД: 101337443773737 [11:22:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112239&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2411&fm=101337443773737&tin=02508201610067®Number=0000000000207295&sum=92500 [11:22:37]OFD Sender: Processing packet 2411 [packets to send 1, broken 0] [11:22:37]ProducePacketName [11:22:37]name=ofd_packets/00002411 [11:22:37]OFD Sender: To server: ‡•öpG, [11:22:37]CommunicateWithHost lk.salyk.kg:30040 [11:22:37]ConnectInit lk.salyk.kg [11:22:37]written 0, free lines is 4095 [11:22:38]Connected sock=10 [11:22:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 5C 32 04 01 4C 0C 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 6C 2F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 5B 69 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 69 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 60 26 00 00 00 00 07 04 06 00 54 69 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 FF 44 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6B 09 00 00 35 04 06 00 5C 2A 76 56 AD 29 74 17 4B AD 28 CB D5 FC [11:22:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 04 AC 47 00 AA 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 32 33 34 32 38 32 30 10 04 04 00 6B 09 00 00 F4 03 04 00 63 F0 11 67 B6 04 01 00 00 E7 5B 3B BF 4E 5B 8A 4E [11:22:38]CommunicateWithHost err = 0 [11:22:38]CheckOFDResponse [11:22:38]1017 (14) - 77093643461234 [11:22:38]1041 (16) - 0000000002342820 [11:22:38]1040 (4) - 2411 [11:22:38]1012 (4) - 18.10.2024 05:21 [11:22:38]1206 (1) - 0 [11:22:38]OFD Sender: Remove packet 2411 [11:22:38]ProducePacketName [11:22:38]name=ofd_packets/00002411 [11:22:38]NVStorageDeleteData [11:22:38]Write to MH i2c: 01 00 00 FE 17 15 [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: 01 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: 01 07 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: 01 07 00 FE 17 00 00 00 00 00 A5 0C CD [11:22:38]RasterBufferAndPrint [11:22:38]line [11:22:38]line [11:22:38]line [11:22:38]line [11:22:38]line [11:22:38]written 0, free lines is 3241 [11:22:38]MH_Cut [11:22:38]Write to MH i2c: D1 01 00 05 18 01 EF [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: D1 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: D1 01 00 [11:22:38]MH_I2C_Read... [11:22:38]Read from MH i2c: D1 01 00 05 18 00 EE [11:22:38]Write to MH i2c: 01 00 00 06 18 1E [11:22:38]Write i2c OK [11:22:38]MH_I2C_Read... [11:22:38]OFD Sender: No OFD packet to send [11:22:39]*** Cut start [11:22:39]*** Partial cut [11:22:39]*** CUTSNS_PIN = 1 [11:22:39]*** CUTSNS_PIN = 0 [11:22:39]*** Brake cut motor [11:22:39]Read from MH i2c: 01 [11:22:40]MH_I2C_Read... [11:22:40]*** Stop cut motor [11:22:40]*** Cut end [11:22:40]Read from MH i2c: 01 07 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: 01 07 00 06 18 00 00 00 00 00 FF 0F 33 [11:22:40]process_action close_receipt done [11:22:40]requested_data is exist [11:22:40]produce_requested_data [11:22:40]requested_item fm.sn is exist - process it [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 11 00 00 [11:22:40]Write to MH i2c: E2 08 00 07 18 80 11 00 00 00 00 00 00 99 [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 17 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 17 00 07 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E1 [11:22:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:22:40]wFMCommunicate OK [11:22:40]requested_item fd.num is exist - process it [11:22:40]SAM_PROTO_GetFieldsCounters [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 13 00 00 [11:22:40]Write to MH i2c: E2 08 00 08 18 80 13 00 00 00 00 00 00 9C [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 62 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 62 00 08 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6B 09 00 00 0E 04 04 00 16 00 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 A8 [11:22:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6B 09 00 00 0E 04 04 00 16 00 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 [11:22:40]wFMCommunicate OK [11:22:40]SAM_PROTO_GetFieldsCounters done [11:22:40]requested_item shift.num is exist - process it [11:22:40]requested_item shift.opened is exist - process it [11:22:40]req_shift_opened [11:22:40]FM_GetShiftState [11:22:40]SAM_PROTO_GetShiftState [11:22:40]wFMCommunicate request_size=4 [11:22:40]MH_SAM_APDU [11:22:40]CAPDU: 80 13 01 00 [11:22:40]Write to MH i2c: E2 08 00 09 18 80 13 01 00 00 00 00 00 9E [11:22:40]Write i2c OK [11:22:40]MH_I2C_Read... [11:22:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:22:40]Read from MH i2c: E2 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 0E 00 [11:22:40]MH_I2C_Read... [11:22:40]Read from MH i2c: E2 0E 00 09 18 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 3C [11:22:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:22:40]wFMCommunicate OK [11:22:40]SAM_PROTO_GetShiftState done [11:22:40]FM_GetShiftState done [11:22:40]req_shift_opened done [11:22:40]requested_item shift.open_date is exist - process it [11:22:40]req_shift_open_date [11:22:40]req_shift_open_date done [11:22:40]produce_requested_data done [11:22:40]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2411,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:22:40]process_action_free close_receipt [11:22:40]json_value_free [11:22:40]json_value_free done [11:22:40]process_json_proto returns [11:22:40]Send response to host [11:22:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2411,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:22:40]free response buf [11:22:40]execute_script done [11:22:40]execute_script returns [11:22:40]free content buf [11:22:40]Sock 7.Close socket [11:22:40]Sock 7.Thread stoped [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:10]accept exits with 9 [11:24:10]New connection [11:24:10]New thread 3066850660 created [11:24:10]Thread 3066707300 joined [11:24:10]Waiting for new connection... [11:24:10] Sock 9.Parse request [11:24:10]Sock 9.Check first char [11:24:10]Sock 9.First char is OK [11:24:10]request: POST /json_proto HTTP/1.0 [11:24:10]Method: POST [11:24:10]URL: /json_proto [11:24:10]Method is POST - this is cgi request [11:24:10]url: /json_proto [11:24:10]query_string will be loaded in cgi processing [11:24:10]execute_cgi json_proto POST (null) [11:24:10]execute_cgi path=json_proto method=POST [11:24:10]POST find Content-Length [11:24:10]Host: 172.17.52.132:8080 [11:24:10]Content-Length: 902 [11:24:10]Content-Type: application/json [11:24:10] [11:24:10]POST finish read [11:24:10]Found Content-Length = 902 [11:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99836", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 218.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:10]execute_script... [11:24: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 : (3)99836", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48746526", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Wind Blue", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 218.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:10]POST & json_proto [11:24:10]process_json_proto [11:24:10]json parsed OK: [11:24:10]protocol is kg_v1.0 [11:24:10]action value=close_receipt [11:24:10]process_action close_receipt [11:24:10]cmd_close_receipt [11:24:10]MH_GetDate [11:24:10]Write to MH i2c: F0 00 00 0A 18 11 [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: F0 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: F0 09 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: F0 09 00 0A 18 00 5D 45 12 67 5A BE F6 66 A9 [11:24:10]GetLastDocTimeStamp 1729250559 [11:24:10]current date 1729250653 [11:24:10]FM_GetShiftState [11:24:10]SAM_PROTO_GetShiftState [11:24:10]wFMCommunicate request_size=4 [11:24:10]MH_SAM_APDU [11:24:10]CAPDU: 80 13 01 00 [11:24:10]Write to MH i2c: E2 08 00 0B 18 80 13 01 00 00 00 00 00 A0 [11:24:10]Write i2c OK [11:24:10]MH_I2C_Read... [11:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:10]Read from MH i2c: E2 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 0E 00 [11:24:10]MH_I2C_Read... [11:24:10]Read from MH i2c: E2 0E 00 0B 18 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 3E [11:24:10]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:24:10]wFMCommunicate OK [11:24:10]SAM_PROTO_GetShiftState done [11:24:10]FM_GetShiftState done [11:24:10]opened in 1729209717 [11:24:10]opened+sec_in_day 1729296117 [11:24:10]quantity*price = 5900 [11:24:10]sum+1 = 5901 [11:24:10]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48746526 Сигареты Mevius Wind Blue 1.000 * 159.00 = 159.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 218.00 ÐСП 1% : 1.93 ÐДС 12% : 23.14 Ðаличными: 218.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 37 18.10.2024 11:24 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2412 ФПД: 59518304157743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112414&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2412&fm=59518304157743&tin=02508201610067®Number=0000000000207295&sum=21800 0 [11:24:11]StoreToDocumentArchive [11:24:11]shift 22 fd 2412 [11:24:11]save to /storage/0022/doc_00002412 [11:24:11]save last doc name /storage/0022/doc_00002412 to /storage/kkm_last_doc_name [11:24:11]save OK [11:24:11]Clear old archive folders... [11:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=383 [11:24:11]tlvbuf is B6E8F090 [11:24:11]SAM_PROTO_ClearQueue [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 09 00 00 [11:24:11]Write to MH i2c: E2 08 00 18 18 80 09 00 00 00 00 00 00 A2 [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 03 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [11:24:11]RAPDU: 90 00 [11:24:11]wFMCommunicate OK [11:24:11]SAM_PROTO_ClearQueue done [11:24:11]KKMCreateOFDPacket [11:24:11]OFDProtocolAddRootSTLVToBuf [11:24:11]FM_MakeSignedData [11:24:11]FM_MakeSignedData [11:24:11]SAM_PROTO_SignData [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 0D 01 02 [11:24:11]Write to MH i2c: E2 08 00 19 18 80 0D 01 02 00 00 00 00 AA [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 03 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [11:24:11]RAPDU: 90 00 [11:24:11]wFMCommunicate OK [11:24:11]wFMCommunicate request_size=255 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 [11:24:11]Write to MH i2c: E2 02 01 1A 18 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 3E [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 03 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [11:24:11]RAPDU: 90 00 [11:24:11]wFMCommunicate OK [11:24:11]wFMCommunicate request_size=142 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 09 00 00 00 00 07 04 06 00 28 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 25 00 00 00 F4 03 04 00 5E 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6C 09 00 00 35 04 06 00 36 21 AF 60 80 2F [11:24:11]Write to MH i2c: E2 91 00 1B 18 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 09 00 00 00 00 07 04 06 00 28 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 25 00 00 00 F4 03 04 00 5E 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6C 09 00 00 35 04 06 00 36 21 AF 60 80 2F 00 00 52 [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 03 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 03 00 1B 18 00 90 00 A7 [11:24:11]RAPDU: 90 00 [11:24:11]wFMCommunicate OK [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 0D 03 02 [11:24:11]Write to MH i2c: E2 08 00 1C 18 80 0D 03 02 00 00 00 00 AF [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 0B 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 0B 00 1C 18 00 00 03 FA B8 62 92 76 22 90 00 F1 [11:24:11]RAPDU: 00 03 FA B8 62 92 76 22 90 00 [11:24:11]wFMCommunicate OK [11:24:11]SAM_PROTO_SignData done [11:24:11]FM_MakeSignedData done [11:24:11]CreateOFDProtocolMessage [11:24:11]wFMCommunicate request_size=4 [11:24:11]MH_SAM_APDU [11:24:11]CAPDU: 80 11 00 00 [11:24:11]Write to MH i2c: E2 08 00 1D 18 80 11 00 00 00 00 00 00 AF [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:11]Read from MH i2c: E2 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 17 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: E2 17 00 1D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F7 [11:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:24:11]wFMCommunicate OK [11:24:11]CreateOFDProtocolMessage done [11:24:11]OFDSenderStorePacket 2412 [11:24:11]StoreOFDPacket docnum=2412 [11:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 93 01 00 00 6F 31 8B 01 20 61 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 09 00 00 00 00 07 04 06 00 28 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 25 00 00 00 F4 03 04 00 5E 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6C 09 00 00 35 04 06 00 36 21 AF 60 80 2F 00 03 FA B8 62 92 76 22 [11:24:11]CheckFolder [11:24:11]dirname=/storage/ofd_packets [11:24:11]CheckFolder done [11:24:11]ProducePacketName [11:24:11]name=ofd_packets/00002412 [11:24:11]NVStorageSaveData ofd_packets/00002412 [11:24:11]File name is /storage/ofd_packets/00002412 [11:24:11]Write 433 bytes [11:24:11]NVStorageSaveData done [11:24:11]OFDSenderStorePacket done [11:24:11]KKMCreateOFDPacket done [11:24:11]NVStorageSaveData kkm_last_timestamp [11:24:11]File name is /storage/kkm_last_timestamp [11:24:11]Write 4 bytes [11:24:11]NVStorageSaveData done [11:24:11]ExternCall_PrintAddStr [11:24:11]wPrintStart [11:24:11]Write to MH i2c: 01 00 00 1E 18 36 [11:24:11]Write i2c OK [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: 01 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: 01 07 00 [11:24:11]MH_I2C_Read... [11:24:11]Read from MH i2c: 01 07 00 1E 18 00 00 00 00 00 FF 0F 4B [11:24:11]RasterBufferAndPrint [11:24:11]line Счет N : (3)99836 [11:24:11]line ИÐÐ: 02508201610067 [11:24:11]line Контрольно-КаÑÑовый Чек [11:24:11]line ПРОДÐЖР[11:24:11]line Товар: 4011100977624 [11:24:12]line Шок Батончик Баунти 55г [11:24:12]line 1.000 * 59.00 [11:24:12]line = 59.00 [11:24:12]line ÐДС 12% ÐСП 1% [11:24:12]line > о реализуемом товаре [11:24:12]line Товар: 48746526 [11:24:12]line Сигареты Mevius Wind Blue [11:24:12]line 1.000 * 159.00 [11:24:12]line = 159.00 [11:24:12]line ÐДС 12% ÐСП 1% [11:24:12]line > о реализуемом товаре [11:24:12]line ИТОГО: 218.00 [11:24:12]line ÐСП 1% : 1.93 [11:24:12]line ÐДС 12% : 23.14 [11:24:12]line Ðаличными: 218.00 [11:24:12]line Безнал.: 0.00 [11:24:12]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:24:12]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:24:12]line СÐО: Общий режим [11:24:12]line Чек 37 18.10.2024 11:24 [11:24:12]line Смена: 22 ФФД: 1.0 [11:24:12]line ЗÐМ: 0300000191 [11:24:12]line РÐМ: 0000000000207295 [11:24:12]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:24:12]line ФМ: 0000000002342820 [11:24:12]line ФД: 2412 [11:24:12]line ФПД: 59518304157743 [11:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112414&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2412&fm=59518304157743&tin=02508201610067®Number=0000000000207295&sum=21800 [11:24:12]line 0 [11:24:12]OFD Sender: Processing packet 2412 [packets to send 1, broken 0] [11:24:12]ProducePacketName [11:24:12]name=ofd_packets/00002412 [11:24:12]OFD Sender: To server: ‡•öpG, [11:24:12]CommunicateWithHost lk.salyk.kg:30040 [11:24:12]ConnectInit lk.salyk.kg [11:24:12]written 0, free lines is 4095 [11:24:12]Connected sock=10 [11:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 93 01 00 00 6F 31 8B 01 20 61 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 36 35 32 36 06 04 21 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 57 69 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 55 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 09 00 00 00 00 07 04 06 00 28 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 25 00 00 00 F4 03 04 00 5E 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6C 09 00 00 35 04 06 00 36 21 AF 60 80 2F 00 03 FA B8 62 92 76 22 [11:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 38 9C 47 00 2A 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 32 33 34 32 38 32 30 10 04 04 00 6C 09 00 00 F4 03 04 00 C2 F0 11 67 B6 04 01 00 00 46 AB F7 08 F7 A2 21 9C [11:24:12]CommunicateWithHost err = 0 [11:24:12]CheckOFDResponse [11:24:12]1017 (14) - 77093643461234 [11:24:12]1041 (16) - 0000000002342820 [11:24:12]1040 (4) - 2412 [11:24:12]1012 (4) - 18.10.2024 05:23 [11:24:12]1206 (1) - 0 [11:24:12]OFD Sender: Remove packet 2412 [11:24:12]ProducePacketName [11:24:12]name=ofd_packets/00002412 [11:24:12]NVStorageDeleteData [11:24:12]Write to MH i2c: 01 00 00 4C 18 64 [11:24:12]Write i2c OK [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: 01 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: 01 07 00 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: 01 07 00 4C 18 00 00 00 00 00 66 0C DD [11:24:12]RasterBufferAndPrint [11:24:12]line [11:24:12]line [11:24:12]line [11:24:12]line [11:24:12]line [11:24:12]written 0, free lines is 3181 [11:24:12]MH_Cut [11:24:12]Write to MH i2c: D1 01 00 53 18 01 3D [11:24:12]Write i2c OK [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: D1 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: D1 01 00 [11:24:12]MH_I2C_Read... [11:24:12]Read from MH i2c: D1 01 00 53 18 00 3C [11:24:12]Write to MH i2c: 01 00 00 54 18 6C [11:24:12]Write i2c OK [11:24:12]MH_I2C_Read... [11:24:13]OFD Sender: No OFD packet to send [11:24:13]*** Cut start [11:24:13]*** Partial cut [11:24:13]*** CUTSNS_PIN = 1 [11:24:13]*** CUTSNS_PIN = 0 [11:24:13]*** Brake cut motor [11:24:14]Read from MH i2c: 01 [11:24:14]MH_I2C_Read... [11:24:14]*** Stop cut motor [11:24:14]*** Cut end [11:24:14]Read from MH i2c: 01 07 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: 01 07 00 54 18 00 00 00 00 00 FF 0F 81 [11:24:14]process_action close_receipt done [11:24:14]requested_data is exist [11:24:14]produce_requested_data [11:24:14]requested_item fm.sn is exist - process it [11:24:14]wFMCommunicate request_size=4 [11:24:14]MH_SAM_APDU [11:24:14]CAPDU: 80 11 00 00 [11:24:14]Write to MH i2c: E2 08 00 55 18 80 11 00 00 00 00 00 00 E7 [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:14]Read from MH i2c: E2 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 17 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 17 00 55 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 2F [11:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:24:14]wFMCommunicate OK [11:24:14]requested_item fd.num is exist - process it [11:24:14]SAM_PROTO_GetFieldsCounters [11:24:14]wFMCommunicate request_size=4 [11:24:14]MH_SAM_APDU [11:24:14]CAPDU: 80 13 00 00 [11:24:14]Write to MH i2c: E2 08 00 56 18 80 13 00 00 00 00 00 00 EA [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:14]Read from MH i2c: E2 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 62 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 62 00 56 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6C 09 00 00 0E 04 04 00 16 00 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 FA [11:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6C 09 00 00 0E 04 04 00 16 00 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 [11:24:14]wFMCommunicate OK [11:24:14]SAM_PROTO_GetFieldsCounters done [11:24:14]requested_item shift.num is exist - process it [11:24:14]requested_item shift.opened is exist - process it [11:24:14]req_shift_opened [11:24:14]FM_GetShiftState [11:24:14]SAM_PROTO_GetShiftState [11:24:14]wFMCommunicate request_size=4 [11:24:14]MH_SAM_APDU [11:24:14]CAPDU: 80 13 01 00 [11:24:14]Write to MH i2c: E2 08 00 57 18 80 13 01 00 00 00 00 00 EC [11:24:14]Write i2c OK [11:24:14]MH_I2C_Read... [11:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:14]Read from MH i2c: E2 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 0E 00 [11:24:14]MH_I2C_Read... [11:24:14]Read from MH i2c: E2 0E 00 57 18 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 8A [11:24:14]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:24:14]wFMCommunicate OK [11:24:14]SAM_PROTO_GetShiftState done [11:24:14]FM_GetShiftState done [11:24:14]req_shift_opened done [11:24:14]requested_item shift.open_date is exist - process it [11:24:14]req_shift_open_date [11:24:14]req_shift_open_date done [11:24:14]produce_requested_data done [11:24:14]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2412,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:24:14]process_action_free close_receipt [11:24:14]json_value_free [11:24:14]json_value_free done [11:24:14]process_json_proto returns [11:24:14]Send response to host [11:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2412,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:24:14]free response buf [11:24:14]execute_script done [11:24:14]execute_script returns [11:24:14]free content buf [11:24:14]Sock 9.Close socket [11:24:14]Sock 9.Thread stoped [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:49]accept exits with 7 [11:24:49]New connection [11:24:49]New thread 3066707300 created [11:24:49]Thread 3066850660 joined [11:24:49]Waiting for new connection... [11:24:49] Sock 7.Parse request [11:24:49]Sock 7.Check first char [11:24:49]Sock 7.First char is OK [11:24:49]request: POST /json_proto HTTP/1.0 [11:24:49]Method: POST [11:24:49]URL: /json_proto [11:24:49]Method is POST - this is cgi request [11:24:49]url: /json_proto [11:24:49]query_string will be loaded in cgi processing [11:24:49]execute_cgi json_proto POST (null) [11:24:49]execute_cgi path=json_proto method=POST [11:24:49]POST find Content-Length [11:24:49]Host: 172.17.52.132:8080 [11:24:49]Content-Length: 627 [11:24:49]Content-Type: application/json [11:24:49] [11:24:49]POST finish read [11:24:49]Found Content-Length = 627 [11:24:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99837", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:49]execute_script... [11:24:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99837", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:49]POST & json_proto [11:24:49]process_json_proto [11:24:49]json parsed OK: [11:24:49]protocol is kg_v1.0 [11:24:49]action value=close_receipt [11:24:49]process_action close_receipt [11:24:49]cmd_close_receipt [11:24:49]MH_GetDate [11:24:49]Write to MH i2c: F0 00 00 58 18 5F [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 09 00 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: F0 09 00 58 18 00 85 45 12 67 5A BE F6 66 1F [11:24:49]GetLastDocTimeStamp 1729250654 [11:24:49]current date 1729250693 [11:24:49]FM_GetShiftState [11:24:49]SAM_PROTO_GetShiftState [11:24:49]wFMCommunicate request_size=4 [11:24:49]MH_SAM_APDU [11:24:49]CAPDU: 80 13 01 00 [11:24:49]Write to MH i2c: E2 08 00 59 18 80 13 01 00 00 00 00 00 EE [11:24:49]Write i2c OK [11:24:49]MH_I2C_Read... [11:24:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:49]Read from MH i2c: E2 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: E2 0E 00 [11:24:49]MH_I2C_Read... [11:24:49]Read from MH i2c: E2 0E 00 59 18 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 8C [11:24:49]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:24:49]wFMCommunicate OK [11:24:49]SAM_PROTO_GetShiftState done [11:24:49]FM_GetShiftState done [11:24:49]opened in 1729209717 [11:24:49]opened+sec_in_day 1729296117 [11:24:49]quantity*price = 13000 [11:24:49]sum+1 = 13001 [11:24:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 ÐСП 1% : 1.15 ÐДС 12% : 13.80 Ðаличными: 130.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 38 18.10.2024 11:24 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2413 ФПД: 86417455433766 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112453&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2413&fm=86417455433766&tin=02508201610067®Number=0000000000207295&sum=13000 0 [11:24:51]StoreToDocumentArchive [11:24:51]shift 22 fd 2413 [11:24:51]save to /storage/0022/doc_00002413 [11:24:51]save last doc name /storage/0022/doc_00002413 to /storage/kkm_last_doc_name [11:24:51]save OK [11:24:51]Clear old archive folders... [11:24:51]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:24:51]tlvbuf is 0140F2B0 [11:24:51]SAM_PROTO_ClearQueue [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 09 00 00 [11:24:51]Write to MH i2c: E2 08 00 66 18 80 09 00 00 00 00 00 00 F0 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 66 18 00 90 00 F2 [11:24:51]RAPDU: 90 00 [11:24:51]wFMCommunicate OK [11:24:51]SAM_PROTO_ClearQueue done [11:24:51]KKMCreateOFDPacket [11:24:51]OFDProtocolAddRootSTLVToBuf [11:24:51]FM_MakeSignedData [11:24:51]FM_MakeSignedData [11:24:51]SAM_PROTO_SignData [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 0D 01 02 [11:24:51]Write to MH i2c: E2 08 00 67 18 80 0D 01 02 00 00 00 00 F8 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 67 18 00 90 00 F3 [11:24:51]RAPDU: 90 00 [11:24:51]wFMCommunicate OK [11:24:51]wFMCommunicate request_size=255 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 26 00 00 00 F4 03 04 00 85 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 [11:24:51]Write to MH i2c: E2 02 01 68 18 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 26 00 00 00 F4 03 04 00 85 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 00 00 92 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 68 18 00 90 00 F4 [11:24:51]RAPDU: 90 00 [11:24:51]wFMCommunicate OK [11:24:51]wFMCommunicate request_size=35 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6D 09 00 00 35 04 06 00 4E 98 A1 BB C8 26 [11:24:51]Write to MH i2c: E2 26 00 69 18 80 0D 02 02 1E 00 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6D 09 00 00 35 04 06 00 4E 98 A1 BB C8 26 00 00 89 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 03 00 69 18 00 90 00 F5 [11:24:51]RAPDU: 90 00 [11:24:51]wFMCommunicate OK [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 0D 03 02 [11:24:51]Write to MH i2c: E2 08 00 6A 18 80 0D 03 02 00 00 00 00 FD [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 0B 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 0B 00 6A 18 00 6E 6E 6B 7F 8D E4 52 EC 90 00 73 [11:24:51]RAPDU: 6E 6E 6B 7F 8D E4 52 EC 90 00 [11:24:51]wFMCommunicate OK [11:24:51]SAM_PROTO_SignData done [11:24:51]FM_MakeSignedData done [11:24:51]CreateOFDProtocolMessage [11:24:51]wFMCommunicate request_size=4 [11:24:51]MH_SAM_APDU [11:24:51]CAPDU: 80 11 00 00 [11:24:51]Write to MH i2c: E2 08 00 6B 18 80 11 00 00 00 00 00 00 FD [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:51]Read from MH i2c: E2 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 17 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: E2 17 00 6B 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 45 [11:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:24:51]wFMCommunicate OK [11:24:51]CreateOFDProtocolMessage done [11:24:51]OFDSenderStorePacket 2413 [11:24:51]StoreOFDPacket docnum=2413 [11:24:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 8D 97 20 01 3F 29 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 26 00 00 00 F4 03 04 00 85 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6D 09 00 00 35 04 06 00 4E 98 A1 BB C8 26 6E 6E 6B 7F 8D E4 52 EC [11:24:51]CheckFolder [11:24:51]dirname=/storage/ofd_packets [11:24:51]CheckFolder done [11:24:51]ProducePacketName [11:24:51]name=ofd_packets/00002413 [11:24:51]NVStorageSaveData ofd_packets/00002413 [11:24:51]File name is /storage/ofd_packets/00002413 [11:24:51]Write 326 bytes [11:24:51]NVStorageSaveData done [11:24:51]OFDSenderStorePacket done [11:24:51]KKMCreateOFDPacket done [11:24:51]NVStorageSaveData kkm_last_timestamp [11:24:51]File name is /storage/kkm_last_timestamp [11:24:51]Write 4 bytes [11:24:51]NVStorageSaveData done [11:24:51]ExternCall_PrintAddStr [11:24:51]wPrintStart [11:24:51]Write to MH i2c: 01 00 00 6C 18 84 [11:24:51]Write i2c OK [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 07 00 [11:24:51]MH_I2C_Read... [11:24:51]Read from MH i2c: 01 07 00 6C 18 00 00 00 00 00 FF 0F 99 [11:24:51]RasterBufferAndPrint [11:24:51]line Счет N : (3)99837 [11:24:51]line ИÐÐ: 02508201610067 [11:24:51]line Контрольно-КаÑÑовый Чек [11:24:51]line ПРОДÐЖР[11:24:51]line Товар: 2000036230011 [11:24:51]line Кофе Латте XL(GABB TRADE) [11:24:51]line 1.000 * 130.00 [11:24:51]line = 130.00 [11:24:51]line ÐДС 12% ÐСП 1% [11:24:51]line > о реализуемом товаре [11:24:51]line ИТОГО: 130.00 [11:24:51]line ÐСП 1% : 1.15 [11:24:51]line ÐДС 12% : 13.80 [11:24:51]line Ðаличными: 130.00 [11:24:51]line Безнал.: 0.00 [11:24:51]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:24:51]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:24:51]line СÐО: Общий режим [11:24:51]line Чек 38 18.10.2024 11:24 [11:24:51]line Смена: 22 ФФД: 1.0 [11:24:51]line ЗÐМ: 0300000191 [11:24:51]line РÐМ: 0000000000207295 [11:24:51]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:24:51]line ФМ: 0000000002342820 [11:24:51]line ФД: 2413 [11:24:51]line ФПД: 86417455433766 [11:24:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112453&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2413&fm=86417455433766&tin=02508201610067®Number=0000000000207295&sum=13000 [11:24:51]line 0 [11:24:51]OFD Sender: Processing packet 2413 [packets to send 1, broken 0] [11:24:51]ProducePacketName [11:24:51]name=ofd_packets/00002413 [11:24:51]OFD Sender: To server: ‡•öpG, [11:24:51]CommunicateWithHost lk.salyk.kg:30040 [11:24:51]ConnectInit lk.salyk.kg [11:24:51]written 0, free lines is 4095 [11:24:52]Connected sock=10 [11:24:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 8D 97 20 01 3F 29 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 26 00 00 00 F4 03 04 00 85 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6D 09 00 00 35 04 06 00 4E 98 A1 BB C8 26 6E 6E 6B 7F 8D E4 52 EC [11:24:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 4A 14 47 00 F0 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 32 33 34 32 38 32 30 10 04 04 00 6D 09 00 00 F4 03 04 00 E9 F0 11 67 B6 04 01 00 00 78 42 D7 37 C9 66 06 8F [11:24:52]CommunicateWithHost err = 0 [11:24:52]CheckOFDResponse [11:24:52]1017 (14) - 77093643461234 [11:24:52]1041 (16) - 0000000002342820 [11:24:52]1040 (4) - 2413 [11:24:52]1012 (4) - 18.10.2024 05:23 [11:24:52]1206 (1) - 0 [11:24:52]OFD Sender: Remove packet 2413 [11:24:52]ProducePacketName [11:24:52]name=ofd_packets/00002413 [11:24:52]NVStorageDeleteData [11:24:52]Write to MH i2c: 01 00 00 94 18 AC [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 07 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: 01 07 00 94 18 00 00 00 00 00 CA 0C 89 [11:24:52]RasterBufferAndPrint [11:24:52]line [11:24:52]line [11:24:52]line [11:24:52]line [11:24:52]line [11:24:52]written 0, free lines is 3278 [11:24:52]MH_Cut [11:24:52]Write to MH i2c: D1 01 00 9B 18 01 85 [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: D1 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: D1 01 00 [11:24:52]MH_I2C_Read... [11:24:52]Read from MH i2c: D1 01 00 9B 18 00 84 [11:24:52]Write to MH i2c: 01 00 00 9C 18 B4 [11:24:52]Write i2c OK [11:24:52]MH_I2C_Read... [11:24:52]OFD Sender: No OFD packet to send [11:24:53]*** Cut start [11:24:53]*** Partial cut [11:24:53]*** CUTSNS_PIN = 1 [11:24:53]*** CUTSNS_PIN = 0 [11:24:53]*** Brake cut motor [11:24:53]Read from MH i2c: 01 [11:24:53]MH_I2C_Read... [11:24:53]*** Stop cut motor [11:24:53]*** Cut end [11:24:53]Read from MH i2c: 01 07 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: 01 07 00 9C 18 00 00 00 00 00 FF 0F C9 [11:24:53]process_action close_receipt done [11:24:53]requested_data is exist [11:24:53]produce_requested_data [11:24:53]requested_item fm.sn is exist - process it [11:24:53]wFMCommunicate request_size=4 [11:24:53]MH_SAM_APDU [11:24:53]CAPDU: 80 11 00 00 [11:24:53]Write to MH i2c: E2 08 00 9D 18 80 11 00 00 00 00 00 00 2F [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:53]Read from MH i2c: E2 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 17 00 [11:24:53]MH_I2C_Read... [11:24:53]Read from MH i2c: E2 17 00 9D 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 77 [11:24:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:24:53]wFMCommunicate OK [11:24:53]requested_item fd.num is exist - process it [11:24:53]SAM_PROTO_GetFieldsCounters [11:24:53]wFMCommunicate request_size=4 [11:24:53]MH_SAM_APDU [11:24:53]CAPDU: 80 13 00 00 [11:24:53]Write to MH i2c: E2 08 00 9E 18 80 13 00 00 00 00 00 00 32 [11:24:53]Write i2c OK [11:24:53]MH_I2C_Read... [11:24:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:54]Read from MH i2c: E2 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: E2 62 00 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: E2 62 00 9E 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6D 09 00 00 0E 04 04 00 16 00 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 46 [11:24:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6D 09 00 00 0E 04 04 00 16 00 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 [11:24:54]wFMCommunicate OK [11:24:54]SAM_PROTO_GetFieldsCounters done [11:24:54]requested_item shift.num is exist - process it [11:24:54]requested_item shift.opened is exist - process it [11:24:54]req_shift_opened [11:24:54]FM_GetShiftState [11:24:54]SAM_PROTO_GetShiftState [11:24:54]wFMCommunicate request_size=4 [11:24:54]MH_SAM_APDU [11:24:54]CAPDU: 80 13 01 00 [11:24:54]Write to MH i2c: E2 08 00 9F 18 80 13 01 00 00 00 00 00 34 [11:24:54]Write i2c OK [11:24:54]MH_I2C_Read... [11:24:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:54]Read from MH i2c: E2 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: E2 0E 00 [11:24:54]MH_I2C_Read... [11:24:54]Read from MH i2c: E2 0E 00 9F 18 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D2 [11:24:54]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:24:54]wFMCommunicate OK [11:24:54]SAM_PROTO_GetShiftState done [11:24:54]FM_GetShiftState done [11:24:54]req_shift_opened done [11:24:54]requested_item shift.open_date is exist - process it [11:24:54]req_shift_open_date [11:24:54]req_shift_open_date done [11:24:54]produce_requested_data done [11:24:54]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2413,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:24:54]process_action_free close_receipt [11:24:54]json_value_free [11:24:54]json_value_free done [11:24:54]process_json_proto returns [11:24:54]Send response to host [11:24:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2413,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:24:54]free response buf [11:24:54]execute_script done [11:24:54]execute_script returns [11:24:54]free content buf [11:24:54]Sock 7.Close socket [11:24:54]Sock 7.Thread stoped [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:41]accept exits with 9 [11:25:41]New connection [11:25:41]New thread 3066850660 created [11:25:41]Thread 3066707300 joined [11:25:41]Waiting for new connection... [11:25:41] Sock 9.Parse request [11:25:41]Sock 9.Check first char [11:25:41]Sock 9.First char is OK [11:25:41]request: POST /json_proto HTTP/1.0 [11:25:41]Method: POST [11:25:41]URL: /json_proto [11:25:41]Method is POST - this is cgi request [11:25:41]url: /json_proto [11:25:41]query_string will be loaded in cgi processing [11:25:41]execute_cgi json_proto POST (null) [11:25:41]execute_cgi path=json_proto method=POST [11:25:41]POST find Content-Length [11:25:41]Host: 172.17.52.132:8080 [11:25:41]Content-Length: 766 [11:25:41]Content-Type: application/json [11:25:41] [11:25:41]POST finish read [11:25:41]Found Content-Length = 766 [11:25:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:41]execute_script... [11:25: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)475331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 14", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:25:41]POST & json_proto [11:25:41]process_json_proto [11:25:41]json parsed OK: [11:25:41]protocol is kg_v1.0 [11:25:41]action value=close_receipt [11:25:41]process_action close_receipt [11:25:41]cmd_close_receipt [11:25:41]MH_GetDate [11:25:41]Write to MH i2c: F0 00 00 A0 18 A7 [11:25:41]Write i2c OK [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: F0 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: F0 09 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: F0 09 00 A0 18 00 B9 45 12 67 5A BE F6 66 9B [11:25:41]GetLastDocTimeStamp 1729250693 [11:25:41]current date 1729250745 [11:25:41]FM_GetShiftState [11:25:41]SAM_PROTO_GetShiftState [11:25:41]wFMCommunicate request_size=4 [11:25:41]MH_SAM_APDU [11:25:41]CAPDU: 80 13 01 00 [11:25:41]Write to MH i2c: E2 08 00 A1 18 80 13 01 00 00 00 00 00 36 [11:25:41]Write i2c OK [11:25:41]MH_I2C_Read... [11:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:41]Read from MH i2c: E2 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 [11:25:41]MH_I2C_Read... [11:25:41]Read from MH i2c: E2 0E 00 A1 18 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D4 [11:25:41]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:25:41]wFMCommunicate OK [11:25:41]SAM_PROTO_GetShiftState done [11:25:41]FM_GetShiftState done [11:25:41]opened in 1729209717 [11:25:41]opened+sec_in_day 1729296117 [11:25:41]quantity*price = 200025 [11:25:41]sum+1 = 200026 [11:25:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 ÐСП 1% : 17.70 ÐДС 12% : 212.42 Ðаличными: 0.00 Безнал.: 2000.25 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 39 18.10.2024 11:25 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2414 ФПД: 222335547849102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112545&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2414&fm=222335547849102&tin=02508201610067®Number=0000000000207295&sum=200025 [11:25:42]StoreToDocumentArchive [11:25:42]shift 22 fd 2414 [11:25:42]save to /storage/0022/doc_00002414 [11:25:42]save last doc name /storage/0022/doc_00002414 to /storage/kkm_last_doc_name [11:25:42]save OK [11:25:42]Clear old archive folders... [11:25:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:25:42]tlvbuf is 0140EEA0 [11:25:42]SAM_PROTO_ClearQueue [11:25:42]wFMCommunicate request_size=4 [11:25:42]MH_SAM_APDU [11:25:42]CAPDU: 80 09 00 00 [11:25:42]Write to MH i2c: E2 08 00 AE 18 80 09 00 00 00 00 00 00 38 [11:25:42]Write i2c OK [11:25:42]MH_I2C_Read... [11:25:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:25:42]Read from MH i2c: E2 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 03 00 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 03 00 AE 18 00 90 00 3A [11:25:42]RAPDU: 90 00 [11:25:42]wFMCommunicate OK [11:25:42]SAM_PROTO_ClearQueue done [11:25:42]KKMCreateOFDPacket [11:25:42]OFDProtocolAddRootSTLVToBuf [11:25:42]FM_MakeSignedData [11:25:42]FM_MakeSignedData [11:25:42]SAM_PROTO_SignData [11:25:42]wFMCommunicate request_size=4 [11:25:42]MH_SAM_APDU [11:25:42]CAPDU: 80 0D 01 02 [11:25:42]Write to MH i2c: E2 08 00 AF 18 80 0D 01 02 00 00 00 00 40 [11:25:42]Write i2c OK [11:25:42]MH_I2C_Read... [11:25:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:25:42]Read from MH i2c: E2 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 03 00 [11:25:42]MH_I2C_Read... [11:25:42]Read from MH i2c: E2 03 00 AF 18 00 90 00 3B [11:25:42]RAPDU: 90 00 [11:25:42]wFMCommunicate OK [11:25:42]wFMCommunicate request_size=255 [11:25:42]MH_SAM_APDU [11:25:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B9 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6E 09 00 00 35 04 06 00 CA 36 87 59 [11:25:42]Write to MH i2c: E2 02 01 B0 18 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B9 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6E 09 00 00 35 04 06 00 CA 36 87 59 00 00 E5 [11:25:42]OFD Sender: No OFD packet to send [11:25:42]Write i2c OK [11:25:42]MH_I2C_Read... [11:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:43]Read from MH i2c: E2 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: E2 03 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: E2 03 00 B0 18 00 90 00 3C [11:25:43]RAPDU: 90 00 [11:25:43]wFMCommunicate OK [11:25:43]wFMCommunicate request_size=7 [11:25:43]MH_SAM_APDU [11:25:43]CAPDU: 80 0D 02 02 02 B9 8E [11:25:43]Write to MH i2c: E2 0A 00 B1 18 80 0D 02 02 02 00 B9 8E 00 00 8E [11:25:43]Write i2c OK [11:25:43]MH_I2C_Read... [11:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:25:43]Read from MH i2c: E2 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: E2 03 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: E2 03 00 B1 18 00 90 00 3D [11:25:43]RAPDU: 90 00 [11:25:43]wFMCommunicate OK [11:25:43]wFMCommunicate request_size=4 [11:25:43]MH_SAM_APDU [11:25:43]CAPDU: 80 0D 03 02 [11:25:43]Write to MH i2c: E2 08 00 B2 18 80 0D 03 02 00 00 00 00 45 [11:25:43]Write i2c OK [11:25:43]MH_I2C_Read... [11:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:25:43]Read from MH i2c: E2 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: E2 0B 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: E2 0B 00 B2 18 00 6A 6D 9B 42 45 3F DD E5 90 00 40 [11:25:43]RAPDU: 6A 6D 9B 42 45 3F DD E5 90 00 [11:25:43]wFMCommunicate OK [11:25:43]SAM_PROTO_SignData done [11:25:43]FM_MakeSignedData done [11:25:43]CreateOFDProtocolMessage [11:25:43]wFMCommunicate request_size=4 [11:25:43]MH_SAM_APDU [11:25:43]CAPDU: 80 11 00 00 [11:25:43]Write to MH i2c: E2 08 00 B3 18 80 11 00 00 00 00 00 00 45 [11:25:43]Write i2c OK [11:25:43]MH_I2C_Read... [11:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:43]Read from MH i2c: E2 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: E2 17 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: E2 17 00 B3 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 8D [11:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:25:43]wFMCommunicate OK [11:25:43]CreateOFDProtocolMessage done [11:25:43]OFDSenderStorePacket 2414 [11:25:43]StoreOFDPacket docnum=2414 [11:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 B0 03 04 01 FA FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B9 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6E 09 00 00 35 04 06 00 CA 36 87 59 B9 8E 6A 6D 9B 42 45 3F DD E5 [11:25:43]CheckFolder [11:25:43]dirname=/storage/ofd_packets [11:25:43]CheckFolder done [11:25:43]ProducePacketName [11:25:43]name=ofd_packets/00002414 [11:25:43]NVStorageSaveData ofd_packets/00002414 [11:25:43]File name is /storage/ofd_packets/00002414 [11:25:43]Write 298 bytes [11:25:43]NVStorageSaveData done [11:25:43]OFDSenderStorePacket done [11:25:43]KKMCreateOFDPacket done [11:25:43]NVStorageSaveData kkm_last_timestamp [11:25:43]File name is /storage/kkm_last_timestamp [11:25:43]Write 4 bytes [11:25:43]NVStorageSaveData done [11:25:43]ExternCall_PrintAddStr [11:25:43]wPrintStart [11:25:43]Write to MH i2c: 01 00 00 B4 18 CC [11:25:43]Write i2c OK [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 07 00 [11:25:43]MH_I2C_Read... [11:25:43]Read from MH i2c: 01 07 00 B4 18 00 00 00 00 00 FF 0F E1 [11:25:43]RasterBufferAndPrint [11:25:43]line Счет N : (1)475331 [11:25:43]line ИÐÐ: 02508201610067 [11:25:43]line Контрольно-КаÑÑовый Чек [11:25:43]line ПРОДÐЖР[11:25:43]line ТРК (МРК, ГÐК) : 14 [11:25:43]line Товар: 2710194210 [11:25:43]line ДТ-К-5 [11:25:43]line 26.250 * 76.20 [11:25:43]line = 2000.25 [11:25:43]line ÐДС 12% ÐСП 1% [11:25:43]line > о реализуемом товаре [11:25:43]line ИТОГО: 2000.25 [11:25:43]line ÐСП 1% : 17.70 [11:25:43]line ÐДС 12% : 212.42 [11:25:43]line Ðаличными: 0.00 [11:25:43]line Безнал.: 2000.25 [11:25:43]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:25:43]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:25:43]line СÐО: Общий режим [11:25:43]line Чек 39 18.10.2024 11:25 [11:25:43]line Смена: 22 ФФД: 1.0 [11:25:43]line ЗÐМ: 0300000191 [11:25:43]line РÐМ: 0000000000207295 [11:25:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:25:43]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [11:25:43]line ФМ: 0000000002342820 [11:25:43]line ФД: 2414 [11:25:43]line ФПД: 222335547849102 [11:25:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112545&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2414&fm=222335547849102&tin=02508201610067®Number=0000000000207295&sum=200025 [11:25:43]OFD Sender: Processing packet 2414 [packets to send 1, broken 0] [11:25:43]ProducePacketName [11:25:43]name=ofd_packets/00002414 [11:25:43]OFD Sender: To server: ‡•öpG, [11:25:43]CommunicateWithHost lk.salyk.kg:30040 [11:25:43]ConnectInit lk.salyk.kg [11:25:43]written 0, free lines is 4095 [11:25:43]Connected sock=10 [11:25:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 B0 03 04 01 FA FE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B9 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6E 09 00 00 35 04 06 00 CA 36 87 59 B9 8E 6A 6D 9B 42 45 3F DD E5 [11:25:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 02 FA 47 00 9D 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 32 33 34 32 38 32 30 10 04 04 00 6E 09 00 00 F4 03 04 00 1D F1 11 67 B6 04 01 00 00 29 97 F8 87 80 6A 04 17 [11:25:43]CommunicateWithHost err = 0 [11:25:43]CheckOFDResponse [11:25:43]1017 (14) - 77093643461234 [11:25:43]1041 (16) - 0000000002342820 [11:25:43]1040 (4) - 2414 [11:25:43]1012 (4) - 18.10.2024 05:24 [11:25:43]1206 (1) - 0 [11:25:43]OFD Sender: Remove packet 2414 [11:25:43]ProducePacketName [11:25:43]name=ofd_packets/00002414 [11:25:43]NVStorageDeleteData [11:25:44]Write to MH i2c: 01 00 00 DD 18 F5 [11:25:44]Write i2c OK [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: 01 [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: 01 07 00 [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: 01 07 00 DD 18 00 00 00 00 00 D0 0C D8 [11:25:44]RasterBufferAndPrint [11:25:44]line [11:25:44]line [11:25:44]line [11:25:44]line [11:25:44]line [11:25:44]written 0, free lines is 3284 [11:25:44]MH_Cut [11:25:44]Write to MH i2c: D1 01 00 E4 18 01 CE [11:25:44]Write i2c OK [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: D1 [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: D1 01 00 [11:25:44]MH_I2C_Read... [11:25:44]Read from MH i2c: D1 01 00 E4 18 00 CD [11:25:44]Write to MH i2c: 01 00 00 E5 18 FD [11:25:44]Write i2c OK [11:25:44]MH_I2C_Read... [11:25:44]OFD Sender: No OFD packet to send [11:25:44]*** Cut start [11:25:44]*** Partial cut [11:25:44]*** CUTSNS_PIN = 1 [11:25:45]*** CUTSNS_PIN = 0 [11:25:45]*** Brake cut motor [11:25:45]Read from MH i2c: 01 [11:25:45]MH_I2C_Read... [11:25:45]*** Stop cut motor [11:25:45]*** Cut end [11:25:45]Read from MH i2c: 01 07 00 [11:25:45]MH_I2C_Read... [11:25:45]Read from MH i2c: 01 07 00 E5 18 00 00 00 00 00 FF 0F 12 [11:25:45]process_action close_receipt done [11:25:45]requested_data is exist [11:25:45]produce_requested_data [11:25:45]requested_item fm.sn is exist - process it [11:25:45]wFMCommunicate request_size=4 [11:25:45]MH_SAM_APDU [11:25:45]CAPDU: 80 11 00 00 [11:25:45]Write to MH i2c: E2 08 00 E6 18 80 11 00 00 00 00 00 00 78 [11:25:45]Write i2c OK [11:25:45]MH_I2C_Read... [11:25:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:25:45]Read from MH i2c: E2 [11:25:45]MH_I2C_Read... [11:25:45]Read from MH i2c: E2 17 00 [11:25:45]MH_I2C_Read... [11:25:45]Read from MH i2c: E2 17 00 E6 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C0 [11:25:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:25:45]wFMCommunicate OK [11:25:45]requested_item fd.num is exist - process it [11:25:45]SAM_PROTO_GetFieldsCounters [11:25:45]wFMCommunicate request_size=4 [11:25:45]MH_SAM_APDU [11:25:45]CAPDU: 80 13 00 00 [11:25:45]Write to MH i2c: E2 08 00 E7 18 80 13 00 00 00 00 00 00 7B [11:25:45]Write i2c OK [11:25:45]MH_I2C_Read... [11:25:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:25:45]Read from MH i2c: E2 [11:25:45]MH_I2C_Read... [11:25:45]Read from MH i2c: E2 62 00 [11:25:45]MH_I2C_Read... [11:25:45]Read from MH i2c: E2 62 00 E7 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6E 09 00 00 0E 04 04 00 16 00 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 93 [11:25:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6E 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:25:45]wFMCommunicate OK [11:25:45]SAM_PROTO_GetFieldsCounters done [11:25:45]requested_item shift.num is exist - process it [11:25:45]requested_item shift.opened is exist - process it [11:25:45]req_shift_opened [11:25:45]FM_GetShiftState [11:25:45]SAM_PROTO_GetShiftState [11:25:45]wFMCommunicate request_size=4 [11:25:45]MH_SAM_APDU [11:25:45]CAPDU: 80 13 01 00 [11:25:45]Write to MH i2c: E2 08 00 E8 18 80 13 01 00 00 00 00 00 7D [11:25:45]Write i2c OK [11:25:45]MH_I2C_Read... [11:25:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:25:45]Read from MH i2c: E2 [11:25:45]MH_I2C_Read... [11:25:45]Read from MH i2c: E2 0E 00 [11:25:45]MH_I2C_Read... [11:25:45]Read from MH i2c: E2 0E 00 E8 18 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1B [11:25:45]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:25:45]wFMCommunicate OK [11:25:45]SAM_PROTO_GetShiftState done [11:25:45]FM_GetShiftState done [11:25:45]req_shift_opened done [11:25:45]requested_item shift.open_date is exist - process it [11:25:45]req_shift_open_date [11:25:45]req_shift_open_date done [11:25:45]produce_requested_data done [11:25:45]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2414,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:25:45]process_action_free close_receipt [11:25:45]json_value_free [11:25:45]json_value_free done [11:25:45]process_json_proto returns [11:25:45]Send response to host [11:25:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2414,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:25:45]free response buf [11:25:45]execute_script done [11:25:45]execute_script returns [11:25:45]free content buf [11:25:45]Sock 9.Close socket [11:25:45]Sock 9.Thread stoped [11:25:49]OFD Sender: No OFD packet to send [11:25:54]OFD Sender: No OFD packet to send [11:25:59]OFD Sender: No OFD packet to send [11:26:04]OFD Sender: No OFD packet to send [11:26:04]accept exits with 7 [11:26:04]New connection [11:26:04]New thread 3066707300 created [11:26:04]Thread 3066850660 joined [11:26:04]Waiting for new connection... [11:26:04] Sock 7.Parse request [11:26:04]Sock 7.Check first char [11:26:04]Sock 7.First char is OK [11:26:04]request: POST /json_proto HTTP/1.0 [11:26:04]Method: POST [11:26:04]URL: /json_proto [11:26:04]Method is POST - this is cgi request [11:26:04]url: /json_proto [11:26:04]query_string will be loaded in cgi processing [11:26:04]execute_cgi json_proto POST (null) [11:26:04]execute_cgi path=json_proto method=POST [11:26:04]POST find Content-Length [11:26:04]Host: 172.17.52.132:8080 [11:26:04]Content-Length: 769 [11:26:04]Content-Type: application/json [11:26:04] [11:26:04]POST finish read [11:26:04]Found Content-Length = 769 [11:26:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:04]execute_script... [11:26: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)475333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:04]POST & json_proto [11:26:04]process_json_proto [11:26:04]json parsed OK: [11:26:04]protocol is kg_v1.0 [11:26:04]action value=close_receipt [11:26:04]process_action close_receipt [11:26:04]cmd_close_receipt [11:26:04]MH_GetDate [11:26:04]Write to MH i2c: F0 00 00 E9 18 F0 [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: F0 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: F0 09 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: F0 09 00 E9 18 00 D0 45 12 67 5A BE F6 66 FB [11:26:04]GetLastDocTimeStamp 1729250745 [11:26:04]current date 1729250768 [11:26:04]FM_GetShiftState [11:26:04]SAM_PROTO_GetShiftState [11:26:04]wFMCommunicate request_size=4 [11:26:04]MH_SAM_APDU [11:26:04]CAPDU: 80 13 01 00 [11:26:04]Write to MH i2c: E2 08 00 EA 18 80 13 01 00 00 00 00 00 7F [11:26:04]Write i2c OK [11:26:04]MH_I2C_Read... [11:26:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:04]Read from MH i2c: E2 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 0E 00 [11:26:04]MH_I2C_Read... [11:26:04]Read from MH i2c: E2 0E 00 EA 18 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1D [11:26:04]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:26:04]wFMCommunicate OK [11:26:04]SAM_PROTO_GetShiftState done [11:26:04]FM_GetShiftState done [11:26:04]opened in 1729209717 [11:26:04]opened+sec_in_day 1729296117 [11:26:04]quantity*price = 100021 [11:26:04]sum+1 = 100023 [11:26:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 ÐСП 1% : 8.85 ÐДС 12% : 106.22 Ðаличными: 0.00 Безнал.: 1000.22 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 40 18.10.2024 11:26 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2415 ФПД: 113482048008229 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112608&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2415&fm=113482048008229&tin=02508201610067®Number=0000000000207295&sum=100022 [11:26:05]StoreToDocumentArchive [11:26:05]shift 22 fd 2415 [11:26:05]save to /storage/0022/doc_00002415 [11:26:05]save last doc name /storage/0022/doc_00002415 to /storage/kkm_last_doc_name [11:26:05]save OK [11:26:05]Clear old archive folders... [11:26:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:26:05]tlvbuf is B6E8F4C0 [11:26:05]SAM_PROTO_ClearQueue [11:26:05]wFMCommunicate request_size=4 [11:26:05]MH_SAM_APDU [11:26:05]CAPDU: 80 09 00 00 [11:26:05]Write to MH i2c: E2 08 00 F7 18 80 09 00 00 00 00 00 00 81 [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:05]Read from MH i2c: E2 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 03 00 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 03 00 F7 18 00 90 00 83 [11:26:05]RAPDU: 90 00 [11:26:05]wFMCommunicate OK [11:26:05]SAM_PROTO_ClearQueue done [11:26:05]KKMCreateOFDPacket [11:26:05]OFDProtocolAddRootSTLVToBuf [11:26:05]FM_MakeSignedData [11:26:05]FM_MakeSignedData [11:26:05]SAM_PROTO_SignData [11:26:05]wFMCommunicate request_size=4 [11:26:05]MH_SAM_APDU [11:26:05]CAPDU: 80 0D 01 02 [11:26:05]Write to MH i2c: E2 08 00 F8 18 80 0D 01 02 00 00 00 00 89 [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:05]Read from MH i2c: E2 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 03 00 [11:26:05]MH_I2C_Read... [11:26:05]Read from MH i2c: E2 03 00 F8 18 00 90 00 84 [11:26:05]RAPDU: 90 00 [11:26:05]wFMCommunicate OK [11:26:05]wFMCommunicate request_size=255 [11:26:05]MH_SAM_APDU [11:26: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D0 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6F 09 00 00 35 04 06 00 67 [11:26:05]Write to MH i2c: E2 02 01 F9 18 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D0 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6F 09 00 00 35 04 06 00 67 00 00 01 [11:26:05]Write i2c OK [11:26:05]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 03 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 03 00 F9 18 00 90 00 85 [11:26:06]RAPDU: 90 00 [11:26:06]wFMCommunicate OK [11:26:06]wFMCommunicate request_size=10 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 0D 02 02 05 36 19 28 F0 25 [11:26:06]Write to MH i2c: E2 0D 00 FA 18 80 0D 02 02 05 00 36 19 28 F0 25 00 00 22 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 03 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 03 00 FA 18 00 90 00 86 [11:26:06]RAPDU: 90 00 [11:26:06]wFMCommunicate OK [11:26:06]wFMCommunicate request_size=4 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 0D 03 02 [11:26:06]Write to MH i2c: E2 08 00 FB 18 80 0D 03 02 00 00 00 00 8E [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 0B 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 0B 00 FB 18 00 59 AE 64 08 00 F0 09 F2 90 00 ED [11:26:06]RAPDU: 59 AE 64 08 00 F0 09 F2 90 00 [11:26:06]wFMCommunicate OK [11:26:06]SAM_PROTO_SignData done [11:26:06]FM_MakeSignedData done [11:26:06]CreateOFDProtocolMessage [11:26:06]wFMCommunicate request_size=4 [11:26:06]MH_SAM_APDU [11:26:06]CAPDU: 80 11 00 00 [11:26:06]Write to MH i2c: E2 08 00 FC 18 80 11 00 00 00 00 00 00 8E [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:06]Read from MH i2c: E2 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 17 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: E2 17 00 FC 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D6 [11:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:26:06]wFMCommunicate OK [11:26:06]CreateOFDProtocolMessage done [11:26:06]OFDSenderStorePacket 2415 [11:26:06]StoreOFDPacket docnum=2415 [11:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 67 BD 07 01 E2 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D0 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6F 09 00 00 35 04 06 00 67 36 19 28 F0 25 59 AE 64 08 00 F0 09 F2 [11:26:06]CheckFolder [11:26:06]dirname=/storage/ofd_packets [11:26:06]CheckFolder done [11:26:06]ProducePacketName [11:26:06]name=ofd_packets/00002415 [11:26:06]NVStorageSaveData ofd_packets/00002415 [11:26:06]File name is /storage/ofd_packets/00002415 [11:26:06]Write 301 bytes [11:26:06]NVStorageSaveData done [11:26:06]OFDSenderStorePacket done [11:26:06]KKMCreateOFDPacket done [11:26:06]NVStorageSaveData kkm_last_timestamp [11:26:06]File name is /storage/kkm_last_timestamp [11:26:06]Write 4 bytes [11:26:06]NVStorageSaveData done [11:26:06]ExternCall_PrintAddStr [11:26:06]wPrintStart [11:26:06]Write to MH i2c: 01 00 00 FD 18 15 [11:26:06]Write i2c OK [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 07 00 [11:26:06]MH_I2C_Read... [11:26:06]Read from MH i2c: 01 07 00 FD 18 00 00 00 00 00 FF 0F 2A [11:26:06]RasterBufferAndPrint [11:26:06]line Счет N : (1)475333 [11:26:06]line ИÐÐ: 02508201610067 [11:26:06]line Контрольно-КаÑÑовый Чек [11:26:06]line ПРОДÐЖР[11:26:06]line ТРК (МРК, ГÐК) : 51 [11:26:06]line Товар: 2710124500 [11:26:06]line Ðи-95-К-5 [11:26:06]line 13.480 * 74.20 [11:26:06]line = 1000.22 [11:26:06]line ÐДС 12% ÐСП 1% [11:26:06]line > о реализуемом товаре [11:26:06]line ИТОГО: 1000.22 [11:26:06]line ÐСП 1% : 8.85 [11:26:06]line ÐДС 12% : 106.22 [11:26:06]line Ðаличными: 0.00 [11:26:06]line Безнал.: 1000.22 [11:26:06]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:26:06]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:26:06]line СÐО: Общий режим [11:26:06]line Чек 40 18.10.2024 11:26 [11:26:06]line Смена: 22 ФФД: 1.0 [11:26:06]line ЗÐМ: 0300000191 [11:26:06]line РÐМ: 0000000000207295 [11:26:06]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:26:06]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [11:26:06]line ФМ: 0000000002342820 [11:26:06]line ФД: 2415 [11:26:06]line ФПД: 113482048008229 [11:26:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112608&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2415&fm=113482048008229&tin=02508201610067®Number=0000000000207295&sum=100022 [11:26:06]OFD Sender: Processing packet 2415 [packets to send 1, broken 0] [11:26:06]ProducePacketName [11:26:06]name=ofd_packets/00002415 [11:26:06]OFD Sender: To server: ‡•öpG, [11:26:06]CommunicateWithHost lk.salyk.kg:30040 [11:26:06]ConnectInit lk.salyk.kg [11:26:06]written 0, free lines is 4095 [11:26:06]Connected sock=10 [11:26:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 67 BD 07 01 E2 A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 D0 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 6F 09 00 00 35 04 06 00 67 36 19 28 F0 25 59 AE 64 08 00 F0 09 F2 [11:26:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 9B 0C 47 00 0A 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 32 33 34 32 38 32 30 10 04 04 00 6F 09 00 00 F4 03 04 00 34 F1 11 67 B6 04 01 00 00 CE 8C 85 EC D2 10 49 42 [11:26:06]CommunicateWithHost err = 0 [11:26:06]CheckOFDResponse [11:26:06]1017 (14) - 77093643461234 [11:26:06]1041 (16) - 0000000002342820 [11:26:06]1040 (4) - 2415 [11:26:06]1012 (4) - 18.10.2024 05:25 [11:26:06]1206 (1) - 0 [11:26:06]OFD Sender: Remove packet 2415 [11:26:06]ProducePacketName [11:26:06]name=ofd_packets/00002415 [11:26:06]NVStorageDeleteData [11:26:07]Write to MH i2c: 01 00 00 26 19 3F [11:26:07]Write i2c OK [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: 01 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: 01 07 00 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: 01 07 00 26 19 00 00 00 00 00 CF 0C 21 [11:26:07]RasterBufferAndPrint [11:26:07]line [11:26:07]line [11:26:07]line [11:26:07]line [11:26:07]line [11:26:07]written 0, free lines is 3283 [11:26:07]MH_Cut [11:26:07]Write to MH i2c: D1 01 00 2D 19 01 18 [11:26:07]Write i2c OK [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: D1 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: D1 01 00 [11:26:07]MH_I2C_Read... [11:26:07]Read from MH i2c: D1 01 00 2D 19 00 17 [11:26:07]Write to MH i2c: 01 00 00 2E 19 47 [11:26:07]Write i2c OK [11:26:07]MH_I2C_Read... [11:26:07]OFD Sender: No OFD packet to send [11:26:08]*** Cut start [11:26:08]*** Partial cut [11:26:08]*** CUTSNS_PIN = 1 [11:26:08]*** CUTSNS_PIN = 0 [11:26:08]*** Brake cut motor [11:26:08]Read from MH i2c: 01 [11:26:08]MH_I2C_Read... [11:26:08]*** Stop cut motor [11:26:08]*** Cut end [11:26:08]Read from MH i2c: 01 07 00 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: 01 07 00 2E 19 00 00 00 00 00 FF 0F 5C [11:26:08]process_action close_receipt done [11:26:08]requested_data is exist [11:26:08]produce_requested_data [11:26:08]requested_item fm.sn is exist - process it [11:26:08]wFMCommunicate request_size=4 [11:26:08]MH_SAM_APDU [11:26:08]CAPDU: 80 11 00 00 [11:26:08]Write to MH i2c: E2 08 00 2F 19 80 11 00 00 00 00 00 00 C2 [11:26:08]Write i2c OK [11:26:08]MH_I2C_Read... [11:26:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:08]Read from MH i2c: E2 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: E2 17 00 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: E2 17 00 2F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 0A [11:26:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:26:08]wFMCommunicate OK [11:26:08]requested_item fd.num is exist - process it [11:26:08]SAM_PROTO_GetFieldsCounters [11:26:08]wFMCommunicate request_size=4 [11:26:08]MH_SAM_APDU [11:26:08]CAPDU: 80 13 00 00 [11:26:08]Write to MH i2c: E2 08 00 30 19 80 13 00 00 00 00 00 00 C5 [11:26:08]Write i2c OK [11:26:08]MH_I2C_Read... [11:26:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:08]Read from MH i2c: E2 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: E2 62 00 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: E2 62 00 30 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6F 09 00 00 0E 04 04 00 16 00 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 E1 [11:26:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 6F 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:08]wFMCommunicate OK [11:26:08]SAM_PROTO_GetFieldsCounters done [11:26:08]requested_item shift.num is exist - process it [11:26:08]requested_item shift.opened is exist - process it [11:26:08]req_shift_opened [11:26:08]FM_GetShiftState [11:26:08]SAM_PROTO_GetShiftState [11:26:08]wFMCommunicate request_size=4 [11:26:08]MH_SAM_APDU [11:26:08]CAPDU: 80 13 01 00 [11:26:08]Write to MH i2c: E2 08 00 31 19 80 13 01 00 00 00 00 00 C7 [11:26:08]Write i2c OK [11:26:08]MH_I2C_Read... [11:26:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:08]Read from MH i2c: E2 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: E2 0E 00 [11:26:08]MH_I2C_Read... [11:26:08]Read from MH i2c: E2 0E 00 31 19 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 65 [11:26:08]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:26:08]wFMCommunicate OK [11:26:08]SAM_PROTO_GetShiftState done [11:26:08]FM_GetShiftState done [11:26:08]req_shift_opened done [11:26:08]requested_item shift.open_date is exist - process it [11:26:08]req_shift_open_date [11:26:08]req_shift_open_date done [11:26:08]produce_requested_data done [11:26:08]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2415,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:26:08]process_action_free close_receipt [11:26:08]json_value_free [11:26:08]json_value_free done [11:26:08]process_json_proto returns [11:26:08]Send response to host [11:26:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2415,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:26:08]free response buf [11:26:08]execute_script done [11:26:08]execute_script returns [11:26:08]free content buf [11:26:08]Sock 7.Close socket [11:26:08]Sock 7.Thread stoped [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:29]accept exits with 9 [11:26:29]New connection [11:26:29]New thread 3066850660 created [11:26:29]Thread 3066707300 joined [11:26:29]Waiting for new connection... [11:26:29] Sock 9.Parse request [11:26:29]Sock 9.Check first char [11:26:29]Sock 9.First char is OK [11:26:29]request: POST /json_proto HTTP/1.0 [11:26:29]Method: POST [11:26:29]URL: /json_proto [11:26:29]Method is POST - this is cgi request [11:26:29]url: /json_proto [11:26:29]query_string will be loaded in cgi processing [11:26:29]execute_cgi json_proto POST (null) [11:26:29]execute_cgi path=json_proto method=POST [11:26:29]POST find Content-Length [11:26:29]Host: 172.17.52.132:8080 [11:26:29]Content-Length: 675 [11:26:29]Content-Type: application/json [11:26:29] [11:26:29]POST finish read [11:26:29]Found Content-Length = 675 [11:26:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475334", "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" : 68.40, "quantity" : 16.090, "sum" : 1100.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:29]execute_script... [11:26: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)475334", "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" : 68.40, "quantity" : 16.090, "sum" : 1100.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:29]POST & json_proto [11:26:29]process_json_proto [11:26:29]json parsed OK: [11:26:29]protocol is kg_v1.0 [11:26:29]action value=close_receipt [11:26:29]process_action close_receipt [11:26:29]cmd_close_receipt [11:26:29]MH_GetDate [11:26:29]Write to MH i2c: F0 00 00 32 19 3A [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: F0 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: F0 09 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: F0 09 00 32 19 00 E9 45 12 67 5A BE F6 66 5E [11:26:29]GetLastDocTimeStamp 1729250768 [11:26:29]current date 1729250793 [11:26:29]FM_GetShiftState [11:26:29]SAM_PROTO_GetShiftState [11:26:29]wFMCommunicate request_size=4 [11:26:29]MH_SAM_APDU [11:26:29]CAPDU: 80 13 01 00 [11:26:29]Write to MH i2c: E2 08 00 33 19 80 13 01 00 00 00 00 00 C9 [11:26:29]Write i2c OK [11:26:29]MH_I2C_Read... [11:26:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:29]Read from MH i2c: E2 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 0E 00 [11:26:29]MH_I2C_Read... [11:26:29]Read from MH i2c: E2 0E 00 33 19 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 67 [11:26:29]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:26:29]wFMCommunicate OK [11:26:29]SAM_PROTO_GetShiftState done [11:26:29]FM_GetShiftState done [11:26:29]opened in 1729209717 [11:26:29]opened+sec_in_day 1729296117 [11:26:29]quantity*price = 110055 [11:26:29]sum+1 = 110057 [11:26:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.56 ИТОГО: 1100.00 ВнеÑено: 1100.00 СДÐЧÐ: 0.00 ÐСП 1% : 9.74 ÐДС 12% : 116.87 Ðаличными: 1100.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 41 18.10.2024 11:26 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2416 ФПД: 220109199042102 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112633&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2416&fm=220109199042102&tin=02508201610067®Number=0000000000207295&sum=110000 [11:26:30]StoreToDocumentArchive [11:26:30]shift 22 fd 2416 [11:26:30]save to /storage/0022/doc_00002416 [11:26:30]save last doc name /storage/0022/doc_00002416 to /storage/kkm_last_doc_name [11:26:30]save OK [11:26:30]Clear old archive folders... [11:26:30]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:26:30]tlvbuf is 013B3E90 [11:26:30]SAM_PROTO_ClearQueue [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 09 00 00 [11:26:30]Write to MH i2c: E2 08 00 40 19 80 09 00 00 00 00 00 00 CB [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 40 19 00 90 00 CD [11:26:30]RAPDU: 90 00 [11:26:30]wFMCommunicate OK [11:26:30]SAM_PROTO_ClearQueue done [11:26:30]KKMCreateOFDPacket [11:26:30]OFDProtocolAddRootSTLVToBuf [11:26:30]FM_MakeSignedData [11:26:30]FM_MakeSignedData [11:26:30]SAM_PROTO_SignData [11:26:30]wFMCommunicate request_size=4 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 0D 01 02 [11:26:30]Write to MH i2c: E2 08 00 41 19 80 0D 01 02 00 00 00 00 D3 [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 41 19 00 90 00 CE [11:26:30]RAPDU: 90 00 [11:26:30]wFMCommunicate OK [11:26:30]wFMCommunicate request_size=255 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E9 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 70 09 00 00 35 04 06 00 [11:26:30]Write to MH i2c: E2 02 01 42 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E9 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 70 09 00 00 35 04 06 00 00 00 BC [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:30]Read from MH i2c: E2 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 [11:26:30]MH_I2C_Read... [11:26:30]Read from MH i2c: E2 03 00 42 19 00 90 00 CF [11:26:30]RAPDU: 90 00 [11:26:30]wFMCommunicate OK [11:26:30]wFMCommunicate request_size=11 [11:26:30]MH_SAM_APDU [11:26:30]CAPDU: 80 0D 02 02 06 C8 30 2A 9E E6 36 [11:26:30]Write to MH i2c: E2 0E 00 43 19 80 0D 02 02 06 00 C8 30 2A 9E E6 36 00 00 BE [11:26:30]Write i2c OK [11:26:30]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 03 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [11:26:31]RAPDU: 90 00 [11:26:31]wFMCommunicate OK [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 0D 03 02 [11:26:31]Write to MH i2c: E2 08 00 44 19 80 0D 03 02 00 00 00 00 D8 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 0B 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 0B 00 44 19 00 AB C8 6E A4 FE BF 43 CF 90 00 2D [11:26:31]RAPDU: AB C8 6E A4 FE BF 43 CF 90 00 [11:26:31]wFMCommunicate OK [11:26:31]SAM_PROTO_SignData done [11:26:31]FM_MakeSignedData done [11:26:31]CreateOFDProtocolMessage [11:26:31]wFMCommunicate request_size=4 [11:26:31]MH_SAM_APDU [11:26:31]CAPDU: 80 11 00 00 [11:26:31]Write to MH i2c: E2 08 00 45 19 80 11 00 00 00 00 00 00 D8 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:31]Read from MH i2c: E2 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 17 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: E2 17 00 45 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 20 [11:26:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:26:31]wFMCommunicate OK [11:26:31]CreateOFDProtocolMessage done [11:26:31]OFDSenderStorePacket 2416 [11:26:31]StoreOFDPacket docnum=2416 [11:26:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 BC 40 08 01 EE 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E9 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 70 09 00 00 35 04 06 00 C8 30 2A 9E E6 36 AB C8 6E A4 FE BF 43 CF [11:26:31]CheckFolder [11:26:31]dirname=/storage/ofd_packets [11:26:31]CheckFolder done [11:26:31]ProducePacketName [11:26:31]name=ofd_packets/00002416 [11:26:31]NVStorageSaveData ofd_packets/00002416 [11:26:31]File name is /storage/ofd_packets/00002416 [11:26:31]Write 302 bytes [11:26:31]NVStorageSaveData done [11:26:31]OFDSenderStorePacket done [11:26:31]KKMCreateOFDPacket done [11:26:31]NVStorageSaveData kkm_last_timestamp [11:26:31]File name is /storage/kkm_last_timestamp [11:26:31]Write 4 bytes [11:26:31]NVStorageSaveData done [11:26:31]ExternCall_PrintAddStr [11:26:31]wPrintStart [11:26:31]Write to MH i2c: 01 00 00 46 19 5F [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 46 19 00 00 00 00 00 FF 0F 74 [11:26:31]RasterBufferAndPrint [11:26:31]line Счет N : (1)475334 [11:26:31]line ИÐÐ: 02508201610067 [11:26:31]line Контрольно-КаÑÑовый Чек [11:26:31]line ПРОДÐЖР[11:26:31]line ТРК (МРК, ГÐК) : 43 [11:26:31]line Товар: 2710124130 [11:26:31]line SUPER-92-К-5 [11:26:31]line 16.090 * 68.40 [11:26:31]line = 1100.56 [11:26:31]line ÐДС 12% ÐСП 1% [11:26:31]line > о реализуемом товаре [11:26:31]line ОКРУГЛЕÐИЕ: -0.56 [11:26:31]line ИТОГО: 1100.00 [11:26:31]line ВнеÑено: 1100.00 [11:26:31]line СДÐЧÐ: 0.00 [11:26:31]line ÐСП 1% : 9.74 [11:26:31]line ÐДС 12% : 116.87 [11:26:31]line Ðаличными: 1100.00 [11:26:31]line Безнал.: 0.00 [11:26:31]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:26:31]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:26:31]line СÐО: Общий режим [11:26:31]line Чек 41 18.10.2024 11:26 [11:26:31]line Смена: 22 ФФД: 1.0 [11:26:31]line ЗÐМ: 0300000191 [11:26:31]line РÐМ: 0000000000207295 [11:26:31]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:26:31]line ФМ: 0000000002342820 [11:26:31]line ФД: 2416 [11:26:31]line ФПД: 220109199042102 [11:26:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112633&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2416&fm=220109199042102&tin=02508201610067®Number=0000000000207295&sum=110000 [11:26:31]OFD Sender: Processing packet 2416 [packets to send 1, broken 0] [11:26:31]ProducePacketName [11:26:31]name=ofd_packets/00002416 [11:26:31]OFD Sender: To server: ‡•öpG, [11:26:31]CommunicateWithHost lk.salyk.kg:30040 [11:26:31]ConnectInit lk.salyk.kg [11:26:31]written 0, free lines is 4095 [11:26:31]Connected sock=11 [11:26:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 BC 40 08 01 EE 60 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 DA 3E 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 E8 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A7 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 E9 45 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 70 09 00 00 35 04 06 00 C8 30 2A 9E E6 36 AB C8 6E A4 FE BF 43 CF [11:26:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B5 C9 47 00 59 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 70 09 00 00 F4 03 04 00 4D F1 11 67 B6 04 01 00 00 2F 86 59 A0 E0 89 88 34 [11:26:31]CommunicateWithHost err = 0 [11:26:31]CheckOFDResponse [11:26:31]1017 (14) - 77093643461234 [11:26:31]1041 (16) - 0000000002342820 [11:26:31]1040 (4) - 2416 [11:26:31]1012 (4) - 18.10.2024 05:25 [11:26:31]1206 (1) - 0 [11:26:31]OFD Sender: Remove packet 2416 [11:26:31]ProducePacketName [11:26:31]name=ofd_packets/00002416 [11:26:31]NVStorageDeleteData [11:26:31]Write to MH i2c: 01 00 00 71 19 8A [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: 01 07 00 71 19 00 00 00 00 00 9D 0C 3A [11:26:31]RasterBufferAndPrint [11:26:31]line [11:26:31]line [11:26:31]line [11:26:31]line [11:26:31]line [11:26:31]written 0, free lines is 3233 [11:26:31]MH_Cut [11:26:31]Write to MH i2c: D1 01 00 78 19 01 63 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D1 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D1 01 00 [11:26:31]MH_I2C_Read... [11:26:31]Read from MH i2c: D1 01 00 78 19 00 62 [11:26:31]Write to MH i2c: 01 00 00 79 19 92 [11:26:31]Write i2c OK [11:26:31]MH_I2C_Read... [11:26:32]OFD Sender: No OFD packet to send [11:26:32]*** Cut start [11:26:32]*** Partial cut [11:26:32]*** CUTSNS_PIN = 1 [11:26:32]*** CUTSNS_PIN = 0 [11:26:33]*** Brake cut motor [11:26:33]Read from MH i2c: 01 [11:26:33]MH_I2C_Read... [11:26:33]*** Stop cut motor [11:26:33]*** Cut end [11:26:33]Read from MH i2c: 01 07 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: 01 07 00 79 19 00 00 00 00 00 FF 0F A7 [11:26:33]process_action close_receipt done [11:26:33]requested_data is exist [11:26:33]produce_requested_data [11:26:33]requested_item fm.sn is exist - process it [11:26:33]wFMCommunicate request_size=4 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 11 00 00 [11:26:33]Write to MH i2c: E2 08 00 7A 19 80 11 00 00 00 00 00 00 0D [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 17 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 17 00 7A 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 55 [11:26:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:26:33]wFMCommunicate OK [11:26:33]requested_item fd.num is exist - process it [11:26:33]SAM_PROTO_GetFieldsCounters [11:26:33]wFMCommunicate request_size=4 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 13 00 00 [11:26:33]Write to MH i2c: E2 08 00 7B 19 80 13 00 00 00 00 00 00 10 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 62 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 62 00 7B 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 70 09 00 00 0E 04 04 00 16 00 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 30 [11:26:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 70 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:26:33]wFMCommunicate OK [11:26:33]SAM_PROTO_GetFieldsCounters done [11:26:33]requested_item shift.num is exist - process it [11:26:33]requested_item shift.opened is exist - process it [11:26:33]req_shift_opened [11:26:33]FM_GetShiftState [11:26:33]SAM_PROTO_GetShiftState [11:26:33]wFMCommunicate request_size=4 [11:26:33]MH_SAM_APDU [11:26:33]CAPDU: 80 13 01 00 [11:26:33]Write to MH i2c: E2 08 00 7C 19 80 13 01 00 00 00 00 00 12 [11:26:33]Write i2c OK [11:26:33]MH_I2C_Read... [11:26:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:33]Read from MH i2c: E2 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 0E 00 [11:26:33]MH_I2C_Read... [11:26:33]Read from MH i2c: E2 0E 00 7C 19 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B0 [11:26:33]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:26:33]wFMCommunicate OK [11:26:33]SAM_PROTO_GetShiftState done [11:26:33]FM_GetShiftState done [11:26:33]req_shift_opened done [11:26:33]requested_item shift.open_date is exist - process it [11:26:33]req_shift_open_date [11:26:33]req_shift_open_date done [11:26:33]produce_requested_data done [11:26:33]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2416,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:26:33]process_action_free close_receipt [11:26:33]json_value_free [11:26:33]json_value_free done [11:26:33]process_json_proto returns [11:26:33]Send response to host [11:26:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2416,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:26:33]free response buf [11:26:33]execute_script done [11:26:33]execute_script returns [11:26:33]free content buf [11:26:33]Sock 9.Close socket [11:26:33]Sock 9.Thread stoped [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:33]accept exits with 7 [11:28:33]New connection [11:28:33]New thread 3066707300 created [11:28:33]Thread 3066850660 joined [11:28:33]Waiting for new connection... [11:28:33] Sock 7.Parse request [11:28:33]Sock 7.Check first char [11:28:33]Sock 7.First char is OK [11:28:33]request: POST /json_proto HTTP/1.0 [11:28:33]Method: POST [11:28:33]URL: /json_proto [11:28:33]Method is POST - this is cgi request [11:28:33]url: /json_proto [11:28:33]query_string will be loaded in cgi processing [11:28:33]execute_cgi json_proto POST (null) [11:28:33]execute_cgi path=json_proto method=POST [11:28:33]POST find Content-Length [11:28:33]Host: 172.17.52.132:8080 [11:28:33]Content-Length: 678 [11:28:33]Content-Type: application/json [11:28:33] [11:28:33]POST finish read [11:28:33]Found Content-Length = 678 [11:28:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475335", "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" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:33]execute_script... [11:28: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)475335", "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" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:28:33]POST & json_proto [11:28:33]process_json_proto [11:28:33]json parsed OK: [11:28:33]protocol is kg_v1.0 [11:28:33]action value=close_receipt [11:28:33]process_action close_receipt [11:28:33]cmd_close_receipt [11:28:33]MH_GetDate [11:28:33]Write to MH i2c: F0 00 00 7D 19 85 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: F0 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: F0 09 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: F0 09 00 7D 19 00 65 46 12 67 5A BE F6 66 26 [11:28:33]GetLastDocTimeStamp 1729250793 [11:28:33]current date 1729250917 [11:28:33]FM_GetShiftState [11:28:33]SAM_PROTO_GetShiftState [11:28:33]wFMCommunicate request_size=4 [11:28:33]MH_SAM_APDU [11:28:33]CAPDU: 80 13 01 00 [11:28:33]Write to MH i2c: E2 08 00 7E 19 80 13 01 00 00 00 00 00 14 [11:28:33]Write i2c OK [11:28:33]MH_I2C_Read... [11:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:33]Read from MH i2c: E2 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 0E 00 [11:28:33]MH_I2C_Read... [11:28:33]Read from MH i2c: E2 0E 00 7E 19 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B2 [11:28:33]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:28:33]wFMCommunicate OK [11:28:33]SAM_PROTO_GetShiftState done [11:28:33]FM_GetShiftState done [11:28:33]opened in 1729209717 [11:28:33]opened+sec_in_day 1729296117 [11:28:33]quantity*price = 80012 [11:28:33]sum+1 = 80013 [11:28:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.12 ИТОГО: 800.00 ВнеÑено: 800.00 СДÐЧÐ: 0.00 ÐСП 1% : 7.08 ÐДС 12% : 84.97 Ðаличными: 800.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 42 18.10.2024 11:28 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2417 ФПД: 131889830596193 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112837&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2417&fm=131889830596193&tin=02508201610067®Number=0000000000207295&sum=80000 [11:28:34]StoreToDocumentArchive [11:28:34]shift 22 fd 2417 [11:28:34]save to /storage/0022/doc_00002417 [11:28:34]save last doc name /storage/0022/doc_00002417 to /storage/kkm_last_doc_name [11:28:34]save OK [11:28:34]Clear old archive folders... [11:28:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:28:34]tlvbuf is 013B3A20 [11:28:34]SAM_PROTO_ClearQueue [11:28:34]wFMCommunicate request_size=4 [11:28:34]MH_SAM_APDU [11:28:34]CAPDU: 80 09 00 00 [11:28:34]Write to MH i2c: E2 08 00 8B 19 80 09 00 00 00 00 00 00 16 [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:28:34]Read from MH i2c: E2 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 03 00 [11:28:34]MH_I2C_Read... [11:28:34]Read from MH i2c: E2 03 00 8B 19 00 90 00 18 [11:28:34]RAPDU: 90 00 [11:28:34]wFMCommunicate OK [11:28:34]SAM_PROTO_ClearQueue done [11:28:34]KKMCreateOFDPacket [11:28:34]OFDProtocolAddRootSTLVToBuf [11:28:34]FM_MakeSignedData [11:28:34]FM_MakeSignedData [11:28:34]SAM_PROTO_SignData [11:28:34]wFMCommunicate request_size=4 [11:28:34]MH_SAM_APDU [11:28:34]CAPDU: 80 0D 01 02 [11:28:34]Write to MH i2c: E2 08 00 8C 19 80 0D 01 02 00 00 00 00 1E [11:28:34]Write i2c OK [11:28:34]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 8C 19 00 90 00 19 [11:28:35]RAPDU: 90 00 [11:28:35]wFMCommunicate OK [11:28:35]wFMCommunicate request_size=255 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 65 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 71 09 00 00 35 04 06 00 77 [11:28:35]Write to MH i2c: E2 02 01 8D 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 65 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 71 09 00 00 35 04 06 00 77 00 00 E3 [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 8D 19 00 90 00 1A [11:28:35]RAPDU: 90 00 [11:28:35]wFMCommunicate OK [11:28:35]wFMCommunicate request_size=10 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 0D 02 02 05 F3 FE 80 8E 61 [11:28:35]Write to MH i2c: E2 0D 00 8E 19 80 0D 02 02 05 00 F3 FE 80 8E 61 00 00 8B [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [11:28:35]RAPDU: 90 00 [11:28:35]wFMCommunicate OK [11:28:35]wFMCommunicate request_size=4 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 0D 03 02 [11:28:35]Write to MH i2c: E2 08 00 8F 19 80 0D 03 02 00 00 00 00 23 [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 0B 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 0B 00 8F 19 00 16 6E 56 A6 19 66 AE 4F 90 00 20 [11:28:35]RAPDU: 16 6E 56 A6 19 66 AE 4F 90 00 [11:28:35]wFMCommunicate OK [11:28:35]SAM_PROTO_SignData done [11:28:35]FM_MakeSignedData done [11:28:35]CreateOFDProtocolMessage [11:28:35]wFMCommunicate request_size=4 [11:28:35]MH_SAM_APDU [11:28:35]CAPDU: 80 11 00 00 [11:28:35]Write to MH i2c: E2 08 00 90 19 80 11 00 00 00 00 00 00 23 [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:35]Read from MH i2c: E2 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 17 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: E2 17 00 90 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 6B [11:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:28:35]wFMCommunicate OK [11:28:35]CreateOFDProtocolMessage done [11:28:35]OFDSenderStorePacket 2417 [11:28:35]StoreOFDPacket docnum=2417 [11:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 56 D3 07 01 9C 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 65 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 71 09 00 00 35 04 06 00 77 F3 FE 80 8E 61 16 6E 56 A6 19 66 AE 4F [11:28:35]CheckFolder [11:28:35]dirname=/storage/ofd_packets [11:28:35]CheckFolder done [11:28:35]ProducePacketName [11:28:35]name=ofd_packets/00002417 [11:28:35]NVStorageSaveData ofd_packets/00002417 [11:28:35]File name is /storage/ofd_packets/00002417 [11:28:35]Write 301 bytes [11:28:35]NVStorageSaveData done [11:28:35]OFDSenderStorePacket done [11:28:35]KKMCreateOFDPacket done [11:28:35]NVStorageSaveData kkm_last_timestamp [11:28:35]File name is /storage/kkm_last_timestamp [11:28:35]Write 4 bytes [11:28:35]NVStorageSaveData done [11:28:35]ExternCall_PrintAddStr [11:28:35]wPrintStart [11:28:35]Write to MH i2c: 01 00 00 91 19 AA [11:28:35]Write i2c OK [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: 01 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: 01 07 00 [11:28:35]MH_I2C_Read... [11:28:35]Read from MH i2c: 01 07 00 91 19 00 00 00 00 00 FF 0F BF [11:28:35]RasterBufferAndPrint [11:28:35]line Счет N : (1)475335 [11:28:35]line ИÐÐ: 02508201610067 [11:28:35]line Контрольно-КаÑÑовый Чек [11:28:35]line ПРОДÐЖР[11:28:35]line ТРК (МРК, ГÐК) : 22 [11:28:35]line Товар: 2710124130 [11:28:35]line Ðи-92-К-5 [11:28:35]line 11.960 * 66.90 [11:28:35]line = 800.12 [11:28:35]line ÐДС 12% ÐСП 1% [11:28:35]line > о реализуемом товаре [11:28:35]line ОКРУГЛЕÐИЕ: -0.12 [11:28:35]line ИТОГО: 800.00 [11:28:35]line ВнеÑено: 800.00 [11:28:35]line СДÐЧÐ: 0.00 [11:28:35]line ÐСП 1% : 7.08 [11:28:35]line ÐДС 12% : 84.97 [11:28:35]line Ðаличными: 800.00 [11:28:35]line Безнал.: 0.00 [11:28:35]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:28:35]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:28:35]line СÐО: Общий режим [11:28:35]line Чек 42 18.10.2024 11:28 [11:28:35]line Смена: 22 ФФД: 1.0 [11:28:35]line ЗÐМ: 0300000191 [11:28:35]line РÐМ: 0000000000207295 [11:28:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:28:35]line ФМ: 0000000002342820 [11:28:35]line ФД: 2417 [11:28:35]line ФПД: 131889830596193 [11:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T112837&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2417&fm=131889830596193&tin=02508201610067®Number=0000000000207295&sum=80000 [11:28:35]OFD Sender: Processing packet 2417 [packets to send 1, broken 0] [11:28:35]ProducePacketName [11:28:35]name=ofd_packets/00002417 [11:28:35]OFD Sender: To server: ‡•öpG, [11:28:35]CommunicateWithHost lk.salyk.kg:30040 [11:28:35]ConnectInit lk.salyk.kg [11:28:35]written 0, free lines is 4095 [11:28:35]Connected sock=10 [11:28:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 56 D3 07 01 9C 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 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2A 00 00 00 F4 03 04 00 65 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 71 09 00 00 35 04 06 00 77 F3 FE 80 8E 61 16 6E 56 A6 19 66 AE 4F [11:28:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 53 EC 47 00 97 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 32 33 34 32 38 32 30 10 04 04 00 71 09 00 00 F4 03 04 00 C9 F1 11 67 B6 04 01 00 00 A1 BD AC C4 55 16 53 18 [11:28:36]CommunicateWithHost err = 0 [11:28:36]CheckOFDResponse [11:28:36]1017 (14) - 77093643461234 [11:28:36]1041 (16) - 0000000002342820 [11:28:36]1040 (4) - 2417 [11:28:36]1012 (4) - 18.10.2024 05:27 [11:28:36]1206 (1) - 0 [11:28:36]OFD Sender: Remove packet 2417 [11:28:36]ProducePacketName [11:28:36]name=ofd_packets/00002417 [11:28:36]NVStorageDeleteData [11:28:36]Write to MH i2c: 01 00 00 BC 19 D5 [11:28:36]Write i2c OK [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: 01 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: 01 07 00 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: 01 07 00 BC 19 00 00 00 00 00 AC 0C 94 [11:28:36]RasterBufferAndPrint [11:28:36]line [11:28:36]line [11:28:36]line [11:28:36]line [11:28:36]line [11:28:36]written 0, free lines is 3248 [11:28:36]MH_Cut [11:28:36]Write to MH i2c: D1 01 00 C3 19 01 AE [11:28:36]Write i2c OK [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: D1 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: D1 01 00 [11:28:36]MH_I2C_Read... [11:28:36]Read from MH i2c: D1 01 00 C3 19 00 AD [11:28:36]Write to MH i2c: 01 00 00 C4 19 DD [11:28:36]Write i2c OK [11:28:36]MH_I2C_Read... [11:28:36]OFD Sender: No OFD packet to send [11:28:37]*** Cut start [11:28:37]*** Partial cut [11:28:37]*** CUTSNS_PIN = 1 [11:28:37]*** CUTSNS_PIN = 0 [11:28:37]*** Brake cut motor [11:28:37]Read from MH i2c: 01 [11:28:37]MH_I2C_Read... [11:28:37]*** Stop cut motor [11:28:37]*** Cut end [11:28:37]Read from MH i2c: 01 07 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: 01 07 00 C4 19 00 00 00 00 00 FF 0F F2 [11:28:37]process_action close_receipt done [11:28:37]requested_data is exist [11:28:37]produce_requested_data [11:28:37]requested_item fm.sn is exist - process it [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 11 00 00 [11:28:37]Write to MH i2c: E2 08 00 C5 19 80 11 00 00 00 00 00 00 58 [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:28:37]Read from MH i2c: E2 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 17 00 [11:28:37]MH_I2C_Read... [11:28:37]Read from MH i2c: E2 17 00 C5 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 A0 [11:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:28:37]wFMCommunicate OK [11:28:37]requested_item fd.num is exist - process it [11:28:37]SAM_PROTO_GetFieldsCounters [11:28:37]wFMCommunicate request_size=4 [11:28:37]MH_SAM_APDU [11:28:37]CAPDU: 80 13 00 00 [11:28:37]Write to MH i2c: E2 08 00 C6 19 80 13 00 00 00 00 00 00 5B [11:28:37]Write i2c OK [11:28:37]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 62 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 62 00 C6 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 71 09 00 00 0E 04 04 00 16 00 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 7F [11:28:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 71 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:28:38]wFMCommunicate OK [11:28:38]SAM_PROTO_GetFieldsCounters done [11:28:38]requested_item shift.num is exist - process it [11:28:38]requested_item shift.opened is exist - process it [11:28:38]req_shift_opened [11:28:38]FM_GetShiftState [11:28:38]SAM_PROTO_GetShiftState [11:28:38]wFMCommunicate request_size=4 [11:28:38]MH_SAM_APDU [11:28:38]CAPDU: 80 13 01 00 [11:28:38]Write to MH i2c: E2 08 00 C7 19 80 13 01 00 00 00 00 00 5D [11:28:38]Write i2c OK [11:28:38]MH_I2C_Read... [11:28:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:28:38]Read from MH i2c: E2 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 0E 00 [11:28:38]MH_I2C_Read... [11:28:38]Read from MH i2c: E2 0E 00 C7 19 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 FB [11:28:38]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:28:38]wFMCommunicate OK [11:28:38]SAM_PROTO_GetShiftState done [11:28:38]FM_GetShiftState done [11:28:38]req_shift_opened done [11:28:38]requested_item shift.open_date is exist - process it [11:28:38]req_shift_open_date [11:28:38]req_shift_open_date done [11:28:38]produce_requested_data done [11:28:38]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2417,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:28:38]process_action_free close_receipt [11:28:38]json_value_free [11:28:38]json_value_free done [11:28:38]process_json_proto returns [11:28:38]Send response to host [11:28:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2417,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:28:38]free response buf [11:28:38]execute_script done [11:28:38]execute_script returns [11:28:38]free content buf [11:28:38]Sock 7.Close socket [11:28:38]Sock 7.Thread stoped [11:28:41]OFD Sender: No OFD packet to send [11:28:46]OFD Sender: No OFD packet to send [11:28:51]OFD Sender: No OFD packet to send [11:28:56]OFD Sender: No OFD packet to send [11:29:01]OFD Sender: No OFD packet to send [11:29:06]OFD Sender: No OFD packet to send [11:29:11]OFD Sender: No OFD packet to send [11:29:16]OFD Sender: No OFD packet to send [11:29:21]OFD Sender: No OFD packet to send [11:29:26]OFD Sender: No OFD packet to send [11:29:31]OFD Sender: No OFD packet to send [11:29:36]OFD Sender: No OFD packet to send [11:29:41]OFD Sender: No OFD packet to send [11:29:46]OFD Sender: No OFD packet to send [11:29:51]OFD Sender: No OFD packet to send [11:29:56]OFD Sender: No OFD packet to send [11:30:01]OFD Sender: No OFD packet to send [11:30:06]OFD Sender: No OFD packet to send [11:30:11]OFD Sender: No OFD packet to send [11:30:16]OFD Sender: No OFD packet to send [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:33]accept exits with 9 [11:30:33]New connection [11:30:33]New thread 3066850660 created [11:30:33]Thread 3066707300 joined [11:30:33]Waiting for new connection... [11:30:33] Sock 9.Parse request [11:30:33]Sock 9.Check first char [11:30:33]Sock 9.First char is OK [11:30:33]request: POST /json_proto HTTP/1.0 [11:30:33]Method: POST [11:30:33]URL: /json_proto [11:30:33]Method is POST - this is cgi request [11:30:33]url: /json_proto [11:30:33]query_string will be loaded in cgi processing [11:30:33]execute_cgi json_proto POST (null) [11:30:33]execute_cgi path=json_proto method=POST [11:30:33]POST find Content-Length [11:30:33]Host: 172.17.52.132:8080 [11:30:33]Content-Length: 677 [11:30:33]Content-Type: application/json [11:30:33] [11:30:33]POST finish read [11:30:33]Found Content-Length = 677 [11:30:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475337", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:33]execute_script... [11:30: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)475337", "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" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:33]POST & json_proto [11:30:33]process_json_proto [11:30:33]json parsed OK: [11:30:33]protocol is kg_v1.0 [11:30:33]action value=close_receipt [11:30:33]process_action close_receipt [11:30:33]cmd_close_receipt [11:30:33]MH_GetDate [11:30:33]Write to MH i2c: F0 00 00 C8 19 D0 [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: F0 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: F0 09 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: F0 09 00 C8 19 00 DD 46 12 67 5A BE F6 66 E9 [11:30:33]GetLastDocTimeStamp 1729250917 [11:30:33]current date 1729251037 [11:30:33]FM_GetShiftState [11:30:33]SAM_PROTO_GetShiftState [11:30:33]wFMCommunicate request_size=4 [11:30:33]MH_SAM_APDU [11:30:33]CAPDU: 80 13 01 00 [11:30:33]Write to MH i2c: E2 08 00 C9 19 80 13 01 00 00 00 00 00 5F [11:30:33]Write i2c OK [11:30:33]MH_I2C_Read... [11:30:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:33]Read from MH i2c: E2 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 0E 00 [11:30:33]MH_I2C_Read... [11:30:33]Read from MH i2c: E2 0E 00 C9 19 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 FD [11:30:33]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:30:33]wFMCommunicate OK [11:30:33]SAM_PROTO_GetShiftState done [11:30:33]FM_GetShiftState done [11:30:33]opened in 1729209717 [11:30:33]opened+sec_in_day 1729296117 [11:30:33]quantity*price = 60009 [11:30:33]sum+1 = 60010 [11:30:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.09 ИТОГО: 600.00 ВнеÑено: 600.00 СДÐЧÐ: 0.00 ÐСП 1% : 5.31 ÐДС 12% : 63.73 Ðаличными: 600.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 43 18.10.2024 11:30 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2418 ФПД: 125856245777776 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113037&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2418&fm=125856245777776&tin=02508201610067®Number=0000000000207295&sum=60000 [11:30:35]StoreToDocumentArchive [11:30:35]shift 22 fd 2418 [11:30:35]save to /storage/0022/doc_00002418 [11:30:35]save last doc name /storage/0022/doc_00002418 to /storage/kkm_last_doc_name [11:30:35]save OK [11:30:35]Clear old archive folders... [11:30:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:30:35]tlvbuf is 013B3C20 [11:30:35]SAM_PROTO_ClearQueue [11:30:35]wFMCommunicate request_size=4 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 09 00 00 [11:30:35]Write to MH i2c: E2 08 00 D6 19 80 09 00 00 00 00 00 00 61 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 D6 19 00 90 00 63 [11:30:35]RAPDU: 90 00 [11:30:35]wFMCommunicate OK [11:30:35]SAM_PROTO_ClearQueue done [11:30:35]KKMCreateOFDPacket [11:30:35]OFDProtocolAddRootSTLVToBuf [11:30:35]FM_MakeSignedData [11:30:35]FM_MakeSignedData [11:30:35]SAM_PROTO_SignData [11:30:35]wFMCommunicate request_size=4 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 0D 01 02 [11:30:35]Write to MH i2c: E2 08 00 D7 19 80 0D 01 02 00 00 00 00 69 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 D7 19 00 90 00 64 [11:30:35]RAPDU: 90 00 [11:30:35]wFMCommunicate OK [11:30:35]wFMCommunicate request_size=255 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 DD 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 72 09 00 00 35 04 06 00 72 [11:30:35]Write to MH i2c: E2 02 01 D8 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 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 DD 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 72 09 00 00 35 04 06 00 72 00 00 94 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 D8 19 00 90 00 65 [11:30:35]RAPDU: 90 00 [11:30:35]wFMCommunicate OK [11:30:35]wFMCommunicate request_size=10 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 0D 02 02 05 77 30 D2 85 70 [11:30:35]Write to MH i2c: E2 0D 00 D9 19 80 0D 02 02 05 00 77 30 D2 85 70 00 00 E4 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [11:30:35]RAPDU: 90 00 [11:30:35]wFMCommunicate OK [11:30:35]wFMCommunicate request_size=4 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 0D 03 02 [11:30:35]Write to MH i2c: E2 08 00 DA 19 80 0D 03 02 00 00 00 00 6E [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 0B 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 0B 00 DA 19 00 F7 C7 B8 84 FF B3 CD 77 90 00 5F [11:30:35]RAPDU: F7 C7 B8 84 FF B3 CD 77 90 00 [11:30:35]wFMCommunicate OK [11:30:35]SAM_PROTO_SignData done [11:30:35]FM_MakeSignedData done [11:30:35]CreateOFDProtocolMessage [11:30:35]wFMCommunicate request_size=4 [11:30:35]MH_SAM_APDU [11:30:35]CAPDU: 80 11 00 00 [11:30:35]Write to MH i2c: E2 08 00 DB 19 80 11 00 00 00 00 00 00 6E [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:35]Read from MH i2c: E2 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 17 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: E2 17 00 DB 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B6 [11:30:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:30:35]wFMCommunicate OK [11:30:35]CreateOFDProtocolMessage done [11:30:35]OFDSenderStorePacket 2418 [11:30:35]StoreOFDPacket docnum=2418 [11:30:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 27 6E 07 01 4A A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 DD 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 72 09 00 00 35 04 06 00 72 77 30 D2 85 70 F7 C7 B8 84 FF B3 CD 77 [11:30:35]CheckFolder [11:30:35]dirname=/storage/ofd_packets [11:30:35]CheckFolder done [11:30:35]ProducePacketName [11:30:35]name=ofd_packets/00002418 [11:30:35]NVStorageSaveData ofd_packets/00002418 [11:30:35]File name is /storage/ofd_packets/00002418 [11:30:35]Write 301 bytes [11:30:35]NVStorageSaveData done [11:30:35]OFDSenderStorePacket done [11:30:35]KKMCreateOFDPacket done [11:30:35]NVStorageSaveData kkm_last_timestamp [11:30:35]File name is /storage/kkm_last_timestamp [11:30:35]Write 4 bytes [11:30:35]NVStorageSaveData done [11:30:35]ExternCall_PrintAddStr [11:30:35]wPrintStart [11:30:35]Write to MH i2c: 01 00 00 DC 19 F5 [11:30:35]Write i2c OK [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: 01 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: 01 07 00 [11:30:35]MH_I2C_Read... [11:30:35]Read from MH i2c: 01 07 00 DC 19 00 00 00 00 00 FF 0F 0A [11:30:35]RasterBufferAndPrint [11:30:35]line Счет N : (1)475337 [11:30:35]line ИÐÐ: 02508201610067 [11:30:35]line Контрольно-КаÑÑовый Чек [11:30:35]line ПРОДÐЖР[11:30:35]line ТРК (МРК, ГÐК) : 12 [11:30:35]line Товар: 2710124130 [11:30:35]line Ðи-92-К-5 [11:30:35]line 8.970 * 66.90 [11:30:35]line = 600.09 [11:30:35]line ÐДС 12% ÐСП 1% [11:30:35]line > о реализуемом товаре [11:30:35]line ОКРУГЛЕÐИЕ: -0.09 [11:30:35]line ИТОГО: 600.00 [11:30:35]line ВнеÑено: 600.00 [11:30:35]line СДÐЧÐ: 0.00 [11:30:35]line ÐСП 1% : 5.31 [11:30:35]line ÐДС 12% : 63.73 [11:30:35]line Ðаличными: 600.00 [11:30:35]line Безнал.: 0.00 [11:30:35]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:30:35]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:30:35]line СÐО: Общий режим [11:30:35]line Чек 43 18.10.2024 11:30 [11:30:35]line Смена: 22 ФФД: 1.0 [11:30:35]line ЗÐМ: 0300000191 [11:30:35]line РÐМ: 0000000000207295 [11:30:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:30:35]line ФМ: 0000000002342820 [11:30:35]line ФД: 2418 [11:30:35]line ФПД: 125856245777776 [11:30:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113037&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2418&fm=125856245777776&tin=02508201610067®Number=0000000000207295&sum=60000 [11:30:35]OFD Sender: Processing packet 2418 [packets to send 1, broken 0] [11:30:35]ProducePacketName [11:30:35]name=ofd_packets/00002418 [11:30:35]OFD Sender: To server: ‡•öpG, [11:30:35]CommunicateWithHost lk.salyk.kg:30040 [11:30:35]ConnectInit lk.salyk.kg [11:30:35]written 0, free lines is 4095 [11:30:36]Connected sock=11 [11:30:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 27 6E 07 01 4A A3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 DD 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 72 09 00 00 35 04 06 00 72 77 30 D2 85 70 F7 C7 B8 84 FF B3 CD 77 [11:30:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 C1 33 47 00 F5 03 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 72 09 00 00 F4 03 04 00 42 F2 11 67 B6 04 01 00 00 BC CF 79 03 8C 25 A9 73 [11:30:36]CommunicateWithHost err = 0 [11:30:36]CheckOFDResponse [11:30:36]1017 (14) - 77093643461234 [11:30:36]1041 (16) - 0000000002342820 [11:30:36]1040 (4) - 2418 [11:30:36]1012 (4) - 18.10.2024 05:29 [11:30:36]1206 (1) - 0 [11:30:36]OFD Sender: Remove packet 2418 [11:30:36]ProducePacketName [11:30:36]name=ofd_packets/00002418 [11:30:36]NVStorageDeleteData [11:30:36]Write to MH i2c: 01 00 00 07 1A 21 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 07 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: 01 07 00 07 1A 00 00 00 00 00 97 0C CB [11:30:36]RasterBufferAndPrint [11:30:36]line [11:30:36]line [11:30:36]line [11:30:36]line [11:30:36]line [11:30:36]written 0, free lines is 3226 [11:30:36]MH_Cut [11:30:36]Write to MH i2c: D1 01 00 0E 1A 01 FA [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: D1 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: D1 01 00 [11:30:36]MH_I2C_Read... [11:30:36]Read from MH i2c: D1 01 00 0E 1A 00 F9 [11:30:36]Write to MH i2c: 01 00 00 0F 1A 29 [11:30:36]Write i2c OK [11:30:36]MH_I2C_Read... [11:30:36]OFD Sender: No OFD packet to send [11:30:37]*** Cut start [11:30:37]*** Partial cut [11:30:37]*** CUTSNS_PIN = 1 [11:30:37]*** CUTSNS_PIN = 0 [11:30:37]*** Brake cut motor [11:30:37]Read from MH i2c: 01 [11:30:37]MH_I2C_Read... [11:30:37]*** Stop cut motor [11:30:37]*** Cut end [11:30:37]Read from MH i2c: 01 07 00 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: 01 07 00 0F 1A 00 00 00 00 00 FF 0F 3E [11:30:37]process_action close_receipt done [11:30:37]requested_data is exist [11:30:37]produce_requested_data [11:30:37]requested_item fm.sn is exist - process it [11:30:37]wFMCommunicate request_size=4 [11:30:37]MH_SAM_APDU [11:30:37]CAPDU: 80 11 00 00 [11:30:37]Write to MH i2c: E2 08 00 10 1A 80 11 00 00 00 00 00 00 A4 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:37]Read from MH i2c: E2 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: E2 17 00 [11:30:37]MH_I2C_Read... [11:30:37]Read from MH i2c: E2 17 00 10 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EC [11:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:30:37]wFMCommunicate OK [11:30:37]requested_item fd.num is exist - process it [11:30:37]SAM_PROTO_GetFieldsCounters [11:30:37]wFMCommunicate request_size=4 [11:30:37]MH_SAM_APDU [11:30:37]CAPDU: 80 13 00 00 [11:30:37]Write to MH i2c: E2 08 00 11 1A 80 13 00 00 00 00 00 00 A7 [11:30:37]Write i2c OK [11:30:37]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 62 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 62 00 11 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 72 09 00 00 0E 04 04 00 16 00 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 CF [11:30:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 72 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:38]wFMCommunicate OK [11:30:38]SAM_PROTO_GetFieldsCounters done [11:30:38]requested_item shift.num is exist - process it [11:30:38]requested_item shift.opened is exist - process it [11:30:38]req_shift_opened [11:30:38]FM_GetShiftState [11:30:38]SAM_PROTO_GetShiftState [11:30:38]wFMCommunicate request_size=4 [11:30:38]MH_SAM_APDU [11:30:38]CAPDU: 80 13 01 00 [11:30:38]Write to MH i2c: E2 08 00 12 1A 80 13 01 00 00 00 00 00 A9 [11:30:38]Write i2c OK [11:30:38]MH_I2C_Read... [11:30:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:38]Read from MH i2c: E2 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 0E 00 [11:30:38]MH_I2C_Read... [11:30:38]Read from MH i2c: E2 0E 00 12 1A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 47 [11:30:38]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:30:38]wFMCommunicate OK [11:30:38]SAM_PROTO_GetShiftState done [11:30:38]FM_GetShiftState done [11:30:38]req_shift_opened done [11:30:38]requested_item shift.open_date is exist - process it [11:30:38]req_shift_open_date [11:30:38]req_shift_open_date done [11:30:38]produce_requested_data done [11:30:38]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2418,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:30:38]process_action_free close_receipt [11:30:38]json_value_free [11:30:38]json_value_free done [11:30:38]process_json_proto returns [11:30:38]Send response to host [11:30:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2418,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:30:38]free response buf [11:30:38]execute_script done [11:30:38]execute_script returns [11:30:38]free content buf [11:30:38]Sock 9.Close socket [11:30:38]Sock 9.Thread stoped [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:47]accept exits with 7 [11:30:47]New connection [11:30:47]New thread 3066707300 created [11:30:47]Thread 3066850660 joined [11:30:47]Waiting for new connection... [11:30:47] Sock 7.Parse request [11:30:47]Sock 7.Check first char [11:30:47]Sock 7.First char is OK [11:30:47]request: POST /json_proto HTTP/1.0 [11:30:47]Method: POST [11:30:47]URL: /json_proto [11:30:47]Method is POST - this is cgi request [11:30:47]url: /json_proto [11:30:47]query_string will be loaded in cgi processing [11:30:47]execute_cgi json_proto POST (null) [11:30:47]execute_cgi path=json_proto method=POST [11:30:47]POST find Content-Length [11:30:47]Host: 172.17.52.132:8080 [11:30:47]Content-Length: 670 [11:30:47]Content-Type: application/json [11:30:47] [11:30:47]POST finish read [11:30:47]Found Content-Length = 670 [11:30:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [11:30:47]execute_script... [11:30: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)475338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "SUPER-92-\u041A-5", "price" : 68.40, "quantity" : 2.930, "sum" : 200.41, "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" ] } } [11:30:47]POST & json_proto [11:30:47]process_json_proto [11:30:47]json parsed OK: [11:30:47]protocol is kg_v1.0 [11:30:47]action value=close_receipt [11:30:47]process_action close_receipt [11:30:47]cmd_close_receipt [11:30:47]MH_GetDate [11:30:47]Write to MH i2c: F0 00 00 13 1A 1C [11:30:47]Write i2c OK [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: F0 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: F0 09 00 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: F0 09 00 13 1A 00 EB 46 12 67 5A BE F6 66 43 [11:30:47]GetLastDocTimeStamp 1729251037 [11:30:47]current date 1729251051 [11:30:47]FM_GetShiftState [11:30:47]SAM_PROTO_GetShiftState [11:30:47]wFMCommunicate request_size=4 [11:30:47]MH_SAM_APDU [11:30:47]CAPDU: 80 13 01 00 [11:30:47]Write to MH i2c: E2 08 00 14 1A 80 13 01 00 00 00 00 00 AB [11:30:47]Write i2c OK [11:30:47]MH_I2C_Read... [11:30:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:47]Read from MH i2c: E2 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 0E 00 [11:30:47]MH_I2C_Read... [11:30:47]Read from MH i2c: E2 0E 00 14 1A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 49 [11:30:47]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:30:47]wFMCommunicate OK [11:30:47]SAM_PROTO_GetShiftState done [11:30:47]FM_GetShiftState done [11:30:47]opened in 1729209717 [11:30:47]opened+sec_in_day 1729296117 [11:30:47]quantity*price = 20041 [11:30:47]sum+1 = 20042 [11:30:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.41 ИТОГО: 200.00 ВнеÑено: 200.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.77 ÐДС 12% : 21.28 Ðаличными: 200.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 44 18.10.2024 11:30 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2419 ФПД: 61409910192936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113051&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2419&fm=61409910192936&tin=02508201610067®Number=0000000000207295&sum=20000 [11:30:48]StoreToDocumentArchive [11:30:48]shift 22 fd 2419 [11:30:48]save to /storage/0022/doc_00002419 [11:30:48]save last doc name /storage/0022/doc_00002419 to /storage/kkm_last_doc_name [11:30:48]save OK [11:30:48]Clear old archive folders... [11:30:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:30:48]tlvbuf is B6F3C7B0 [11:30:48]SAM_PROTO_ClearQueue [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 09 00 00 [11:30:48]Write to MH i2c: E2 08 00 21 1A 80 09 00 00 00 00 00 00 AD [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:48]Read from MH i2c: E2 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 [11:30:48]MH_I2C_Read... [11:30:48]Read from MH i2c: E2 03 00 21 1A 00 90 00 AF [11:30:48]RAPDU: 90 00 [11:30:48]wFMCommunicate OK [11:30:48]SAM_PROTO_ClearQueue done [11:30:48]KKMCreateOFDPacket [11:30:48]OFDProtocolAddRootSTLVToBuf [11:30:48]FM_MakeSignedData [11:30:48]FM_MakeSignedData [11:30:48]SAM_PROTO_SignData [11:30:48]wFMCommunicate request_size=4 [11:30:48]MH_SAM_APDU [11:30:48]CAPDU: 80 0D 01 02 [11:30:48]Write to MH i2c: E2 08 00 22 1A 80 0D 01 02 00 00 00 00 B5 [11:30:48]Write i2c OK [11:30:48]MH_I2C_Read... [11:30:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 22 1A 00 90 00 B0 [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=255 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 2C 00 00 00 F4 03 04 00 EB 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 73 09 00 00 35 04 06 00 [11:30:49]Write to MH i2c: E2 02 01 23 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 2C 00 00 00 F4 03 04 00 EB 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 73 09 00 00 35 04 06 00 00 00 91 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 23 1A 00 90 00 B1 [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=11 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 02 02 06 37 DA 1B E1 FB 28 [11:30:49]Write to MH i2c: E2 0E 00 24 1A 80 0D 02 02 06 00 37 DA 1B E1 FB 28 00 00 F4 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 03 00 24 1A 00 90 00 B2 [11:30:49]RAPDU: 90 00 [11:30:49]wFMCommunicate OK [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 0D 03 02 [11:30:49]Write to MH i2c: E2 08 00 25 1A 80 0D 03 02 00 00 00 00 BA [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0B 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 0B 00 25 1A 00 69 44 AC C3 C0 0B 12 40 90 00 F4 [11:30:49]RAPDU: 69 44 AC C3 C0 0B 12 40 90 00 [11:30:49]wFMCommunicate OK [11:30:49]SAM_PROTO_SignData done [11:30:49]FM_MakeSignedData done [11:30:49]CreateOFDProtocolMessage [11:30:49]wFMCommunicate request_size=4 [11:30:49]MH_SAM_APDU [11:30:49]CAPDU: 80 11 00 00 [11:30:49]Write to MH i2c: E2 08 00 26 1A 80 11 00 00 00 00 00 00 BA [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:49]Read from MH i2c: E2 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: E2 17 00 26 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 02 [11:30:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:30:49]wFMCommunicate OK [11:30:49]CreateOFDProtocolMessage done [11:30:49]OFDSenderStorePacket 2419 [11:30:49]StoreOFDPacket docnum=2419 [11:30:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 00 D4 08 01 7E 69 5A 03 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 2C 00 00 00 F4 03 04 00 EB 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 73 09 00 00 35 04 06 00 37 DA 1B E1 FB 28 69 44 AC C3 C0 0B 12 40 [11:30:49]CheckFolder [11:30:49]dirname=/storage/ofd_packets [11:30:49]CheckFolder done [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00002419 [11:30:49]NVStorageSaveData ofd_packets/00002419 [11:30:49]File name is /storage/ofd_packets/00002419 [11:30:49]Write 302 bytes [11:30:49]NVStorageSaveData done [11:30:49]OFDSenderStorePacket done [11:30:49]KKMCreateOFDPacket done [11:30:49]NVStorageSaveData kkm_last_timestamp [11:30:49]File name is /storage/kkm_last_timestamp [11:30:49]Write 4 bytes [11:30:49]NVStorageSaveData done [11:30:49]ExternCall_PrintAddStr [11:30:49]wPrintStart [11:30:49]Write to MH i2c: 01 00 00 27 1A 41 [11:30:49]Write i2c OK [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 [11:30:49]MH_I2C_Read... [11:30:49]Read from MH i2c: 01 07 00 27 1A 00 00 00 00 00 FF 0F 56 [11:30:49]RasterBufferAndPrint [11:30:49]line Счет N : (1)475338 [11:30:49]line ИÐÐ: 02508201610067 [11:30:49]line Контрольно-КаÑÑовый Чек [11:30:49]line ПРОДÐЖР[11:30:49]line ТРК (МРК, ГÐК) : 53 [11:30:49]line Товар: 2710124130 [11:30:49]line SUPER-92-К-5 [11:30:49]line 2.930 * 68.40 [11:30:49]line = 200.41 [11:30:49]line ÐДС 12% ÐСП 1% [11:30:49]line > о реализуемом товаре [11:30:49]line ОКРУГЛЕÐИЕ: -0.41 [11:30:49]line ИТОГО: 200.00 [11:30:49]line ВнеÑено: 200.00 [11:30:49]line СДÐЧÐ: 0.00 [11:30:49]line ÐСП 1% : 1.77 [11:30:49]line ÐДС 12% : 21.28 [11:30:49]line Ðаличными: 200.00 [11:30:49]line Безнал.: 0.00 [11:30:49]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:30:49]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:30:49]line СÐО: Общий режим [11:30:49]line Чек 44 18.10.2024 11:30 [11:30:49]line Смена: 22 ФФД: 1.0 [11:30:49]line ЗÐМ: 0300000191 [11:30:49]line РÐМ: 0000000000207295 [11:30:49]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:30:49]line ФМ: 0000000002342820 [11:30:49]line ФД: 2419 [11:30:49]line ФПД: 61409910192936 [11:30:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113051&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2419&fm=61409910192936&tin=02508201610067®Number=0000000000207295&sum=20000 [11:30:49]OFD Sender: Processing packet 2419 [packets to send 1, broken 0] [11:30:49]ProducePacketName [11:30:49]name=ofd_packets/00002419 [11:30:49]OFD Sender: To server: ‡•öpG, [11:30:49]CommunicateWithHost lk.salyk.kg:30040 [11:30:49]ConnectInit lk.salyk.kg [11:30:49]written 0, free lines is 4095 [11:30:49]Connected sock=10 [11:30:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 00 D4 08 01 7E 69 5A 03 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 72 0B 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 49 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 50 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 2C 00 00 00 F4 03 04 00 EB 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 73 09 00 00 35 04 06 00 37 DA 1B E1 FB 28 69 44 AC C3 C0 0B 12 40 [11:30:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 2F 48 47 00 0E 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 73 09 00 00 F4 03 04 00 4F F2 11 67 B6 04 01 00 00 E3 81 47 82 6D 87 67 D9 [11:30:50]CommunicateWithHost err = 0 [11:30:50]CheckOFDResponse [11:30:50]1017 (14) - 77093643461234 [11:30:50]1041 (16) - 0000000002342820 [11:30:50]1040 (4) - 2419 [11:30:50]1012 (4) - 18.10.2024 05:29 [11:30:50]1206 (1) - 0 [11:30:50]OFD Sender: Remove packet 2419 [11:30:50]ProducePacketName [11:30:50]name=ofd_packets/00002419 [11:30:50]NVStorageDeleteData [11:30:50]Write to MH i2c: 01 00 00 52 1A 6C [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 07 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: 01 07 00 52 1A 00 00 00 00 00 AF 0C 2E [11:30:50]RasterBufferAndPrint [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]line [11:30:50]written 0, free lines is 3253 [11:30:50]MH_Cut [11:30:50]Write to MH i2c: D1 01 00 59 1A 01 45 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 01 00 [11:30:50]MH_I2C_Read... [11:30:50]Read from MH i2c: D1 01 00 59 1A 00 44 [11:30:50]Write to MH i2c: 01 00 00 5A 1A 74 [11:30:50]Write i2c OK [11:30:50]MH_I2C_Read... [11:30:50]OFD Sender: No OFD packet to send [11:30:51]*** Cut start [11:30:51]*** Partial cut [11:30:51]*** CUTSNS_PIN = 1 [11:30:51]*** CUTSNS_PIN = 0 [11:30:51]*** Brake cut motor [11:30:51]Read from MH i2c: 01 [11:30:51]MH_I2C_Read... [11:30:51]*** Stop cut motor [11:30:51]*** Cut end [11:30:51]Read from MH i2c: 01 07 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: 01 07 00 5A 1A 00 00 00 00 00 FF 0F 89 [11:30:51]process_action close_receipt done [11:30:51]requested_data is exist [11:30:51]produce_requested_data [11:30:51]requested_item fm.sn is exist - process it [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 11 00 00 [11:30:51]Write to MH i2c: E2 08 00 5B 1A 80 11 00 00 00 00 00 00 EF [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:51]Read from MH i2c: E2 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 17 00 [11:30:51]MH_I2C_Read... [11:30:51]Read from MH i2c: E2 17 00 5B 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 37 [11:30:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:30:51]wFMCommunicate OK [11:30:51]requested_item fd.num is exist - process it [11:30:51]SAM_PROTO_GetFieldsCounters [11:30:51]wFMCommunicate request_size=4 [11:30:51]MH_SAM_APDU [11:30:51]CAPDU: 80 13 00 00 [11:30:51]Write to MH i2c: E2 08 00 5C 1A 80 13 00 00 00 00 00 00 F2 [11:30:51]Write i2c OK [11:30:51]MH_I2C_Read... [11:30:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 62 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 62 00 5C 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 73 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [11:30:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 73 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:52]wFMCommunicate OK [11:30:52]SAM_PROTO_GetFieldsCounters done [11:30:52]requested_item shift.num is exist - process it [11:30:52]requested_item shift.opened is exist - process it [11:30:52]req_shift_opened [11:30:52]FM_GetShiftState [11:30:52]SAM_PROTO_GetShiftState [11:30:52]wFMCommunicate request_size=4 [11:30:52]MH_SAM_APDU [11:30:52]CAPDU: 80 13 01 00 [11:30:52]Write to MH i2c: E2 08 00 5D 1A 80 13 01 00 00 00 00 00 F4 [11:30:52]Write i2c OK [11:30:52]MH_I2C_Read... [11:30:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:52]Read from MH i2c: E2 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0E 00 [11:30:52]MH_I2C_Read... [11:30:52]Read from MH i2c: E2 0E 00 5D 1A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 92 [11:30:52]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:30:52]wFMCommunicate OK [11:30:52]SAM_PROTO_GetShiftState done [11:30:52]FM_GetShiftState done [11:30:52]req_shift_opened done [11:30:52]requested_item shift.open_date is exist - process it [11:30:52]req_shift_open_date [11:30:52]req_shift_open_date done [11:30:52]produce_requested_data done [11:30:52]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2419,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:30:52]process_action_free close_receipt [11:30:52]json_value_free [11:30:52]json_value_free done [11:30:52]process_json_proto returns [11:30:52]Send response to host [11:30:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2419,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:30:52]free response buf [11:30:52]execute_script done [11:30:52]execute_script returns [11:30:52]free content buf [11:30:52]Sock 7.Close socket [11:30:52]Sock 7.Thread stoped [11:30:55]OFD Sender: No OFD packet to send [11:31:00]OFD Sender: No OFD packet to send [11:31:01]accept exits with 9 [11:31:01]New connection [11:31:01]New thread 3066850660 created [11:31:01]Thread 3066707300 joined [11:31:01]Waiting for new connection... [11:31:01] Sock 9.Parse request [11:31:01]Sock 9.Check first char [11:31:01]Sock 9.First char is OK [11:31:01]request: POST /json_proto HTTP/1.0 [11:31:01]Method: POST [11:31:01]URL: /json_proto [11:31:01]Method is POST - this is cgi request [11:31:01]url: /json_proto [11:31:01]query_string will be loaded in cgi processing [11:31:01]execute_cgi json_proto POST (null) [11:31:01]execute_cgi path=json_proto method=POST [11:31:01]POST find Content-Length [11:31:01]Host: 172.17.52.132:8080 [11:31:01]Content-Length: 632 [11:31:01]Content-Type: application/json [11:31:01] [11:31:01]POST finish read [11:31:01]Found Content-Length = 632 [11:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475339", "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" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:01]execute_script... [11:31:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475339", "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" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:01]POST & json_proto [11:31:01]process_json_proto [11:31:01]json parsed OK: [11:31:01]protocol is kg_v1.0 [11:31:01]action value=close_receipt [11:31:01]process_action close_receipt [11:31:01]cmd_close_receipt [11:31:01]MH_GetDate [11:31:01]Write to MH i2c: F0 00 00 5E 1A 67 [11:31:01]Write i2c OK [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: F0 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: F0 09 00 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: F0 09 00 5E 1A 00 F9 46 12 67 5A BE F6 66 9C [11:31:01]GetLastDocTimeStamp 1729251051 [11:31:01]current date 1729251065 [11:31:01]FM_GetShiftState [11:31:01]SAM_PROTO_GetShiftState [11:31:01]wFMCommunicate request_size=4 [11:31:01]MH_SAM_APDU [11:31:01]CAPDU: 80 13 01 00 [11:31:01]Write to MH i2c: E2 08 00 5F 1A 80 13 01 00 00 00 00 00 F6 [11:31:01]Write i2c OK [11:31:01]MH_I2C_Read... [11:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:01]Read from MH i2c: E2 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: E2 0E 00 [11:31:01]MH_I2C_Read... [11:31:01]Read from MH i2c: E2 0E 00 5F 1A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 94 [11:31:01]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:31:01]wFMCommunicate OK [11:31:01]SAM_PROTO_GetShiftState done [11:31:01]FM_GetShiftState done [11:31:01]opened in 1729209717 [11:31:01]opened+sec_in_day 1729296117 [11:31:01]quantity*price = 50000 [11:31:01]sum+1 = 50001 [11:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 ÐСП 1% : 4.42 ÐДС 12% : 53.10 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 45 18.10.2024 11:31 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2420 ФПД: 260310172774030 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113105&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2420&fm=260310172774030&tin=02508201610067®Number=0000000000207295&sum=50000 [11:31:02]StoreToDocumentArchive [11:31:02]shift 22 fd 2420 [11:31:02]save to /storage/0022/doc_00002420 [11:31:02]save last doc name /storage/0022/doc_00002420 to /storage/kkm_last_doc_name [11:31:02]save OK [11:31:02]Clear old archive folders... [11:31:02]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:31:02]tlvbuf is 0136DFB0 [11:31:02]SAM_PROTO_ClearQueue [11:31:02]wFMCommunicate request_size=4 [11:31:02]MH_SAM_APDU [11:31:02]CAPDU: 80 09 00 00 [11:31:02]Write to MH i2c: E2 08 00 6C 1A 80 09 00 00 00 00 00 00 F8 [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 03 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 03 00 6C 1A 00 90 00 FA [11:31:02]RAPDU: 90 00 [11:31:02]wFMCommunicate OK [11:31:02]SAM_PROTO_ClearQueue done [11:31:02]KKMCreateOFDPacket [11:31:02]OFDProtocolAddRootSTLVToBuf [11:31:02]FM_MakeSignedData [11:31:02]FM_MakeSignedData [11:31:02]SAM_PROTO_SignData [11:31:02]wFMCommunicate request_size=4 [11:31:02]MH_SAM_APDU [11:31:02]CAPDU: 80 0D 01 02 [11:31:02]Write to MH i2c: E2 08 00 6D 1A 80 0D 01 02 00 00 00 00 00 [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 03 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 03 00 6D 1A 00 90 00 FB [11:31:02]RAPDU: 90 00 [11:31:02]wFMCommunicate OK [11:31:02]wFMCommunicate request_size=255 [11:31:02]MH_SAM_APDU [11:31:02]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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2D 00 00 00 F4 03 04 00 F9 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 74 09 00 00 35 04 06 00 [11:31:02]Write to MH i2c: E2 02 01 6E 1A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2D 00 00 00 F4 03 04 00 F9 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 74 09 00 00 35 04 06 00 00 00 63 [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 03 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 03 00 6E 1A 00 90 00 FC [11:31:02]RAPDU: 90 00 [11:31:02]wFMCommunicate OK [11:31:02]wFMCommunicate request_size=11 [11:31:02]MH_SAM_APDU [11:31:02]CAPDU: 80 0D 02 02 06 EC C0 2F 61 2E 8E [11:31:02]Write to MH i2c: E2 0E 00 6F 1A 80 0D 02 02 06 00 EC C0 2F 61 2E 8E 00 00 07 [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 03 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 03 00 6F 1A 00 90 00 FD [11:31:02]RAPDU: 90 00 [11:31:02]wFMCommunicate OK [11:31:02]wFMCommunicate request_size=4 [11:31:02]MH_SAM_APDU [11:31:02]CAPDU: 80 0D 03 02 [11:31:02]Write to MH i2c: E2 08 00 70 1A 80 0D 03 02 00 00 00 00 05 [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 0B 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 0B 00 70 1A 00 8E 34 33 56 88 0E 58 59 90 00 98 [11:31:02]RAPDU: 8E 34 33 56 88 0E 58 59 90 00 [11:31:02]wFMCommunicate OK [11:31:02]SAM_PROTO_SignData done [11:31:02]FM_MakeSignedData done [11:31:02]CreateOFDProtocolMessage [11:31:02]wFMCommunicate request_size=4 [11:31:02]MH_SAM_APDU [11:31:02]CAPDU: 80 11 00 00 [11:31:02]Write to MH i2c: E2 08 00 71 1A 80 11 00 00 00 00 00 00 05 [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:02]Read from MH i2c: E2 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 17 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: E2 17 00 71 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 4D [11:31:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:31:02]wFMCommunicate OK [11:31:02]CreateOFDProtocolMessage done [11:31:02]OFDSenderStorePacket 2420 [11:31:02]StoreOFDPacket docnum=2420 [11:31:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 7F 13 08 01 71 F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2D 00 00 00 F4 03 04 00 F9 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 74 09 00 00 35 04 06 00 EC C0 2F 61 2E 8E 8E 34 33 56 88 0E 58 59 [11:31:02]CheckFolder [11:31:02]dirname=/storage/ofd_packets [11:31:02]CheckFolder done [11:31:02]ProducePacketName [11:31:02]name=ofd_packets/00002420 [11:31:02]NVStorageSaveData ofd_packets/00002420 [11:31:02]File name is /storage/ofd_packets/00002420 [11:31:02]Write 302 bytes [11:31:02]NVStorageSaveData done [11:31:02]OFDSenderStorePacket done [11:31:02]KKMCreateOFDPacket done [11:31:02]NVStorageSaveData kkm_last_timestamp [11:31:02]File name is /storage/kkm_last_timestamp [11:31:02]Write 4 bytes [11:31:02]NVStorageSaveData done [11:31:02]ExternCall_PrintAddStr [11:31:02]wPrintStart [11:31:02]Write to MH i2c: 01 00 00 72 1A 8C [11:31:02]Write i2c OK [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: 01 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: 01 07 00 [11:31:02]MH_I2C_Read... [11:31:02]Read from MH i2c: 01 07 00 72 1A 00 00 00 00 00 FF 0F A1 [11:31:02]RasterBufferAndPrint [11:31:02]line Счет N : (1)475339 [11:31:02]line ИÐÐ: 02508201610067 [11:31:02]line Контрольно-КаÑÑовый Чек [11:31:02]line ПРОДÐЖР[11:31:02]line ТРК (МРК, ГÐК) : 33 [11:31:02]line Товар: 2710124130 [11:31:02]line SUPER-92-К-5 [11:31:02]line 7.310 * 68.40 [11:31:02]line = 500.00 [11:31:02]line ÐДС 12% ÐСП 1% [11:31:02]line > о реализуемом товаре [11:31:02]line ИТОГО: 500.00 [11:31:02]line ÐСП 1% : 4.42 [11:31:02]line ÐДС 12% : 53.10 [11:31:02]line Ðаличными: 500.00 [11:31:02]line Безнал.: 0.00 [11:31:02]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:31:02]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:31:02]line СÐО: Общий режим [11:31:02]line Чек 45 18.10.2024 11:31 [11:31:02]line Смена: 22 ФФД: 1.0 [11:31:02]line ЗÐМ: 0300000191 [11:31:02]line РÐМ: 0000000000207295 [11:31:02]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:31:02]line ФМ: 0000000002342820 [11:31:02]line ФД: 2420 [11:31:02]line ФПД: 260310172774030 [11:31:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113105&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2420&fm=260310172774030&tin=02508201610067®Number=0000000000207295&sum=50000 [11:31:02]written 0, free lines is 4095 [11:31:02]OFD Sender: Processing packet 2420 [packets to send 1, broken 0] [11:31:02]ProducePacketName [11:31:02]name=ofd_packets/00002420 [11:31:02]OFD Sender: To server: ‡•öpG, [11:31:02]CommunicateWithHost lk.salyk.kg:30040 [11:31:02]ConnectInit lk.salyk.kg [11:31:02]Connected sock=10 [11:31:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 7F 13 08 01 71 F8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 2D 00 00 00 F4 03 04 00 F9 46 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 74 09 00 00 35 04 06 00 EC C0 2F 61 2E 8E 8E 34 33 56 88 0E 58 59 [11:31:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 E0 A3 47 00 7D EE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 74 09 00 00 F4 03 04 00 5C F2 11 67 B6 04 01 00 00 76 FD 3E 36 05 B2 98 76 [11:31:03]CommunicateWithHost err = 0 [11:31:03]CheckOFDResponse [11:31:03]1017 (14) - 77093643461234 [11:31:03]1041 (16) - 0000000002342820 [11:31:03]1040 (4) - 2420 [11:31:03]1012 (4) - 18.10.2024 05:30 [11:31:03]1206 (1) - 0 [11:31:03]OFD Sender: Remove packet 2420 [11:31:03]ProducePacketName [11:31:03]name=ofd_packets/00002420 [11:31:03]NVStorageDeleteData [11:31:03]Write to MH i2c: 01 00 00 9A 1A B4 [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: 01 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: 01 07 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: 01 07 00 9A 1A 00 00 00 00 00 DD 0C A4 [11:31:03]RasterBufferAndPrint [11:31:03]line [11:31:03]line [11:31:03]line [11:31:03]line [11:31:03]line [11:31:03]written 0, free lines is 3299 [11:31:03]MH_Cut [11:31:03]Write to MH i2c: D1 01 00 A1 1A 01 8D [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: D1 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: D1 01 00 [11:31:03]MH_I2C_Read... [11:31:03]Read from MH i2c: D1 01 00 A1 1A 00 8C [11:31:03]Write to MH i2c: 01 00 00 A2 1A BC [11:31:03]Write i2c OK [11:31:03]MH_I2C_Read... [11:31:03]OFD Sender: No OFD packet to send [11:31:04]*** Cut start [11:31:04]*** Partial cut [11:31:04]*** CUTSNS_PIN = 1 [11:31:04]*** CUTSNS_PIN = 0 [11:31:04]*** Brake cut motor [11:31:04]Read from MH i2c: 01 [11:31:04]MH_I2C_Read... [11:31:04]*** Stop cut motor [11:31:04]*** Cut end [11:31:04]Read from MH i2c: 01 07 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: 01 07 00 A2 1A 00 00 00 00 00 FF 0F D1 [11:31:04]process_action close_receipt done [11:31:04]requested_data is exist [11:31:04]produce_requested_data [11:31:04]requested_item fm.sn is exist - process it [11:31:04]wFMCommunicate request_size=4 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 11 00 00 [11:31:04]Write to MH i2c: E2 08 00 A3 1A 80 11 00 00 00 00 00 00 37 [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 17 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 17 00 A3 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 7F [11:31:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:31:04]wFMCommunicate OK [11:31:04]requested_item fd.num is exist - process it [11:31:04]SAM_PROTO_GetFieldsCounters [11:31:04]wFMCommunicate request_size=4 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 13 00 00 [11:31:04]Write to MH i2c: E2 08 00 A4 1A 80 13 00 00 00 00 00 00 3A [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:04]Read from MH i2c: E2 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 62 00 [11:31:04]MH_I2C_Read... [11:31:04]Read from MH i2c: E2 62 00 A4 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 74 09 00 00 0E 04 04 00 16 00 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 6A [11:31:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 74 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:04]wFMCommunicate OK [11:31:04]SAM_PROTO_GetFieldsCounters done [11:31:04]requested_item shift.num is exist - process it [11:31:04]requested_item shift.opened is exist - process it [11:31:04]req_shift_opened [11:31:04]FM_GetShiftState [11:31:04]SAM_PROTO_GetShiftState [11:31:04]wFMCommunicate request_size=4 [11:31:04]MH_SAM_APDU [11:31:04]CAPDU: 80 13 01 00 [11:31:04]Write to MH i2c: E2 08 00 A5 1A 80 13 01 00 00 00 00 00 3C [11:31:04]Write i2c OK [11:31:04]MH_I2C_Read... [11:31:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:05]Read from MH i2c: E2 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 0E 00 [11:31:05]MH_I2C_Read... [11:31:05]Read from MH i2c: E2 0E 00 A5 1A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 DA [11:31:05]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:31:05]wFMCommunicate OK [11:31:05]SAM_PROTO_GetShiftState done [11:31:05]FM_GetShiftState done [11:31:05]req_shift_opened done [11:31:05]requested_item shift.open_date is exist - process it [11:31:05]req_shift_open_date [11:31:05]req_shift_open_date done [11:31:05]produce_requested_data done [11:31:05]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2420,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:31:05]process_action_free close_receipt [11:31:05]json_value_free [11:31:05]json_value_free done [11:31:05]process_json_proto returns [11:31:05]Send response to host [11:31:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2420,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:31:05]free response buf [11:31:05]execute_script done [11:31:05]execute_script returns [11:31:05]free content buf [11:31:05]Sock 9.Close socket [11:31:05]Sock 9.Thread stoped [11:31:08]OFD Sender: No OFD packet to send [11:31:13]OFD Sender: No OFD packet to send [11:31:18]OFD Sender: No OFD packet to send [11:31:23]OFD Sender: No OFD packet to send [11:31:28]OFD Sender: No OFD packet to send [11:31:33]OFD Sender: No OFD packet to send [11:31:38]OFD Sender: No OFD packet to send [11:31:43]OFD Sender: No OFD packet to send [11:31:48]OFD Sender: No OFD packet to send [11:31:53]OFD Sender: No OFD packet to send [11:31:58]OFD Sender: No OFD packet to send [11:32:03]OFD Sender: No OFD packet to send [11:32:08]OFD Sender: No OFD packet to send [11:32:13]OFD Sender: No OFD packet to send [11:32:18]OFD Sender: No OFD packet to send [11:32:23]OFD Sender: No OFD packet to send [11:32:28]OFD Sender: No OFD packet to send [11:32:33]OFD Sender: No OFD packet to send [11:32:38]OFD Sender: No OFD packet to send [11:32:43]OFD Sender: No OFD packet to send [11:32:46]accept exits with 7 [11:32:46]New connection [11:32:46]New thread 3066707300 created [11:32:46]Thread 3066850660 joined [11:32:46]Waiting for new connection... [11:32:46] Sock 7.Parse request [11:32:46]Sock 7.Check first char [11:32:46]Sock 7.First char is OK [11:32:46]request: POST /json_proto HTTP/1.0 [11:32:46]Method: POST [11:32:46]URL: /json_proto [11:32:46]Method is POST - this is cgi request [11:32:46]url: /json_proto [11:32:46]query_string will be loaded in cgi processing [11:32:46]execute_cgi json_proto POST (null) [11:32:46]execute_cgi path=json_proto method=POST [11:32:46]POST find Content-Length [11:32:46]Host: 172.17.52.132:8080 [11:32:46]Content-Length: 1225 [11:32:46]Content-Type: application/json [11:32:46] [11:32:46]POST finish read [11:32:46]Found Content-Length = 1225 [11:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99838", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 578.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:46]execute_script... [11: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 : (3)99838", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000034250011", "name": "\u0413\u043E\u0440\u044F\u0447\u0438\u0439 \u0448\u043E\u043A\u043E\u043B\u0430\u0434 (GABB trade)", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 578.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:32:46]POST & json_proto [11:32:46]process_json_proto [11:32:46]json parsed OK: [11:32:46]protocol is kg_v1.0 [11:32:46]action value=close_receipt [11:32:46]process_action close_receipt [11:32:46]cmd_close_receipt [11:32:46]MH_GetDate [11:32:46]Write to MH i2c: F0 00 00 A6 1A AF [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 09 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: F0 09 00 A6 1A 00 62 47 12 67 5A BE F6 66 4E [11:32:46]GetLastDocTimeStamp 1729251065 [11:32:46]current date 1729251170 [11:32:46]FM_GetShiftState [11:32:46]SAM_PROTO_GetShiftState [11:32:46]wFMCommunicate request_size=4 [11:32:46]MH_SAM_APDU [11:32:46]CAPDU: 80 13 01 00 [11:32:46]Write to MH i2c: E2 08 00 A7 1A 80 13 01 00 00 00 00 00 3E [11:32:46]Write i2c OK [11:32:46]MH_I2C_Read... [11:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:46]Read from MH i2c: E2 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 0E 00 [11:32:46]MH_I2C_Read... [11:32:46]Read from MH i2c: E2 0E 00 A7 1A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 DC [11:32:46]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:32:46]wFMCommunicate OK [11:32:46]SAM_PROTO_GetShiftState done [11:32:46]FM_GetShiftState done [11:32:46]opened in 1729209717 [11:32:46]opened+sec_in_day 1729296117 [11:32:46]quantity*price = 18000 [11:32:46]sum+1 = 18001 [11:32:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000034250011 ГорÑчий шоколад (GABB trade) 1.000 * 120.00 = 120.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 48741231 Сигареты Winston Super Slims Silver 2.000 * 139.00 = 278.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 578.00 ÐСП 1% : 5.11 ÐДС 12% : 61.37 Ðаличными: 578.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 46 18.10.2024 11:32 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2421 ФПД: 205553055638696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113250&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2421&fm=205553055638696&tin=02508201610067®Number=0000000000207295&sum=57800 0 [11:32:47]StoreToDocumentArchive [11:32:47]shift 22 fd 2421 [11:32:47]save to /storage/0022/doc_00002421 [11:32:47]save last doc name /storage/0022/doc_00002421 to /storage/kkm_last_doc_name [11:32:47]save OK [11:32:47]Clear old archive folders... [11:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=523 [11:32:47]tlvbuf is 01341C20 [11:32:47]SAM_PROTO_ClearQueue [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 09 00 00 [11:32:47]Write to MH i2c: E2 08 00 B4 1A 80 09 00 00 00 00 00 00 40 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 B4 1A 00 90 00 42 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]SAM_PROTO_ClearQueue done [11:32:47]KKMCreateOFDPacket [11:32:47]OFDProtocolAddRootSTLVToBuf [11:32:47]FM_MakeSignedData [11:32:47]FM_MakeSignedData [11:32:47]SAM_PROTO_SignData [11:32:47]wFMCommunicate request_size=4 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 01 02 [11:32:47]Write to MH i2c: E2 08 00 B5 1A 80 0D 01 02 00 00 00 00 48 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:32:47]Read from MH i2c: E2 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 [11:32:47]MH_I2C_Read... [11:32:47]Read from MH i2c: E2 03 00 B5 1A 00 90 00 43 [11:32:47]RAPDU: 90 00 [11:32:47]wFMCommunicate OK [11:32:47]wFMCommunicate request_size=255 [11:32:47]MH_SAM_APDU [11:32:47]CAPDU: 80 0D 02 02 FA 03 00 0B 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [11:32:47]Write to MH i2c: E2 02 01 B6 1A 80 0D 02 02 FA 00 03 00 0B 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 73 [11:32:47]Write i2c OK [11:32:47]MH_I2C_Read... [11:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:48]Read from MH i2c: E2 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 03 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 03 00 B6 1A 00 90 00 44 [11:32:48]RAPDU: 90 00 [11:32:48]wFMCommunicate OK [11:32:48]wFMCommunicate request_size=255 [11:32:48]MH_SAM_APDU [11:32:48]CAPDU: 80 0D 02 02 FA 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 17 00 00 00 00 07 04 06 00 C8 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 62 47 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 [11:32:48]Write to MH i2c: E2 02 01 B7 1A 80 0D 02 02 FA 00 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 17 00 00 00 00 07 04 06 00 C8 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 62 47 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 19 [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:48]Read from MH i2c: E2 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 03 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 03 00 B7 1A 00 90 00 45 [11:32:48]RAPDU: 90 00 [11:32:48]wFMCommunicate OK [11:32:48]wFMCommunicate request_size=32 [11:32:48]MH_SAM_APDU [11:32:48]CAPDU: 80 0D 02 02 1B 30 30 32 33 34 32 38 32 30 10 04 04 00 75 09 00 00 35 04 06 00 BA F3 0C DD 24 A8 [11:32:48]Write to MH i2c: E2 23 00 B8 1A 80 0D 02 02 1B 00 30 30 32 33 34 32 38 32 30 10 04 04 00 75 09 00 00 35 04 06 00 BA F3 0C DD 24 A8 00 00 7E [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:32:48]Read from MH i2c: E2 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 03 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 03 00 B8 1A 00 90 00 46 [11:32:48]RAPDU: 90 00 [11:32:48]wFMCommunicate OK [11:32:48]wFMCommunicate request_size=4 [11:32:48]MH_SAM_APDU [11:32:48]CAPDU: 80 0D 03 02 [11:32:48]Write to MH i2c: E2 08 00 B9 1A 80 0D 03 02 00 00 00 00 4E [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:32:48]Read from MH i2c: E2 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 0B 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 0B 00 B9 1A 00 18 1E CE 06 80 05 7E E1 90 00 3D [11:32:48]RAPDU: 18 1E CE 06 80 05 7E E1 90 00 [11:32:48]wFMCommunicate OK [11:32:48]SAM_PROTO_SignData done [11:32:48]FM_MakeSignedData done [11:32:48]CreateOFDProtocolMessage [11:32:48]wFMCommunicate request_size=4 [11:32:48]MH_SAM_APDU [11:32:48]CAPDU: 80 11 00 00 [11:32:48]Write to MH i2c: E2 08 00 BA 1A 80 11 00 00 00 00 00 00 4E [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:48]Read from MH i2c: E2 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 17 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: E2 17 00 BA 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 96 [11:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:32:48]wFMCommunicate OK [11:32:48]CreateOFDProtocolMessage done [11:32:48]OFDSenderStorePacket 2421 [11:32:48]StoreOFDPacket docnum=2421 [11:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 1F 02 00 00 E0 AE 17 02 75 A1 5A 03 01 00 03 00 0B 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 17 00 00 00 00 07 04 06 00 C8 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 62 47 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 75 09 00 00 35 04 06 00 BA F3 0C DD 24 A8 18 1E CE 06 80 05 7E E1 [11:32:48]CheckFolder [11:32:48]dirname=/storage/ofd_packets [11:32:48]CheckFolder done [11:32:48]ProducePacketName [11:32:48]name=ofd_packets/00002421 [11:32:48]NVStorageSaveData ofd_packets/00002421 [11:32:48]File name is /storage/ofd_packets/00002421 [11:32:48]Write 573 bytes [11:32:48]NVStorageSaveData done [11:32:48]OFDSenderStorePacket done [11:32:48]KKMCreateOFDPacket done [11:32:48]NVStorageSaveData kkm_last_timestamp [11:32:48]File name is /storage/kkm_last_timestamp [11:32:48]Write 4 bytes [11:32:48]NVStorageSaveData done [11:32:48]ExternCall_PrintAddStr [11:32:48]wPrintStart [11:32:48]Write to MH i2c: 01 00 00 BB 1A D5 [11:32:48]Write i2c OK [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 07 00 [11:32:48]MH_I2C_Read... [11:32:48]Read from MH i2c: 01 07 00 BB 1A 00 00 00 00 00 FF 0F EA [11:32:48]RasterBufferAndPrint [11:32:48]line Счет N : (3)99838 [11:32:48]line ИÐÐ: 02508201610067 [11:32:48]line Контрольно-КаÑÑовый Чек [11:32:48]line ПРОДÐЖР[11:32:48]line Товар: 4660085515163 [11:32:48]line Шок Батончик Ð¡Ð½Ð¸ÐºÐµÑ€Ñ Ñупер 95/80г [11:32:48]line 2.000 * 90.00 [11:32:48]line = 180.00 [11:32:48]line ÐДС 12% ÐСП 1% [11:32:48]line > о реализуемом товаре [11:32:48]line Товар: 2000034250011 [11:32:48]line ГорÑчий шоколад (GABB trade) [11:32:48]line 1.000 * 120.00 [11:32:48]line = 120.00 [11:32:48]line ÐДС 12% ÐСП 1% [11:32:48]line > о реализуемом товаре [11:32:48]line Товар: 48741231 [11:32:48]line Сигареты Winston Super Slims Silver [11:32:48]line 2.000 * 139.00 [11:32:48]line = 278.00 [11:32:48]line ÐДС 12% ÐСП 1% [11:32:48]line > о реализуемом товаре [11:32:48]line ИТОГО: 578.00 [11:32:48]line ÐСП 1% : 5.11 [11:32:48]line ÐДС 12% : 61.37 [11:32:48]line Ðаличными: 578.00 [11:32:48]line Безнал.: 0.00 [11:32:48]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:32:48]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:32:48]line СÐО: Общий режим [11:32:48]line Чек 46 18.10.2024 11:32 [11:32:48]line Смена: 22 ФФД: 1.0 [11:32:48]line ЗÐМ: 0300000191 [11:32:48]line РÐМ: 0000000000207295 [11:32:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:32:48]line ФМ: 0000000002342820 [11:32:48]line ФД: 2421 [11:32:48]line ФПД: 205553055638696 [11:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113250&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2421&fm=205553055638696&tin=02508201610067®Number=0000000000207295&sum=57800 [11:32:48]line 0 [11:32:48]written 0, free lines is 4095 [11:32:48]OFD Sender: Processing packet 2421 [packets to send 1, broken 0] [11:32:48]ProducePacketName [11:32:48]name=ofd_packets/00002421 [11:32:48]OFD Sender: To server: ‡•öpG, [11:32:48]CommunicateWithHost lk.salyk.kg:30040 [11:32:48]ConnectInit lk.salyk.kg [11:32:48]Connected sock=10 [11:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 1F 02 00 00 E0 AE 17 02 75 A1 5A 03 01 00 03 00 0B 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 34 32 35 30 30 31 31 06 04 2A 00 D0 93 D0 BE D1 80 D1 8F D1 87 D0 B8 D0 B9 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 28 47 41 42 42 20 74 72 61 64 65 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 E1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FF 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 17 00 00 00 00 07 04 06 00 C8 E1 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2E 00 00 00 F4 03 04 00 62 47 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 75 09 00 00 35 04 06 00 BA F3 0C DD 24 A8 18 1E CE 06 80 05 7E E1 [11:32:49]Write to MH i2c: 01 00 00 F2 1A 0C [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: 01 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: 01 07 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: 01 07 00 F2 1A 00 00 00 00 00 BA 0B D8 [11:32:49]RasterBufferAndPrint [11:32:49]line [11:32:49]line [11:32:49]line [11:32:49]line [11:32:49]line [11:32:49]written 0, free lines is 3008 [11:32:49]MH_Cut [11:32:49]Write to MH i2c: D1 01 00 F9 1A 01 E5 [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: D1 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: D1 01 00 [11:32:49]MH_I2C_Read... [11:32:49]Read from MH i2c: D1 01 00 F9 1A 00 E4 [11:32:49]Write to MH i2c: 01 00 00 FA 1A 14 [11:32:49]Write i2c OK [11:32:49]MH_I2C_Read... [11:32:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 EA 65 47 00 FC AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 75 09 00 00 F4 03 04 00 C6 F2 11 67 B6 04 01 00 00 E5 06 C6 CF 64 34 B4 2F [11:32:49]CommunicateWithHost err = 0 [11:32:49]CheckOFDResponse [11:32:49]1017 (14) - 77093643461234 [11:32:49]1041 (16) - 0000000002342820 [11:32:49]1040 (4) - 2421 [11:32:49]1012 (4) - 18.10.2024 05:31 [11:32:49]1206 (1) - 0 [11:32:49]OFD Sender: Remove packet 2421 [11:32:49]ProducePacketName [11:32:49]name=ofd_packets/00002421 [11:32:49]NVStorageDeleteData [11:32:49]OFD Sender: No OFD packet to send [11:32:50]*** Cut start [11:32:50]*** Partial cut [11:32:50]*** CUTSNS_PIN = 1 [11:32:50]*** CUTSNS_PIN = 0 [11:32:50]*** Brake cut motor [11:32:50]Read from MH i2c: 01 [11:32:50]MH_I2C_Read... [11:32:50]*** Stop cut motor [11:32:50]*** Cut end [11:32:50]Read from MH i2c: 01 07 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: 01 07 00 FA 1A 00 00 00 00 00 FF 0F 29 [11:32:50]process_action close_receipt done [11:32:50]requested_data is exist [11:32:50]produce_requested_data [11:32:50]requested_item fm.sn is exist - process it [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 11 00 00 [11:32:50]Write to MH i2c: E2 08 00 FB 1A 80 11 00 00 00 00 00 00 8F [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:32:50]Read from MH i2c: E2 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 17 00 [11:32:50]MH_I2C_Read... [11:32:50]Read from MH i2c: E2 17 00 FB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D7 [11:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:32:50]wFMCommunicate OK [11:32:50]requested_item fd.num is exist - process it [11:32:50]SAM_PROTO_GetFieldsCounters [11:32:50]wFMCommunicate request_size=4 [11:32:50]MH_SAM_APDU [11:32:50]CAPDU: 80 13 00 00 [11:32:50]Write to MH i2c: E2 08 00 FC 1A 80 13 00 00 00 00 00 00 92 [11:32:50]Write i2c OK [11:32:50]MH_I2C_Read... [11:32:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:32:51]Read from MH i2c: E2 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 62 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 62 00 FC 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 75 09 00 00 0E 04 04 00 16 00 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 C6 [11:32:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 75 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:32:51]wFMCommunicate OK [11:32:51]SAM_PROTO_GetFieldsCounters done [11:32:51]requested_item shift.num is exist - process it [11:32:51]requested_item shift.opened is exist - process it [11:32:51]req_shift_opened [11:32:51]FM_GetShiftState [11:32:51]SAM_PROTO_GetShiftState [11:32:51]wFMCommunicate request_size=4 [11:32:51]MH_SAM_APDU [11:32:51]CAPDU: 80 13 01 00 [11:32:51]Write to MH i2c: E2 08 00 FD 1A 80 13 01 00 00 00 00 00 94 [11:32:51]Write i2c OK [11:32:51]MH_I2C_Read... [11:32:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:32:51]Read from MH i2c: E2 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 0E 00 [11:32:51]MH_I2C_Read... [11:32:51]Read from MH i2c: E2 0E 00 FD 1A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 32 [11:32:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:32:51]wFMCommunicate OK [11:32:51]SAM_PROTO_GetShiftState done [11:32:51]FM_GetShiftState done [11:32:51]req_shift_opened done [11:32:51]requested_item shift.open_date is exist - process it [11:32:51]req_shift_open_date [11:32:51]req_shift_open_date done [11:32:51]produce_requested_data done [11:32:51]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2421,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:32:51]process_action_free close_receipt [11:32:51]json_value_free [11:32:51]json_value_free done [11:32:51]process_json_proto returns [11:32:51]Send response to host [11:32:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2421,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:32:51]free response buf [11:32:51]execute_script done [11:32:51]execute_script returns [11:32:51]free content buf [11:32:51]Sock 7.Close socket [11:32:51]Sock 7.Thread stoped [11:32:54]OFD Sender: No OFD packet to send [11:32:59]OFD Sender: No OFD packet to send [11:33:04]OFD Sender: No OFD packet to send [11:33:05]accept exits with 9 [11:33:05]New connection [11:33:05]New thread 3066850660 created [11:33:05]Thread 3066707300 joined [11:33:05]Waiting for new connection... [11:33:05] Sock 9.Parse request [11:33:05]Sock 9.Check first char [11:33:05]Sock 9.First char is OK [11:33:05]request: POST /json_proto HTTP/1.0 [11:33:05]Method: POST [11:33:05]URL: /json_proto [11:33:05]Method is POST - this is cgi request [11:33:05]url: /json_proto [11:33:05]query_string will be loaded in cgi processing [11:33:05]execute_cgi json_proto POST (null) [11:33:05]execute_cgi path=json_proto method=POST [11:33:05]POST find Content-Length [11:33:05]Host: 172.17.52.132:8080 [11:33:05]Content-Length: 677 [11:33:05]Content-Type: application/json [11:33:05] [11:33:05]POST finish read [11:33:05]Found Content-Length = 677 [11:33:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475341", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:05]execute_script... [11:33: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)475341", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:05]POST & json_proto [11:33:05]process_json_proto [11:33:05]json parsed OK: [11:33:05]protocol is kg_v1.0 [11:33:05]action value=close_receipt [11:33:05]process_action close_receipt [11:33:05]cmd_close_receipt [11:33:05]MH_GetDate [11:33:05]Write to MH i2c: F0 00 00 FE 1A 07 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 09 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: F0 09 00 FE 1A 00 75 47 12 67 5A BE F6 66 B9 [11:33:05]GetLastDocTimeStamp 1729251170 [11:33:05]current date 1729251189 [11:33:05]FM_GetShiftState [11:33:05]SAM_PROTO_GetShiftState [11:33:05]wFMCommunicate request_size=4 [11:33:05]MH_SAM_APDU [11:33:05]CAPDU: 80 13 01 00 [11:33:05]Write to MH i2c: E2 08 00 FF 1A 80 13 01 00 00 00 00 00 96 [11:33:05]Write i2c OK [11:33:05]MH_I2C_Read... [11:33:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:05]Read from MH i2c: E2 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 0E 00 [11:33:05]MH_I2C_Read... [11:33:05]Read from MH i2c: E2 0E 00 FF 1A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 34 [11:33:05]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:33:05]wFMCommunicate OK [11:33:05]SAM_PROTO_GetShiftState done [11:33:05]FM_GetShiftState done [11:33:05]opened in 1729209717 [11:33:05]opened+sec_in_day 1729296117 [11:33:05]quantity*price = 30038 [11:33:05]sum+1 = 30039 [11:33:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.38 ИТОГО: 300.00 ВнеÑено: 300.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.66 ÐДС 12% : 31.90 Ðаличными: 300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 47 18.10.2024 11:33 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2422 ФПД: 137777338667048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113309&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2422&fm=137777338667048&tin=02508201610067®Number=0000000000207295&sum=30000 [11:33:06]StoreToDocumentArchive [11:33:06]shift 22 fd 2422 [11:33:06]save to /storage/0022/doc_00002422 [11:33:06]save last doc name /storage/0022/doc_00002422 to /storage/kkm_last_doc_name [11:33:06]save OK [11:33:06]Clear old archive folders... [11:33:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:33:06]tlvbuf is 01404320 [11:33:06]SAM_PROTO_ClearQueue [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 09 00 00 [11:33:06]Write to MH i2c: E2 08 00 0C 1B 80 09 00 00 00 00 00 00 99 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 0C 1B 00 90 00 9B [11:33:06]RAPDU: 90 00 [11:33:06]wFMCommunicate OK [11:33:06]SAM_PROTO_ClearQueue done [11:33:06]KKMCreateOFDPacket [11:33:06]OFDProtocolAddRootSTLVToBuf [11:33:06]FM_MakeSignedData [11:33:06]FM_MakeSignedData [11:33:06]SAM_PROTO_SignData [11:33:06]wFMCommunicate request_size=4 [11:33:06]MH_SAM_APDU [11:33:06]CAPDU: 80 0D 01 02 [11:33:06]Write to MH i2c: E2 08 00 0D 1B 80 0D 01 02 00 00 00 00 A1 [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:06]Read from MH i2c: E2 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 [11:33:06]MH_I2C_Read... [11:33:06]Read from MH i2c: E2 03 00 0D 1B 00 90 00 9C [11:33:06]RAPDU: 90 00 [11:33:06]wFMCommunicate OK [11:33:06]wFMCommunicate request_size=255 [11:33:06]MH_SAM_APDU [11:33: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 75 47 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 76 09 00 00 35 04 06 00 7D [11:33:06]Write to MH i2c: E2 02 01 0E 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 75 47 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 76 09 00 00 35 04 06 00 7D 00 00 8F [11:33:06]Write i2c OK [11:33:06]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 03 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 03 00 0E 1B 00 90 00 9D [11:33:07]RAPDU: 90 00 [11:33:07]wFMCommunicate OK [11:33:07]wFMCommunicate request_size=10 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 0D 02 02 05 4E C9 54 50 28 [11:33:07]Write to MH i2c: E2 0D 00 0F 1B 80 0D 02 02 05 00 4E C9 54 50 28 00 00 91 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 03 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 03 00 0F 1B 00 90 00 9E [11:33:07]RAPDU: 90 00 [11:33:07]wFMCommunicate OK [11:33:07]wFMCommunicate request_size=4 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 0D 03 02 [11:33:07]Write to MH i2c: E2 08 00 10 1B 80 0D 03 02 00 00 00 00 A6 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 0B 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 0B 00 10 1B 00 80 AA C2 00 E1 FE 8A EE 90 00 EA [11:33:07]RAPDU: 80 AA C2 00 E1 FE 8A EE 90 00 [11:33:07]wFMCommunicate OK [11:33:07]SAM_PROTO_SignData done [11:33:07]FM_MakeSignedData done [11:33:07]CreateOFDProtocolMessage [11:33:07]wFMCommunicate request_size=4 [11:33:07]MH_SAM_APDU [11:33:07]CAPDU: 80 11 00 00 [11:33:07]Write to MH i2c: E2 08 00 11 1B 80 11 00 00 00 00 00 00 A6 [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:07]Read from MH i2c: E2 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 17 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: E2 17 00 11 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EE [11:33:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:33:07]wFMCommunicate OK [11:33:07]CreateOFDProtocolMessage done [11:33:07]OFDSenderStorePacket 2422 [11:33:07]StoreOFDPacket docnum=2422 [11:33:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 60 F2 07 01 89 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 75 47 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 76 09 00 00 35 04 06 00 7D 4E C9 54 50 28 80 AA C2 00 E1 FE 8A EE [11:33:07]CheckFolder [11:33:07]dirname=/storage/ofd_packets [11:33:07]CheckFolder done [11:33:07]ProducePacketName [11:33:07]name=ofd_packets/00002422 [11:33:07]NVStorageSaveData ofd_packets/00002422 [11:33:07]File name is /storage/ofd_packets/00002422 [11:33:07]Write 301 bytes [11:33:07]NVStorageSaveData done [11:33:07]OFDSenderStorePacket done [11:33:07]KKMCreateOFDPacket done [11:33:07]NVStorageSaveData kkm_last_timestamp [11:33:07]File name is /storage/kkm_last_timestamp [11:33:07]Write 4 bytes [11:33:07]NVStorageSaveData done [11:33:07]ExternCall_PrintAddStr [11:33:07]wPrintStart [11:33:07]Write to MH i2c: 01 00 00 12 1B 2D [11:33:07]Write i2c OK [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 [11:33:07]MH_I2C_Read... [11:33:07]Read from MH i2c: 01 07 00 12 1B 00 00 00 00 00 FF 0F 42 [11:33:07]RasterBufferAndPrint [11:33:07]line Счет N : (1)475341 [11:33:07]line ИÐÐ: 02508201610067 [11:33:07]line Контрольно-КаÑÑовый Чек [11:33:07]line ПРОДÐЖР[11:33:07]line ТРК (МРК, ГÐК) : 12 [11:33:07]line Товар: 2710124130 [11:33:07]line Ðи-92-К-5 [11:33:07]line 4.490 * 66.90 [11:33:07]line = 300.38 [11:33:07]line ÐДС 12% ÐСП 1% [11:33:07]line > о реализуемом товаре [11:33:07]line ОКРУГЛЕÐИЕ: -0.38 [11:33:07]line ИТОГО: 300.00 [11:33:07]line ВнеÑено: 300.00 [11:33:07]line СДÐЧÐ: 0.00 [11:33:07]line ÐСП 1% : 2.66 [11:33:07]line ÐДС 12% : 31.90 [11:33:07]line Ðаличными: 300.00 [11:33:07]line Безнал.: 0.00 [11:33:07]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:33:07]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:33:07]line СÐО: Общий режим [11:33:07]line Чек 47 18.10.2024 11:33 [11:33:07]line Смена: 22 ФФД: 1.0 [11:33:07]line ЗÐМ: 0300000191 [11:33:07]line РÐМ: 0000000000207295 [11:33:07]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:33:07]line ФМ: 0000000002342820 [11:33:07]line ФД: 2422 [11:33:07]line ФПД: 137777338667048 [11:33:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113309&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2422&fm=137777338667048&tin=02508201610067®Number=0000000000207295&sum=30000 [11:33:07]written 0, free lines is 4095 [11:33:07]OFD Sender: Processing packet 2422 [packets to send 1, broken 0] [11:33:07]ProducePacketName [11:33:07]name=ofd_packets/00002422 [11:33:07]OFD Sender: To server: ‡•öpG, [11:33:07]CommunicateWithHost lk.salyk.kg:30040 [11:33:07]ConnectInit lk.salyk.kg [11:33:07]Connected sock=10 [11:33:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 60 F2 07 01 89 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 75 47 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 76 09 00 00 35 04 06 00 7D 4E C9 54 50 28 80 AA C2 00 E1 FE 8A EE [11:33:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 5B 5C 47 00 83 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 76 09 00 00 F4 03 04 00 D9 F2 11 67 B6 04 01 00 00 BD 01 CF 06 8F 55 30 5A [11:33:07]CommunicateWithHost err = 0 [11:33:07]CheckOFDResponse [11:33:07]1017 (14) - 77093643461234 [11:33:07]1041 (16) - 0000000002342820 [11:33:07]1040 (4) - 2422 [11:33:07]1012 (4) - 18.10.2024 05:32 [11:33:07]1206 (1) - 0 [11:33:07]OFD Sender: Remove packet 2422 [11:33:07]ProducePacketName [11:33:07]name=ofd_packets/00002422 [11:33:07]NVStorageDeleteData [11:33:08]Write to MH i2c: 01 00 00 3D 1B 58 [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: 01 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: 01 07 00 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: 01 07 00 3D 1B 00 00 00 00 00 A5 0C 10 [11:33:08]RasterBufferAndPrint [11:33:08]line [11:33:08]line [11:33:08]line [11:33:08]line [11:33:08]line [11:33:08]written 0, free lines is 3242 [11:33:08]MH_Cut [11:33:08]Write to MH i2c: D1 01 00 44 1B 01 31 [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: D1 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: D1 01 00 [11:33:08]MH_I2C_Read... [11:33:08]Read from MH i2c: D1 01 00 44 1B 00 30 [11:33:08]Write to MH i2c: 01 00 00 45 1B 60 [11:33:08]Write i2c OK [11:33:08]MH_I2C_Read... [11:33:08]OFD Sender: No OFD packet to send [11:33:08]*** Cut start [11:33:08]*** Partial cut [11:33:08]*** CUTSNS_PIN = 1 [11:33:08]*** CUTSNS_PIN = 0 [11:33:09]*** Brake cut motor [11:33:09]Read from MH i2c: 01 [11:33:09]MH_I2C_Read... [11:33:09]*** Stop cut motor [11:33:09]*** Cut end [11:33:09]Read from MH i2c: 01 07 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: 01 07 00 45 1B 00 00 00 00 00 FF 0F 75 [11:33:09]process_action close_receipt done [11:33:09]requested_data is exist [11:33:09]produce_requested_data [11:33:09]requested_item fm.sn is exist - process it [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 11 00 00 [11:33:09]Write to MH i2c: E2 08 00 46 1B 80 11 00 00 00 00 00 00 DB [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 17 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 17 00 46 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 23 [11:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:33:09]wFMCommunicate OK [11:33:09]requested_item fd.num is exist - process it [11:33:09]SAM_PROTO_GetFieldsCounters [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 13 00 00 [11:33:09]Write to MH i2c: E2 08 00 47 1B 80 13 00 00 00 00 00 00 DE [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 62 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 62 00 47 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 76 09 00 00 0E 04 04 00 16 00 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 16 [11:33:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 76 09 00 00 0E 04 04 00 16 00 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 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_GetFieldsCounters done [11:33:09]requested_item shift.num is exist - process it [11:33:09]requested_item shift.opened is exist - process it [11:33:09]req_shift_opened [11:33:09]FM_GetShiftState [11:33:09]SAM_PROTO_GetShiftState [11:33:09]wFMCommunicate request_size=4 [11:33:09]MH_SAM_APDU [11:33:09]CAPDU: 80 13 01 00 [11:33:09]Write to MH i2c: E2 08 00 48 1B 80 13 01 00 00 00 00 00 E0 [11:33:09]Write i2c OK [11:33:09]MH_I2C_Read... [11:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:09]Read from MH i2c: E2 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0E 00 [11:33:09]MH_I2C_Read... [11:33:09]Read from MH i2c: E2 0E 00 48 1B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 7E [11:33:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:33:09]wFMCommunicate OK [11:33:09]SAM_PROTO_GetShiftState done [11:33:09]FM_GetShiftState done [11:33:09]req_shift_opened done [11:33:09]requested_item shift.open_date is exist - process it [11:33:09]req_shift_open_date [11:33:09]req_shift_open_date done [11:33:09]produce_requested_data done [11:33:09]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2422,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:33:09]process_action_free close_receipt [11:33:09]json_value_free [11:33:09]json_value_free done [11:33:09]process_json_proto returns [11:33:09]Send response to host [11:33:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2422,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:33:09]free response buf [11:33:09]execute_script done [11:33:09]execute_script returns [11:33:09]free content buf [11:33:09]Sock 9.Close socket [11:33:09]Sock 9.Thread stoped [11:33:13]OFD Sender: No OFD packet to send [11:33:18]OFD Sender: No OFD packet to send [11:33:23]OFD Sender: No OFD packet to send [11:33:28]OFD Sender: No OFD packet to send [11:33:33]OFD Sender: No OFD packet to send [11:33:38]OFD Sender: No OFD packet to send [11:33:43]OFD Sender: No OFD packet to send [11:33:48]OFD Sender: No OFD packet to send [11:33:53]OFD Sender: No OFD packet to send [11:33:58]OFD Sender: No OFD packet to send [11:34:03]OFD Sender: No OFD packet to send [11:34:08]OFD Sender: No OFD packet to send [11:34:13]OFD Sender: No OFD packet to send [11:34:18]OFD Sender: No OFD packet to send [11:34:23]OFD Sender: No OFD packet to send [11:34:28]OFD Sender: No OFD packet to send [11:34:33]OFD Sender: No OFD packet to send [11:34:38]OFD Sender: No OFD packet to send [11:34:43]OFD Sender: No OFD packet to send [11:34:48]OFD Sender: No OFD packet to send [11:34:53]OFD Sender: No OFD packet to send [11:34:58]OFD Sender: No OFD packet to send [11:35:03]OFD Sender: No OFD packet to send [11:35:08]OFD Sender: No OFD packet to send [11:35:13]OFD Sender: No OFD packet to send [11:35:18]OFD Sender: No OFD packet to send [11:35:23]OFD Sender: No OFD packet to send [11:35:28]OFD Sender: No OFD packet to send [11:35:33]OFD Sender: No OFD packet to send [11:35:38]OFD Sender: No OFD packet to send [11:35:43]OFD Sender: No OFD packet to send [11:35:48]OFD Sender: No OFD packet to send [11:35:53]OFD Sender: No OFD packet to send [11:35:58]OFD Sender: No OFD packet to send [11:36:03]OFD Sender: No OFD packet to send [11:36:08]OFD Sender: No OFD packet to send [11:36:13]OFD Sender: No OFD packet to send [11:36:18]OFD Sender: No OFD packet to send [11:36:23]OFD Sender: No OFD packet to send [11:36:28]OFD Sender: No OFD packet to send [11:36:33]OFD Sender: No OFD packet to send [11:36:38]OFD Sender: No OFD packet to send [11:36:43]OFD Sender: No OFD packet to send [11:36:44]accept exits with 7 [11:36:44]New connection [11:36:44]New thread 3066707300 created [11:36:44]Thread 3066850660 joined [11:36:44]Waiting for new connection... [11:36:44] Sock 7.Parse request [11:36:44]Sock 7.Check first char [11:36:44]Sock 7.First char is OK [11:36:44]request: POST /json_proto HTTP/1.0 [11:36:44]Method: POST [11:36:44]URL: /json_proto [11:36:44]Method is POST - this is cgi request [11:36:44]url: /json_proto [11:36:44]query_string will be loaded in cgi processing [11:36:44]execute_cgi json_proto POST (null) [11:36:44]execute_cgi path=json_proto method=POST [11:36:44]POST find Content-Length [11:36:44]Host: 172.17.52.132:8080 [11:36:44]Content-Length: 769 [11:36:44]Content-Type: application/json [11:36:44] [11:36:44]POST finish read [11:36:44]Found Content-Length = 769 [11:36:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:44]execute_script... [11:36: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)475342", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:36:44]POST & json_proto [11:36:44]process_json_proto [11:36:44]json parsed OK: [11:36:44]protocol is kg_v1.0 [11:36:44]action value=close_receipt [11:36:44]process_action close_receipt [11:36:44]cmd_close_receipt [11:36:44]MH_GetDate [11:36:44]Write to MH i2c: F0 00 00 49 1B 53 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: F0 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: F0 09 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: F0 09 00 49 1B 00 50 48 12 67 5A BE F6 66 E1 [11:36:44]GetLastDocTimeStamp 1729251189 [11:36:44]current date 1729251408 [11:36:44]FM_GetShiftState [11:36:44]SAM_PROTO_GetShiftState [11:36:44]wFMCommunicate request_size=4 [11:36:44]MH_SAM_APDU [11:36:44]CAPDU: 80 13 01 00 [11:36:44]Write to MH i2c: E2 08 00 4A 1B 80 13 01 00 00 00 00 00 E2 [11:36:44]Write i2c OK [11:36:44]MH_I2C_Read... [11:36:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:44]Read from MH i2c: E2 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 0E 00 [11:36:44]MH_I2C_Read... [11:36:44]Read from MH i2c: E2 0E 00 4A 1B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 80 [11:36:44]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:36:44]wFMCommunicate OK [11:36:44]SAM_PROTO_GetShiftState done [11:36:44]FM_GetShiftState done [11:36:44]opened in 1729209717 [11:36:44]opened+sec_in_day 1729296117 [11:36:44]quantity*price = 300046 [11:36:44]sum+1 = 300048 [11:36:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.47 ÐСП 1% : 26.55 ÐДС 12% : 318.63 Ðаличными: 0.00 Безнал.: 3000.47 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 48 18.10.2024 11:36 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2423 ФПД: 262508373069913 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113648&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2423&fm=262508373069913&tin=02508201610067®Number=0000000000207295&sum=300047 [11:36:45]StoreToDocumentArchive [11:36:45]shift 22 fd 2423 [11:36:45]save to /storage/0022/doc_00002423 [11:36:45]save last doc name /storage/0022/doc_00002423 to /storage/kkm_last_doc_name [11:36:45]save OK [11:36:45]Clear old archive folders... [11:36:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:36:45]tlvbuf is 013C3BF0 [11:36:45]SAM_PROTO_ClearQueue [11:36:45]wFMCommunicate request_size=4 [11:36:45]MH_SAM_APDU [11:36:45]CAPDU: 80 09 00 00 [11:36:45]Write to MH i2c: E2 08 00 57 1B 80 09 00 00 00 00 00 00 E4 [11:36:45]Write i2c OK [11:36:45]MH_I2C_Read... [11:36:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:36:45]Read from MH i2c: E2 [11:36:45]MH_I2C_Read... [11:36:45]Read from MH i2c: E2 03 00 [11:36:45]MH_I2C_Read... [11:36:45]Read from MH i2c: E2 03 00 57 1B 00 90 00 E6 [11:36:45]RAPDU: 90 00 [11:36:45]wFMCommunicate OK [11:36:45]SAM_PROTO_ClearQueue done [11:36:45]KKMCreateOFDPacket [11:36:45]OFDProtocolAddRootSTLVToBuf [11:36:45]FM_MakeSignedData [11:36:45]FM_MakeSignedData [11:36:45]SAM_PROTO_SignData [11:36:45]wFMCommunicate request_size=4 [11:36:45]MH_SAM_APDU [11:36:45]CAPDU: 80 0D 01 02 [11:36:45]Write to MH i2c: E2 08 00 58 1B 80 0D 01 02 00 00 00 00 EC [11:36:45]Write i2c OK [11:36:45]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 58 1B 00 90 00 E7 [11:36:46]RAPDU: 90 00 [11:36:46]wFMCommunicate OK [11:36:46]wFMCommunicate request_size=255 [11:36:46]MH_SAM_APDU [11:36: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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 50 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 77 09 00 00 35 04 06 00 EE [11:36:46]Write to MH i2c: E2 02 01 59 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 50 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 77 09 00 00 35 04 06 00 EE 00 00 1E [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 59 1B 00 90 00 E8 [11:36:46]RAPDU: 90 00 [11:36:46]wFMCommunicate OK [11:36:46]wFMCommunicate request_size=10 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 0D 02 02 05 BF FE 53 D0 59 [11:36:46]Write to MH i2c: E2 0D 00 5A 1B 80 0D 02 02 05 00 BF FE 53 D0 59 00 00 32 [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 03 00 5A 1B 00 90 00 E9 [11:36:46]RAPDU: 90 00 [11:36:46]wFMCommunicate OK [11:36:46]wFMCommunicate request_size=4 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 0D 03 02 [11:36:46]Write to MH i2c: E2 08 00 5B 1B 80 0D 03 02 00 00 00 00 F1 [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 0B 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 0B 00 5B 1B 00 B2 E7 1F 04 8F 66 1C 43 90 00 02 [11:36:46]RAPDU: B2 E7 1F 04 8F 66 1C 43 90 00 [11:36:46]wFMCommunicate OK [11:36:46]SAM_PROTO_SignData done [11:36:46]FM_MakeSignedData done [11:36:46]CreateOFDProtocolMessage [11:36:46]wFMCommunicate request_size=4 [11:36:46]MH_SAM_APDU [11:36:46]CAPDU: 80 11 00 00 [11:36:46]Write to MH i2c: E2 08 00 5C 1B 80 11 00 00 00 00 00 00 F1 [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:46]Read from MH i2c: E2 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 17 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: E2 17 00 5C 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 39 [11:36:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:36:46]wFMCommunicate OK [11:36:46]CreateOFDProtocolMessage done [11:36:46]OFDSenderStorePacket 2423 [11:36:46]StoreOFDPacket docnum=2423 [11:36:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 C8 90 07 01 E3 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 50 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 77 09 00 00 35 04 06 00 EE BF FE 53 D0 59 B2 E7 1F 04 8F 66 1C 43 [11:36:46]CheckFolder [11:36:46]dirname=/storage/ofd_packets [11:36:46]CheckFolder done [11:36:46]ProducePacketName [11:36:46]name=ofd_packets/00002423 [11:36:46]NVStorageSaveData ofd_packets/00002423 [11:36:46]File name is /storage/ofd_packets/00002423 [11:36:46]Write 301 bytes [11:36:46]NVStorageSaveData done [11:36:46]OFDSenderStorePacket done [11:36:46]KKMCreateOFDPacket done [11:36:46]NVStorageSaveData kkm_last_timestamp [11:36:46]File name is /storage/kkm_last_timestamp [11:36:46]Write 4 bytes [11:36:46]NVStorageSaveData done [11:36:46]ExternCall_PrintAddStr [11:36:46]wPrintStart [11:36:46]Write to MH i2c: 01 00 00 5D 1B 78 [11:36:46]OFD Sender: Processing packet 2423 [packets to send 1, broken 0] [11:36:46]ProducePacketName [11:36:46]name=ofd_packets/00002423 [11:36:46]OFD Sender: To server: ‡•öpG, [11:36:46]CommunicateWithHost lk.salyk.kg:30040 [11:36:46]ConnectInit lk.salyk.kg [11:36:46]Write i2c OK [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: 01 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: 01 07 00 [11:36:46]MH_I2C_Read... [11:36:46]Read from MH i2c: 01 07 00 5D 1B 00 00 00 00 00 FF 0F 8D [11:36:46]RasterBufferAndPrint [11:36:46]line Счет N : (1)475342 [11:36:46]line ИÐÐ: 02508201610067 [11:36:46]line Контрольно-КаÑÑовый Чек [11:36:46]line ПРОДÐЖР[11:36:46]line ТРК (МРК, ГÐК) : 42 [11:36:46]line Товар: 2710124130 [11:36:46]line Ðи-92-К-5 [11:36:46]line 44.850 * 66.90 [11:36:46]line = 3000.47 [11:36:46]line ÐДС 12% ÐСП 1% [11:36:46]line > о реализуемом товаре [11:36:46]line ИТОГО: 3000.47 [11:36:46]line ÐСП 1% : 26.55 [11:36:46]line ÐДС 12% : 318.63 [11:36:46]line Ðаличными: 0.00 [11:36:46]line Безнал.: 3000.47 [11:36:46]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:36:46]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:36:46]line СÐО: Общий режим [11:36:46]line Чек 48 18.10.2024 11:36 [11:36:46]line Смена: 22 ФФД: 1.0 [11:36:46]line ЗÐМ: 0300000191 [11:36:46]line РÐМ: 0000000000207295 [11:36:46]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:36:46]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [11:36:46]line ФМ: 0000000002342820 [11:36:46]line ФД: 2423 [11:36:46]line ФПД: 262508373069913 [11:36:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113648&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2423&fm=262508373069913&tin=02508201610067®Number=0000000000207295&sum=300047 [11:36:46]Connected sock=10 [11:36:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 C8 90 07 01 E3 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 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 50 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 77 09 00 00 35 04 06 00 EE BF FE 53 D0 59 B2 E7 1F 04 8F 66 1C 43 [11:36:46]written 0, free lines is 4095 [11:36:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 61 AC 47 00 D8 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 77 09 00 00 F4 03 04 00 B4 F3 11 67 B6 04 01 00 00 B5 00 AE 94 74 4D 46 C1 [11:36:47]CommunicateWithHost err = 0 [11:36:47]CheckOFDResponse [11:36:47]1017 (14) - 77093643461234 [11:36:47]1041 (16) - 0000000002342820 [11:36:47]1040 (4) - 2423 [11:36:47]1012 (4) - 18.10.2024 05:35 [11:36:47]1206 (1) - 0 [11:36:47]OFD Sender: Remove packet 2423 [11:36:47]ProducePacketName [11:36:47]name=ofd_packets/00002423 [11:36:47]NVStorageDeleteData [11:36:47]Write to MH i2c: 01 00 00 86 1B A1 [11:36:47]Write i2c OK [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: 01 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: 01 07 00 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: 01 07 00 86 1B 00 00 00 00 00 CB 0C 7F [11:36:47]RasterBufferAndPrint [11:36:47]line [11:36:47]line [11:36:47]line [11:36:47]line [11:36:47]line [11:36:47]written 0, free lines is 3278 [11:36:47]MH_Cut [11:36:47]Write to MH i2c: D1 01 00 8D 1B 01 7A [11:36:47]Write i2c OK [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: D1 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: D1 01 00 [11:36:47]MH_I2C_Read... [11:36:47]Read from MH i2c: D1 01 00 8D 1B 00 79 [11:36:47]Write to MH i2c: 01 00 00 8E 1B A9 [11:36:47]Write i2c OK [11:36:47]MH_I2C_Read... [11:36:47]OFD Sender: No OFD packet to send [11:36:48]*** Cut start [11:36:48]*** Partial cut [11:36:48]*** CUTSNS_PIN = 1 [11:36:48]*** CUTSNS_PIN = 0 [11:36:48]*** Brake cut motor [11:36:48]Read from MH i2c: 01 [11:36:48]MH_I2C_Read... [11:36:48]*** Stop cut motor [11:36:48]*** Cut end [11:36:48]Read from MH i2c: 01 07 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: 01 07 00 8E 1B 00 00 00 00 00 FF 0F BE [11:36:48]process_action close_receipt done [11:36:48]requested_data is exist [11:36:48]produce_requested_data [11:36:48]requested_item fm.sn is exist - process it [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 11 00 00 [11:36:48]Write to MH i2c: E2 08 00 8F 1B 80 11 00 00 00 00 00 00 24 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:36:48]Read from MH i2c: E2 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 17 00 [11:36:48]MH_I2C_Read... [11:36:48]Read from MH i2c: E2 17 00 8F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 6C [11:36:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:36:48]wFMCommunicate OK [11:36:48]requested_item fd.num is exist - process it [11:36:48]SAM_PROTO_GetFieldsCounters [11:36:48]wFMCommunicate request_size=4 [11:36:48]MH_SAM_APDU [11:36:48]CAPDU: 80 13 00 00 [11:36:48]Write to MH i2c: E2 08 00 90 1B 80 13 00 00 00 00 00 00 27 [11:36:48]Write i2c OK [11:36:48]MH_I2C_Read... [11:36:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:36:49]Read from MH i2c: E2 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: E2 62 00 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: E2 62 00 90 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 77 09 00 00 0E 04 04 00 16 00 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 63 [11:36:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 77 09 00 00 0E 04 04 00 16 00 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 [11:36:49]wFMCommunicate OK [11:36:49]SAM_PROTO_GetFieldsCounters done [11:36:49]requested_item shift.num is exist - process it [11:36:49]requested_item shift.opened is exist - process it [11:36:49]req_shift_opened [11:36:49]FM_GetShiftState [11:36:49]SAM_PROTO_GetShiftState [11:36:49]wFMCommunicate request_size=4 [11:36:49]MH_SAM_APDU [11:36:49]CAPDU: 80 13 01 00 [11:36:49]Write to MH i2c: E2 08 00 91 1B 80 13 01 00 00 00 00 00 29 [11:36:49]Write i2c OK [11:36:49]MH_I2C_Read... [11:36:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:36:49]Read from MH i2c: E2 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: E2 0E 00 [11:36:49]MH_I2C_Read... [11:36:49]Read from MH i2c: E2 0E 00 91 1B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C7 [11:36:49]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:36:49]wFMCommunicate OK [11:36:49]SAM_PROTO_GetShiftState done [11:36:49]FM_GetShiftState done [11:36:49]req_shift_opened done [11:36:49]requested_item shift.open_date is exist - process it [11:36:49]req_shift_open_date [11:36:49]req_shift_open_date done [11:36:49]produce_requested_data done [11:36:49]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2423,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:36:49]process_action_free close_receipt [11:36:49]json_value_free [11:36:49]json_value_free done [11:36:49]process_json_proto returns [11:36:49]Send response to host [11:36:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2423,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:36:49]free response buf [11:36:49]execute_script done [11:36:49]execute_script returns [11:36:49]free content buf [11:36:49]Sock 7.Close socket [11:36:49]Sock 7.Thread stoped [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:32]OFD Sender: No OFD packet to send [11:37:37]OFD Sender: No OFD packet to send [11:37:42]OFD Sender: No OFD packet to send [11:37:47]OFD Sender: No OFD packet to send [11:37:52]OFD Sender: No OFD packet to send [11:37:57]OFD Sender: No OFD packet to send [11:38:02]OFD Sender: No OFD packet to send [11:38:03]accept exits with 9 [11:38:03]New connection [11:38:03]New thread 3066850660 created [11:38:03]Thread 3066707300 joined [11:38:03]Waiting for new connection... [11:38:03] Sock 9.Parse request [11:38:03]Sock 9.Check first char [11:38:03]Sock 9.First char is OK [11:38:03]request: POST /json_proto HTTP/1.0 [11:38:03]Method: POST [11:38:03]URL: /json_proto [11:38:03]Method is POST - this is cgi request [11:38:03]url: /json_proto [11:38:03]query_string will be loaded in cgi processing [11:38:03]execute_cgi json_proto POST (null) [11:38:03]execute_cgi path=json_proto method=POST [11:38:03]POST find Content-Length [11:38:03]Host: 172.17.52.132:8080 [11:38:03]Content-Length: 677 [11:38:03]Content-Type: application/json [11:38:03] [11:38:03]POST finish read [11:38:03]Found Content-Length = 677 [11:38:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475344", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:03]execute_script... [11:38: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)475344", "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" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:03]POST & json_proto [11:38:03]process_json_proto [11:38:03]json parsed OK: [11:38:03]protocol is kg_v1.0 [11:38:03]action value=close_receipt [11:38:03]process_action close_receipt [11:38:03]cmd_close_receipt [11:38:03]MH_GetDate [11:38:03]Write to MH i2c: F0 00 00 92 1B 9C [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 09 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: F0 09 00 92 1B 00 9F 48 12 67 5A BE F6 66 79 [11:38:03]GetLastDocTimeStamp 1729251408 [11:38:03]current date 1729251487 [11:38:03]FM_GetShiftState [11:38:03]SAM_PROTO_GetShiftState [11:38:03]wFMCommunicate request_size=4 [11:38:03]MH_SAM_APDU [11:38:03]CAPDU: 80 13 01 00 [11:38:03]Write to MH i2c: E2 08 00 93 1B 80 13 01 00 00 00 00 00 2B [11:38:03]Write i2c OK [11:38:03]MH_I2C_Read... [11:38:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:03]Read from MH i2c: E2 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 0E 00 [11:38:03]MH_I2C_Read... [11:38:03]Read from MH i2c: E2 0E 00 93 1B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C9 [11:38:03]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:38:03]wFMCommunicate OK [11:38:03]SAM_PROTO_GetShiftState done [11:38:03]FM_GetShiftState done [11:38:03]opened in 1729209717 [11:38:03]opened+sec_in_day 1729296117 [11:38:03]quantity*price = 20003 [11:38:03]sum+1 = 20004 [11:38:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.03 ИТОГО: 200.00 ВнеÑено: 200.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.77 ÐДС 12% : 21.24 Ðаличными: 200.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 49 18.10.2024 11:38 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2424 ФПД: 246764664706008 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113807&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2424&fm=246764664706008&tin=02508201610067®Number=0000000000207295&sum=20000 [11:38:04]StoreToDocumentArchive [11:38:04]shift 22 fd 2424 [11:38:04]save to /storage/0022/doc_00002424 [11:38:04]save last doc name /storage/0022/doc_00002424 to /storage/kkm_last_doc_name [11:38:04]save OK [11:38:04]Clear old archive folders... [11:38:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:38:04]tlvbuf is 013CE3E0 [11:38:04]SAM_PROTO_ClearQueue [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 09 00 00 [11:38:04]Write to MH i2c: E2 08 00 A0 1B 80 09 00 00 00 00 00 00 2D [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 A0 1B 00 90 00 2F [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_ClearQueue done [11:38:04]KKMCreateOFDPacket [11:38:04]OFDProtocolAddRootSTLVToBuf [11:38:04]FM_MakeSignedData [11:38:04]FM_MakeSignedData [11:38:04]SAM_PROTO_SignData [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 01 02 [11:38:04]Write to MH i2c: E2 08 00 A1 1B 80 0D 01 02 00 00 00 00 35 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 A1 1B 00 90 00 30 [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]wFMCommunicate request_size=255 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9F 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 78 09 00 00 35 04 06 00 E0 [11:38:04]Write to MH i2c: E2 02 01 A2 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9F 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 78 09 00 00 35 04 06 00 E0 00 00 83 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 A2 1B 00 90 00 31 [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]wFMCommunicate request_size=10 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 02 02 05 6E 60 2E D3 D8 [11:38:04]Write to MH i2c: E2 0D 00 A3 1B 80 0D 02 02 05 00 6E 60 2E D3 D8 00 00 E9 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 03 00 A3 1B 00 90 00 32 [11:38:04]RAPDU: 90 00 [11:38:04]wFMCommunicate OK [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 0D 03 02 [11:38:04]Write to MH i2c: E2 08 00 A4 1B 80 0D 03 02 00 00 00 00 3A [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0B 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 0B 00 A4 1B 00 09 71 70 51 DE D7 0E 59 90 00 92 [11:38:04]RAPDU: 09 71 70 51 DE D7 0E 59 90 00 [11:38:04]wFMCommunicate OK [11:38:04]SAM_PROTO_SignData done [11:38:04]FM_MakeSignedData done [11:38:04]CreateOFDProtocolMessage [11:38:04]wFMCommunicate request_size=4 [11:38:04]MH_SAM_APDU [11:38:04]CAPDU: 80 11 00 00 [11:38:04]Write to MH i2c: E2 08 00 A5 1B 80 11 00 00 00 00 00 00 3A [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:04]Read from MH i2c: E2 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 17 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: E2 17 00 A5 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 82 [11:38:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:38:04]wFMCommunicate OK [11:38:04]CreateOFDProtocolMessage done [11:38:04]OFDSenderStorePacket 2424 [11:38:04]StoreOFDPacket docnum=2424 [11:38:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 56 B9 07 01 3C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9F 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 78 09 00 00 35 04 06 00 E0 6E 60 2E D3 D8 09 71 70 51 DE D7 0E 59 [11:38:04]CheckFolder [11:38:04]dirname=/storage/ofd_packets [11:38:04]CheckFolder done [11:38:04]ProducePacketName [11:38:04]name=ofd_packets/00002424 [11:38:04]NVStorageSaveData ofd_packets/00002424 [11:38:04]File name is /storage/ofd_packets/00002424 [11:38:04]Write 301 bytes [11:38:04]NVStorageSaveData done [11:38:04]OFDSenderStorePacket done [11:38:04]KKMCreateOFDPacket done [11:38:04]NVStorageSaveData kkm_last_timestamp [11:38:04]File name is /storage/kkm_last_timestamp [11:38:04]Write 4 bytes [11:38:04]NVStorageSaveData done [11:38:04]ExternCall_PrintAddStr [11:38:04]wPrintStart [11:38:04]Write to MH i2c: 01 00 00 A6 1B C1 [11:38:04]Write i2c OK [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 07 00 [11:38:04]MH_I2C_Read... [11:38:04]Read from MH i2c: 01 07 00 A6 1B 00 00 00 00 00 FF 0F D6 [11:38:04]RasterBufferAndPrint [11:38:04]line Счет N : (1)475344 [11:38:04]line ИÐÐ: 02508201610067 [11:38:04]line Контрольно-КаÑÑовый Чек [11:38:04]line ПРОДÐЖР[11:38:04]line ТРК (МРК, ГÐК) : 12 [11:38:04]line Товар: 2710124130 [11:38:04]line Ðи-92-К-5 [11:38:04]line 2.990 * 66.90 [11:38:04]line = 200.03 [11:38:04]line ÐДС 12% ÐСП 1% [11:38:04]line > о реализуемом товаре [11:38:04]line ОКРУГЛЕÐИЕ: -0.03 [11:38:04]line ИТОГО: 200.00 [11:38:04]line ВнеÑено: 200.00 [11:38:04]line СДÐЧÐ: 0.00 [11:38:04]line ÐСП 1% : 1.77 [11:38:04]line ÐДС 12% : 21.24 [11:38:04]line Ðаличными: 200.00 [11:38:04]line Безнал.: 0.00 [11:38:04]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:38:04]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:38:04]line СÐО: Общий режим [11:38:04]line Чек 49 18.10.2024 11:38 [11:38:04]line Смена: 22 ФФД: 1.0 [11:38:04]line ЗÐМ: 0300000191 [11:38:04]line РÐМ: 0000000000207295 [11:38:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:38:04]line ФМ: 0000000002342820 [11:38:04]line ФД: 2424 [11:38:04]line ФПД: 246764664706008 [11:38:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113807&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2424&fm=246764664706008&tin=02508201610067®Number=0000000000207295&sum=20000 [11:38:05]OFD Sender: Processing packet 2424 [packets to send 1, broken 0] [11:38:05]ProducePacketName [11:38:05]name=ofd_packets/00002424 [11:38:05]OFD Sender: To server: ‡•öpG, [11:38:05]CommunicateWithHost lk.salyk.kg:30040 [11:38:05]ConnectInit lk.salyk.kg [11:38:05]written 0, free lines is 4095 [11:38:05]Connected sock=10 [11:38:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 56 B9 07 01 3C 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 9F 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 78 09 00 00 35 04 06 00 E0 6E 60 2E D3 D8 09 71 70 51 DE D7 0E 59 [11:38:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 D9 9A 47 00 35 FD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 78 09 00 00 F4 03 04 00 03 F4 11 67 B6 04 01 00 00 83 93 A1 A1 29 43 B4 25 [11:38:05]CommunicateWithHost err = 0 [11:38:05]CheckOFDResponse [11:38:05]1017 (14) - 77093643461234 [11:38:05]1041 (16) - 0000000002342820 [11:38:05]1040 (4) - 2424 [11:38:05]1012 (4) - 18.10.2024 05:37 [11:38:05]1206 (1) - 0 [11:38:05]OFD Sender: Remove packet 2424 [11:38:05]ProducePacketName [11:38:05]name=ofd_packets/00002424 [11:38:05]NVStorageDeleteData [11:38:05]Write to MH i2c: 01 00 00 D1 1B EC [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: 01 07 00 D1 1B 00 00 00 00 00 AD 0C AC [11:38:05]RasterBufferAndPrint [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]line [11:38:05]written 0, free lines is 3251 [11:38:05]MH_Cut [11:38:05]Write to MH i2c: D1 01 00 D8 1B 01 C5 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 01 00 [11:38:05]MH_I2C_Read... [11:38:05]Read from MH i2c: D1 01 00 D8 1B 00 C4 [11:38:05]Write to MH i2c: 01 00 00 D9 1B F4 [11:38:05]Write i2c OK [11:38:05]MH_I2C_Read... [11:38:05]OFD Sender: No OFD packet to send [11:38:06]*** Cut start [11:38:06]*** Partial cut [11:38:06]*** CUTSNS_PIN = 1 [11:38:06]*** CUTSNS_PIN = 0 [11:38:06]*** Brake cut motor [11:38:07]Read from MH i2c: 01 [11:38:07]MH_I2C_Read... [11:38:07]*** Stop cut motor [11:38:07]*** Cut end [11:38:07]Read from MH i2c: 01 07 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: 01 07 00 D9 1B 00 00 00 00 00 FF 0F 09 [11:38:07]process_action close_receipt done [11:38:07]requested_data is exist [11:38:07]produce_requested_data [11:38:07]requested_item fm.sn is exist - process it [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 11 00 00 [11:38:07]Write to MH i2c: E2 08 00 DA 1B 80 11 00 00 00 00 00 00 6F [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 17 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 17 00 DA 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B7 [11:38:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:38:07]wFMCommunicate OK [11:38:07]requested_item fd.num is exist - process it [11:38:07]SAM_PROTO_GetFieldsCounters [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 13 00 00 [11:38:07]Write to MH i2c: E2 08 00 DB 1B 80 13 00 00 00 00 00 00 72 [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 62 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 62 00 DB 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 78 09 00 00 0E 04 04 00 16 00 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 B2 [11:38:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 78 09 00 00 0E 04 04 00 16 00 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 [11:38:07]wFMCommunicate OK [11:38:07]SAM_PROTO_GetFieldsCounters done [11:38:07]requested_item shift.num is exist - process it [11:38:07]requested_item shift.opened is exist - process it [11:38:07]req_shift_opened [11:38:07]FM_GetShiftState [11:38:07]SAM_PROTO_GetShiftState [11:38:07]wFMCommunicate request_size=4 [11:38:07]MH_SAM_APDU [11:38:07]CAPDU: 80 13 01 00 [11:38:07]Write to MH i2c: E2 08 00 DC 1B 80 13 01 00 00 00 00 00 74 [11:38:07]Write i2c OK [11:38:07]MH_I2C_Read... [11:38:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:07]Read from MH i2c: E2 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 0E 00 [11:38:07]MH_I2C_Read... [11:38:07]Read from MH i2c: E2 0E 00 DC 1B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 12 [11:38:07]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:38:07]wFMCommunicate OK [11:38:07]SAM_PROTO_GetShiftState done [11:38:07]FM_GetShiftState done [11:38:07]req_shift_opened done [11:38:07]requested_item shift.open_date is exist - process it [11:38:07]req_shift_open_date [11:38:07]req_shift_open_date done [11:38:07]produce_requested_data done [11:38:07]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2424,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:38:07]process_action_free close_receipt [11:38:07]json_value_free [11:38:07]json_value_free done [11:38:07]process_json_proto returns [11:38:07]Send response to host [11:38:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2424,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:38:07]free response buf [11:38:07]execute_script done [11:38:07]execute_script returns [11:38:07]free content buf [11:38:07]Sock 9.Close socket [11:38:07]Sock 9.Thread stoped [11:38:10]OFD Sender: No OFD packet to send [11:38:15]OFD Sender: No OFD packet to send [11:38:20]OFD Sender: No OFD packet to send [11:38:25]OFD Sender: No OFD packet to send [11:38:30]OFD Sender: No OFD packet to send [11:38:35]OFD Sender: No OFD packet to send [11:38:39]accept exits with 7 [11:38:39]New connection [11:38:39]New thread 3066707300 created [11:38:39]Thread 3066850660 joined [11:38:39]Waiting for new connection... [11:38:39] Sock 7.Parse request [11:38:39]Sock 7.Check first char [11:38:39]Sock 7.First char is OK [11:38:39]request: POST /json_proto HTTP/1.0 [11:38:39]Method: POST [11:38:39]URL: /json_proto [11:38:39]Method is POST - this is cgi request [11:38:39]url: /json_proto [11:38:39]query_string will be loaded in cgi processing [11:38:39]execute_cgi json_proto POST (null) [11:38:39]execute_cgi path=json_proto method=POST [11:38:39]POST find Content-Length [11:38:39]Host: 172.17.52.132:8080 [11:38:39]Content-Length: 620 [11:38:39]Content-Type: application/json [11:38:39] [11:38:39]POST finish read [11:38:39]Found Content-Length = 620 [11:38:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99839", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:38:39]execute_script... [11:38:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99839", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "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 DD 1B E7 [11:38:39]Write i2c OK [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 09 00 [11:38:39]MH_I2C_Read... [11:38:39]Read from MH i2c: F0 09 00 DD 1B 00 C3 48 12 67 5A BE F6 66 E8 [11:38:39]GetLastDocTimeStamp 1729251487 [11:38:39]current date 1729251523 [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 DE 1B 80 13 01 00 00 00 00 00 76 [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 DE 1B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 14 [11:38:39]RAPDU: 09 00 01 75 A5 11 67 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 1729209717 [11:38:39]opened+sec_in_day 1729296117 [11:38:39]quantity*price = 14400 [11:38:39]sum+1 = 14401 [11:38:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 ÐСП 1% : 1.27 ÐДС 12% : 15.29 Ðаличными: 144.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 50 18.10.2024 11:38 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2425 ФПД: 124337583315492 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113843&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2425&fm=124337583315492&tin=02508201610067®Number=0000000000207295&sum=14400 0 [11:38:40]StoreToDocumentArchive [11:38:40]shift 22 fd 2425 [11:38:40]save to /storage/0022/doc_00002425 [11:38:40]save last doc name /storage/0022/doc_00002425 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=273 [11:38:40]tlvbuf is 013E49F0 [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 EB 1B 80 09 00 00 00 00 00 00 78 [11:38:40]Write i2c OK [11:38:40]MH_I2C_Read... [11:38:40]OFD Sender: No OFD packet to send [11:38:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 EB 1B 00 90 00 7A [11:38:41]RAPDU: 90 00 [11:38:41]wFMCommunicate OK [11:38:41]SAM_PROTO_ClearQueue done [11:38:41]KKMCreateOFDPacket [11:38:41]OFDProtocolAddRootSTLVToBuf [11:38:41]FM_MakeSignedData [11:38:41]FM_MakeSignedData [11:38:41]SAM_PROTO_SignData [11:38:41]wFMCommunicate request_size=4 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 0D 01 02 [11:38:41]Write to MH i2c: E2 08 00 EC 1B 80 0D 01 02 00 00 00 00 80 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 EC 1B 00 90 00 7B [11:38:41]RAPDU: 90 00 [11:38:41]wFMCommunicate OK [11:38:41]wFMCommunicate request_size=255 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C3 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 [11:38:41]Write to MH i2c: E2 02 01 ED 1B 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C3 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 B6 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 ED 1B 00 90 00 7C [11:38:41]RAPDU: 90 00 [11:38:41]wFMCommunicate OK [11:38:41]wFMCommunicate request_size=32 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 0D 02 02 1B 30 30 32 33 34 32 38 32 30 10 04 04 00 79 09 00 00 35 04 06 00 71 15 99 7C 5A 24 [11:38:41]Write to MH i2c: E2 23 00 EE 1B 80 0D 02 02 1B 00 30 30 32 33 34 32 38 32 30 10 04 04 00 79 09 00 00 35 04 06 00 71 15 99 7C 5A 24 00 00 70 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 03 00 EE 1B 00 90 00 7D [11:38:41]RAPDU: 90 00 [11:38:41]wFMCommunicate OK [11:38:41]wFMCommunicate request_size=4 [11:38:41]MH_SAM_APDU [11:38:41]CAPDU: 80 0D 03 02 [11:38:41]Write to MH i2c: E2 08 00 EF 1B 80 0D 03 02 00 00 00 00 85 [11:38:41]Write i2c OK [11:38:41]MH_I2C_Read... [11:38:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:38:41]Read from MH i2c: E2 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 0B 00 [11:38:41]MH_I2C_Read... [11:38:41]Read from MH i2c: E2 0B 00 EF 1B 00 A5 AC 44 A4 A4 8D AB 93 90 00 2E [11:38:41]RAPDU: A5 AC 44 A4 A4 8D AB 93 90 00 [11:38:41]wFMCommunicate OK [11:38:41]SAM_PROTO_SignData done [11:38:41]FM_MakeSignedData done [11:38:41]CreateOFDProtocolMessage [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 F0 1B 80 11 00 00 00 00 00 00 85 [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 F0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CD [11:38:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:38:41]wFMCommunicate OK [11:38:41]CreateOFDProtocolMessage done [11:38:41]OFDSenderStorePacket 2425 [11:38:41]StoreOFDPacket docnum=2425 [11:38:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 9B 8A 1D 01 19 76 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C3 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 79 09 00 00 35 04 06 00 71 15 99 7C 5A 24 A5 AC 44 A4 A4 8D AB 93 [11:38:41]CheckFolder [11:38:41]dirname=/storage/ofd_packets [11:38:41]CheckFolder done [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00002425 [11:38:41]NVStorageSaveData ofd_packets/00002425 [11:38:41]File name is /storage/ofd_packets/00002425 [11:38:41]Write 323 bytes [11:38:41]NVStorageSaveData done [11:38:41]OFDSenderStorePacket done [11:38:41]KKMCreateOFDPacket done [11:38:41]NVStorageSaveData kkm_last_timestamp [11:38:41]File name is /storage/kkm_last_timestamp [11:38:41]Write 4 bytes [11:38:41]NVStorageSaveData done [11:38:41]ExternCall_PrintAddStr [11:38:41]wPrintStart [11:38:41]Write to MH i2c: 01 00 00 F1 1B 0C [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 F1 1B 00 00 00 00 00 FF 0F 21 [11:38:41]RasterBufferAndPrint [11:38:41]line Счет N : (3)99839 [11:38:41]line ИÐÐ: 02508201610067 [11:38:41]line Контрольно-КаÑÑовый Чек [11:38:41]line ПРОДÐЖР[11:38:41]line Товар: 48743570 [11:38:41]line Сигареты Winston XStyle Blue [11:38:41]line 1.000 * 144.00 [11:38:41]line = 144.00 [11:38:41]line ÐДС 12% ÐСП 1% [11:38:41]line > о реализуемом товаре [11:38:41]line ИТОГО: 144.00 [11:38:41]line ÐСП 1% : 1.27 [11:38:41]line ÐДС 12% : 15.29 [11:38:41]line Ðаличными: 144.00 [11:38:41]line Безнал.: 0.00 [11:38:41]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:38:41]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:38:41]line СÐО: Общий режим [11:38:41]line Чек 50 18.10.2024 11:38 [11:38:41]line Смена: 22 ФФД: 1.0 [11:38:41]line ЗÐМ: 0300000191 [11:38:41]line РÐМ: 0000000000207295 [11:38:41]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:38:41]line ФМ: 0000000002342820 [11:38:41]line ФД: 2425 [11:38:41]line ФПД: 124337583315492 [11:38:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T113843&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2425&fm=124337583315492&tin=02508201610067®Number=0000000000207295&sum=14400 [11:38:41]line 0 [11:38:41]OFD Sender: Processing packet 2425 [packets to send 1, broken 0] [11:38:41]ProducePacketName [11:38:41]name=ofd_packets/00002425 [11:38:41]OFD Sender: To server: ‡•öpG, [11:38:41]CommunicateWithHost lk.salyk.kg:30040 [11:38:41]ConnectInit lk.salyk.kg [11:38:41]written 0, free lines is 4095 [11:38:41]Connected sock=10 [11:38:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 9B 8A 1D 01 19 76 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 C3 48 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 79 09 00 00 35 04 06 00 71 15 99 7C 5A 24 A5 AC 44 A4 A4 8D AB 93 [11:38:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 A5 DC 47 00 F3 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 32 33 34 32 38 32 30 10 04 04 00 79 09 00 00 F4 03 04 00 27 F4 11 67 B6 04 01 00 00 B0 67 0E B8 1D B3 7D 21 [11:38:42]CommunicateWithHost err = 0 [11:38:42]CheckOFDResponse [11:38:42]1017 (14) - 77093643461234 [11:38:42]1041 (16) - 0000000002342820 [11:38:42]1040 (4) - 2425 [11:38:42]1012 (4) - 18.10.2024 05:37 [11:38:42]1206 (1) - 0 [11:38:42]OFD Sender: Remove packet 2425 [11:38:42]ProducePacketName [11:38:42]name=ofd_packets/00002425 [11:38:42]NVStorageDeleteData [11:38:42]Write to MH i2c: 01 00 00 19 1C 35 [11:38:42]Write i2c OK [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: 01 [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: 01 07 00 [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: 01 07 00 19 1C 00 00 00 00 00 BC 0C 04 [11:38:42]RasterBufferAndPrint [11:38:42]line [11:38:42]line [11:38:42]line [11:38:42]line [11:38:42]line [11:38:42]written 0, free lines is 3265 [11:38:42]MH_Cut [11:38:42]Write to MH i2c: D1 01 00 20 1C 01 0E [11:38:42]Write i2c OK [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: D1 [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: D1 01 00 [11:38:42]MH_I2C_Read... [11:38:42]Read from MH i2c: D1 01 00 20 1C 00 0D [11:38:42]Write to MH i2c: 01 00 00 21 1C 3D [11:38:42]Write i2c OK [11:38:42]MH_I2C_Read... [11:38:42]OFD Sender: No OFD packet to send [11:38:43]*** Cut start [11:38:43]*** Partial cut [11:38:43]*** CUTSNS_PIN = 1 [11:38:43]*** CUTSNS_PIN = 0 [11:38:43]*** Brake cut motor [11:38:43]Read from MH i2c: 01 [11:38:43]MH_I2C_Read... [11:38:43]*** Stop cut motor [11:38:43]*** Cut end [11:38:43]Read from MH i2c: 01 07 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: 01 07 00 21 1C 00 00 00 00 00 FF 0F 52 [11:38:43]process_action close_receipt done [11:38:43]requested_data is exist [11:38:43]produce_requested_data [11:38:43]requested_item fm.sn is exist - process it [11:38:43]wFMCommunicate request_size=4 [11:38:43]MH_SAM_APDU [11:38:43]CAPDU: 80 11 00 00 [11:38:43]Write to MH i2c: E2 08 00 22 1C 80 11 00 00 00 00 00 00 B8 [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:38:43]Read from MH i2c: E2 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 17 00 [11:38:43]MH_I2C_Read... [11:38:43]Read from MH i2c: E2 17 00 22 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 00 [11:38:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:38:43]wFMCommunicate OK [11:38:43]requested_item fd.num is exist - process it [11:38:43]SAM_PROTO_GetFieldsCounters [11:38:43]wFMCommunicate request_size=4 [11:38:43]MH_SAM_APDU [11:38:43]CAPDU: 80 13 00 00 [11:38:43]Write to MH i2c: E2 08 00 23 1C 80 13 00 00 00 00 00 00 BB [11:38:43]Write i2c OK [11:38:43]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 62 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 62 00 23 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 79 09 00 00 0E 04 04 00 16 00 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 FF [11:38:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 79 09 00 00 0E 04 04 00 16 00 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:38:44]wFMCommunicate OK [11:38:44]SAM_PROTO_GetFieldsCounters done [11:38:44]requested_item shift.num is exist - process it [11:38:44]requested_item shift.opened is exist - process it [11:38:44]req_shift_opened [11:38:44]FM_GetShiftState [11:38:44]SAM_PROTO_GetShiftState [11:38:44]wFMCommunicate request_size=4 [11:38:44]MH_SAM_APDU [11:38:44]CAPDU: 80 13 01 00 [11:38:44]Write to MH i2c: E2 08 00 24 1C 80 13 01 00 00 00 00 00 BD [11:38:44]Write i2c OK [11:38:44]MH_I2C_Read... [11:38:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:38:44]Read from MH i2c: E2 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 0E 00 [11:38:44]MH_I2C_Read... [11:38:44]Read from MH i2c: E2 0E 00 24 1C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5B [11:38:44]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:38:44]wFMCommunicate OK [11:38:44]SAM_PROTO_GetShiftState done [11:38:44]FM_GetShiftState done [11:38:44]req_shift_opened done [11:38:44]requested_item shift.open_date is exist - process it [11:38:44]req_shift_open_date [11:38:44]req_shift_open_date done [11:38:44]produce_requested_data done [11:38:44]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2425,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:38:44]process_action_free close_receipt [11:38:44]json_value_free [11:38:44]json_value_free done [11:38:44]process_json_proto returns [11:38:44]Send response to host [11:38:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2425,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:38:44]free response buf [11:38:44]execute_script done [11:38:44]execute_script returns [11:38:44]free content buf [11:38:44]Sock 7.Close socket [11:38:44]Sock 7.Thread stoped [11:38:47]OFD Sender: No OFD packet to send [11:38:52]OFD Sender: No OFD packet to send [11:38:57]OFD Sender: No OFD packet to send [11:39:02]OFD Sender: No OFD packet to send [11:39:07]OFD Sender: No OFD packet to send [11:39:12]OFD Sender: No OFD packet to send [11:39:17]OFD Sender: No OFD packet to send [11:39:22]OFD Sender: No OFD packet to send [11:39:27]OFD Sender: No OFD packet to send [11:39:32]OFD Sender: No OFD packet to send [11:39:37]OFD Sender: No OFD packet to send [11:39:42]OFD Sender: No OFD packet to send [11:39:47]OFD Sender: No OFD packet to send [11:39:52]OFD Sender: No OFD packet to send [11:39:57]OFD Sender: No OFD packet to send [11:39:58]accept exits with 9 [11:39:58]New connection [11:39:58]New thread 3066850660 created [11:39:58]Thread 3066707300 joined [11:39:58]Waiting for new connection... [11:39:58] Sock 9.Parse request [11:39:58]Sock 9.Check first char [11:39:58]Sock 9.First char is OK [11:39:58]request: POST /json_proto HTTP/1.0 [11:39:58]Method: POST [11:39:58]URL: /json_proto [11:39:58]Method is POST - this is cgi request [11:39:58]url: /json_proto [11:39:58]query_string will be loaded in cgi processing [11:39:58]execute_cgi json_proto POST (null) [11:39:58]execute_cgi path=json_proto method=POST [11:39:58]POST find Content-Length [11:39:58]Host: 172.17.52.132:8080 [11:39:58]Content-Length: 798 [11:39:58]Content-Type: application/json [11:39:58] [11:39:58]POST finish read [11:39:58]Found Content-Length = 798 [11:39:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3987839", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:58]execute_script... [11:39: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)475336", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 500.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3987839", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:58]POST & json_proto [11:39:58]process_json_proto [11:39:58]json parsed OK: [11:39:58]protocol is kg_v1.0 [11:39:58]action value=close_receipt [11:39:58]process_action close_receipt [11:39:58]cmd_close_receipt [11:39:58]MH_GetDate [11:39:58]Write to MH i2c: F0 00 00 25 1C 30 [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: F0 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: F0 09 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: F0 09 00 25 1C 00 12 49 12 67 5A BE F6 66 81 [11:39:58]GetLastDocTimeStamp 1729251523 [11:39:58]current date 1729251602 [11:39:58]FM_GetShiftState [11:39:58]SAM_PROTO_GetShiftState [11:39:58]wFMCommunicate request_size=4 [11:39:58]MH_SAM_APDU [11:39:58]CAPDU: 80 13 01 00 [11:39:58]Write to MH i2c: E2 08 00 26 1C 80 13 01 00 00 00 00 00 BF [11:39:58]Write i2c OK [11:39:58]MH_I2C_Read... [11:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:58]Read from MH i2c: E2 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 0E 00 [11:39:58]MH_I2C_Read... [11:39:58]Read from MH i2c: E2 0E 00 26 1C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5D [11:39:58]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:39:58]wFMCommunicate OK [11:39:58]SAM_PROTO_GetShiftState done [11:39:58]FM_GetShiftState done [11:39:58]opened in 1729209717 [11:39:58]opened+sec_in_day 1729296117 [11:39:58]quantity*price = 0 [11:39:58]sum+1 = 1 [11:39:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 ÐСП 1% : 0.00 ÐДС 12% : 0.00 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 51 18.10.2024 11:40 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 Талоны: Топливные Талоны 3987839 ФМ: 0000000002342820 ФД: 2426 ФПД: 43570511466258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114002&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2426&fm=43570511466258&tin=02508201610067®Number=0000000000207295&sum=0 [11:39:59]StoreToDocumentArchive [11:39:59]shift 22 fd 2426 [11:39:59]save to /storage/0022/doc_00002426 [11:39:59]save last doc name /storage/0022/doc_00002426 to /storage/kkm_last_doc_name [11:39:59]save OK [11:39:59]Clear old archive folders... [11:39:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:59]tlvbuf is 013C3C60 [11:39:59]SAM_PROTO_ClearQueue [11:39:59]wFMCommunicate request_size=4 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 09 00 00 [11:39:59]Write to MH i2c: E2 08 00 33 1C 80 09 00 00 00 00 00 00 C1 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 33 1C 00 90 00 C3 [11:39:59]RAPDU: 90 00 [11:39:59]wFMCommunicate OK [11:39:59]SAM_PROTO_ClearQueue done [11:39:59]KKMCreateOFDPacket [11:39:59]OFDProtocolAddRootSTLVToBuf [11:39:59]FM_MakeSignedData [11:39:59]FM_MakeSignedData [11:39:59]SAM_PROTO_SignData [11:39:59]wFMCommunicate request_size=4 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 0D 01 02 [11:39:59]Write to MH i2c: E2 08 00 34 1C 80 0D 01 02 00 00 00 00 C9 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:39:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:59]Read from MH i2c: E2 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 [11:39:59]MH_I2C_Read... [11:39:59]Read from MH i2c: E2 03 00 34 1C 00 90 00 C4 [11:39:59]RAPDU: 90 00 [11:39:59]wFMCommunicate OK [11:39:59]wFMCommunicate request_size=255 [11:39:59]MH_SAM_APDU [11:39:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 12 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7A 09 00 00 35 04 06 00 27 A0 8C DB [11:39:59]Write to MH i2c: E2 02 01 35 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 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 12 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7A 09 00 00 35 04 06 00 27 A0 8C DB 00 00 B1 [11:39:59]Write i2c OK [11:39:59]MH_I2C_Read... [11:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:00]Read from MH i2c: E2 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 03 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 03 00 35 1C 00 90 00 C5 [11:40:00]RAPDU: 90 00 [11:40:00]wFMCommunicate OK [11:40:00]wFMCommunicate request_size=7 [11:40:00]MH_SAM_APDU [11:40:00]CAPDU: 80 0D 02 02 02 CF 12 [11:40:00]Write to MH i2c: E2 0A 00 36 1C 80 0D 02 02 02 00 CF 12 00 00 B1 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:00]Read from MH i2c: E2 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 03 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 03 00 36 1C 00 90 00 C6 [11:40:00]RAPDU: 90 00 [11:40:00]wFMCommunicate OK [11:40:00]wFMCommunicate request_size=4 [11:40:00]MH_SAM_APDU [11:40:00]CAPDU: 80 0D 03 02 [11:40:00]Write to MH i2c: E2 08 00 37 1C 80 0D 03 02 00 00 00 00 CE [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:00]Read from MH i2c: E2 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 0B 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 0B 00 37 1C 00 31 1F 14 F0 DE 97 A4 3D 90 00 79 [11:40:00]RAPDU: 31 1F 14 F0 DE 97 A4 3D 90 00 [11:40:00]wFMCommunicate OK [11:40:00]SAM_PROTO_SignData done [11:40:00]FM_MakeSignedData done [11:40:00]CreateOFDProtocolMessage [11:40:00]wFMCommunicate request_size=4 [11:40:00]MH_SAM_APDU [11:40:00]CAPDU: 80 11 00 00 [11:40:00]Write to MH i2c: E2 08 00 38 1C 80 11 00 00 00 00 00 00 CE [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:00]Read from MH i2c: E2 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 17 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: E2 17 00 38 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 16 [11:40:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:40:00]wFMCommunicate OK [11:40:00]CreateOFDProtocolMessage done [11:40:00]OFDSenderStorePacket 2426 [11:40:00]StoreOFDPacket docnum=2426 [11:40:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 07 66 04 01 9C 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 12 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7A 09 00 00 35 04 06 00 27 A0 8C DB CF 12 31 1F 14 F0 DE 97 A4 3D [11:40:00]CheckFolder [11:40:00]dirname=/storage/ofd_packets [11:40:00]CheckFolder done [11:40:00]ProducePacketName [11:40:00]name=ofd_packets/00002426 [11:40:00]NVStorageSaveData ofd_packets/00002426 [11:40:00]File name is /storage/ofd_packets/00002426 [11:40:00]Write 298 bytes [11:40:00]NVStorageSaveData done [11:40:00]OFDSenderStorePacket done [11:40:00]KKMCreateOFDPacket done [11:40:00]NVStorageSaveData kkm_last_timestamp [11:40:00]File name is /storage/kkm_last_timestamp [11:40:00]Write 4 bytes [11:40:00]NVStorageSaveData done [11:40:00]ExternCall_PrintAddStr [11:40:00]wPrintStart [11:40:00]Write to MH i2c: 01 00 00 39 1C 55 [11:40:00]Write i2c OK [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: 01 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: 01 07 00 [11:40:00]MH_I2C_Read... [11:40:00]Read from MH i2c: 01 07 00 39 1C 00 00 00 00 00 FF 0F 6A [11:40:00]RasterBufferAndPrint [11:40:00]line Счет N : (1)475336 [11:40:00]line ИÐÐ: 02508201610067 [11:40:00]line Контрольно-КаÑÑовый Чек [11:40:00]line ПРОДÐЖР[11:40:00]line ТРК (МРК, ГÐК) : 64 [11:40:00]line Товар: 2710194210 [11:40:00]line ДТ-К-5 [11:40:00]line 500.000 * 0.00 [11:40:00]line = 0.00 [11:40:00]line ÐДС 12% ÐСП 1% [11:40:00]line > о реализуемом товаре [11:40:00]line ИТОГО: 0.00 [11:40:00]line ÐСП 1% : 0.00 [11:40:00]line ÐДС 12% : 0.00 [11:40:00]line Ðаличными: 0.00 [11:40:00]line Безнал.: 0.00 [11:40:00]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:40:00]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:40:00]line СÐО: Общий режим [11:40:00]line Чек 51 18.10.2024 11:40 [11:40:00]line Смена: 22 ФФД: 1.0 [11:40:00]line ЗÐМ: 0300000191 [11:40:00]line РÐМ: 0000000000207295 [11:40:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:40:00]line Талоны: Топливные Талоны [11:40:00]line 3987839 [11:40:00]line ФМ: 0000000002342820 [11:40:00]line ФД: 2426 [11:40:00]line ФПД: 43570511466258 [11:40:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114002&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2426&fm=43570511466258&tin=02508201610067®Number=0000000000207295&sum=0 [11:40:00]OFD Sender: Processing packet 2426 [packets to send 1, broken 0] [11:40:00]ProducePacketName [11:40:00]name=ofd_packets/00002426 [11:40:00]OFD Sender: To server: ‡•öpG, [11:40:00]CommunicateWithHost lk.salyk.kg:30040 [11:40:00]ConnectInit lk.salyk.kg [11:40:00]written 0, free lines is 4095 [11:40:00]Connected sock=10 [11:40:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 07 66 04 01 9C 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 A1 07 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 00 00 00 F4 03 04 00 12 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7A 09 00 00 35 04 06 00 27 A0 8C DB CF 12 31 1F 14 F0 DE 97 A4 3D [11:40:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 50 DC 47 00 3A 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 32 33 34 32 38 32 30 10 04 04 00 7A 09 00 00 F4 03 04 00 76 F4 11 67 B6 04 01 00 00 FD FE B9 4B 17 58 41 98 [11:40:00]CommunicateWithHost err = 0 [11:40:00]CheckOFDResponse [11:40:00]1017 (14) - 77093643461234 [11:40:00]1041 (16) - 0000000002342820 [11:40:00]1040 (4) - 2426 [11:40:00]1012 (4) - 18.10.2024 05:39 [11:40:00]1206 (1) - 0 [11:40:00]OFD Sender: Remove packet 2426 [11:40:00]ProducePacketName [11:40:00]name=ofd_packets/00002426 [11:40:00]NVStorageDeleteData [11:40:01]Write to MH i2c: 01 00 00 63 1C 7F [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: 01 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: 01 07 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: 01 07 00 63 1C 00 00 00 00 00 BD 0C 4F [11:40:01]RasterBufferAndPrint [11:40:01]line [11:40:01]line [11:40:01]line [11:40:01]line [11:40:01]line [11:40:01]written 0, free lines is 3265 [11:40:01]MH_Cut [11:40:01]Write to MH i2c: D1 01 00 6A 1C 01 58 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: D1 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: D1 01 00 [11:40:01]MH_I2C_Read... [11:40:01]Read from MH i2c: D1 01 00 6A 1C 00 57 [11:40:01]Write to MH i2c: 01 00 00 6B 1C 87 [11:40:01]Write i2c OK [11:40:01]MH_I2C_Read... [11:40:01]OFD Sender: No OFD packet to send [11:40:01]*** Cut start [11:40:01]*** Partial cut [11:40:01]*** CUTSNS_PIN = 1 [11:40:01]*** CUTSNS_PIN = 0 [11:40:02]*** Brake cut motor [11:40:02]Read from MH i2c: 01 [11:40:02]MH_I2C_Read... [11:40:02]*** Stop cut motor [11:40:02]*** Cut end [11:40:02]Read from MH i2c: 01 07 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: 01 07 00 6B 1C 00 00 00 00 00 FF 0F 9C [11:40:02]process_action close_receipt done [11:40:02]requested_data is exist [11:40:02]produce_requested_data [11:40:02]requested_item fm.sn is exist - process it [11:40:02]wFMCommunicate request_size=4 [11:40:02]MH_SAM_APDU [11:40:02]CAPDU: 80 11 00 00 [11:40:02]Write to MH i2c: E2 08 00 6C 1C 80 11 00 00 00 00 00 00 02 [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:02]Read from MH i2c: E2 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 17 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 17 00 6C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 4A [11:40:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:40:02]wFMCommunicate OK [11:40:02]requested_item fd.num is exist - process it [11:40:02]SAM_PROTO_GetFieldsCounters [11:40:02]wFMCommunicate request_size=4 [11:40:02]MH_SAM_APDU [11:40:02]CAPDU: 80 13 00 00 [11:40:02]Write to MH i2c: E2 08 00 6D 1C 80 13 00 00 00 00 00 00 05 [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:02]Read from MH i2c: E2 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 62 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 62 00 6D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7A 09 00 00 0E 04 04 00 16 00 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 4D [11:40:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7A 09 00 00 0E 04 04 00 16 00 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:40:02]wFMCommunicate OK [11:40:02]SAM_PROTO_GetFieldsCounters done [11:40:02]requested_item shift.num is exist - process it [11:40:02]requested_item shift.opened is exist - process it [11:40:02]req_shift_opened [11:40:02]FM_GetShiftState [11:40:02]SAM_PROTO_GetShiftState [11:40:02]wFMCommunicate request_size=4 [11:40:02]MH_SAM_APDU [11:40:02]CAPDU: 80 13 01 00 [11:40:02]Write to MH i2c: E2 08 00 6E 1C 80 13 01 00 00 00 00 00 07 [11:40:02]Write i2c OK [11:40:02]MH_I2C_Read... [11:40:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:02]Read from MH i2c: E2 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 0E 00 [11:40:02]MH_I2C_Read... [11:40:02]Read from MH i2c: E2 0E 00 6E 1C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A5 [11:40:02]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:40:02]wFMCommunicate OK [11:40:02]SAM_PROTO_GetShiftState done [11:40:02]FM_GetShiftState done [11:40:02]req_shift_opened done [11:40:02]requested_item shift.open_date is exist - process it [11:40:02]req_shift_open_date [11:40:02]req_shift_open_date done [11:40:02]produce_requested_data done [11:40:02]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2426,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:40:02]process_action_free close_receipt [11:40:02]json_value_free [11:40:02]json_value_free done [11:40:02]process_json_proto returns [11:40:02]Send response to host [11:40:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2426,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:40:02]free response buf [11:40:02]execute_script done [11:40:02]execute_script returns [11:40:02]free content buf [11:40:02]Sock 9.Close socket [11:40:02]Sock 9.Thread stoped [11:40:06]OFD Sender: No OFD packet to send [11:40:10]accept exits with 7 [11:40:10]New connection [11:40:10]New thread 3066707300 created [11:40:10]Thread 3066850660 joined [11:40:10]Waiting for new connection... [11:40:10] Sock 7.Parse request [11:40:10]Sock 7.Check first char [11:40:10]Sock 7.First char is OK [11:40:10]request: POST /json_proto HTTP/1.0 [11:40:10]Method: POST [11:40:10]URL: /json_proto [11:40:10]Method is POST - this is cgi request [11:40:10]url: /json_proto [11:40:10]query_string will be loaded in cgi processing [11:40:10]execute_cgi json_proto POST (null) [11:40:10]execute_cgi path=json_proto method=POST [11:40:10]POST find Content-Length [11:40:10]Host: 172.17.52.132:8080 [11:40:10]Content-Length: 798 [11:40:10]Content-Type: application/json [11:40:10] [11:40:10]POST finish read [11:40:10]Found Content-Length = 798 [11:40:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988239", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:10]execute_script... [11:40: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)475343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3988239", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:10]POST & json_proto [11:40:10]process_json_proto [11:40:10]json parsed OK: [11:40:10]protocol is kg_v1.0 [11:40:10]action value=close_receipt [11:40:10]process_action close_receipt [11:40:10]cmd_close_receipt [11:40:10]MH_GetDate [11:40:10]Write to MH i2c: F0 00 00 6F 1C 7A [11:40:10]Write i2c OK [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: F0 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: F0 09 00 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: F0 09 00 6F 1C 00 1E 49 12 67 5A BE F6 66 D7 [11:40:10]GetLastDocTimeStamp 1729251602 [11:40:10]current date 1729251614 [11:40:10]FM_GetShiftState [11:40:10]SAM_PROTO_GetShiftState [11:40:10]wFMCommunicate request_size=4 [11:40:10]MH_SAM_APDU [11:40:10]CAPDU: 80 13 01 00 [11:40:10]Write to MH i2c: E2 08 00 70 1C 80 13 01 00 00 00 00 00 09 [11:40:10]Write i2c OK [11:40:10]MH_I2C_Read... [11:40:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:10]Read from MH i2c: E2 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: E2 0E 00 [11:40:10]MH_I2C_Read... [11:40:10]Read from MH i2c: E2 0E 00 70 1C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A7 [11:40:10]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:40:10]wFMCommunicate OK [11:40:10]SAM_PROTO_GetShiftState done [11:40:10]FM_GetShiftState done [11:40:10]opened in 1729209717 [11:40:10]opened+sec_in_day 1729296117 [11:40:10]quantity*price = 0 [11:40:10]sum+1 = 1 [11:40:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 ÐСП 1% : 0.00 ÐДС 12% : 0.00 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 52 18.10.2024 11:40 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 Талоны: Топливные Талоны 3988239 ФМ: 0000000002342820 ФД: 2427 ФПД: 115878741990605 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114014&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2427&fm=115878741990605&tin=02508201610067®Number=0000000000207295&sum=0 [11:40:11]StoreToDocumentArchive [11:40:11]shift 22 fd 2427 [11:40:11]save to /storage/0022/doc_00002427 [11:40:11]save last doc name /storage/0022/doc_00002427 to /storage/kkm_last_doc_name [11:40:11]save OK [11:40:11]Clear old archive folders... [11:40:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:40:11]tlvbuf is 01357B50 [11:40:11]SAM_PROTO_ClearQueue [11:40:11]wFMCommunicate request_size=4 [11:40:11]MH_SAM_APDU [11:40:11]CAPDU: 80 09 00 00 [11:40:11]Write to MH i2c: E2 08 00 7D 1C 80 09 00 00 00 00 00 00 0B [11:40:11]Write i2c OK [11:40:11]MH_I2C_Read... [11:40:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:11]Read from MH i2c: E2 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: E2 03 00 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: E2 03 00 7D 1C 00 90 00 0D [11:40:11]RAPDU: 90 00 [11:40:11]wFMCommunicate OK [11:40:11]SAM_PROTO_ClearQueue done [11:40:11]KKMCreateOFDPacket [11:40:11]OFDProtocolAddRootSTLVToBuf [11:40:11]FM_MakeSignedData [11:40:11]FM_MakeSignedData [11:40:11]SAM_PROTO_SignData [11:40:11]wFMCommunicate request_size=4 [11:40:11]MH_SAM_APDU [11:40:11]CAPDU: 80 0D 01 02 [11:40:11]Write to MH i2c: E2 08 00 7E 1C 80 0D 01 02 00 00 00 00 13 [11:40:11]Write i2c OK [11:40:11]MH_I2C_Read... [11:40:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:11]Read from MH i2c: E2 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: E2 03 00 [11:40:11]MH_I2C_Read... [11:40:11]Read from MH i2c: E2 03 00 7E 1C 00 90 00 0E [11:40:11]RAPDU: 90 00 [11:40:11]wFMCommunicate OK [11:40:11]wFMCommunicate request_size=255 [11:40:11]MH_SAM_APDU [11:40: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 1E 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7B 09 00 00 35 04 06 00 69 64 1F 40 [11:40:11]Write to MH i2c: E2 02 01 7F 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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 1E 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7B 09 00 00 35 04 06 00 69 64 1F 40 00 00 66 [11:40:11]Write i2c OK [11:40:11]MH_I2C_Read... [11:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:12]Read from MH i2c: E2 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 03 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 03 00 7F 1C 00 90 00 0F [11:40:12]RAPDU: 90 00 [11:40:12]wFMCommunicate OK [11:40:12]wFMCommunicate request_size=7 [11:40:12]MH_SAM_APDU [11:40:12]CAPDU: 80 0D 02 02 02 DC CD [11:40:12]Write to MH i2c: E2 0A 00 80 1C 80 0D 02 02 02 00 DC CD 00 00 C3 [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 [11:40:12]MH_I2C_Read... [11:40:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:12]Read from MH i2c: E2 03 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 03 00 80 1C 00 90 00 10 [11:40:12]RAPDU: 90 00 [11:40:12]wFMCommunicate OK [11:40:12]wFMCommunicate request_size=4 [11:40:12]MH_SAM_APDU [11:40:12]CAPDU: 80 0D 03 02 [11:40:12]Write to MH i2c: E2 08 00 81 1C 80 0D 03 02 00 00 00 00 18 [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:12]Read from MH i2c: E2 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 0B 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 0B 00 81 1C 00 EE AF 3B B9 24 2B CD 09 90 00 CF [11:40:12]RAPDU: EE AF 3B B9 24 2B CD 09 90 00 [11:40:12]wFMCommunicate OK [11:40:12]SAM_PROTO_SignData done [11:40:12]FM_MakeSignedData done [11:40:12]CreateOFDProtocolMessage [11:40:12]wFMCommunicate request_size=4 [11:40:12]MH_SAM_APDU [11:40:12]CAPDU: 80 11 00 00 [11:40:12]Write to MH i2c: E2 08 00 82 1C 80 11 00 00 00 00 00 00 18 [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:12]Read from MH i2c: E2 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 17 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: E2 17 00 82 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 60 [11:40:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:40:12]wFMCommunicate OK [11:40:12]CreateOFDProtocolMessage done [11:40:12]OFDSenderStorePacket 2427 [11:40:12]StoreOFDPacket docnum=2427 [11:40:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 A2 36 04 01 10 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 1E 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7B 09 00 00 35 04 06 00 69 64 1F 40 DC CD EE AF 3B B9 24 2B CD 09 [11:40:12]CheckFolder [11:40:12]dirname=/storage/ofd_packets [11:40:12]CheckFolder done [11:40:12]ProducePacketName [11:40:12]name=ofd_packets/00002427 [11:40:12]NVStorageSaveData ofd_packets/00002427 [11:40:12]File name is /storage/ofd_packets/00002427 [11:40:12]Write 298 bytes [11:40:12]NVStorageSaveData done [11:40:12]OFDSenderStorePacket done [11:40:12]KKMCreateOFDPacket done [11:40:12]NVStorageSaveData kkm_last_timestamp [11:40:12]File name is /storage/kkm_last_timestamp [11:40:12]Write 4 bytes [11:40:12]NVStorageSaveData done [11:40:12]ExternCall_PrintAddStr [11:40:12]wPrintStart [11:40:12]Write to MH i2c: 01 00 00 83 1C 9F [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 83 1C 00 00 00 00 00 FF 0F B4 [11:40:12]RasterBufferAndPrint [11:40:12]line Счет N : (1)475343 [11:40:12]line ИÐÐ: 02508201610067 [11:40:12]line Контрольно-КаÑÑовый Чек [11:40:12]line ПРОДÐЖР[11:40:12]line ТРК (МРК, ГÐК) : 24 [11:40:12]line Товар: 2710194210 [11:40:12]line ДТ-К-5 [11:40:12]line 100.000 * 0.00 [11:40:12]line = 0.00 [11:40:12]line ÐДС 12% ÐСП 1% [11:40:12]line > о реализуемом товаре [11:40:12]line ИТОГО: 0.00 [11:40:12]line ÐСП 1% : 0.00 [11:40:12]line ÐДС 12% : 0.00 [11:40:12]line Ðаличными: 0.00 [11:40:12]line Безнал.: 0.00 [11:40:12]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:40:12]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:40:12]line СÐО: Общий режим [11:40:12]line Чек 52 18.10.2024 11:40 [11:40:12]line Смена: 22 ФФД: 1.0 [11:40:12]line ЗÐМ: 0300000191 [11:40:12]line РÐМ: 0000000000207295 [11:40:12]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:40:12]line Талоны: Топливные Талоны [11:40:12]line 3988239 [11:40:12]line ФМ: 0000000002342820 [11:40:12]line ФД: 2427 [11:40:12]line ФПД: 115878741990605 [11:40:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114014&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2427&fm=115878741990605&tin=02508201610067®Number=0000000000207295&sum=0 [11:40:12]written 0, free lines is 4095 [11:40:12]OFD Sender: Processing packet 2427 [packets to send 1, broken 0] [11:40:12]ProducePacketName [11:40:12]name=ofd_packets/00002427 [11:40:12]OFD Sender: To server: ‡•öpG, [11:40:12]CommunicateWithHost lk.salyk.kg:30040 [11:40:12]ConnectInit lk.salyk.kg [11:40:12]Connected sock=10 [11:40:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 A2 36 04 01 10 5E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 1E 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7B 09 00 00 35 04 06 00 69 64 1F 40 DC CD EE AF 3B B9 24 2B CD 09 [11:40:12]Write to MH i2c: 01 00 00 AD 1C C9 [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: 01 07 00 AD 1C 00 00 00 00 00 C9 0C A5 [11:40:12]RasterBufferAndPrint [11:40:12]line [11:40:12]line [11:40:12]line [11:40:12]line [11:40:12]line [11:40:12]written 0, free lines is 3283 [11:40:12]MH_Cut [11:40:12]Write to MH i2c: D1 01 00 B4 1C 01 A2 [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: D1 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: D1 01 00 [11:40:12]MH_I2C_Read... [11:40:12]Read from MH i2c: D1 01 00 B4 1C 00 A1 [11:40:12]Write to MH i2c: 01 00 00 B5 1C D1 [11:40:12]Write i2c OK [11:40:12]MH_I2C_Read... [11:40:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 AD 53 47 00 22 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 32 33 34 32 38 32 30 10 04 04 00 7B 09 00 00 F4 03 04 00 82 F4 11 67 B6 04 01 00 00 F6 22 3A F2 80 C1 3A 6D [11:40:12]CommunicateWithHost err = 0 [11:40:12]CheckOFDResponse [11:40:12]1017 (14) - 77093643461234 [11:40:12]1041 (16) - 0000000002342820 [11:40:12]1040 (4) - 2427 [11:40:12]1012 (4) - 18.10.2024 05:39 [11:40:12]1206 (1) - 0 [11:40:12]OFD Sender: Remove packet 2427 [11:40:12]ProducePacketName [11:40:12]name=ofd_packets/00002427 [11:40:12]NVStorageDeleteData [11:40:13]OFD Sender: No OFD packet to send [11:40:13]*** Cut start [11:40:13]*** Partial cut [11:40:13]*** CUTSNS_PIN = 1 [11:40:13]*** CUTSNS_PIN = 0 [11:40:13]*** Brake cut motor [11:40:14]Read from MH i2c: 01 [11:40:14]MH_I2C_Read... [11:40:14]*** Stop cut motor [11:40:14]*** Cut end [11:40:14]Read from MH i2c: 01 07 00 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: 01 07 00 B5 1C 00 00 00 00 00 FF 0F E6 [11:40:14]process_action close_receipt done [11:40:14]requested_data is exist [11:40:14]produce_requested_data [11:40:14]requested_item fm.sn is exist - process it [11:40:14]wFMCommunicate request_size=4 [11:40:14]MH_SAM_APDU [11:40:14]CAPDU: 80 11 00 00 [11:40:14]Write to MH i2c: E2 08 00 B6 1C 80 11 00 00 00 00 00 00 4C [11:40:14]Write i2c OK [11:40:14]MH_I2C_Read... [11:40:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:14]Read from MH i2c: E2 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 17 00 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 17 00 B6 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 94 [11:40:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:40:14]wFMCommunicate OK [11:40:14]requested_item fd.num is exist - process it [11:40:14]SAM_PROTO_GetFieldsCounters [11:40:14]wFMCommunicate request_size=4 [11:40:14]MH_SAM_APDU [11:40:14]CAPDU: 80 13 00 00 [11:40:14]Write to MH i2c: E2 08 00 B7 1C 80 13 00 00 00 00 00 00 4F [11:40:14]Write i2c OK [11:40:14]MH_I2C_Read... [11:40:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:14]Read from MH i2c: E2 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 62 00 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 62 00 B7 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7B 09 00 00 0E 04 04 00 16 00 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 9B [11:40:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7B 09 00 00 0E 04 04 00 16 00 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:40:14]wFMCommunicate OK [11:40:14]SAM_PROTO_GetFieldsCounters done [11:40:14]requested_item shift.num is exist - process it [11:40:14]requested_item shift.opened is exist - process it [11:40:14]req_shift_opened [11:40:14]FM_GetShiftState [11:40:14]SAM_PROTO_GetShiftState [11:40:14]wFMCommunicate request_size=4 [11:40:14]MH_SAM_APDU [11:40:14]CAPDU: 80 13 01 00 [11:40:14]Write to MH i2c: E2 08 00 B8 1C 80 13 01 00 00 00 00 00 51 [11:40:14]Write i2c OK [11:40:14]MH_I2C_Read... [11:40:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:14]Read from MH i2c: E2 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 0E 00 [11:40:14]MH_I2C_Read... [11:40:14]Read from MH i2c: E2 0E 00 B8 1C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 EF [11:40:14]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:40:14]wFMCommunicate OK [11:40:14]SAM_PROTO_GetShiftState done [11:40:14]FM_GetShiftState done [11:40:14]req_shift_opened done [11:40:14]requested_item shift.open_date is exist - process it [11:40:14]req_shift_open_date [11:40:14]req_shift_open_date done [11:40:14]produce_requested_data done [11:40:14]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2427,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:40:14]process_action_free close_receipt [11:40:14]json_value_free [11:40:14]json_value_free done [11:40:14]process_json_proto returns [11:40:14]Send response to host [11:40:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2427,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:40:14]free response buf [11:40:14]execute_script done [11:40:14]execute_script returns [11:40:14]free content buf [11:40:14]Sock 7.Close socket [11:40:14]Sock 7.Thread stoped [11:40:18]OFD Sender: No OFD packet to send [11:40:23]OFD Sender: No OFD packet to send [11:40:28]OFD Sender: No OFD packet to send [11:40:33]OFD Sender: No OFD packet to send [11:40:38]OFD Sender: No OFD packet to send [11:40:43]OFD Sender: No OFD packet to send [11:40:48]OFD Sender: No OFD packet to send [11:40:53]OFD Sender: No OFD packet to send [11:40:58]OFD Sender: No OFD packet to send [11:41:03]OFD Sender: No OFD packet to send [11:41:08]OFD Sender: No OFD packet to send [11:41:13]OFD Sender: No OFD packet to send [11:41:18]OFD Sender: No OFD packet to send [11:41:23]OFD Sender: No OFD packet to send [11:41:28]OFD Sender: No OFD packet to send [11:41:33]OFD Sender: No OFD packet to send [11:41:38]OFD Sender: No OFD packet to send [11:41:43]OFD Sender: No OFD packet to send [11:41:48]OFD Sender: No OFD packet to send [11:41:53]OFD Sender: No OFD packet to send [11:41:58]OFD Sender: No OFD packet to send [11:42:03]OFD Sender: No OFD packet to send [11:42:08]OFD Sender: No OFD packet to send [11:42:11]accept exits with 9 [11:42:11]New connection [11:42:11]New thread 3066850660 created [11:42:11]Thread 3066707300 joined [11:42:11]Waiting for new connection... [11:42:11] Sock 9.Parse request [11:42:11]Sock 9.Check first char [11:42:11]Sock 9.First char is OK [11:42:11]request: POST /json_proto HTTP/1.0 [11:42:11]Method: POST [11:42:11]URL: /json_proto [11:42:11]Method is POST - this is cgi request [11:42:11]url: /json_proto [11:42:11]query_string will be loaded in cgi processing [11:42:11]execute_cgi json_proto POST (null) [11:42:11]execute_cgi path=json_proto method=POST [11:42:11]POST find Content-Length [11:42:11]Host: 172.17.52.132:8080 [11:42:11]Content-Length: 674 [11:42:11]Content-Type: application/json [11:42:11] [11:42:11]POST finish read [11:42:11]Found Content-Length = 674 [11:42:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:11]execute_script... [11:42:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 4.990, "sum" : 380.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 380.00, "total" : 380.00, "payments": [ { "type": 0, "sum" : 380.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:11]POST & json_proto [11:42:11]process_json_proto [11:42:11]json parsed OK: [11:42:11]protocol is kg_v1.0 [11:42:11]action value=close_receipt [11:42:11]process_action close_receipt [11:42:11]cmd_close_receipt [11:42:11]MH_GetDate [11:42:11]Write to MH i2c: F0 00 00 B9 1C C4 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: F0 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: F0 09 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: F0 09 00 B9 1C 00 97 49 12 67 5A BE F6 66 9A [11:42:11]GetLastDocTimeStamp 1729251614 [11:42:11]current date 1729251735 [11:42:11]FM_GetShiftState [11:42:11]SAM_PROTO_GetShiftState [11:42:11]wFMCommunicate request_size=4 [11:42:11]MH_SAM_APDU [11:42:11]CAPDU: 80 13 01 00 [11:42:11]Write to MH i2c: E2 08 00 BA 1C 80 13 01 00 00 00 00 00 53 [11:42:11]Write i2c OK [11:42:11]MH_I2C_Read... [11:42:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:11]Read from MH i2c: E2 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0E 00 [11:42:11]MH_I2C_Read... [11:42:11]Read from MH i2c: E2 0E 00 BA 1C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 F1 [11:42:11]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:42:11]wFMCommunicate OK [11:42:11]SAM_PROTO_GetShiftState done [11:42:11]FM_GetShiftState done [11:42:11]opened in 1729209717 [11:42:11]opened+sec_in_day 1729296117 [11:42:11]quantity*price = 38023 [11:42:11]sum+1 = 38025 [11:42:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.24 ИТОГО: 380.00 ВнеÑено: 380.00 СДÐЧÐ: 0.00 ÐСП 1% : 3.36 ÐДС 12% : 40.38 Ðаличными: 380.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 53 18.10.2024 11:42 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2428 ФПД: 115172400387583 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114215&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2428&fm=115172400387583&tin=02508201610067®Number=0000000000207295&sum=38000 [11:42:13]StoreToDocumentArchive [11:42:13]shift 22 fd 2428 [11:42:13]save to /storage/0022/doc_00002428 [11:42:13]save last doc name /storage/0022/doc_00002428 to /storage/kkm_last_doc_name [11:42:13]save OK [11:42:13]Clear old archive folders... [11:42:13]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:42:13]tlvbuf is 013F0E20 [11:42:13]SAM_PROTO_ClearQueue [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 09 00 00 [11:42:13]Write to MH i2c: E2 08 00 C7 1C 80 09 00 00 00 00 00 00 55 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 03 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 03 00 C7 1C 00 90 00 57 [11:42:13]RAPDU: 90 00 [11:42:13]wFMCommunicate OK [11:42:13]SAM_PROTO_ClearQueue done [11:42:13]KKMCreateOFDPacket [11:42:13]OFDProtocolAddRootSTLVToBuf [11:42:13]FM_MakeSignedData [11:42:13]FM_MakeSignedData [11:42:13]SAM_PROTO_SignData [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 0D 01 02 [11:42:13]Write to MH i2c: E2 08 00 C8 1C 80 0D 01 02 00 00 00 00 5D [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 03 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 03 00 C8 1C 00 90 00 58 [11:42:13]RAPDU: 90 00 [11:42:13]wFMCommunicate OK [11:42:13]wFMCommunicate request_size=255 [11:42:13]MH_SAM_APDU [11:42: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 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 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 97 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7C 09 00 00 35 04 06 00 68 BF AA 03 [11:42:13]Write to MH i2c: E2 02 01 C9 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 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 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 97 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7C 09 00 00 35 04 06 00 68 BF AA 03 00 00 68 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 03 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 03 00 C9 1C 00 90 00 59 [11:42:13]RAPDU: 90 00 [11:42:13]wFMCommunicate OK [11:42:13]wFMCommunicate request_size=7 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 0D 02 02 02 55 FF [11:42:13]Write to MH i2c: E2 0A 00 CA 1C 80 0D 02 02 02 00 55 FF 00 00 B8 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 03 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 03 00 CA 1C 00 90 00 5A [11:42:13]RAPDU: 90 00 [11:42:13]wFMCommunicate OK [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 0D 03 02 [11:42:13]Write to MH i2c: E2 08 00 CB 1C 80 0D 03 02 00 00 00 00 62 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:13]OFD Sender: No OFD packet to send [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 0B 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 0B 00 CB 1C 00 66 50 54 1E 91 3A EC C6 90 00 08 [11:42:13]RAPDU: 66 50 54 1E 91 3A EC C6 90 00 [11:42:13]wFMCommunicate OK [11:42:13]SAM_PROTO_SignData done [11:42:13]FM_MakeSignedData done [11:42:13]CreateOFDProtocolMessage [11:42:13]wFMCommunicate request_size=4 [11:42:13]MH_SAM_APDU [11:42:13]CAPDU: 80 11 00 00 [11:42:13]Write to MH i2c: E2 08 00 CC 1C 80 11 00 00 00 00 00 00 62 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:13]Read from MH i2c: E2 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: E2 17 00 CC 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 AA [11:42:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:42:13]wFMCommunicate OK [11:42:13]CreateOFDProtocolMessage done [11:42:13]OFDSenderStorePacket 2428 [11:42:13]StoreOFDPacket docnum=2428 [11:42:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 55 16 04 01 9B EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 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 97 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7C 09 00 00 35 04 06 00 68 BF AA 03 55 FF 66 50 54 1E 91 3A EC C6 [11:42:13]CheckFolder [11:42:13]dirname=/storage/ofd_packets [11:42:13]CheckFolder done [11:42:13]ProducePacketName [11:42:13]name=ofd_packets/00002428 [11:42:13]NVStorageSaveData ofd_packets/00002428 [11:42:13]File name is /storage/ofd_packets/00002428 [11:42:13]Write 298 bytes [11:42:13]NVStorageSaveData done [11:42:13]OFDSenderStorePacket done [11:42:13]KKMCreateOFDPacket done [11:42:13]NVStorageSaveData kkm_last_timestamp [11:42:13]File name is /storage/kkm_last_timestamp [11:42:13]Write 4 bytes [11:42:13]NVStorageSaveData done [11:42:13]ExternCall_PrintAddStr [11:42:13]wPrintStart [11:42:13]Write to MH i2c: 01 00 00 CD 1C E9 [11:42:13]Write i2c OK [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 07 00 [11:42:13]MH_I2C_Read... [11:42:13]Read from MH i2c: 01 07 00 CD 1C 00 00 00 00 00 FF 0F FE [11:42:13]RasterBufferAndPrint [11:42:13]line Счет N : (1)475348 [11:42:13]line ИÐÐ: 02508201610067 [11:42:13]line Контрольно-КаÑÑовый Чек [11:42:13]line ПРОДÐЖР[11:42:13]line ТРК (МРК, ГÐК) : 24 [11:42:13]line Товар: 2710194210 [11:42:13]line ДТ-К-5 [11:42:13]line 4.990 * 76.20 [11:42:13]line = 380.24 [11:42:13]line ÐДС 12% ÐСП 1% [11:42:13]line > о реализуемом товаре [11:42:13]line ОКРУГЛЕÐИЕ: -0.24 [11:42:13]line ИТОГО: 380.00 [11:42:13]line ВнеÑено: 380.00 [11:42:13]line СДÐЧÐ: 0.00 [11:42:13]line ÐСП 1% : 3.36 [11:42:13]line ÐДС 12% : 40.38 [11:42:13]line Ðаличными: 380.00 [11:42:13]line Безнал.: 0.00 [11:42:13]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:42:13]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:42:13]line СÐО: Общий режим [11:42:13]line Чек 53 18.10.2024 11:42 [11:42:13]line Смена: 22 ФФД: 1.0 [11:42:13]line ЗÐМ: 0300000191 [11:42:13]line РÐМ: 0000000000207295 [11:42:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:42:13]line ФМ: 0000000002342820 [11:42:13]line ФД: 2428 [11:42:13]line ФПД: 115172400387583 [11:42:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114215&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2428&fm=115172400387583&tin=02508201610067®Number=0000000000207295&sum=38000 [11:42:13]OFD Sender: Processing packet 2428 [packets to send 1, broken 0] [11:42:13]ProducePacketName [11:42:13]name=ofd_packets/00002428 [11:42:13]OFD Sender: To server: ‡•öpG, [11:42:13]CommunicateWithHost lk.salyk.kg:30040 [11:42:13]ConnectInit lk.salyk.kg [11:42:13]written 0, free lines is 4095 [11:42:14]Connected sock=10 [11:42:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 55 16 04 01 9B EF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7E 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 88 94 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C6 0F 00 00 00 00 07 04 06 00 70 94 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 97 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7C 09 00 00 35 04 06 00 68 BF AA 03 55 FF 66 50 54 1E 91 3A EC C6 [11:42:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 2C C6 47 00 53 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 32 33 34 32 38 32 30 10 04 04 00 7C 09 00 00 F4 03 04 00 FC F4 11 67 B6 04 01 00 00 16 88 E6 D3 DD 76 D4 81 [11:42:14]CommunicateWithHost err = 0 [11:42:14]CheckOFDResponse [11:42:14]1017 (14) - 77093643461234 [11:42:14]1041 (16) - 0000000002342820 [11:42:14]1040 (4) - 2428 [11:42:14]1012 (4) - 18.10.2024 05:41 [11:42:14]1206 (1) - 0 [11:42:14]OFD Sender: Remove packet 2428 [11:42:14]ProducePacketName [11:42:14]name=ofd_packets/00002428 [11:42:14]NVStorageDeleteData [11:42:14]Write to MH i2c: 01 00 00 F8 1C 14 [11:42:14]Write i2c OK [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: 01 [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: 01 07 00 [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: 01 07 00 F8 1C 00 00 00 00 00 A1 0C C8 [11:42:14]RasterBufferAndPrint [11:42:14]line [11:42:14]line [11:42:14]line [11:42:14]line [11:42:14]line [11:42:14]written 0, free lines is 3237 [11:42:14]MH_Cut [11:42:14]Write to MH i2c: D1 01 00 FF 1C 01 ED [11:42:14]Write i2c OK [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: D1 [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: D1 01 00 [11:42:14]MH_I2C_Read... [11:42:14]Read from MH i2c: D1 01 00 FF 1C 00 EC [11:42:14]Write to MH i2c: 01 00 00 00 1D 1D [11:42:14]Write i2c OK [11:42:14]MH_I2C_Read... [11:42:14]OFD Sender: No OFD packet to send [11:42:15]*** Cut start [11:42:15]*** Partial cut [11:42:15]*** CUTSNS_PIN = 1 [11:42:15]*** CUTSNS_PIN = 0 [11:42:15]*** Brake cut motor [11:42:15]Read from MH i2c: 01 [11:42:15]MH_I2C_Read... [11:42:15]*** Stop cut motor [11:42:15]*** Cut end [11:42:15]Read from MH i2c: 01 07 00 [11:42:15]MH_I2C_Read... [11:42:15]Read from MH i2c: 01 07 00 00 1D 00 00 00 00 00 FF 0F 32 [11:42:15]process_action close_receipt done [11:42:15]requested_data is exist [11:42:15]produce_requested_data [11:42:15]requested_item fm.sn is exist - process it [11:42:15]wFMCommunicate request_size=4 [11:42:15]MH_SAM_APDU [11:42:15]CAPDU: 80 11 00 00 [11:42:15]Write to MH i2c: E2 08 00 01 1D 80 11 00 00 00 00 00 00 98 [11:42:15]Write i2c OK [11:42:15]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 [11:42:16]MH_I2C_Read... [11:42:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:16]Read from MH i2c: E2 17 00 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 17 00 01 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E0 [11:42:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:42:16]wFMCommunicate OK [11:42:16]requested_item fd.num is exist - process it [11:42:16]SAM_PROTO_GetFieldsCounters [11:42:16]wFMCommunicate request_size=4 [11:42:16]MH_SAM_APDU [11:42:16]CAPDU: 80 13 00 00 [11:42:16]Write to MH i2c: E2 08 00 02 1D 80 13 00 00 00 00 00 00 9B [11:42:16]Write i2c OK [11:42:16]MH_I2C_Read... [11:42:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:16]Read from MH i2c: E2 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 62 00 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 62 00 02 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7C 09 00 00 0E 04 04 00 16 00 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 EB [11:42:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7C 09 00 00 0E 04 04 00 16 00 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:42:16]wFMCommunicate OK [11:42:16]SAM_PROTO_GetFieldsCounters done [11:42:16]requested_item shift.num is exist - process it [11:42:16]requested_item shift.opened is exist - process it [11:42:16]req_shift_opened [11:42:16]FM_GetShiftState [11:42:16]SAM_PROTO_GetShiftState [11:42:16]wFMCommunicate request_size=4 [11:42:16]MH_SAM_APDU [11:42:16]CAPDU: 80 13 01 00 [11:42:16]Write to MH i2c: E2 08 00 03 1D 80 13 01 00 00 00 00 00 9D [11:42:16]Write i2c OK [11:42:16]MH_I2C_Read... [11:42:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:16]Read from MH i2c: E2 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 0E 00 [11:42:16]MH_I2C_Read... [11:42:16]Read from MH i2c: E2 0E 00 03 1D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 3B [11:42:16]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:42:16]wFMCommunicate OK [11:42:16]SAM_PROTO_GetShiftState done [11:42:16]FM_GetShiftState done [11:42:16]req_shift_opened done [11:42:16]requested_item shift.open_date is exist - process it [11:42:16]req_shift_open_date [11:42:16]req_shift_open_date done [11:42:16]produce_requested_data done [11:42:16]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2428,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:42:16]process_action_free close_receipt [11:42:16]json_value_free [11:42:16]json_value_free done [11:42:16]process_json_proto returns [11:42:16]Send response to host [11:42:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2428,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:42:16]free response buf [11:42:16]execute_script done [11:42:16]execute_script returns [11:42:16]free content buf [11:42:16]Sock 9.Close socket [11:42:16]Sock 9.Thread stoped [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]accept exits with 7 [11:42:54]New connection [11:42:54]New thread 3066707300 created [11:42:54]Thread 3066850660 joined [11:42:54]Waiting for new connection... [11:42:54] Sock 7.Parse request [11:42:54]Sock 7.Check first char [11:42:54]Sock 7.First char is OK [11:42:54]request: POST /json_proto HTTP/1.0 [11:42:54]Method: POST [11:42:54]URL: /json_proto [11:42:54]Method is POST - this is cgi request [11:42:54]url: /json_proto [11:42:54]query_string will be loaded in cgi processing [11:42:54]execute_cgi json_proto POST (null) [11:42:54]execute_cgi path=json_proto method=POST [11:42:54]POST find Content-Length [11:42:54]Host: 172.17.52.132:8080 [11:42:54]Content-Length: 819 [11:42:54]Content-Type: application/json [11:42:54] [11:42:54]POST finish read [11:42:54]Found Content-Length = 819 [11:42:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 35.940, "sum" : 2666.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2666.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:54]execute_script... [11:42: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)475347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 35.940, "sum" : 2666.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 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" : 2666.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:54]POST & json_proto [11:42:54]process_json_proto [11:42:54]json parsed OK: [11:42:54]protocol is kg_v1.0 [11:42:54]action value=close_receipt [11:42:54]process_action close_receipt [11:42:54]cmd_close_receipt [11:42:54]MH_GetDate [11:42:54]Write to MH i2c: F0 00 00 04 1D 10 [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: F0 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: F0 09 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: F0 09 00 04 1D 00 C2 49 12 67 5A BE F6 66 11 [11:42:54]GetLastDocTimeStamp 1729251735 [11:42:54]current date 1729251778 [11:42:54]FM_GetShiftState [11:42:54]SAM_PROTO_GetShiftState [11:42:54]wFMCommunicate request_size=4 [11:42:54]MH_SAM_APDU [11:42:54]CAPDU: 80 13 01 00 [11:42:54]Write to MH i2c: E2 08 00 05 1D 80 13 01 00 00 00 00 00 9F [11:42:54]Write i2c OK [11:42:54]MH_I2C_Read... [11:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:54]Read from MH i2c: E2 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0E 00 [11:42:54]MH_I2C_Read... [11:42:54]Read from MH i2c: E2 0E 00 05 1D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 3D [11:42:54]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:42:54]wFMCommunicate OK [11:42:54]SAM_PROTO_GetShiftState done [11:42:54]FM_GetShiftState done [11:42:54]opened in 1729209717 [11:42:54]opened+sec_in_day 1729296117 [11:42:54]quantity*price = 266674 [11:42:54]sum+1 = 266676 [11:42:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2666.75 ÐСП 1% : 23.60 ÐДС 12% : 283.19 Ðаличными: 0.00 Безнал.: 2666.75 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 54 18.10.2024 11:42 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000002342820 ФД: 2429 ФПД: 223922151865473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114258&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2429&fm=223922151865473&tin=02508201610067®Number=0000000000207295&sum=266675 [11:42:55]StoreToDocumentArchive [11:42:55]shift 22 fd 2429 [11:42:55]save to /storage/0022/doc_00002429 [11:42:55]save last doc name /storage/0022/doc_00002429 to /storage/kkm_last_doc_name [11:42:55]save OK [11:42:55]Clear old archive folders... [11:42:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:55]tlvbuf is 0135A550 [11:42:55]SAM_PROTO_ClearQueue [11:42:55]wFMCommunicate request_size=4 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 09 00 00 [11:42:55]Write to MH i2c: E2 08 00 12 1D 80 09 00 00 00 00 00 00 A1 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 03 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 03 00 12 1D 00 90 00 A3 [11:42:55]RAPDU: 90 00 [11:42:55]wFMCommunicate OK [11:42:55]SAM_PROTO_ClearQueue done [11:42:55]KKMCreateOFDPacket [11:42:55]OFDProtocolAddRootSTLVToBuf [11:42:55]FM_MakeSignedData [11:42:55]FM_MakeSignedData [11:42:55]SAM_PROTO_SignData [11:42:55]wFMCommunicate request_size=4 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 0D 01 02 [11:42:55]Write to MH i2c: E2 08 00 13 1D 80 0D 01 02 00 00 00 00 A9 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 03 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 03 00 13 1D 00 90 00 A4 [11:42:55]RAPDU: 90 00 [11:42:55]wFMCommunicate OK [11:42:55]wFMCommunicate request_size=255 [11:42:55]MH_SAM_APDU [11:42: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 64 8C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B3 11 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 11 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 11 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C2 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7D 09 00 00 35 04 06 00 CB [11:42:55]Write to MH i2c: E2 02 01 14 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 64 8C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B3 11 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 11 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 11 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C2 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7D 09 00 00 35 04 06 00 CB 00 00 7B [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 03 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 03 00 14 1D 00 90 00 A5 [11:42:55]RAPDU: 90 00 [11:42:55]wFMCommunicate OK [11:42:55]wFMCommunicate request_size=10 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 0D 02 02 05 A7 F0 51 BC 81 [11:42:55]Write to MH i2c: E2 0D 00 15 1D 80 0D 02 02 05 00 A7 F0 51 BC 81 00 00 DB [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 03 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 03 00 15 1D 00 90 00 A6 [11:42:55]RAPDU: 90 00 [11:42:55]wFMCommunicate OK [11:42:55]wFMCommunicate request_size=4 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 0D 03 02 [11:42:55]Write to MH i2c: E2 08 00 16 1D 80 0D 03 02 00 00 00 00 AE [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 0B 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 0B 00 16 1D 00 46 6B DF CF CF 65 CE 0F 90 00 1F [11:42:55]RAPDU: 46 6B DF CF CF 65 CE 0F 90 00 [11:42:55]wFMCommunicate OK [11:42:55]SAM_PROTO_SignData done [11:42:55]FM_MakeSignedData done [11:42:55]CreateOFDProtocolMessage [11:42:55]wFMCommunicate request_size=4 [11:42:55]MH_SAM_APDU [11:42:55]CAPDU: 80 11 00 00 [11:42:55]Write to MH i2c: E2 08 00 17 1D 80 11 00 00 00 00 00 00 AE [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:55]Read from MH i2c: E2 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 17 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: E2 17 00 17 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F6 [11:42:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:42:55]wFMCommunicate OK [11:42:55]CreateOFDProtocolMessage done [11:42:55]OFDSenderStorePacket 2429 [11:42:55]StoreOFDPacket docnum=2429 [11:42:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 FB 0A 07 01 39 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 64 8C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B3 11 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 11 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 11 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C2 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7D 09 00 00 35 04 06 00 CB A7 F0 51 BC 81 46 6B DF CF CF 65 CE 0F [11:42:55]CheckFolder [11:42:55]dirname=/storage/ofd_packets [11:42:55]CheckFolder done [11:42:55]ProducePacketName [11:42:55]name=ofd_packets/00002429 [11:42:55]NVStorageSaveData ofd_packets/00002429 [11:42:55]File name is /storage/ofd_packets/00002429 [11:42:55]Write 301 bytes [11:42:55]NVStorageSaveData done [11:42:55]OFDSenderStorePacket done [11:42:55]KKMCreateOFDPacket done [11:42:55]NVStorageSaveData kkm_last_timestamp [11:42:55]File name is /storage/kkm_last_timestamp [11:42:55]Write 4 bytes [11:42:55]NVStorageSaveData done [11:42:55]ExternCall_PrintAddStr [11:42:55]wPrintStart [11:42:55]Write to MH i2c: 01 00 00 18 1D 35 [11:42:55]Write i2c OK [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 07 00 [11:42:55]MH_I2C_Read... [11:42:55]Read from MH i2c: 01 07 00 18 1D 00 00 00 00 00 FF 0F 4A [11:42:55]RasterBufferAndPrint [11:42:55]line Счет N : (1)475347 [11:42:55]line ИÐÐ: 02508201610067 [11:42:55]line Контрольно-КаÑÑовый Чек [11:42:55]line ПРОДÐЖР[11:42:55]line ТРК (МРК, ГÐК) : 51 [11:42:55]line Товар: 2710124500 [11:42:55]line Ðи-95-К-5 [11:42:55]line 35.940 * 74.20 [11:42:55]line = 2666.75 [11:42:55]line ÐДС 12% ÐСП 1% [11:42:55]line > о реализуемом товаре [11:42:55]line ИТОГО: 2666.75 [11:42:55]line ÐСП 1% : 23.60 [11:42:55]line ÐДС 12% : 283.19 [11:42:55]line Ðаличными: 0.00 [11:42:55]line Безнал.: 2666.75 [11:42:55]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:42:55]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:42:55]line СÐО: Общий режим [11:42:55]line Чек 54 18.10.2024 11:42 [11:42:55]line Смена: 22 ФФД: 1.0 [11:42:55]line ЗÐМ: 0300000191 [11:42:55]line РÐМ: 0000000000207295 [11:42:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:42:55]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [11:42:55]line ФМ: 0000000002342820 [11:42:55]line ФД: 2429 [11:42:55]line ФПД: 223922151865473 [11:42:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114258&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2429&fm=223922151865473&tin=02508201610067®Number=0000000000207295&sum=266675 [11:42:56]OFD Sender: Processing packet 2429 [packets to send 1, broken 0] [11:42:56]ProducePacketName [11:42:56]name=ofd_packets/00002429 [11:42:56]OFD Sender: To server: ‡•öpG, [11:42:56]CommunicateWithHost lk.salyk.kg:30040 [11:42:56]ConnectInit lk.salyk.kg [11:42:56]written 0, free lines is 4095 [11:42:56]Connected sock=10 [11:42:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 FB 0A 07 01 39 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 64 8C 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B3 11 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B3 11 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 6E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B3 11 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 C2 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7D 09 00 00 35 04 06 00 CB A7 F0 51 BC 81 46 6B DF CF CF 65 CE 0F [11:42:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 00 A8 47 00 2C 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 32 33 34 32 38 32 30 10 04 04 00 7D 09 00 00 F4 03 04 00 26 F5 11 67 B6 04 01 00 00 C9 04 F6 C5 3D 29 4F D8 [11:42:56]CommunicateWithHost err = 0 [11:42:56]CheckOFDResponse [11:42:56]1017 (14) - 77093643461234 [11:42:56]1041 (16) - 0000000002342820 [11:42:56]1040 (4) - 2429 [11:42:56]1012 (4) - 18.10.2024 05:41 [11:42:56]1206 (1) - 0 [11:42:56]OFD Sender: Remove packet 2429 [11:42:56]ProducePacketName [11:42:56]name=ofd_packets/00002429 [11:42:56]NVStorageDeleteData [11:42:56]Write to MH i2c: 01 00 00 42 1D 5F [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: 01 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: 01 07 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: 01 07 00 42 1D 00 00 00 00 00 C4 0C 36 [11:42:56]RasterBufferAndPrint [11:42:56]line [11:42:56]line [11:42:56]line [11:42:56]line [11:42:56]line [11:42:56]written 0, free lines is 3275 [11:42:56]MH_Cut [11:42:56]Write to MH i2c: D1 01 00 49 1D 01 38 [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: D1 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: D1 01 00 [11:42:56]MH_I2C_Read... [11:42:56]Read from MH i2c: D1 01 00 49 1D 00 37 [11:42:56]Write to MH i2c: 01 00 00 4A 1D 67 [11:42:56]Write i2c OK [11:42:56]MH_I2C_Read... [11:42:57]OFD Sender: No OFD packet to send [11:42:57]*** Cut start [11:42:57]*** Partial cut [11:42:57]*** CUTSNS_PIN = 1 [11:42:57]*** CUTSNS_PIN = 0 [11:42:57]*** Brake cut motor [11:42:58]Read from MH i2c: 01 [11:42:58]MH_I2C_Read... [11:42:58]*** Stop cut motor [11:42:58]*** Cut end [11:42:58]Read from MH i2c: 01 07 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 07 00 4A 1D 00 00 00 00 00 FF 0F 7C [11:42:58]process_action close_receipt done [11:42:58]requested_data is exist [11:42:58]produce_requested_data [11:42:58]requested_item fm.sn is exist - process it [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 11 00 00 [11:42:58]Write to MH i2c: E2 08 00 4B 1D 80 11 00 00 00 00 00 00 E2 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 17 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 17 00 4B 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 2A [11:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:42:58]wFMCommunicate OK [11:42:58]requested_item fd.num is exist - process it [11:42:58]SAM_PROTO_GetFieldsCounters [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 13 00 00 [11:42:58]Write to MH i2c: E2 08 00 4C 1D 80 13 00 00 00 00 00 00 E5 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 62 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 62 00 4C 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7D 09 00 00 0E 04 04 00 16 00 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 39 [11:42:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7D 09 00 00 0E 04 04 00 16 00 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:42:58]wFMCommunicate OK [11:42:58]SAM_PROTO_GetFieldsCounters done [11:42:58]requested_item shift.num is exist - process it [11:42:58]requested_item shift.opened is exist - process it [11:42:58]req_shift_opened [11:42:58]FM_GetShiftState [11:42:58]SAM_PROTO_GetShiftState [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 13 01 00 [11:42:58]Write to MH i2c: E2 08 00 4D 1D 80 13 01 00 00 00 00 00 E7 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 0E 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 0E 00 4D 1D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 85 [11:42:58]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:42:58]wFMCommunicate OK [11:42:58]SAM_PROTO_GetShiftState done [11:42:58]FM_GetShiftState done [11:42:58]req_shift_opened done [11:42:58]requested_item shift.open_date is exist - process it [11:42:58]req_shift_open_date [11:42:58]req_shift_open_date done [11:42:58]produce_requested_data done [11:42:58]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2429,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:42:58]process_action_free close_receipt [11:42:58]json_value_free [11:42:58]json_value_free done [11:42:58]process_json_proto returns [11:42:58]Send response to host [11:42:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2429,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:42:58]free response buf [11:42:58]execute_script done [11:42:58]execute_script returns [11:42:58]free content buf [11:42:58]Sock 7.Close socket [11:42:58]Sock 7.Thread stoped [11:42:58]accept exits with 9 [11:42:58]New connection [11:42:58]New thread 3066850660 created [11:42:58]Thread 3066707300 joined [11:42:58]Waiting for new connection... [11:42:58] Sock 9.Parse request [11:42:58]Sock 9.Check first char [11:42:58]Sock 9.First char is OK [11:42:58]request: POST /json_proto HTTP/1.0 [11:42:58]Method: POST [11:42:58]URL: /json_proto [11:42:58]Method is POST - this is cgi request [11:42:58]url: /json_proto [11:42:58]query_string will be loaded in cgi processing [11:42:58]execute_cgi json_proto POST (null) [11:42:58]execute_cgi path=json_proto method=POST [11:42:58]POST find Content-Length [11:42:58]Host: 172.17.52.132:8080 [11:42:58]Content-Length: 682 [11:42:58]Content-Type: application/json [11:42:58] [11:42:58]POST finish read [11:42:58]Found Content-Length = 682 [11:42:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:58]execute_script... [11:42: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)475349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:58]POST & json_proto [11:42:58]process_json_proto [11:42:58]json parsed OK: [11:42:58]protocol is kg_v1.0 [11:42:58]action value=close_receipt [11:42:58]process_action close_receipt [11:42:58]cmd_close_receipt [11:42:58]MH_GetDate [11:42:58]Write to MH i2c: F0 00 00 4E 1D 5A [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: F0 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: F0 09 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: F0 09 00 4E 1D 00 C6 49 12 67 5A BE F6 66 5F [11:42:58]GetLastDocTimeStamp 1729251778 [11:42:58]current date 1729251782 [11:42:58]FM_GetShiftState [11:42:58]SAM_PROTO_GetShiftState [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 13 01 00 [11:42:58]Write to MH i2c: E2 08 00 4F 1D 80 13 01 00 00 00 00 00 E9 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 0E 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 0E 00 4F 1D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 87 [11:42:58]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:42:58]wFMCommunicate OK [11:42:58]SAM_PROTO_GetShiftState done [11:42:58]FM_GetShiftState done [11:42:58]opened in 1729209717 [11:42:58]opened+sec_in_day 1729296117 [11:42:58]quantity*price = 100015 [11:42:58]sum+1 = 100017 [11:42:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.16 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.21 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 55 18.10.2024 11:43 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2430 ФПД: 204568162308375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114302&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2430&fm=204568162308375&tin=02508201610067®Number=0000000000207295&sum=100000 [11:42:59]StoreToDocumentArchive [11:42:59]shift 22 fd 2430 [11:42:59]save to /storage/0022/doc_00002430 [11:42:59]save last doc name /storage/0022/doc_00002430 to /storage/kkm_last_doc_name [11:42:59]save OK [11:42:59]Clear old archive folders... [11:42:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:59]tlvbuf is B6F3C740 [11:42:59]SAM_PROTO_ClearQueue [11:42:59]wFMCommunicate request_size=4 [11:42:59]MH_SAM_APDU [11:42:59]CAPDU: 80 09 00 00 [11:42:59]Write to MH i2c: E2 08 00 5C 1D 80 09 00 00 00 00 00 00 EB [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 03 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 03 00 5C 1D 00 90 00 ED [11:43:00]RAPDU: 90 00 [11:43:00]wFMCommunicate OK [11:43:00]SAM_PROTO_ClearQueue done [11:43:00]KKMCreateOFDPacket [11:43:00]OFDProtocolAddRootSTLVToBuf [11:43:00]FM_MakeSignedData [11:43:00]FM_MakeSignedData [11:43:00]SAM_PROTO_SignData [11:43:00]wFMCommunicate request_size=4 [11:43:00]MH_SAM_APDU [11:43:00]CAPDU: 80 0D 01 02 [11:43:00]Write to MH i2c: E2 08 00 5D 1D 80 0D 01 02 00 00 00 00 F3 [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 03 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 03 00 5D 1D 00 90 00 EE [11:43:00]RAPDU: 90 00 [11:43:00]wFMCommunicate OK [11:43:00]wFMCommunicate request_size=255 [11:43:00]MH_SAM_APDU [11:43: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C6 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7E 09 00 00 35 04 06 00 BA [11:43:00]Write to MH i2c: E2 02 01 5E 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C6 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7E 09 00 00 35 04 06 00 BA 00 00 87 [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 03 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 03 00 5E 1D 00 90 00 EF [11:43:00]RAPDU: 90 00 [11:43:00]wFMCommunicate OK [11:43:00]wFMCommunicate request_size=10 [11:43:00]MH_SAM_APDU [11:43:00]CAPDU: 80 0D 02 02 05 0D BC A5 91 17 [11:43:00]Write to MH i2c: E2 0D 00 5F 1D 80 0D 02 02 05 00 0D BC A5 91 17 00 00 16 [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 03 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 03 00 5F 1D 00 90 00 F0 [11:43:00]RAPDU: 90 00 [11:43:00]wFMCommunicate OK [11:43:00]wFMCommunicate request_size=4 [11:43:00]MH_SAM_APDU [11:43:00]CAPDU: 80 0D 03 02 [11:43:00]Write to MH i2c: E2 08 00 60 1D 80 0D 03 02 00 00 00 00 F8 [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 0B 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 0B 00 60 1D 00 02 4D C1 9C 94 8D 54 A4 90 00 BE [11:43:00]RAPDU: 02 4D C1 9C 94 8D 54 A4 90 00 [11:43:00]wFMCommunicate OK [11:43:00]SAM_PROTO_SignData done [11:43:00]FM_MakeSignedData done [11:43:00]CreateOFDProtocolMessage [11:43:00]wFMCommunicate request_size=4 [11:43:00]MH_SAM_APDU [11:43:00]CAPDU: 80 11 00 00 [11:43:00]Write to MH i2c: E2 08 00 61 1D 80 11 00 00 00 00 00 00 F8 [11:43:00]Write i2c OK [11:43:00]MH_I2C_Read... [11:43:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:00]Read from MH i2c: E2 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 17 00 [11:43:00]MH_I2C_Read... [11:43:00]Read from MH i2c: E2 17 00 61 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 40 [11:43:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:43:00]wFMCommunicate OK [11:43:00]CreateOFDProtocolMessage done [11:43:00]OFDSenderStorePacket 2430 [11:43:00]StoreOFDPacket docnum=2430 [11:43:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 8B 23 07 01 78 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C6 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7E 09 00 00 35 04 06 00 BA 0D BC A5 91 17 02 4D C1 9C 94 8D 54 A4 [11:43:01]CheckFolder [11:43:01]dirname=/storage/ofd_packets [11:43:01]CheckFolder done [11:43:01]ProducePacketName [11:43:01]name=ofd_packets/00002430 [11:43:01]NVStorageSaveData ofd_packets/00002430 [11:43:01]File name is /storage/ofd_packets/00002430 [11:43:01]Write 301 bytes [11:43:01]NVStorageSaveData done [11:43:01]OFDSenderStorePacket done [11:43:01]KKMCreateOFDPacket done [11:43:01]NVStorageSaveData kkm_last_timestamp [11:43:01]File name is /storage/kkm_last_timestamp [11:43:01]Write 4 bytes [11:43:01]NVStorageSaveData done [11:43:01]ExternCall_PrintAddStr [11:43:01]wPrintStart [11:43:01]Write to MH i2c: 01 00 00 62 1D 7F [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 07 00 [11:43:01]MH_I2C_Read... [11:43:01]OFD Sender: Processing packet 2430 [packets to send 1, broken 0] [11:43:01]ProducePacketName [11:43:01]name=ofd_packets/00002430 [11:43:01]OFD Sender: To server: ‡•öpG, [11:43:01]CommunicateWithHost lk.salyk.kg:30040 [11:43:01]ConnectInit lk.salyk.kg [11:43:01]Read from MH i2c: 01 07 00 62 1D 00 00 00 00 00 FF 0F 94 [11:43:01]RasterBufferAndPrint [11:43:01]line Счет N : (1)475349 [11:43:01]line ИÐÐ: 02508201610067 [11:43:01]line Контрольно-КаÑÑовый Чек [11:43:01]line ПРОДÐЖР[11:43:01]line ТРК (МРК, ГÐК) : 42 [11:43:01]line Товар: 2710124130 [11:43:01]line Ðи-92-К-5 [11:43:01]line 14.950 * 66.90 [11:43:01]line = 1000.16 [11:43:01]line ÐДС 12% ÐСП 1% [11:43:01]line > о реализуемом товаре [11:43:01]line ОКРУГЛЕÐИЕ: -0.16 [11:43:01]line ИТОГО: 1000.00 [11:43:01]line ВнеÑено: 1000.00 [11:43:01]line СДÐЧÐ: 0.00 [11:43:01]line ÐСП 1% : 8.85 [11:43:01]line ÐДС 12% : 106.21 [11:43:01]line Ðаличными: 1000.00 [11:43:01]line Безнал.: 0.00 [11:43:01]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:43:01]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:43:01]line СÐО: Общий режим [11:43:01]line Чек 55 18.10.2024 11:43 [11:43:01]line Смена: 22 ФФД: 1.0 [11:43:01]line ЗÐМ: 0300000191 [11:43:01]line РÐМ: 0000000000207295 [11:43:01]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:43:01]line ФМ: 0000000002342820 [11:43:01]line ФД: 2430 [11:43:01]line ФПД: 204568162308375 [11:43:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114302&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2430&fm=204568162308375&tin=02508201610067®Number=0000000000207295&sum=100000 [11:43:01]written 0, free lines is 4095 [11:43:01]Connected sock=10 [11:43:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 8B 23 07 01 78 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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 C6 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7E 09 00 00 35 04 06 00 BA 0D BC A5 91 17 02 4D C1 9C 94 8D 54 A4 [11:43:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 D6 2E 47 00 03 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 32 33 34 32 38 32 30 10 04 04 00 7E 09 00 00 F4 03 04 00 2B F5 11 67 B6 04 01 00 00 BC 3C 1B C3 6A 3A 1D 6E [11:43:01]CommunicateWithHost err = 0 [11:43:01]CheckOFDResponse [11:43:01]1017 (14) - 77093643461234 [11:43:01]1041 (16) - 0000000002342820 [11:43:01]1040 (4) - 2430 [11:43:01]1012 (4) - 18.10.2024 05:42 [11:43:01]1206 (1) - 0 [11:43:01]OFD Sender: Remove packet 2430 [11:43:01]ProducePacketName [11:43:01]name=ofd_packets/00002430 [11:43:01]NVStorageDeleteData [11:43:01]Write to MH i2c: 01 00 00 8D 1D AA [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 07 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 07 00 8D 1D 00 00 00 00 00 B0 0C 6D [11:43:01]RasterBufferAndPrint [11:43:01]line [11:43:01]line [11:43:01]line [11:43:01]line [11:43:01]line [11:43:01]written 0, free lines is 3259 [11:43:01]MH_Cut [11:43:01]Write to MH i2c: D1 01 00 94 1D 01 83 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: D1 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: D1 01 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: D1 01 00 94 1D 00 82 [11:43:01]Write to MH i2c: 01 00 00 95 1D B2 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]OFD Sender: No OFD packet to send [11:43:02]*** Cut start [11:43:02]*** Partial cut [11:43:02]*** CUTSNS_PIN = 1 [11:43:02]*** CUTSNS_PIN = 0 [11:43:02]*** Brake cut motor [11:43:03]Read from MH i2c: 01 [11:43:03]MH_I2C_Read... [11:43:03]*** Stop cut motor [11:43:03]*** Cut end [11:43:03]Read from MH i2c: 01 07 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: 01 07 00 95 1D 00 00 00 00 00 FF 0F C7 [11:43:03]process_action close_receipt done [11:43:03]requested_data is exist [11:43:03]produce_requested_data [11:43:03]requested_item fm.sn is exist - process it [11:43:03]wFMCommunicate request_size=4 [11:43:03]MH_SAM_APDU [11:43:03]CAPDU: 80 11 00 00 [11:43:03]Write to MH i2c: E2 08 00 96 1D 80 11 00 00 00 00 00 00 2D [11:43:03]Write i2c OK [11:43:03]MH_I2C_Read... [11:43:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:03]Read from MH i2c: E2 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 17 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 17 00 96 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 75 [11:43:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:43:03]wFMCommunicate OK [11:43:03]requested_item fd.num is exist - process it [11:43:03]SAM_PROTO_GetFieldsCounters [11:43:03]wFMCommunicate request_size=4 [11:43:03]MH_SAM_APDU [11:43:03]CAPDU: 80 13 00 00 [11:43:03]Write to MH i2c: E2 08 00 97 1D 80 13 00 00 00 00 00 00 30 [11:43:03]Write i2c OK [11:43:03]MH_I2C_Read... [11:43:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:03]Read from MH i2c: E2 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 62 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 62 00 97 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7E 09 00 00 0E 04 04 00 16 00 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 88 [11:43:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7E 09 00 00 0E 04 04 00 16 00 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:43:03]wFMCommunicate OK [11:43:03]SAM_PROTO_GetFieldsCounters done [11:43:03]requested_item shift.num is exist - process it [11:43:03]requested_item shift.opened is exist - process it [11:43:03]req_shift_opened [11:43:03]FM_GetShiftState [11:43:03]SAM_PROTO_GetShiftState [11:43:03]wFMCommunicate request_size=4 [11:43:03]MH_SAM_APDU [11:43:03]CAPDU: 80 13 01 00 [11:43:03]Write to MH i2c: E2 08 00 98 1D 80 13 01 00 00 00 00 00 32 [11:43:03]Write i2c OK [11:43:03]MH_I2C_Read... [11:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:03]Read from MH i2c: E2 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 0E 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 0E 00 98 1D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D0 [11:43:03]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:43:03]wFMCommunicate OK [11:43:03]SAM_PROTO_GetShiftState done [11:43:03]FM_GetShiftState done [11:43:03]req_shift_opened done [11:43:03]requested_item shift.open_date is exist - process it [11:43:03]req_shift_open_date [11:43:03]req_shift_open_date done [11:43:03]produce_requested_data done [11:43:03]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2430,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:43:03]process_action_free close_receipt [11:43:03]json_value_free [11:43:03]json_value_free done [11:43:03]process_json_proto returns [11:43:03]Send response to host [11:43:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2430,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:43:03]free response buf [11:43:03]execute_script done [11:43:03]execute_script returns [11:43:03]free content buf [11:43:03]Sock 9.Close socket [11:43:03]Sock 9.Thread stoped [11:43:03]accept exits with 7 [11:43:03]New connection [11:43:03]New thread 3066707300 created [11:43:03]Thread 3066850660 joined [11:43:03]Waiting for new connection... [11:43:03] Sock 7.Parse request [11:43:03]Sock 7.Check first char [11:43:03]Sock 7.First char is OK [11:43:03]request: POST /json_proto HTTP/1.0 [11:43:03]Method: POST [11:43:03]URL: /json_proto [11:43:03]Method is POST - this is cgi request [11:43:03]url: /json_proto [11:43:03]query_string will be loaded in cgi processing [11:43:03]execute_cgi json_proto POST (null) [11:43:03]execute_cgi path=json_proto method=POST [11:43:03]POST find Content-Length [11:43:03]Host: 172.17.52.132:8080 [11:43:03]Content-Length: 798 [11:43:03]Content-Type: application/json [11:43:03] [11:43:03]POST finish read [11:43:03]Found Content-Length = 798 [11:43:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3987840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:03]execute_script... [11:43:03]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3987840", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:03]POST & json_proto [11:43:03]process_json_proto [11:43:03]json parsed OK: [11:43:03]protocol is kg_v1.0 [11:43:03]action value=close_receipt [11:43:03]process_action close_receipt [11:43:03]cmd_close_receipt [11:43:03]MH_GetDate [11:43:03]Write to MH i2c: F0 00 00 99 1D A5 [11:43:03]Write i2c OK [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: F0 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: F0 09 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: F0 09 00 99 1D 00 CB 49 12 67 5A BE F6 66 AF [11:43:03]GetLastDocTimeStamp 1729251782 [11:43:03]current date 1729251787 [11:43:03]FM_GetShiftState [11:43:03]SAM_PROTO_GetShiftState [11:43:03]wFMCommunicate request_size=4 [11:43:03]MH_SAM_APDU [11:43:03]CAPDU: 80 13 01 00 [11:43:03]Write to MH i2c: E2 08 00 9A 1D 80 13 01 00 00 00 00 00 34 [11:43:03]Write i2c OK [11:43:03]MH_I2C_Read... [11:43:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:03]Read from MH i2c: E2 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 0E 00 [11:43:03]MH_I2C_Read... [11:43:03]Read from MH i2c: E2 0E 00 9A 1D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D2 [11:43:03]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:43:03]wFMCommunicate OK [11:43:03]SAM_PROTO_GetShiftState done [11:43:03]FM_GetShiftState done [11:43:03]opened in 1729209717 [11:43:03]opened+sec_in_day 1729296117 [11:43:03]quantity*price = 0 [11:43:03]sum+1 = 1 [11:43:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 ÐСП 1% : 0.00 ÐДС 12% : 0.00 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 56 18.10.2024 11:43 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 Талоны: Топливные Талоны 3987840 ФМ: 0000000002342820 ФД: 2431 ФПД: 127351885941807 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114307&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2431&fm=127351885941807&tin=02508201610067®Number=0000000000207295&sum=0 [11:43:05]StoreToDocumentArchive [11:43:05]shift 22 fd 2431 [11:43:05]save to /storage/0022/doc_00002431 [11:43:05]save last doc name /storage/0022/doc_00002431 to /storage/kkm_last_doc_name [11:43:05]save OK [11:43:05]Clear old archive folders... [11:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:43:05]tlvbuf is 01388710 [11:43:05]SAM_PROTO_ClearQueue [11:43:05]wFMCommunicate request_size=4 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 09 00 00 [11:43:05]Write to MH i2c: E2 08 00 A7 1D 80 09 00 00 00 00 00 00 36 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 A7 1D 00 90 00 38 [11:43:05]RAPDU: 90 00 [11:43:05]wFMCommunicate OK [11:43:05]SAM_PROTO_ClearQueue done [11:43:05]KKMCreateOFDPacket [11:43:05]OFDProtocolAddRootSTLVToBuf [11:43:05]FM_MakeSignedData [11:43:05]FM_MakeSignedData [11:43:05]SAM_PROTO_SignData [11:43:05]wFMCommunicate request_size=4 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 0D 01 02 [11:43:05]Write to MH i2c: E2 08 00 A8 1D 80 0D 01 02 00 00 00 00 3E [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 A8 1D 00 90 00 39 [11:43:05]RAPDU: 90 00 [11:43:05]wFMCommunicate OK [11:43:05]wFMCommunicate request_size=255 [11:43:05]MH_SAM_APDU [11:43: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 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 CB 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7F 09 00 00 35 04 06 00 73 D3 6B EC [11:43:05]Write to MH i2c: E2 02 01 A9 1D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 CB 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7F 09 00 00 35 04 06 00 73 D3 6B EC 00 00 B7 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 A9 1D 00 90 00 3A [11:43:05]RAPDU: 90 00 [11:43:05]wFMCommunicate OK [11:43:05]wFMCommunicate request_size=7 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 0D 02 02 02 4C 2F [11:43:05]Write to MH i2c: E2 0A 00 AA 1D 80 0D 02 02 02 00 4C 2F 00 00 C0 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 03 00 AA 1D 00 90 00 3B [11:43:05]RAPDU: 90 00 [11:43:05]wFMCommunicate OK [11:43:05]wFMCommunicate request_size=4 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 0D 03 02 [11:43:05]Write to MH i2c: E2 08 00 AB 1D 80 0D 03 02 00 00 00 00 43 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 0B 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 0B 00 AB 1D 00 D4 0E D8 8A 82 3A 49 C1 90 00 4E [11:43:05]RAPDU: D4 0E D8 8A 82 3A 49 C1 90 00 [11:43:05]wFMCommunicate OK [11:43:05]SAM_PROTO_SignData done [11:43:05]FM_MakeSignedData done [11:43:05]CreateOFDProtocolMessage [11:43:05]wFMCommunicate request_size=4 [11:43:05]MH_SAM_APDU [11:43:05]CAPDU: 80 11 00 00 [11:43:05]Write to MH i2c: E2 08 00 AC 1D 80 11 00 00 00 00 00 00 43 [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:05]Read from MH i2c: E2 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 17 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: E2 17 00 AC 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 8B [11:43:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:43:05]wFMCommunicate OK [11:43:05]CreateOFDProtocolMessage done [11:43:05]OFDSenderStorePacket 2431 [11:43:05]StoreOFDPacket docnum=2431 [11:43:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 56 D9 04 01 3F 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 CB 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7F 09 00 00 35 04 06 00 73 D3 6B EC 4C 2F D4 0E D8 8A 82 3A 49 C1 [11:43:05]CheckFolder [11:43:05]dirname=/storage/ofd_packets [11:43:05]CheckFolder done [11:43:05]ProducePacketName [11:43:05]name=ofd_packets/00002431 [11:43:05]NVStorageSaveData ofd_packets/00002431 [11:43:05]File name is /storage/ofd_packets/00002431 [11:43:05]Write 298 bytes [11:43:05]NVStorageSaveData done [11:43:05]OFDSenderStorePacket done [11:43:05]KKMCreateOFDPacket done [11:43:05]NVStorageSaveData kkm_last_timestamp [11:43:05]File name is /storage/kkm_last_timestamp [11:43:05]Write 4 bytes [11:43:05]NVStorageSaveData done [11:43:05]ExternCall_PrintAddStr [11:43:05]wPrintStart [11:43:05]Write to MH i2c: 01 00 00 AD 1D CA [11:43:05]Write i2c OK [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: 01 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: 01 07 00 [11:43:05]MH_I2C_Read... [11:43:05]Read from MH i2c: 01 07 00 AD 1D 00 00 00 00 00 FF 0F DF [11:43:05]RasterBufferAndPrint [11:43:05]line Счет N : (1)475345 [11:43:05]line ИÐÐ: 02508201610067 [11:43:05]line Контрольно-КаÑÑовый Чек [11:43:05]line ПРОДÐЖР[11:43:05]line ТРК (МРК, ГÐК) : 64 [11:43:05]line Товар: 2710194210 [11:43:05]line ДТ-К-5 [11:43:05]line 100.000 * 0.00 [11:43:05]line = 0.00 [11:43:05]line ÐДС 12% ÐСП 1% [11:43:05]line > о реализуемом товаре [11:43:05]line ИТОГО: 0.00 [11:43:05]line ÐСП 1% : 0.00 [11:43:05]line ÐДС 12% : 0.00 [11:43:05]line Ðаличными: 0.00 [11:43:05]line Безнал.: 0.00 [11:43:05]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:43:05]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:43:05]line СÐО: Общий режим [11:43:05]line Чек 56 18.10.2024 11:43 [11:43:05]line Смена: 22 ФФД: 1.0 [11:43:05]line ЗÐМ: 0300000191 [11:43:05]line РÐМ: 0000000000207295 [11:43:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:43:05]line Талоны: Топливные Талоны [11:43:05]line 3987840 [11:43:06]line ФМ: 0000000002342820 [11:43:06]line ФД: 2431 [11:43:06]line ФПД: 127351885941807 [11:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114307&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2431&fm=127351885941807&tin=02508201610067®Number=0000000000207295&sum=0 [11:43:06]OFD Sender: Processing packet 2431 [packets to send 1, broken 0] [11:43:06]ProducePacketName [11:43:06]name=ofd_packets/00002431 [11:43:06]OFD Sender: To server: ‡•öpG, [11:43:06]CommunicateWithHost lk.salyk.kg:30040 [11:43:06]ConnectInit lk.salyk.kg [11:43:06]written 0, free lines is 4095 [11:43:06]Connected sock=10 [11:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 56 D9 04 01 3F 35 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 CB 49 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 7F 09 00 00 35 04 06 00 73 D3 6B EC 4C 2F D4 0E D8 8A 82 3A 49 C1 [11:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 4A 6F 47 00 EA 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 32 33 34 32 38 32 30 10 04 04 00 7F 09 00 00 F4 03 04 00 30 F5 11 67 B6 04 01 00 00 9F FE 4D 95 98 52 D4 08 [11:43:06]CommunicateWithHost err = 0 [11:43:06]CheckOFDResponse [11:43:06]1017 (14) - 77093643461234 [11:43:06]1041 (16) - 0000000002342820 [11:43:06]1040 (4) - 2431 [11:43:06]1012 (4) - 18.10.2024 05:42 [11:43:06]1206 (1) - 0 [11:43:06]OFD Sender: Remove packet 2431 [11:43:06]ProducePacketName [11:43:06]name=ofd_packets/00002431 [11:43:06]NVStorageDeleteData [11:43:06]Write to MH i2c: 01 00 00 D7 1D F4 [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 07 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: 01 07 00 D7 1D 00 00 00 00 00 D0 0C D7 [11:43:06]RasterBufferAndPrint [11:43:06]line [11:43:06]line [11:43:06]line [11:43:06]line [11:43:06]line [11:43:06]written 0, free lines is 3301 [11:43:06]MH_Cut [11:43:06]Write to MH i2c: D1 01 00 DE 1D 01 CD [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: D1 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: D1 01 00 [11:43:06]MH_I2C_Read... [11:43:06]Read from MH i2c: D1 01 00 DE 1D 00 CC [11:43:06]Write to MH i2c: 01 00 00 DF 1D FC [11:43:06]Write i2c OK [11:43:06]MH_I2C_Read... [11:43:07]OFD Sender: No OFD packet to send [11:43:07]*** Cut start [11:43:07]*** Partial cut [11:43:07]*** CUTSNS_PIN = 1 [11:43:07]*** CUTSNS_PIN = 0 [11:43:07]*** Brake cut motor [11:43:08]Read from MH i2c: 01 [11:43:08]MH_I2C_Read... [11:43:08]*** Stop cut motor [11:43:08]*** Cut end [11:43:08]Read from MH i2c: 01 07 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: 01 07 00 DF 1D 00 00 00 00 00 FF 0F 11 [11:43:08]process_action close_receipt done [11:43:08]requested_data is exist [11:43:08]produce_requested_data [11:43:08]requested_item fm.sn is exist - process it [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 11 00 00 [11:43:08]Write to MH i2c: E2 08 00 E0 1D 80 11 00 00 00 00 00 00 77 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 17 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 17 00 E0 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 BF [11:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:43:08]wFMCommunicate OK [11:43:08]requested_item fd.num is exist - process it [11:43:08]SAM_PROTO_GetFieldsCounters [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 13 00 00 [11:43:08]Write to MH i2c: E2 08 00 E1 1D 80 13 00 00 00 00 00 00 7A [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 62 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 62 00 E1 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7F 09 00 00 0E 04 04 00 16 00 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 D6 [11:43:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 7F 09 00 00 0E 04 04 00 16 00 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:43:08]wFMCommunicate OK [11:43:08]SAM_PROTO_GetFieldsCounters done [11:43:08]requested_item shift.num is exist - process it [11:43:08]requested_item shift.opened is exist - process it [11:43:08]req_shift_opened [11:43:08]FM_GetShiftState [11:43:08]SAM_PROTO_GetShiftState [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 13 01 00 [11:43:08]Write to MH i2c: E2 08 00 E2 1D 80 13 01 00 00 00 00 00 7C [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 0E 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 0E 00 E2 1D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1A [11:43:08]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:43:08]wFMCommunicate OK [11:43:08]SAM_PROTO_GetShiftState done [11:43:08]FM_GetShiftState done [11:43:08]req_shift_opened done [11:43:08]requested_item shift.open_date is exist - process it [11:43:08]req_shift_open_date [11:43:08]req_shift_open_date done [11:43:08]produce_requested_data done [11:43:08]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2431,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:43:08]process_action_free close_receipt [11:43:08]json_value_free [11:43:08]json_value_free done [11:43:08]process_json_proto returns [11:43:08]Send response to host [11:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2431,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:43:08]free response buf [11:43:08]execute_script done [11:43:08]execute_script returns [11:43:08]free content buf [11:43:08]Sock 7.Close socket [11:43:08]Sock 7.Thread stoped [11:43:12]OFD Sender: No OFD packet to send [11:43:17]OFD Sender: No OFD packet to send [11:43:22]OFD Sender: No OFD packet to send [11:43:27]OFD Sender: No OFD packet to send [11:43:32]OFD Sender: No OFD packet to send [11:43:37]OFD Sender: No OFD packet to send [11:43:42]OFD Sender: No OFD packet to send [11:43:47]OFD Sender: No OFD packet to send [11:43:52]OFD Sender: No OFD packet to send [11:43:57]OFD Sender: No OFD packet to send [11:44:02]OFD Sender: No OFD packet to send [11:44:07]OFD Sender: No OFD packet to send [11:44:12]OFD Sender: No OFD packet to send [11:44:17]OFD Sender: No OFD packet to send [11:44:22]OFD Sender: No OFD packet to send [11:44:26]accept exits with 9 [11:44:26]New connection [11:44:26]New thread 3066850660 created [11:44:26]Thread 3066707300 joined [11:44:26]Waiting for new connection... [11:44:26] Sock 9.Parse request [11:44:26]Sock 9.Check first char [11:44:26]Sock 9.First char is OK [11:44:26]request: POST /json_proto HTTP/1.0 [11:44:26]Method: POST [11:44:26]URL: /json_proto [11:44:26]Method is POST - this is cgi request [11:44:26]url: /json_proto [11:44:26]query_string will be loaded in cgi processing [11:44:26]execute_cgi json_proto POST (null) [11:44:26]execute_cgi path=json_proto method=POST [11:44:26]POST find Content-Length [11:44:26]Host: 172.17.52.132:8080 [11:44:26]Content-Length: 1687 [11:44:26]Content-Type: application/json [11:44:26] [11:44:26]POST finish read [11:44:26]Found Content-Length = 1687 [11:44:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99840", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 4.000, "sum" : 356.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" : 699.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:26]execute_script... [11: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 : (3)99840", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 4.000, "sum" : 356.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" : 699.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:26]POST & json_proto [11:44:26]process_json_proto [11:44:26]json parsed OK: [11:44:26]protocol is kg_v1.0 [11:44:26]action value=close_receipt [11:44:26]process_action close_receipt [11:44:26]cmd_close_receipt [11:44:26]MH_GetDate [11:44:26]Write to MH i2c: F0 00 00 E3 1D EF [11:44:26]Write i2c OK [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 09 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: F0 09 00 E3 1D 00 1E 4A 12 67 5A BE F6 66 4D [11:44:26]GetLastDocTimeStamp 1729251787 [11:44:26]current date 1729251870 [11:44:26]FM_GetShiftState [11:44:26]SAM_PROTO_GetShiftState [11:44:26]wFMCommunicate request_size=4 [11:44:26]MH_SAM_APDU [11:44:26]CAPDU: 80 13 01 00 [11:44:26]Write to MH i2c: E2 08 00 E4 1D 80 13 01 00 00 00 00 00 7E [11:44:26]Write i2c OK [11:44:26]MH_I2C_Read... [11:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:26]Read from MH i2c: E2 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 0E 00 [11:44:26]MH_I2C_Read... [11:44:26]Read from MH i2c: E2 0E 00 E4 1D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1C [11:44:26]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:44:26]wFMCommunicate OK [11:44:26]SAM_PROTO_GetShiftState done [11:44:26]FM_GetShiftState done [11:44:26]opened in 1729209717 [11:44:26]opened+sec_in_day 1729296117 [11:44:26]quantity*price = 13000 [11:44:26]sum+1 = 13001 [11:44:26]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310326 Вода Ðдыгене 1л б/г 1.000 * 35.00 = 35.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 4700040114137 Султан чай 1л. зел лимон 2.000 * 89.00 = 178.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 5000159390729 Шок Батончик Ð¢Ð²Ð¸ÐºÑ Ð­ÐºÑтра 82г 4.000 * 89.00 = 356.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 699.00 ÐСП 1% : 6.18 ÐДС 12% : 74.22 Ðаличными: 0.00 Безнал.: 699.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 57 18.10.2024 11:44 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000002342820 ФД: 2432 ФПД: 96635650133676 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114430&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2432&fm=96635650133676&tin=02508201610067®Number=0000000000207295&sum=69900 0 [11:44:27]StoreToDocumentArchive [11:44:27]shift 22 fd 2432 [11:44:27]save to /storage/0022/doc_00002432 [11:44:27]save last doc name /storage/0022/doc_00002432 to /storage/kkm_last_doc_name [11:44:27]save OK [11:44:27]Clear old archive folders... [11:44:27]ProcessDocumentItem done err = 0, tmpTLVsize=625 [11:44:27]tlvbuf is 013FF860 [11:44:27]SAM_PROTO_ClearQueue [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 09 00 00 [11:44:27]Write to MH i2c: E2 08 00 F1 1D 80 09 00 00 00 00 00 00 80 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 F1 1D 00 90 00 82 [11:44:27]RAPDU: 90 00 [11:44:27]wFMCommunicate OK [11:44:27]SAM_PROTO_ClearQueue done [11:44:27]KKMCreateOFDPacket [11:44:27]OFDProtocolAddRootSTLVToBuf [11:44:27]FM_MakeSignedData [11:44:27]FM_MakeSignedData [11:44:27]SAM_PROTO_SignData [11:44:27]wFMCommunicate request_size=4 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 0D 01 02 [11:44:27]Write to MH i2c: E2 08 00 F2 1D 80 0D 01 02 00 00 00 00 88 [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:27]Read from MH i2c: E2 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 [11:44:27]MH_I2C_Read... [11:44:27]Read from MH i2c: E2 03 00 F2 1D 00 90 00 83 [11:44:27]RAPDU: 90 00 [11:44:27]wFMCommunicate OK [11:44:27]wFMCommunicate request_size=255 [11:44:27]MH_SAM_APDU [11:44:27]CAPDU: 80 0D 02 02 FA 03 00 71 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A [11:44:27]Write to MH i2c: E2 02 01 F3 1D 80 0D 02 02 FA 00 03 00 71 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 00 4D [11:44:27]Write i2c OK [11:44:27]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 F3 1D 00 90 00 84 [11:44:28]RAPDU: 90 00 [11:44:28]wFMCommunicate OK [11:44:28]wFMCommunicate request_size=255 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 0D 02 02 FA 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 10 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 02 00 00 00 00 EE 03 0F [11:44:28]Write to MH i2c: E2 02 01 F4 1D 80 0D 02 02 FA 00 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 10 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 02 00 00 00 00 EE 03 0F 00 00 88 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 F4 1D 00 90 00 85 [11:44:28]RAPDU: 90 00 [11:44:28]wFMCommunicate OK [11:44:28]wFMCommunicate request_size=134 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 FE 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 4A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 80 09 00 00 35 04 06 00 57 E3 BD 99 4E AC [11:44:28]Write to MH i2c: E2 89 00 F5 1D 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 FE 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 4A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 80 09 00 00 35 04 06 00 57 E3 BD 99 4E AC 00 00 2B [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 03 00 F5 1D 00 90 00 86 [11:44:28]RAPDU: 90 00 [11:44:28]wFMCommunicate OK [11:44:28]wFMCommunicate request_size=4 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 0D 03 02 [11:44:28]Write to MH i2c: E2 08 00 F6 1D 80 0D 03 02 00 00 00 00 8E [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0B 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 0B 00 F6 1D 00 B0 37 62 E7 F6 90 2E 67 90 00 DA [11:44:28]RAPDU: B0 37 62 E7 F6 90 2E 67 90 00 [11:44:28]wFMCommunicate OK [11:44:28]SAM_PROTO_SignData done [11:44:28]FM_MakeSignedData done [11:44:28]CreateOFDProtocolMessage [11:44:28]wFMCommunicate request_size=4 [11:44:28]MH_SAM_APDU [11:44:28]CAPDU: 80 11 00 00 [11:44:28]Write to MH i2c: E2 08 00 F7 1D 80 11 00 00 00 00 00 00 8E [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:28]Read from MH i2c: E2 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 17 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: E2 17 00 F7 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D6 [11:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:44:28]wFMCommunicate OK [11:44:28]CreateOFDProtocolMessage done [11:44:28]OFDSenderStorePacket 2432 [11:44:28]StoreOFDPacket docnum=2432 [11:44:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 85 02 00 00 2C 6E 7D 02 1E 3E 5A 03 01 00 03 00 71 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 10 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 4A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 80 09 00 00 35 04 06 00 57 E3 BD 99 4E AC B0 37 62 E7 F6 90 2E 67 [11:44:28]CheckFolder [11:44:28]dirname=/storage/ofd_packets [11:44:28]CheckFolder done [11:44:28]ProducePacketName [11:44:28]name=ofd_packets/00002432 [11:44:28]NVStorageSaveData ofd_packets/00002432 [11:44:28]File name is /storage/ofd_packets/00002432 [11:44:28]Write 675 bytes [11:44:28]NVStorageSaveData done [11:44:28]OFDSenderStorePacket done [11:44:28]KKMCreateOFDPacket done [11:44:28]NVStorageSaveData kkm_last_timestamp [11:44:28]File name is /storage/kkm_last_timestamp [11:44:28]Write 4 bytes [11:44:28]NVStorageSaveData done [11:44:28]ExternCall_PrintAddStr [11:44:28]wPrintStart [11:44:28]Write to MH i2c: 01 00 00 F8 1D 15 [11:44:28]Write i2c OK [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 07 00 [11:44:28]MH_I2C_Read... [11:44:28]Read from MH i2c: 01 07 00 F8 1D 00 00 00 00 00 FF 0F 2A [11:44:28]RasterBufferAndPrint [11:44:28]line Счет N : (3)99840 [11:44:28]line ИÐÐ: 02508201610067 [11:44:29]line Контрольно-КаÑÑовый Чек [11:44:29]line ПРОДÐЖР[11:44:29]line Товар: 2000036220012 [11:44:29]line Кофе Капучино XL(GABB TRADE) [11:44:29]line 1.000 * 130.00 [11:44:29]line = 130.00 [11:44:29]line ÐДС 12% ÐСП 1% [11:44:29]line > о реализуемом товаре [11:44:29]line Товар: 4700000310326 [11:44:29]line Вода Ðдыгене 1л б/г [11:44:29]line 1.000 * 35.00 [11:44:29]line = 35.00 [11:44:29]line ÐДС 12% ÐСП 1% [11:44:29]line > о реализуемом товаре [11:44:29]line Товар: 4700040114137 [11:44:29]line Султан чай 1л. зел лимон [11:44:29]line 2.000 * 89.00 [11:44:29]line = 178.00 [11:44:29]line ÐДС 12% ÐСП 1% [11:44:29]line > о реализуемом товаре [11:44:29]line Товар: 5000159390729 [11:44:29]line Шок Батончик Ð¢Ð²Ð¸ÐºÑ Ð­ÐºÑтра 82г [11:44:29]line 4.000 * 89.00 [11:44:29]line = 356.00 [11:44:29]line ÐДС 12% ÐСП 1% [11:44:29]line > о реализуемом товаре [11:44:29]line ИТОГО: 699.00 [11:44:29]line ÐСП 1% : 6.18 [11:44:29]line ÐДС 12% : 74.22 [11:44:29]line Ðаличными: 0.00 [11:44:29]line Безнал.: 699.00 [11:44:29]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:44:29]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:44:29]line СÐО: Общий режим [11:44:29]line Чек 57 18.10.2024 11:44 [11:44:29]line Смена: 22 ФФД: 1.0 [11:44:29]line ЗÐМ: 0300000191 [11:44:29]line РÐМ: 0000000000207295 [11:44:29]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:44:29]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [11:44:29]line ФМ: 0000000002342820 [11:44:29]line ФД: 2432 [11:44:29]line ФПД: 96635650133676 [11:44:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114430&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2432&fm=96635650133676&tin=02508201610067®Number=0000000000207295&sum=69900 [11:44:29]line 0 [11:44:29]OFD Sender: Processing packet 2432 [packets to send 1, broken 0] [11:44:29]ProducePacketName [11:44:29]name=ofd_packets/00002432 [11:44:29]OFD Sender: To server: ‡•öpG, [11:44:29]CommunicateWithHost lk.salyk.kg:30040 [11:44:29]ConnectInit lk.salyk.kg [11:44:29]written 0, free lines is 4095 [11:44:29]Connected sock=10 [11:44:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 85 02 00 00 2C 6E 7D 02 1E 3E 5A 03 01 00 03 00 71 02 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 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 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 10 8B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 00 00 00 F4 03 04 00 1E 4A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 80 09 00 00 35 04 06 00 57 E3 BD 99 4E AC B0 37 62 E7 F6 90 2E 67 [11:44:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 FE 74 47 00 96 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 32 33 34 32 38 32 30 10 04 04 00 80 09 00 00 F4 03 04 00 83 F5 11 67 B6 04 01 00 00 70 DB 65 67 CE CD 88 43 [11:44:29]CommunicateWithHost err = 0 [11:44:29]CheckOFDResponse [11:44:29]1017 (14) - 77093643461234 [11:44:29]1041 (16) - 0000000002342820 [11:44:29]1040 (4) - 2432 [11:44:29]1012 (4) - 18.10.2024 05:43 [11:44:29]1206 (1) - 0 [11:44:29]OFD Sender: Remove packet 2432 [11:44:29]ProducePacketName [11:44:29]name=ofd_packets/00002432 [11:44:29]NVStorageDeleteData [11:44:29]Write to MH i2c: 01 00 00 36 1E 54 [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 07 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: 01 07 00 36 1E 00 00 00 00 00 6C 0B D2 [11:44:29]RasterBufferAndPrint [11:44:29]line [11:44:29]line [11:44:29]line [11:44:29]line [11:44:29]line [11:44:29]written 0, free lines is 2932 [11:44:29]MH_Cut [11:44:29]Write to MH i2c: D1 01 00 3D 1E 01 2D [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: D1 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: D1 01 00 [11:44:29]MH_I2C_Read... [11:44:29]Read from MH i2c: D1 01 00 3D 1E 00 2C [11:44:29]Write to MH i2c: 01 00 00 3E 1E 5C [11:44:29]Write i2c OK [11:44:29]MH_I2C_Read... [11:44:29]OFD Sender: No OFD packet to send [11:44:30]*** Cut start [11:44:30]*** Partial cut [11:44:30]*** CUTSNS_PIN = 1 [11:44:30]*** CUTSNS_PIN = 0 [11:44:31]*** Brake cut motor [11:44:31]Read from MH i2c: 01 [11:44:31]MH_I2C_Read... [11:44:31]*** Stop cut motor [11:44:31]*** Cut end [11:44:31]Read from MH i2c: 01 07 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: 01 07 00 3E 1E 00 00 00 00 00 FF 0F 71 [11:44:31]process_action close_receipt done [11:44:31]requested_data is exist [11:44:31]produce_requested_data [11:44:31]requested_item fm.sn is exist - process it [11:44:31]wFMCommunicate request_size=4 [11:44:31]MH_SAM_APDU [11:44:31]CAPDU: 80 11 00 00 [11:44:31]Write to MH i2c: E2 08 00 3F 1E 80 11 00 00 00 00 00 00 D7 [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:31]Read from MH i2c: E2 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 17 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 17 00 3F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 1F [11:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:44:31]wFMCommunicate OK [11:44:31]requested_item fd.num is exist - process it [11:44:31]SAM_PROTO_GetFieldsCounters [11:44:31]wFMCommunicate request_size=4 [11:44:31]MH_SAM_APDU [11:44:31]CAPDU: 80 13 00 00 [11:44:31]Write to MH i2c: E2 08 00 40 1E 80 13 00 00 00 00 00 00 DA [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:31]Read from MH i2c: E2 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 62 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 62 00 40 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 80 09 00 00 0E 04 04 00 16 00 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 3A [11:44:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 80 09 00 00 0E 04 04 00 16 00 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:44:31]wFMCommunicate OK [11:44:31]SAM_PROTO_GetFieldsCounters done [11:44:31]requested_item shift.num is exist - process it [11:44:31]requested_item shift.opened is exist - process it [11:44:31]req_shift_opened [11:44:31]FM_GetShiftState [11:44:31]SAM_PROTO_GetShiftState [11:44:31]wFMCommunicate request_size=4 [11:44:31]MH_SAM_APDU [11:44:31]CAPDU: 80 13 01 00 [11:44:31]Write to MH i2c: E2 08 00 41 1E 80 13 01 00 00 00 00 00 DC [11:44:31]Write i2c OK [11:44:31]MH_I2C_Read... [11:44:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:31]Read from MH i2c: E2 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 0E 00 [11:44:31]MH_I2C_Read... [11:44:31]Read from MH i2c: E2 0E 00 41 1E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 7A [11:44:31]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:44:31]wFMCommunicate OK [11:44:31]SAM_PROTO_GetShiftState done [11:44:31]FM_GetShiftState done [11:44:31]req_shift_opened done [11:44:31]requested_item shift.open_date is exist - process it [11:44:31]req_shift_open_date [11:44:31]req_shift_open_date done [11:44:31]produce_requested_data done [11:44:31]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2432,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:44:31]process_action_free close_receipt [11:44:31]json_value_free [11:44:31]json_value_free done [11:44:31]process_json_proto returns [11:44:31]Send response to host [11:44:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2432,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:44:31]free response buf [11:44:31]execute_script done [11:44:31]execute_script returns [11:44:31]free content buf [11:44:31]Sock 9.Close socket [11:44:31]Sock 9.Thread stoped [11:44:34]OFD Sender: No OFD packet to send [11:44:39]OFD Sender: No OFD packet to send [11:44:44]OFD Sender: No OFD packet to send [11:44:49]OFD Sender: No OFD packet to send [11:44:54]OFD Sender: No OFD packet to send [11:44:59]OFD Sender: No OFD packet to send [11:45:04]OFD Sender: No OFD packet to send [11:45:09]OFD Sender: No OFD packet to send [11:45:14]OFD Sender: No OFD packet to send [11:45:19]accept exits with 7 [11:45:19]New connection [11:45:19]New thread 3066707300 created [11:45:19]Thread 3066850660 joined [11:45:19]Waiting for new connection... [11:45:19] Sock 7.Parse request [11:45:19]Sock 7.Check first char [11:45:19]Sock 7.First char is OK [11:45:19]request: POST /json_proto HTTP/1.0 [11:45:19]Method: POST [11:45:19]URL: /json_proto [11:45:19]Method is POST - this is cgi request [11:45:19]url: /json_proto [11:45:19]query_string will be loaded in cgi processing [11:45:19]execute_cgi json_proto POST (null) [11:45:19]execute_cgi path=json_proto method=POST [11:45:19]POST find Content-Length [11:45:19]Host: 172.17.52.132:8080 [11:45:19]Content-Length: 679 [11:45:19]Content-Type: application/json [11:45:19] [11:45:19]POST finish read [11:45:19]Found Content-Length = 679 [11:45:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:19]execute_script... [11: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)475350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:45:19]POST & json_proto [11:45:19]process_json_proto [11:45:19]json parsed OK: [11:45:19]protocol is kg_v1.0 [11:45:19]action value=close_receipt [11:45:19]process_action close_receipt [11:45:19]cmd_close_receipt [11:45:19]MH_GetDate [11:45:19]Write to MH i2c: F0 00 00 42 1E 4F [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: F0 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: F0 09 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: F0 09 00 42 1E 00 53 4A 12 67 5A BE F6 66 E2 [11:45:19]GetLastDocTimeStamp 1729251870 [11:45:19]current date 1729251923 [11:45:19]FM_GetShiftState [11:45:19]SAM_PROTO_GetShiftState [11:45:19]wFMCommunicate request_size=4 [11:45:19]MH_SAM_APDU [11:45:19]CAPDU: 80 13 01 00 [11:45:19]Write to MH i2c: E2 08 00 43 1E 80 13 01 00 00 00 00 00 DE [11:45:19]Write i2c OK [11:45:19]MH_I2C_Read... [11:45:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:19]Read from MH i2c: E2 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 0E 00 [11:45:19]MH_I2C_Read... [11:45:19]Read from MH i2c: E2 0E 00 43 1E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 7C [11:45:19]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:45:19]wFMCommunicate OK [11:45:19]SAM_PROTO_GetShiftState done [11:45:19]FM_GetShiftState done [11:45:19]opened in 1729209717 [11:45:19]opened+sec_in_day 1729296117 [11:45:19]quantity*price = 100050 [11:45:19]sum+1 = 100052 [11:45:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.51 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.25 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 58 18.10.2024 11:45 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2433 ФПД: 263705128477406 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114523&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2433&fm=263705128477406&tin=02508201610067®Number=0000000000207295&sum=100000 [11:45:20]StoreToDocumentArchive [11:45:20]shift 22 fd 2433 [11:45:20]save to /storage/0022/doc_00002433 [11:45:20]save last doc name /storage/0022/doc_00002433 to /storage/kkm_last_doc_name [11:45:20]save OK [11:45:20]Clear old archive folders... [11:45:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:45:20]tlvbuf is 013E2A00 [11:45:20]SAM_PROTO_ClearQueue [11:45:20]wFMCommunicate request_size=4 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 09 00 00 [11:45:20]Write to MH i2c: E2 08 00 50 1E 80 09 00 00 00 00 00 00 E0 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 50 1E 00 90 00 E2 [11:45:20]RAPDU: 90 00 [11:45:20]wFMCommunicate OK [11:45:20]SAM_PROTO_ClearQueue done [11:45:20]KKMCreateOFDPacket [11:45:20]OFDProtocolAddRootSTLVToBuf [11:45:20]FM_MakeSignedData [11:45:20]FM_MakeSignedData [11:45:20]SAM_PROTO_SignData [11:45:20]wFMCommunicate request_size=4 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 0D 01 02 [11:45:20]Write to MH i2c: E2 08 00 51 1E 80 0D 01 02 00 00 00 00 E8 [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 51 1E 00 90 00 E3 [11:45:20]RAPDU: 90 00 [11:45:20]wFMCommunicate OK [11:45:20]wFMCommunicate request_size=255 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 53 4A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 81 09 00 00 35 04 06 00 EF D6 A2 82 [11:45:20]Write to MH i2c: E2 02 01 52 1E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 53 4A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 81 09 00 00 35 04 06 00 EF D6 A2 82 00 00 3B [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 52 1E 00 90 00 E4 [11:45:20]RAPDU: 90 00 [11:45:20]wFMCommunicate OK [11:45:20]wFMCommunicate request_size=7 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 0D 02 02 02 22 DE [11:45:20]Write to MH i2c: E2 0A 00 53 1E 80 0D 02 02 02 00 22 DE 00 00 EF [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:45:20]Read from MH i2c: E2 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 [11:45:20]MH_I2C_Read... [11:45:20]Read from MH i2c: E2 03 00 53 1E 00 90 00 E5 [11:45:20]RAPDU: 90 00 [11:45:20]wFMCommunicate OK [11:45:20]wFMCommunicate request_size=4 [11:45:20]MH_SAM_APDU [11:45:20]CAPDU: 80 0D 03 02 [11:45:20]Write to MH i2c: E2 08 00 54 1E 80 0D 03 02 00 00 00 00 ED [11:45:20]Write i2c OK [11:45:20]MH_I2C_Read... [11:45:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:45:21]Read from MH i2c: E2 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: E2 0B 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: E2 0B 00 54 1E 00 3D 59 1F 20 FF 0B FA 75 90 00 3C [11:45:21]RAPDU: 3D 59 1F 20 FF 0B FA 75 90 00 [11:45:21]wFMCommunicate OK [11:45:21]SAM_PROTO_SignData done [11:45:21]FM_MakeSignedData done [11:45:21]CreateOFDProtocolMessage [11:45:21]wFMCommunicate request_size=4 [11:45:21]MH_SAM_APDU [11:45:21]CAPDU: 80 11 00 00 [11:45:21]Write to MH i2c: E2 08 00 55 1E 80 11 00 00 00 00 00 00 ED [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:21]Read from MH i2c: E2 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: E2 17 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: E2 17 00 55 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 35 [11:45:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:45:21]wFMCommunicate OK [11:45:21]CreateOFDProtocolMessage done [11:45:21]OFDSenderStorePacket 2433 [11:45:21]StoreOFDPacket docnum=2433 [11:45:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 1C E2 04 01 E5 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 53 4A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 81 09 00 00 35 04 06 00 EF D6 A2 82 22 DE 3D 59 1F 20 FF 0B FA 75 [11:45:21]CheckFolder [11:45:21]dirname=/storage/ofd_packets [11:45:21]CheckFolder done [11:45:21]ProducePacketName [11:45:21]name=ofd_packets/00002433 [11:45:21]NVStorageSaveData ofd_packets/00002433 [11:45:21]File name is /storage/ofd_packets/00002433 [11:45:21]Write 298 bytes [11:45:21]NVStorageSaveData done [11:45:21]OFDSenderStorePacket done [11:45:21]KKMCreateOFDPacket done [11:45:21]NVStorageSaveData kkm_last_timestamp [11:45:21]File name is /storage/kkm_last_timestamp [11:45:21]Write 4 bytes [11:45:21]NVStorageSaveData done [11:45:21]ExternCall_PrintAddStr [11:45:21]wPrintStart [11:45:21]Write to MH i2c: 01 00 00 56 1E 74 [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 07 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 07 00 56 1E 00 00 00 00 00 FF 0F 89 [11:45:21]RasterBufferAndPrint [11:45:21]line Счет N : (1)475350 [11:45:21]line ИÐÐ: 02508201610067 [11:45:21]line Контрольно-КаÑÑовый Чек [11:45:21]line ПРОДÐЖР[11:45:21]line ТРК (МРК, ГÐК) : 34 [11:45:21]line Товар: 2710194210 [11:45:21]line ДТ-К-5 [11:45:21]line 13.130 * 76.20 [11:45:21]line = 1000.51 [11:45:21]line ÐДС 12% ÐСП 1% [11:45:21]line > о реализуемом товаре [11:45:21]line ОКРУГЛЕÐИЕ: -0.51 [11:45:21]line ИТОГО: 1000.00 [11:45:21]line ВнеÑено: 1000.00 [11:45:21]line СДÐЧÐ: 0.00 [11:45:21]line ÐСП 1% : 8.85 [11:45:21]line ÐДС 12% : 106.25 [11:45:21]line Ðаличными: 1000.00 [11:45:21]line Безнал.: 0.00 [11:45:21]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:45:21]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:45:21]line СÐО: Общий режим [11:45:21]line Чек 58 18.10.2024 11:45 [11:45:21]line Смена: 22 ФФД: 1.0 [11:45:21]line ЗÐМ: 0300000191 [11:45:21]line РÐМ: 0000000000207295 [11:45:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:45:21]line ФМ: 0000000002342820 [11:45:21]line ФД: 2433 [11:45:21]line ФПД: 263705128477406 [11:45:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114523&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2433&fm=263705128477406&tin=02508201610067®Number=0000000000207295&sum=100000 [11:45:21]OFD Sender: Processing packet 2433 [packets to send 1, broken 0] [11:45:21]ProducePacketName [11:45:21]name=ofd_packets/00002433 [11:45:21]OFD Sender: To server: ‡•öpG, [11:45:21]CommunicateWithHost lk.salyk.kg:30040 [11:45:21]ConnectInit lk.salyk.kg [11:45:21]written 0, free lines is 4095 [11:45:21]Connected sock=10 [11:45:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 1C E2 04 01 E5 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 53 4A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 81 09 00 00 35 04 06 00 EF D6 A2 82 22 DE 3D 59 1F 20 FF 0B FA 75 [11:45:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 68 D4 47 00 0D E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 81 09 00 00 F4 03 04 00 B7 F5 11 67 B6 04 01 00 00 77 7F BD A0 22 23 C9 F2 [11:45:21]CommunicateWithHost err = 0 [11:45:21]CheckOFDResponse [11:45:21]1017 (14) - 77093643461234 [11:45:21]1041 (16) - 0000000002342820 [11:45:21]1040 (4) - 2433 [11:45:21]1012 (4) - 18.10.2024 05:44 [11:45:21]1206 (1) - 0 [11:45:21]OFD Sender: Remove packet 2433 [11:45:21]ProducePacketName [11:45:21]name=ofd_packets/00002433 [11:45:21]NVStorageDeleteData [11:45:21]Write to MH i2c: 01 00 00 81 1E 9F [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 07 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: 01 07 00 81 1E 00 00 00 00 00 A5 0C 57 [11:45:21]RasterBufferAndPrint [11:45:21]line [11:45:21]line [11:45:21]line [11:45:21]line [11:45:21]line [11:45:21]written 0, free lines is 3241 [11:45:21]MH_Cut [11:45:21]Write to MH i2c: D1 01 00 88 1E 01 78 [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: D1 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: D1 01 00 [11:45:21]MH_I2C_Read... [11:45:21]Read from MH i2c: D1 01 00 88 1E 00 77 [11:45:21]Write to MH i2c: 01 00 00 89 1E A7 [11:45:21]Write i2c OK [11:45:21]MH_I2C_Read... [11:45:22]OFD Sender: No OFD packet to send [11:45:22]*** Cut start [11:45:22]*** Partial cut [11:45:22]*** CUTSNS_PIN = 1 [11:45:22]*** CUTSNS_PIN = 0 [11:45:23]*** Brake cut motor [11:45:23]Read from MH i2c: 01 [11:45:23]MH_I2C_Read... [11:45:23]*** Stop cut motor [11:45:23]*** Cut end [11:45:23]Read from MH i2c: 01 07 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: 01 07 00 89 1E 00 00 00 00 00 FF 0F BC [11:45:23]process_action close_receipt done [11:45:23]requested_data is exist [11:45:23]produce_requested_data [11:45:23]requested_item fm.sn is exist - process it [11:45:23]wFMCommunicate request_size=4 [11:45:23]MH_SAM_APDU [11:45:23]CAPDU: 80 11 00 00 [11:45:23]Write to MH i2c: E2 08 00 8A 1E 80 11 00 00 00 00 00 00 22 [11:45:23]Write i2c OK [11:45:23]MH_I2C_Read... [11:45:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:45:23]Read from MH i2c: E2 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 17 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 17 00 8A 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 6A [11:45:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:45:23]wFMCommunicate OK [11:45:23]requested_item fd.num is exist - process it [11:45:23]SAM_PROTO_GetFieldsCounters [11:45:23]wFMCommunicate request_size=4 [11:45:23]MH_SAM_APDU [11:45:23]CAPDU: 80 13 00 00 [11:45:23]Write to MH i2c: E2 08 00 8B 1E 80 13 00 00 00 00 00 00 25 [11:45:23]Write i2c OK [11:45:23]MH_I2C_Read... [11:45:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:45:23]Read from MH i2c: E2 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 62 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 62 00 8B 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 81 09 00 00 0E 04 04 00 16 00 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 89 [11:45:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 81 09 00 00 0E 04 04 00 16 00 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:45:23]wFMCommunicate OK [11:45:23]SAM_PROTO_GetFieldsCounters done [11:45:23]requested_item shift.num is exist - process it [11:45:23]requested_item shift.opened is exist - process it [11:45:23]req_shift_opened [11:45:23]FM_GetShiftState [11:45:23]SAM_PROTO_GetShiftState [11:45:23]wFMCommunicate request_size=4 [11:45:23]MH_SAM_APDU [11:45:23]CAPDU: 80 13 01 00 [11:45:23]Write to MH i2c: E2 08 00 8C 1E 80 13 01 00 00 00 00 00 27 [11:45:23]Write i2c OK [11:45:23]MH_I2C_Read... [11:45:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:45:23]Read from MH i2c: E2 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 0E 00 [11:45:23]MH_I2C_Read... [11:45:23]Read from MH i2c: E2 0E 00 8C 1E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C5 [11:45:23]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:45:23]wFMCommunicate OK [11:45:23]SAM_PROTO_GetShiftState done [11:45:23]FM_GetShiftState done [11:45:23]req_shift_opened done [11:45:23]requested_item shift.open_date is exist - process it [11:45:23]req_shift_open_date [11:45:23]req_shift_open_date done [11:45:23]produce_requested_data done [11:45:23]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2433,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:45:23]process_action_free close_receipt [11:45:23]json_value_free [11:45:23]json_value_free done [11:45:23]process_json_proto returns [11:45:23]Send response to host [11:45:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2433,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:45:23]free response buf [11:45:23]execute_script done [11:45:23]execute_script returns [11:45:23]free content buf [11:45:23]Sock 7.Close socket [11:45:23]Sock 7.Thread stoped [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:22]OFD Sender: No OFD packet to send [11:46:27]OFD Sender: No OFD packet to send [11:46:32]OFD Sender: No OFD packet to send [11:46:37]OFD Sender: No OFD packet to send [11:46:42]OFD Sender: No OFD packet to send [11:46:47]OFD Sender: No OFD packet to send [11:46:52]OFD Sender: No OFD packet to send [11:46:57]OFD Sender: No OFD packet to send [11:47:02]OFD Sender: No OFD packet to send [11:47:07]OFD Sender: No OFD packet to send [11:47:12]OFD Sender: No OFD packet to send [11:47:17]OFD Sender: No OFD packet to send [11:47:22]OFD Sender: No OFD packet to send [11:47:27]OFD Sender: No OFD packet to send [11:47:32]OFD Sender: No OFD packet to send [11:47:37]OFD Sender: No OFD packet to send [11:47:42]OFD Sender: No OFD packet to send [11:47:47]OFD Sender: No OFD packet to send [11:47:52]OFD Sender: No OFD packet to send [11:47:57]OFD Sender: No OFD packet to send [11:48:02]OFD Sender: No OFD packet to send [11:48:07]OFD Sender: No OFD packet to send [11:48:12]OFD Sender: No OFD packet to send [11:48:17]OFD Sender: No OFD packet to send [11:48:22]OFD Sender: No OFD packet to send [11:48:27]OFD Sender: No OFD packet to send [11:48:32]OFD Sender: No OFD packet to send [11:48:37]OFD Sender: No OFD packet to send [11:48:42]OFD Sender: No OFD packet to send [11:48:43]accept exits with 9 [11:48:43]New connection [11:48:43]New thread 3066850660 created [11:48:43]Thread 3066707300 joined [11:48:43]Waiting for new connection... [11:48:43] Sock 9.Parse request [11:48:43]Sock 9.Check first char [11:48:43]Sock 9.First char is OK [11:48:43]request: POST /json_proto HTTP/1.0 [11:48:43]Method: POST [11:48:43]URL: /json_proto [11:48:43]Method is POST - this is cgi request [11:48:43]url: /json_proto [11:48:43]query_string will be loaded in cgi processing [11:48:43]execute_cgi json_proto POST (null) [11:48:43]execute_cgi path=json_proto method=POST [11:48:43]POST find Content-Length [11:48:43]Host: 172.17.52.132:8080 [11:48:43]Content-Length: 623 [11:48:43]Content-Type: application/json [11:48:43] [11:48:43]POST finish read [11:48:43]Found Content-Length = 623 [11:48:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99841", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:43]execute_script... [11:48: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 : (3)99841", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:43]POST & json_proto [11:48:43]process_json_proto [11:48:43]json parsed OK: [11:48:43]protocol is kg_v1.0 [11:48:43]action value=close_receipt [11:48:43]process_action close_receipt [11:48:43]cmd_close_receipt [11:48:43]MH_GetDate [11:48:43]Write to MH i2c: F0 00 00 8D 1E 9A [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: F0 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: F0 09 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: F0 09 00 8D 1E 00 1F 4B 12 67 5A BE F6 66 FA [11:48:43]GetLastDocTimeStamp 1729251923 [11:48:43]current date 1729252127 [11:48:43]FM_GetShiftState [11:48:43]SAM_PROTO_GetShiftState [11:48:43]wFMCommunicate request_size=4 [11:48:43]MH_SAM_APDU [11:48:43]CAPDU: 80 13 01 00 [11:48:43]Write to MH i2c: E2 08 00 8E 1E 80 13 01 00 00 00 00 00 29 [11:48:43]Write i2c OK [11:48:43]MH_I2C_Read... [11:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:43]Read from MH i2c: E2 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0E 00 [11:48:43]MH_I2C_Read... [11:48:43]Read from MH i2c: E2 0E 00 8E 1E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C7 [11:48:43]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:48:43]wFMCommunicate OK [11:48:43]SAM_PROTO_GetShiftState done [11:48:43]FM_GetShiftState done [11:48:43]opened in 1729209717 [11:48:43]opened+sec_in_day 1729296117 [11:48:43]quantity*price = 16000 [11:48:43]sum+1 = 16001 [11:48:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 ÐСП 1% : 1.42 ÐДС 12% : 16.99 Ðаличными: 160.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 59 18.10.2024 11:48 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2434 ФПД: 254288178776756 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114847&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2434&fm=254288178776756&tin=02508201610067®Number=0000000000207295&sum=16000 0 [11:48:44]StoreToDocumentArchive [11:48:44]shift 22 fd 2434 [11:48:44]save to /storage/0022/doc_00002434 [11:48:44]save last doc name /storage/0022/doc_00002434 to /storage/kkm_last_doc_name [11:48:44]save OK [11:48:44]Clear old archive folders... [11:48:44]ProcessDocumentItem done err = 0, tmpTLVsize=276 [11:48:44]tlvbuf is B6F3C010 [11:48:44]SAM_PROTO_ClearQueue [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 09 00 00 [11:48:44]Write to MH i2c: E2 08 00 9B 1E 80 09 00 00 00 00 00 00 2B [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 9B 1E 00 90 00 2D [11:48:44]RAPDU: 90 00 [11:48:44]wFMCommunicate OK [11:48:44]SAM_PROTO_ClearQueue done [11:48:44]KKMCreateOFDPacket [11:48:44]OFDProtocolAddRootSTLVToBuf [11:48:44]FM_MakeSignedData [11:48:44]FM_MakeSignedData [11:48:44]SAM_PROTO_SignData [11:48:44]wFMCommunicate request_size=4 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 0D 01 02 [11:48:44]Write to MH i2c: E2 08 00 9C 1E 80 0D 01 02 00 00 00 00 33 [11:48:44]Write i2c OK [11:48:44]MH_I2C_Read... [11:48:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:44]Read from MH i2c: E2 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 [11:48:44]MH_I2C_Read... [11:48:44]Read from MH i2c: E2 03 00 9C 1E 00 90 00 2E [11:48:44]RAPDU: 90 00 [11:48:44]wFMCommunicate OK [11:48:44]wFMCommunicate request_size=255 [11:48:44]MH_SAM_APDU [11:48:44]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 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 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 3B 00 00 00 F4 03 04 00 1F 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 [11:48:45]Write to MH i2c: E2 02 01 9D 1E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 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 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 3B 00 00 00 F4 03 04 00 1F 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 00 00 41 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 9D 1E 00 90 00 2F [11:48:45]RAPDU: 90 00 [11:48:45]wFMCommunicate OK [11:48:45]wFMCommunicate request_size=35 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 82 09 00 00 35 04 06 00 E7 46 14 91 0A B4 [11:48:45]Write to MH i2c: E2 26 00 9E 1E 80 0D 02 02 1E 00 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 82 09 00 00 35 04 06 00 E7 46 14 91 0A B4 00 00 39 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 03 00 9E 1E 00 90 00 30 [11:48:45]RAPDU: 90 00 [11:48:45]wFMCommunicate OK [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 0D 03 02 [11:48:45]Write to MH i2c: E2 08 00 9F 1E 80 0D 03 02 00 00 00 00 38 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 0B 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 0B 00 9F 1E 00 51 5F EA A5 60 F7 32 C8 90 00 C9 [11:48:45]RAPDU: 51 5F EA A5 60 F7 32 C8 90 00 [11:48:45]wFMCommunicate OK [11:48:45]SAM_PROTO_SignData done [11:48:45]FM_MakeSignedData done [11:48:45]CreateOFDProtocolMessage [11:48:45]wFMCommunicate request_size=4 [11:48:45]MH_SAM_APDU [11:48:45]CAPDU: 80 11 00 00 [11:48:45]Write to MH i2c: E2 08 00 A0 1E 80 11 00 00 00 00 00 00 38 [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:45]Read from MH i2c: E2 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 17 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: E2 17 00 A0 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 80 [11:48:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:48:45]wFMCommunicate OK [11:48:45]CreateOFDProtocolMessage done [11:48:45]OFDSenderStorePacket 2434 [11:48:45]StoreOFDPacket docnum=2434 [11:48:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 26 81 20 01 B6 48 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 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 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 3B 00 00 00 F4 03 04 00 1F 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 82 09 00 00 35 04 06 00 E7 46 14 91 0A B4 51 5F EA A5 60 F7 32 C8 [11:48:45]CheckFolder [11:48:45]dirname=/storage/ofd_packets [11:48:45]CheckFolder done [11:48:45]ProducePacketName [11:48:45]name=ofd_packets/00002434 [11:48:45]NVStorageSaveData ofd_packets/00002434 [11:48:45]File name is /storage/ofd_packets/00002434 [11:48:45]Write 326 bytes [11:48:45]NVStorageSaveData done [11:48:45]OFDSenderStorePacket done [11:48:45]KKMCreateOFDPacket done [11:48:45]NVStorageSaveData kkm_last_timestamp [11:48:45]File name is /storage/kkm_last_timestamp [11:48:45]Write 4 bytes [11:48:45]NVStorageSaveData done [11:48:45]ExternCall_PrintAddStr [11:48:45]wPrintStart [11:48:45]Write to MH i2c: 01 00 00 A1 1E BF [11:48:45]Write i2c OK [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: 01 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: 01 07 00 [11:48:45]MH_I2C_Read... [11:48:45]Read from MH i2c: 01 07 00 A1 1E 00 00 00 00 00 FF 0F D4 [11:48:45]RasterBufferAndPrint [11:48:45]line Счет N : (3)99841 [11:48:45]line ИÐÐ: 02508201610067 [11:48:45]line Контрольно-КаÑÑовый Чек [11:48:45]line ПРОДÐЖР[11:48:45]line Товар: 48742245 [11:48:45]line Сигареты Parliament Silver Blue [11:48:45]line 1.000 * 160.00 [11:48:45]line = 160.00 [11:48:45]line ÐДС 12% ÐСП 1% [11:48:45]line > о реализуемом товаре [11:48:45]line ИТОГО: 160.00 [11:48:45]line ÐСП 1% : 1.42 [11:48:45]line ÐДС 12% : 16.99 [11:48:45]line Ðаличными: 160.00 [11:48:45]line Безнал.: 0.00 [11:48:45]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:48:45]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:48:45]line СÐО: Общий режим [11:48:45]line Чек 59 18.10.2024 11:48 [11:48:45]line Смена: 22 ФФД: 1.0 [11:48:45]line ЗÐМ: 0300000191 [11:48:45]line РÐМ: 0000000000207295 [11:48:45]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:48:45]line ФМ: 0000000002342820 [11:48:45]line ФД: 2434 [11:48:45]line ФПД: 254288178776756 [11:48:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114847&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2434&fm=254288178776756&tin=02508201610067®Number=0000000000207295&sum=16000 [11:48:45]line 0 [11:48:45]OFD Sender: Processing packet 2434 [packets to send 1, broken 0] [11:48:45]ProducePacketName [11:48:45]name=ofd_packets/00002434 [11:48:45]OFD Sender: To server: ‡•öpG, [11:48:45]CommunicateWithHost lk.salyk.kg:30040 [11:48:45]ConnectInit lk.salyk.kg [11:48:45]written 0, free lines is 4095 [11:48:45]Connected sock=10 [11:48:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 26 81 20 01 B6 48 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 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 80 3E 00 00 00 00 13 04 06 00 80 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 A3 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 3B 00 00 00 F4 03 04 00 1F 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 82 09 00 00 35 04 06 00 E7 46 14 91 0A B4 51 5F EA A5 60 F7 32 C8 [11:48:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 25 6F 47 00 41 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 32 33 34 32 38 32 30 10 04 04 00 82 09 00 00 F4 03 04 00 83 F6 11 67 B6 04 01 00 00 66 54 60 13 21 6A 31 E8 [11:48:46]CommunicateWithHost err = 0 [11:48:46]CheckOFDResponse [11:48:46]1017 (14) - 77093643461234 [11:48:46]1041 (16) - 0000000002342820 [11:48:46]1040 (4) - 2434 [11:48:46]1012 (4) - 18.10.2024 05:47 [11:48:46]1206 (1) - 0 [11:48:46]OFD Sender: Remove packet 2434 [11:48:46]ProducePacketName [11:48:46]name=ofd_packets/00002434 [11:48:46]NVStorageDeleteData [11:48:46]Write to MH i2c: 01 00 00 CA 1E E8 [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 07 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: 01 07 00 CA 1E 00 00 00 00 00 AD 0C A8 [11:48:46]RasterBufferAndPrint [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]line [11:48:46]written 0, free lines is 3249 [11:48:46]MH_Cut [11:48:46]Write to MH i2c: D1 01 00 D1 1E 01 C1 [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 01 00 [11:48:46]MH_I2C_Read... [11:48:46]Read from MH i2c: D1 01 00 D1 1E 00 C0 [11:48:46]Write to MH i2c: 01 00 00 D2 1E F0 [11:48:46]Write i2c OK [11:48:46]MH_I2C_Read... [11:48:46]OFD Sender: No OFD packet to send [11:48:47]*** Cut start [11:48:47]*** Partial cut [11:48:47]*** CUTSNS_PIN = 1 [11:48:47]*** CUTSNS_PIN = 0 [11:48:47]*** Brake cut motor [11:48:47]Read from MH i2c: 01 [11:48:47]MH_I2C_Read... [11:48:47]*** Stop cut motor [11:48:47]*** Cut end [11:48:47]Read from MH i2c: 01 07 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: 01 07 00 D2 1E 00 00 00 00 00 FF 0F 05 [11:48:47]process_action close_receipt done [11:48:47]requested_data is exist [11:48:47]produce_requested_data [11:48:47]requested_item fm.sn is exist - process it [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 11 00 00 [11:48:47]Write to MH i2c: E2 08 00 D3 1E 80 11 00 00 00 00 00 00 6B [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 17 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 17 00 D3 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B3 [11:48:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:48:47]wFMCommunicate OK [11:48:47]requested_item fd.num is exist - process it [11:48:47]SAM_PROTO_GetFieldsCounters [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 13 00 00 [11:48:47]Write to MH i2c: E2 08 00 D4 1E 80 13 00 00 00 00 00 00 6E [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:47]Read from MH i2c: E2 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 62 00 [11:48:47]MH_I2C_Read... [11:48:47]Read from MH i2c: E2 62 00 D4 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 82 09 00 00 0E 04 04 00 16 00 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 D6 [11:48:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 82 09 00 00 0E 04 04 00 16 00 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:48:47]wFMCommunicate OK [11:48:47]SAM_PROTO_GetFieldsCounters done [11:48:47]requested_item shift.num is exist - process it [11:48:47]requested_item shift.opened is exist - process it [11:48:47]req_shift_opened [11:48:47]FM_GetShiftState [11:48:47]SAM_PROTO_GetShiftState [11:48:47]wFMCommunicate request_size=4 [11:48:47]MH_SAM_APDU [11:48:47]CAPDU: 80 13 01 00 [11:48:47]Write to MH i2c: E2 08 00 D5 1E 80 13 01 00 00 00 00 00 70 [11:48:47]Write i2c OK [11:48:47]MH_I2C_Read... [11:48:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:48]Read from MH i2c: E2 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0E 00 [11:48:48]MH_I2C_Read... [11:48:48]Read from MH i2c: E2 0E 00 D5 1E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 0E [11:48:48]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:48:48]wFMCommunicate OK [11:48:48]SAM_PROTO_GetShiftState done [11:48:48]FM_GetShiftState done [11:48:48]req_shift_opened done [11:48:48]requested_item shift.open_date is exist - process it [11:48:48]req_shift_open_date [11:48:48]req_shift_open_date done [11:48:48]produce_requested_data done [11:48:48]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2434,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:48:48]process_action_free close_receipt [11:48:48]json_value_free [11:48:48]json_value_free done [11:48:48]process_json_proto returns [11:48:48]Send response to host [11:48:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2434,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:48:48]free response buf [11:48:48]execute_script done [11:48:48]execute_script returns [11:48:48]free content buf [11:48:48]Sock 9.Close socket [11:48:48]Sock 9.Thread stoped [11:48:51]OFD Sender: No OFD packet to send [11:48:56]OFD Sender: No OFD packet to send [11:49:01]OFD Sender: No OFD packet to send [11:49:06]OFD Sender: No OFD packet to send [11:49:11]OFD Sender: No OFD packet to send [11:49:16]OFD Sender: No OFD packet to send [11:49:21]OFD Sender: No OFD packet to send [11:49:26]OFD Sender: No OFD packet to send [11:49:31]OFD Sender: No OFD packet to send [11:49:35]accept exits with 7 [11:49:35]New connection [11:49:35]New thread 3066707300 created [11:49:35]Thread 3066850660 joined [11:49:35]Waiting for new connection... [11:49:35] Sock 7.Parse request [11:49:35]Sock 7.Check first char [11:49:35]Sock 7.First char is OK [11:49:35]request: POST /json_proto HTTP/1.0 [11:49:35]Method: POST [11:49:35]URL: /json_proto [11:49:35]Method is POST - this is cgi request [11:49:35]url: /json_proto [11:49:35]query_string will be loaded in cgi processing [11:49:35]execute_cgi json_proto POST (null) [11:49:35]execute_cgi path=json_proto method=POST [11:49:35]POST find Content-Length [11:49:35]Host: 172.17.52.132:8080 [11:49:35]Content-Length: 769 [11:49:35]Content-Type: application/json [11:49:35] [11:49:35]POST finish read [11:49:35]Found Content-Length = 769 [11:49:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475351", "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" : 66.90, "quantity" : 27.510, "sum" : 1840.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1840.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:35]execute_script... [11:49: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)475351", "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" : 66.90, "quantity" : 27.510, "sum" : 1840.42, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1840.42 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:35]POST & json_proto [11:49:35]process_json_proto [11:49:35]json parsed OK: [11:49:35]protocol is kg_v1.0 [11:49:35]action value=close_receipt [11:49:35]process_action close_receipt [11:49:35]cmd_close_receipt [11:49:35]MH_GetDate [11:49:35]Write to MH i2c: F0 00 00 D6 1E E3 [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: F0 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: F0 09 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: F0 09 00 D6 1E 00 53 4B 12 67 5A BE F6 66 77 [11:49:35]GetLastDocTimeStamp 1729252127 [11:49:35]current date 1729252179 [11:49:35]FM_GetShiftState [11:49:35]SAM_PROTO_GetShiftState [11:49:35]wFMCommunicate request_size=4 [11:49:35]MH_SAM_APDU [11:49:35]CAPDU: 80 13 01 00 [11:49:35]Write to MH i2c: E2 08 00 D7 1E 80 13 01 00 00 00 00 00 72 [11:49:35]Write i2c OK [11:49:35]MH_I2C_Read... [11:49:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:35]Read from MH i2c: E2 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 0E 00 [11:49:35]MH_I2C_Read... [11:49:35]Read from MH i2c: E2 0E 00 D7 1E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 10 [11:49:35]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:49:35]wFMCommunicate OK [11:49:35]SAM_PROTO_GetShiftState done [11:49:35]FM_GetShiftState done [11:49:35]opened in 1729209717 [11:49:35]opened+sec_in_day 1729296117 [11:49:35]quantity*price = 184041 [11:49:35]sum+1 = 184043 [11:49:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1840.42 ÐСП 1% : 16.29 ÐДС 12% : 195.44 Ðаличными: 0.00 Безнал.: 1840.42 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 60 18.10.2024 11:49 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2435 ФПД: 37771748398654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114939&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2435&fm=37771748398654&tin=02508201610067®Number=0000000000207295&sum=184042 [11:49:36]StoreToDocumentArchive [11:49:36]shift 22 fd 2435 [11:49:36]save to /storage/0022/doc_00002435 [11:49:36]save last doc name /storage/0022/doc_00002435 to /storage/kkm_last_doc_name [11:49:36]save OK [11:49:36]Clear old archive folders... [11:49:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:49:36]tlvbuf is 013CE870 [11:49:36]SAM_PROTO_ClearQueue [11:49:36]wFMCommunicate request_size=4 [11:49:36]MH_SAM_APDU [11:49:36]CAPDU: 80 09 00 00 [11:49:36]Write to MH i2c: E2 08 00 E4 1E 80 09 00 00 00 00 00 00 74 [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:36]Read from MH i2c: E2 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 03 00 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 03 00 E4 1E 00 90 00 76 [11:49:36]RAPDU: 90 00 [11:49:36]wFMCommunicate OK [11:49:36]SAM_PROTO_ClearQueue done [11:49:36]KKMCreateOFDPacket [11:49:36]OFDProtocolAddRootSTLVToBuf [11:49:36]FM_MakeSignedData [11:49:36]FM_MakeSignedData [11:49:36]SAM_PROTO_SignData [11:49:36]wFMCommunicate request_size=4 [11:49:36]MH_SAM_APDU [11:49:36]CAPDU: 80 0D 01 02 [11:49:36]Write to MH i2c: E2 08 00 E5 1E 80 0D 01 02 00 00 00 00 7C [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:36]OFD Sender: No OFD packet to send [11:49:36]Read from MH i2c: E2 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 03 00 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 03 00 E5 1E 00 90 00 77 [11:49:36]RAPDU: 90 00 [11:49:36]wFMCommunicate OK [11:49:36]wFMCommunicate request_size=255 [11:49:36]MH_SAM_APDU [11:49: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 76 6B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA CE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 53 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 83 09 00 00 35 04 06 00 22 [11:49:36]Write to MH i2c: E2 02 01 E6 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 76 6B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA CE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 53 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 83 09 00 00 35 04 06 00 22 00 00 E4 [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:36]Read from MH i2c: E2 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 03 00 [11:49:36]MH_I2C_Read... [11:49:36]Read from MH i2c: E2 03 00 E6 1E 00 90 00 78 [11:49:36]RAPDU: 90 00 [11:49:36]wFMCommunicate OK [11:49:36]wFMCommunicate request_size=10 [11:49:36]MH_SAM_APDU [11:49:36]CAPDU: 80 0D 02 02 05 5A 6B A5 56 3E [11:49:36]Write to MH i2c: E2 0D 00 E7 1E 80 0D 02 02 05 00 5A 6B A5 56 3E 00 00 87 [11:49:36]Write i2c OK [11:49:36]MH_I2C_Read... [11:49:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:37]Read from MH i2c: E2 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: E2 03 00 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: E2 03 00 E7 1E 00 90 00 79 [11:49:37]RAPDU: 90 00 [11:49:37]wFMCommunicate OK [11:49:37]wFMCommunicate request_size=4 [11:49:37]MH_SAM_APDU [11:49:37]CAPDU: 80 0D 03 02 [11:49:37]Write to MH i2c: E2 08 00 E8 1E 80 0D 03 02 00 00 00 00 81 [11:49:37]Write i2c OK [11:49:37]MH_I2C_Read... [11:49:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:37]Read from MH i2c: E2 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: E2 0B 00 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: E2 0B 00 E8 1E 00 2F 89 5B F4 22 C3 BB 88 90 00 B1 [11:49:37]RAPDU: 2F 89 5B F4 22 C3 BB 88 90 00 [11:49:37]wFMCommunicate OK [11:49:37]SAM_PROTO_SignData done [11:49:37]FM_MakeSignedData done [11:49:37]CreateOFDProtocolMessage [11:49:37]wFMCommunicate request_size=4 [11:49:37]MH_SAM_APDU [11:49:37]CAPDU: 80 11 00 00 [11:49:37]Write to MH i2c: E2 08 00 E9 1E 80 11 00 00 00 00 00 00 81 [11:49:37]Write i2c OK [11:49:37]MH_I2C_Read... [11:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:37]Read from MH i2c: E2 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: E2 17 00 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: E2 17 00 E9 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C9 [11:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:49:37]wFMCommunicate OK [11:49:37]CreateOFDProtocolMessage done [11:49:37]OFDSenderStorePacket 2435 [11:49:37]StoreOFDPacket docnum=2435 [11:49:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 D9 47 07 01 3B 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 76 6B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA CE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 53 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 83 09 00 00 35 04 06 00 22 5A 6B A5 56 3E 2F 89 5B F4 22 C3 BB 88 [11:49:37]CheckFolder [11:49:37]dirname=/storage/ofd_packets [11:49:37]CheckFolder done [11:49:37]ProducePacketName [11:49:37]name=ofd_packets/00002435 [11:49:37]NVStorageSaveData ofd_packets/00002435 [11:49:37]File name is /storage/ofd_packets/00002435 [11:49:37]Write 301 bytes [11:49:37]NVStorageSaveData done [11:49:37]OFDSenderStorePacket done [11:49:37]KKMCreateOFDPacket done [11:49:37]NVStorageSaveData kkm_last_timestamp [11:49:37]File name is /storage/kkm_last_timestamp [11:49:37]Write 4 bytes [11:49:37]NVStorageSaveData done [11:49:37]ExternCall_PrintAddStr [11:49:37]wPrintStart [11:49:37]Write to MH i2c: 01 00 00 EA 1E 08 [11:49:37]Write i2c OK [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: 01 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: 01 07 00 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: 01 07 00 EA 1E 00 00 00 00 00 FF 0F 1D [11:49:37]RasterBufferAndPrint [11:49:37]line Счет N : (1)475351 [11:49:37]line ИÐÐ: 02508201610067 [11:49:37]line Контрольно-КаÑÑовый Чек [11:49:37]line ПРОДÐЖР[11:49:37]line ТРК (МРК, ГÐК) : 22 [11:49:37]line Товар: 2710124130 [11:49:37]line Ðи-92-К-5 [11:49:37]line 27.510 * 66.90 [11:49:37]line = 1840.42 [11:49:37]line ÐДС 12% ÐСП 1% [11:49:37]line > о реализуемом товаре [11:49:37]line ИТОГО: 1840.42 [11:49:37]line ÐСП 1% : 16.29 [11:49:37]line ÐДС 12% : 195.44 [11:49:37]line Ðаличными: 0.00 [11:49:37]line Безнал.: 1840.42 [11:49:37]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:49:37]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:49:37]line СÐО: Общий режим [11:49:37]line Чек 60 18.10.2024 11:49 [11:49:37]line Смена: 22 ФФД: 1.0 [11:49:37]line ЗÐМ: 0300000191 [11:49:37]line РÐМ: 0000000000207295 [11:49:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:49:37]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [11:49:37]line ФМ: 0000000002342820 [11:49:37]line ФД: 2435 [11:49:37]line ФПД: 37771748398654 [11:49:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T114939&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2435&fm=37771748398654&tin=02508201610067®Number=0000000000207295&sum=184042 [11:49:37]OFD Sender: Processing packet 2435 [packets to send 1, broken 0] [11:49:37]ProducePacketName [11:49:37]name=ofd_packets/00002435 [11:49:37]OFD Sender: To server: ‡•öpG, [11:49:37]CommunicateWithHost lk.salyk.kg:30040 [11:49:37]ConnectInit lk.salyk.kg [11:49:37]written 0, free lines is 4095 [11:49:37]Connected sock=10 [11:49:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 D9 47 07 01 3B 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 76 6B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EA CE 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA CE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 58 4C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA CE 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 53 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 83 09 00 00 35 04 06 00 22 5A 6B A5 56 3E 2F 89 5B F4 22 C3 BB 88 [11:49:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 3F 15 47 00 26 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 83 09 00 00 F4 03 04 00 B7 F6 11 67 B6 04 01 00 00 01 73 CA 61 3C 29 BD 28 [11:49:37]CommunicateWithHost err = 0 [11:49:37]CheckOFDResponse [11:49:37]1017 (14) - 77093643461234 [11:49:37]1041 (16) - 0000000002342820 [11:49:37]1040 (4) - 2435 [11:49:37]1012 (4) - 18.10.2024 05:48 [11:49:37]1206 (1) - 0 [11:49:37]OFD Sender: Remove packet 2435 [11:49:37]ProducePacketName [11:49:37]name=ofd_packets/00002435 [11:49:37]NVStorageDeleteData [11:49:37]Write to MH i2c: 01 00 00 13 1F 32 [11:49:37]Write i2c OK [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: 01 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: 01 07 00 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: 01 07 00 13 1F 00 00 00 00 00 C4 0C 09 [11:49:37]RasterBufferAndPrint [11:49:37]line [11:49:37]line [11:49:37]line [11:49:37]line [11:49:37]line [11:49:37]written 0, free lines is 3272 [11:49:37]MH_Cut [11:49:37]Write to MH i2c: D1 01 00 1A 1F 01 0B [11:49:37]Write i2c OK [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: D1 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: D1 01 00 [11:49:37]MH_I2C_Read... [11:49:37]Read from MH i2c: D1 01 00 1A 1F 00 0A [11:49:37]Write to MH i2c: 01 00 00 1B 1F 3A [11:49:37]Write i2c OK [11:49:37]MH_I2C_Read... [11:49:38]OFD Sender: No OFD packet to send [11:49:38]*** Cut start [11:49:38]*** Partial cut [11:49:38]*** CUTSNS_PIN = 1 [11:49:38]*** CUTSNS_PIN = 0 [11:49:39]*** Brake cut motor [11:49:39]Read from MH i2c: 01 [11:49:39]MH_I2C_Read... [11:49:39]*** Stop cut motor [11:49:39]*** Cut end [11:49:39]Read from MH i2c: 01 07 00 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: 01 07 00 1B 1F 00 00 00 00 00 FF 0F 4F [11:49:39]process_action close_receipt done [11:49:39]requested_data is exist [11:49:39]produce_requested_data [11:49:39]requested_item fm.sn is exist - process it [11:49:39]wFMCommunicate request_size=4 [11:49:39]MH_SAM_APDU [11:49:39]CAPDU: 80 11 00 00 [11:49:39]Write to MH i2c: E2 08 00 1C 1F 80 11 00 00 00 00 00 00 B5 [11:49:39]Write i2c OK [11:49:39]MH_I2C_Read... [11:49:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:39]Read from MH i2c: E2 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 17 00 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 17 00 1C 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 FD [11:49:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:49:39]wFMCommunicate OK [11:49:39]requested_item fd.num is exist - process it [11:49:39]SAM_PROTO_GetFieldsCounters [11:49:39]wFMCommunicate request_size=4 [11:49:39]MH_SAM_APDU [11:49:39]CAPDU: 80 13 00 00 [11:49:39]Write to MH i2c: E2 08 00 1D 1F 80 13 00 00 00 00 00 00 B8 [11:49:39]Write i2c OK [11:49:39]MH_I2C_Read... [11:49:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:39]Read from MH i2c: E2 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 62 00 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 62 00 1D 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 83 09 00 00 0E 04 04 00 16 00 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 24 [11:49:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 83 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3C 00 00 00 5E 04 04 00 3C 00 00 00 57 04 04 00 3D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:39]wFMCommunicate OK [11:49:39]SAM_PROTO_GetFieldsCounters done [11:49:39]requested_item shift.num is exist - process it [11:49:39]requested_item shift.opened is exist - process it [11:49:39]req_shift_opened [11:49:39]FM_GetShiftState [11:49:39]SAM_PROTO_GetShiftState [11:49:39]wFMCommunicate request_size=4 [11:49:39]MH_SAM_APDU [11:49:39]CAPDU: 80 13 01 00 [11:49:39]Write to MH i2c: E2 08 00 1E 1F 80 13 01 00 00 00 00 00 BA [11:49:39]Write i2c OK [11:49:39]MH_I2C_Read... [11:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:39]Read from MH i2c: E2 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 0E 00 [11:49:39]MH_I2C_Read... [11:49:39]Read from MH i2c: E2 0E 00 1E 1F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 58 [11:49:39]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:49:39]wFMCommunicate OK [11:49:39]SAM_PROTO_GetShiftState done [11:49:39]FM_GetShiftState done [11:49:39]req_shift_opened done [11:49:39]requested_item shift.open_date is exist - process it [11:49:39]req_shift_open_date [11:49:39]req_shift_open_date done [11:49:39]produce_requested_data done [11:49:39]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2435,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:49:39]process_action_free close_receipt [11:49:39]json_value_free [11:49:39]json_value_free done [11:49:39]process_json_proto returns [11:49:39]Send response to host [11:49:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2435,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:49:39]free response buf [11:49:39]execute_script done [11:49:39]execute_script returns [11:49:39]free content buf [11:49:39]Sock 7.Close socket [11:49:39]Sock 7.Thread stoped [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:40]accept exits with 9 [11:51:40]New connection [11:51:40]New thread 3066850660 created [11:51:40]Thread 3066707300 joined [11:51:40]Waiting for new connection... [11:51:40] Sock 9.Parse request [11:51:40]Sock 9.Check first char [11:51:40]Sock 9.First char is OK [11:51:40]request: POST /json_proto HTTP/1.0 [11:51:40]Method: POST [11:51:40]URL: /json_proto [11:51:40]Method is POST - this is cgi request [11:51:40]url: /json_proto [11:51:40]query_string will be loaded in cgi processing [11:51:40]execute_cgi json_proto POST (null) [11:51:40]execute_cgi path=json_proto method=POST [11:51:40]POST find Content-Length [11:51:40]Host: 172.17.52.132:8080 [11:51:40]Content-Length: 632 [11:51:40]Content-Type: application/json [11:51:40] [11:51:40]POST finish read [11:51:40]Found Content-Length = 632 [11:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475352", "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" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:40]execute_script... [11:51:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475352", "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" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:51:40]POST & json_proto [11:51:40]process_json_proto [11:51:40]json parsed OK: [11:51:40]protocol is kg_v1.0 [11:51:40]action value=close_receipt [11:51:40]process_action close_receipt [11:51:40]cmd_close_receipt [11:51:40]MH_GetDate [11:51:40]Write to MH i2c: F0 00 00 1F 1F 2D [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: F0 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: F0 09 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: F0 09 00 1F 1F 00 D0 4B 12 67 5A BE F6 66 3E [11:51:40]GetLastDocTimeStamp 1729252179 [11:51:40]current date 1729252304 [11:51:40]FM_GetShiftState [11:51:40]SAM_PROTO_GetShiftState [11:51:40]wFMCommunicate request_size=4 [11:51:40]MH_SAM_APDU [11:51:40]CAPDU: 80 13 01 00 [11:51:40]Write to MH i2c: E2 08 00 20 1F 80 13 01 00 00 00 00 00 BC [11:51:40]Write i2c OK [11:51:40]MH_I2C_Read... [11:51:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:40]Read from MH i2c: E2 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 0E 00 [11:51:40]MH_I2C_Read... [11:51:40]Read from MH i2c: E2 0E 00 20 1F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5A [11:51:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:51:40]wFMCommunicate OK [11:51:40]SAM_PROTO_GetShiftState done [11:51:40]FM_GetShiftState done [11:51:40]opened in 1729209717 [11:51:40]opened+sec_in_day 1729296117 [11:51:40]quantity*price = 50000 [11:51:40]sum+1 = 50001 [11:51:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 ÐСП 1% : 4.42 ÐДС 12% : 53.10 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 61 18.10.2024 11:51 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2436 ФПД: 14641443172740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T115144&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2436&fm=14641443172740&tin=02508201610067®Number=0000000000207295&sum=50000 [11:51:41]StoreToDocumentArchive [11:51:41]shift 22 fd 2436 [11:51:41]save to /storage/0022/doc_00002436 [11:51:41]save last doc name /storage/0022/doc_00002436 to /storage/kkm_last_doc_name [11:51:41]save OK [11:51:41]Clear old archive folders... [11:51:41]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:51:41]tlvbuf is 014038D0 [11:51:41]SAM_PROTO_ClearQueue [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 09 00 00 [11:51:41]Write to MH i2c: E2 08 00 2D 1F 80 09 00 00 00 00 00 00 BE [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:51:41]Read from MH i2c: E2 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 [11:51:41]MH_I2C_Read... [11:51:41]Read from MH i2c: E2 03 00 2D 1F 00 90 00 C0 [11:51:41]RAPDU: 90 00 [11:51:41]wFMCommunicate OK [11:51:41]SAM_PROTO_ClearQueue done [11:51:41]KKMCreateOFDPacket [11:51:41]OFDProtocolAddRootSTLVToBuf [11:51:41]FM_MakeSignedData [11:51:41]FM_MakeSignedData [11:51:41]SAM_PROTO_SignData [11:51:41]wFMCommunicate request_size=4 [11:51:41]MH_SAM_APDU [11:51:41]CAPDU: 80 0D 01 02 [11:51:41]Write to MH i2c: E2 08 00 2E 1F 80 0D 01 02 00 00 00 00 C6 [11:51:41]Write i2c OK [11:51:41]MH_I2C_Read... [11:51:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:51:42]Read from MH i2c: E2 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 03 00 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 03 00 2E 1F 00 90 00 C1 [11:51:42]RAPDU: 90 00 [11:51:42]wFMCommunicate OK [11:51:42]wFMCommunicate request_size=255 [11:51:42]MH_SAM_APDU [11:51: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 D0 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 84 09 00 00 35 04 06 00 [11:51:42]Write to MH i2c: E2 02 01 2F 1F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 D0 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 84 09 00 00 35 04 06 00 00 00 25 [11:51:42]Write i2c OK [11:51:42]MH_I2C_Read... [11:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:42]Read from MH i2c: E2 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 03 00 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 03 00 2F 1F 00 90 00 C2 [11:51:42]RAPDU: 90 00 [11:51:42]wFMCommunicate OK [11:51:42]wFMCommunicate request_size=11 [11:51:42]MH_SAM_APDU [11:51:42]CAPDU: 80 0D 02 02 06 0D 50 FA 04 F1 84 [11:51:42]Write to MH i2c: E2 0E 00 30 1F 80 0D 02 02 06 00 0D 50 FA 04 F1 84 00 00 A5 [11:51:42]Write i2c OK [11:51:42]MH_I2C_Read... [11:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:51:42]Read from MH i2c: E2 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 03 00 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 03 00 30 1F 00 90 00 C3 [11:51:42]RAPDU: 90 00 [11:51:42]wFMCommunicate OK [11:51:42]wFMCommunicate request_size=4 [11:51:42]MH_SAM_APDU [11:51:42]CAPDU: 80 0D 03 02 [11:51:42]Write to MH i2c: E2 08 00 31 1F 80 0D 03 02 00 00 00 00 CB [11:51:42]Write i2c OK [11:51:42]MH_I2C_Read... [11:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:51:42]Read from MH i2c: E2 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 0B 00 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 0B 00 31 1F 00 0B 6A BD EF F6 6A 07 5B 90 00 AF [11:51:42]RAPDU: 0B 6A BD EF F6 6A 07 5B 90 00 [11:51:42]wFMCommunicate OK [11:51:42]SAM_PROTO_SignData done [11:51:42]FM_MakeSignedData done [11:51:42]CreateOFDProtocolMessage [11:51:42]wFMCommunicate request_size=4 [11:51:42]MH_SAM_APDU [11:51:42]CAPDU: 80 11 00 00 [11:51:42]Write to MH i2c: E2 08 00 32 1F 80 11 00 00 00 00 00 00 CB [11:51:42]Write i2c OK [11:51:42]MH_I2C_Read... [11:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:42]Read from MH i2c: E2 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 17 00 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: E2 17 00 32 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 13 [11:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:51:42]wFMCommunicate OK [11:51:42]CreateOFDProtocolMessage done [11:51:42]OFDSenderStorePacket 2436 [11:51:42]StoreOFDPacket docnum=2436 [11:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 3D 94 08 01 AE 6A 5A 03 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 D0 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 84 09 00 00 35 04 06 00 0D 50 FA 04 F1 84 0B 6A BD EF F6 6A 07 5B [11:51:42]CheckFolder [11:51:42]dirname=/storage/ofd_packets [11:51:42]CheckFolder done [11:51:42]ProducePacketName [11:51:42]name=ofd_packets/00002436 [11:51:42]NVStorageSaveData ofd_packets/00002436 [11:51:42]File name is /storage/ofd_packets/00002436 [11:51:42]Write 302 bytes [11:51:42]NVStorageSaveData done [11:51:42]OFDSenderStorePacket done [11:51:42]KKMCreateOFDPacket done [11:51:42]NVStorageSaveData kkm_last_timestamp [11:51:42]File name is /storage/kkm_last_timestamp [11:51:42]Write 4 bytes [11:51:42]NVStorageSaveData done [11:51:42]ExternCall_PrintAddStr [11:51:42]wPrintStart [11:51:42]Write to MH i2c: 01 00 00 33 1F 52 [11:51:42]Write i2c OK [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: 01 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: 01 07 00 [11:51:42]MH_I2C_Read... [11:51:42]Read from MH i2c: 01 07 00 33 1F 00 00 00 00 00 FF 0F 67 [11:51:42]RasterBufferAndPrint [11:51:42]line Счет N : (1)475352 [11:51:42]line ИÐÐ: 02508201610067 [11:51:42]line Контрольно-КаÑÑовый Чек [11:51:42]line ПРОДÐЖР[11:51:42]line ТРК (МРК, ГÐК) : 13 [11:51:42]line Товар: 2710124130 [11:51:42]line SUPER-92-К-5 [11:51:42]line 7.310 * 68.40 [11:51:42]line = 500.00 [11:51:42]line ÐДС 12% ÐСП 1% [11:51:42]line > о реализуемом товаре [11:51:42]line ИТОГО: 500.00 [11:51:42]line ÐСП 1% : 4.42 [11:51:42]line ÐДС 12% : 53.10 [11:51:42]line Ðаличными: 500.00 [11:51:42]line Безнал.: 0.00 [11:51:42]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:51:42]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:51:42]line СÐО: Общий режим [11:51:42]line Чек 61 18.10.2024 11:51 [11:51:42]line Смена: 22 ФФД: 1.0 [11:51:42]line ЗÐМ: 0300000191 [11:51:42]line РÐМ: 0000000000207295 [11:51:42]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:51:42]line ФМ: 0000000002342820 [11:51:42]line ФД: 2436 [11:51:42]line ФПД: 14641443172740 [11:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T115144&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2436&fm=14641443172740&tin=02508201610067®Number=0000000000207295&sum=50000 [11:51:42]OFD Sender: Processing packet 2436 [packets to send 1, broken 0] [11:51:42]ProducePacketName [11:51:42]name=ofd_packets/00002436 [11:51:42]OFD Sender: To server: ‡•öpG, [11:51:42]CommunicateWithHost lk.salyk.kg:30040 [11:51:42]ConnectInit lk.salyk.kg [11:51:42]written 0, free lines is 4095 [11:51:42]Connected sock=10 [11:51:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 3D 94 08 01 AE 6A 5A 03 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 3D 00 00 00 F4 03 04 00 D0 4B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 84 09 00 00 35 04 06 00 0D 50 FA 04 F1 84 0B 6A BD EF F6 6A 07 5B [11:51:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 04 93 47 00 29 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 32 33 34 32 38 32 30 10 04 04 00 84 09 00 00 F4 03 04 00 34 F7 11 67 B6 04 01 00 00 A2 46 58 25 4B C8 83 1C [11:51:43]CommunicateWithHost err = 0 [11:51:43]CheckOFDResponse [11:51:43]1017 (14) - 77093643461234 [11:51:43]1041 (16) - 0000000002342820 [11:51:43]1040 (4) - 2436 [11:51:43]1012 (4) - 18.10.2024 05:50 [11:51:43]1206 (1) - 0 [11:51:43]OFD Sender: Remove packet 2436 [11:51:43]ProducePacketName [11:51:43]name=ofd_packets/00002436 [11:51:43]NVStorageDeleteData [11:51:43]Write to MH i2c: 01 00 00 5B 1F 7A [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: 01 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: 01 07 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: 01 07 00 5B 1F 00 00 00 00 00 CE 0C 5B [11:51:43]RasterBufferAndPrint [11:51:43]line [11:51:43]line [11:51:43]line [11:51:43]line [11:51:43]line [11:51:43]written 0, free lines is 3281 [11:51:43]MH_Cut [11:51:43]Write to MH i2c: D1 01 00 62 1F 01 53 [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: D1 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: D1 01 00 [11:51:43]MH_I2C_Read... [11:51:43]Read from MH i2c: D1 01 00 62 1F 00 52 [11:51:43]Write to MH i2c: 01 00 00 63 1F 82 [11:51:43]Write i2c OK [11:51:43]MH_I2C_Read... [11:51:43]OFD Sender: No OFD packet to send [11:51:44]*** Cut start [11:51:44]*** Partial cut [11:51:44]*** CUTSNS_PIN = 1 [11:51:44]*** CUTSNS_PIN = 0 [11:51:44]*** Brake cut motor [11:51:44]Read from MH i2c: 01 [11:51:44]MH_I2C_Read... [11:51:44]*** Stop cut motor [11:51:44]*** Cut end [11:51:44]Read from MH i2c: 01 07 00 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: 01 07 00 63 1F 00 00 00 00 00 FF 0F 97 [11:51:44]process_action close_receipt done [11:51:44]requested_data is exist [11:51:44]produce_requested_data [11:51:44]requested_item fm.sn is exist - process it [11:51:44]wFMCommunicate request_size=4 [11:51:44]MH_SAM_APDU [11:51:44]CAPDU: 80 11 00 00 [11:51:44]Write to MH i2c: E2 08 00 64 1F 80 11 00 00 00 00 00 00 FD [11:51:44]Write i2c OK [11:51:44]MH_I2C_Read... [11:51:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:51:44]Read from MH i2c: E2 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 17 00 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 17 00 64 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 45 [11:51:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:51:44]wFMCommunicate OK [11:51:44]requested_item fd.num is exist - process it [11:51:44]SAM_PROTO_GetFieldsCounters [11:51:44]wFMCommunicate request_size=4 [11:51:44]MH_SAM_APDU [11:51:44]CAPDU: 80 13 00 00 [11:51:44]Write to MH i2c: E2 08 00 65 1F 80 13 00 00 00 00 00 00 00 [11:51:44]Write i2c OK [11:51:44]MH_I2C_Read... [11:51:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:51:44]Read from MH i2c: E2 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 62 00 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 62 00 65 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 84 09 00 00 0E 04 04 00 16 00 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 70 [11:51:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 84 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:51:44]wFMCommunicate OK [11:51:44]SAM_PROTO_GetFieldsCounters done [11:51:44]requested_item shift.num is exist - process it [11:51:44]requested_item shift.opened is exist - process it [11:51:44]req_shift_opened [11:51:44]FM_GetShiftState [11:51:44]SAM_PROTO_GetShiftState [11:51:44]wFMCommunicate request_size=4 [11:51:44]MH_SAM_APDU [11:51:44]CAPDU: 80 13 01 00 [11:51:44]Write to MH i2c: E2 08 00 66 1F 80 13 01 00 00 00 00 00 02 [11:51:44]Write i2c OK [11:51:44]MH_I2C_Read... [11:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:51:44]Read from MH i2c: E2 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 0E 00 [11:51:44]MH_I2C_Read... [11:51:44]Read from MH i2c: E2 0E 00 66 1F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A0 [11:51:44]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:51:44]wFMCommunicate OK [11:51:44]SAM_PROTO_GetShiftState done [11:51:44]FM_GetShiftState done [11:51:44]req_shift_opened done [11:51:44]requested_item shift.open_date is exist - process it [11:51:44]req_shift_open_date [11:51:44]req_shift_open_date done [11:51:44]produce_requested_data done [11:51:44]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2436,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:51:44]process_action_free close_receipt [11:51:44]json_value_free [11:51:44]json_value_free done [11:51:44]process_json_proto returns [11:51:44]Send response to host [11:51:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2436,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:51:44]free response buf [11:51:44]execute_script done [11:51:44]execute_script returns [11:51:44]free content buf [11:51:44]Sock 9.Close socket [11:51:44]Sock 9.Thread stoped [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]OFD Sender: No OFD packet to send [11:53:23]OFD Sender: No OFD packet to send [11:53:23]accept exits with 7 [11:53:23]New connection [11:53:23]New thread 3066707300 created [11:53:23]Thread 3066850660 joined [11:53:23]Waiting for new connection... [11:53:23] Sock 7.Parse request [11:53:23]Sock 7.Check first char [11:53:23]Sock 7.First char is OK [11:53:23]request: POST /json_proto HTTP/1.0 [11:53:23]Method: POST [11:53:23]URL: /json_proto [11:53:23]Method is POST - this is cgi request [11:53:23]url: /json_proto [11:53:23]query_string will be loaded in cgi processing [11:53:23]execute_cgi json_proto POST (null) [11:53:23]execute_cgi path=json_proto method=POST [11:53:23]POST find Content-Length [11:53:23]Host: 172.17.52.132:8080 [11:53:23]Content-Length: 613 [11:53:23]Content-Type: application/json [11:53:23] [11:53:23]POST finish read [11:53:23]Found Content-Length = 613 [11:53:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99842", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:23]execute_script... [11:53:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99842", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:23]POST & json_proto [11:53:23]process_json_proto [11:53:23]json parsed OK: [11:53:23]protocol is kg_v1.0 [11:53:23]action value=close_receipt [11:53:23]process_action close_receipt [11:53:23]cmd_close_receipt [11:53:23]MH_GetDate [11:53:23]Write to MH i2c: F0 00 00 67 1F 75 [11:53:23]Write i2c OK [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: F0 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: F0 09 00 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: F0 09 00 67 1F 00 37 4C 12 67 5A BE F6 66 EE [11:53:23]GetLastDocTimeStamp 1729252304 [11:53:23]current date 1729252407 [11:53:23]FM_GetShiftState [11:53:23]SAM_PROTO_GetShiftState [11:53:23]wFMCommunicate request_size=4 [11:53:23]MH_SAM_APDU [11:53:23]CAPDU: 80 13 01 00 [11:53:23]Write to MH i2c: E2 08 00 68 1F 80 13 01 00 00 00 00 00 04 [11:53:23]Write i2c OK [11:53:23]MH_I2C_Read... [11:53:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:23]Read from MH i2c: E2 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 0E 00 [11:53:23]MH_I2C_Read... [11:53:23]Read from MH i2c: E2 0E 00 68 1F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A2 [11:53:23]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:53:23]wFMCommunicate OK [11:53:23]SAM_PROTO_GetShiftState done [11:53:23]FM_GetShiftState done [11:53:23]opened in 1729209717 [11:53:23]opened+sec_in_day 1729296117 [11:53:23]quantity*price = 11900 [11:53:23]sum+1 = 11901 [11:53:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 119.00 ÐСП 1% : 1.05 ÐДС 12% : 12.64 Ðаличными: 119.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 62 18.10.2024 11:53 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2437 ФПД: 109534589736977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T115327&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2437&fm=109534589736977&tin=02508201610067®Number=0000000000207295&sum=11900 0 [11:53:24]StoreToDocumentArchive [11:53:24]shift 22 fd 2437 [11:53:24]save to /storage/0022/doc_00002437 [11:53:24]save last doc name /storage/0022/doc_00002437 to /storage/kkm_last_doc_name [11:53:24]save OK [11:53:24]Clear old archive folders... [11:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=266 [11:53:24]tlvbuf is 013E49C0 [11:53:24]SAM_PROTO_ClearQueue [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 09 00 00 [11:53:24]Write to MH i2c: E2 08 00 75 1F 80 09 00 00 00 00 00 00 06 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 75 1F 00 90 00 08 [11:53:24]RAPDU: 90 00 [11:53:24]wFMCommunicate OK [11:53:24]SAM_PROTO_ClearQueue done [11:53:24]KKMCreateOFDPacket [11:53:24]OFDProtocolAddRootSTLVToBuf [11:53:24]FM_MakeSignedData [11:53:24]FM_MakeSignedData [11:53:24]SAM_PROTO_SignData [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 0D 01 02 [11:53:24]Write to MH i2c: E2 08 00 76 1F 80 0D 01 02 00 00 00 00 0E [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 76 1F 00 90 00 09 [11:53:24]RAPDU: 90 00 [11:53:24]wFMCommunicate OK [11:53:24]wFMCommunicate request_size=255 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 37 4C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 [11:53:24]Write to MH i2c: E2 02 01 77 1F 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 37 4C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 00 00 58 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:25]Read from MH i2c: E2 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: E2 03 00 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: E2 03 00 77 1F 00 90 00 0A [11:53:25]RAPDU: 90 00 [11:53:25]wFMCommunicate OK [11:53:25]wFMCommunicate request_size=25 [11:53:25]MH_SAM_APDU [11:53:25]CAPDU: 80 0D 02 02 14 32 30 10 04 04 00 85 09 00 00 35 04 06 00 63 9F 02 4F D8 11 [11:53:25]Write to MH i2c: E2 1C 00 78 1F 80 0D 02 02 14 00 32 30 10 04 04 00 85 09 00 00 35 04 06 00 63 9F 02 4F D8 11 00 00 BC [11:53:25]Write i2c OK [11:53:25]MH_I2C_Read... [11:53:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:25]Read from MH i2c: E2 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: E2 03 00 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: E2 03 00 78 1F 00 90 00 0B [11:53:25]RAPDU: 90 00 [11:53:25]wFMCommunicate OK [11:53:25]wFMCommunicate request_size=4 [11:53:25]MH_SAM_APDU [11:53:25]CAPDU: 80 0D 03 02 [11:53:25]Write to MH i2c: E2 08 00 79 1F 80 0D 03 02 00 00 00 00 13 [11:53:25]Write i2c OK [11:53:25]MH_I2C_Read... [11:53:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:25]Read from MH i2c: E2 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: E2 0B 00 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: E2 0B 00 79 1F 00 D3 D3 2C D8 1B C0 19 E9 90 00 9B [11:53:25]RAPDU: D3 D3 2C D8 1B C0 19 E9 90 00 [11:53:25]wFMCommunicate OK [11:53:25]SAM_PROTO_SignData done [11:53:25]FM_MakeSignedData done [11:53:25]CreateOFDProtocolMessage [11:53:25]wFMCommunicate request_size=4 [11:53:25]MH_SAM_APDU [11:53:25]CAPDU: 80 11 00 00 [11:53:25]Write to MH i2c: E2 08 00 7A 1F 80 11 00 00 00 00 00 00 13 [11:53:25]Write i2c OK [11:53:25]MH_I2C_Read... [11:53:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:25]Read from MH i2c: E2 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: E2 17 00 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: E2 17 00 7A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 5B [11:53:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:53:25]wFMCommunicate OK [11:53:25]CreateOFDProtocolMessage done [11:53:25]OFDSenderStorePacket 2437 [11:53:25]StoreOFDPacket docnum=2437 [11:53:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 1E 01 00 00 4C 60 16 01 AB 90 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 37 4C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 85 09 00 00 35 04 06 00 63 9F 02 4F D8 11 D3 D3 2C D8 1B C0 19 E9 [11:53:25]CheckFolder [11:53:25]dirname=/storage/ofd_packets [11:53:25]CheckFolder done [11:53:25]ProducePacketName [11:53:25]name=ofd_packets/00002437 [11:53:25]NVStorageSaveData ofd_packets/00002437 [11:53:25]File name is /storage/ofd_packets/00002437 [11:53:25]Write 316 bytes [11:53:25]NVStorageSaveData done [11:53:25]OFDSenderStorePacket done [11:53:25]KKMCreateOFDPacket done [11:53:25]NVStorageSaveData kkm_last_timestamp [11:53:25]File name is /storage/kkm_last_timestamp [11:53:25]Write 4 bytes [11:53:25]NVStorageSaveData done [11:53:25]ExternCall_PrintAddStr [11:53:25]wPrintStart [11:53:25]Write to MH i2c: 01 00 00 7B 1F 9A [11:53:25]Write i2c OK [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: 01 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: 01 07 00 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: 01 07 00 7B 1F 00 00 00 00 00 FF 0F AF [11:53:25]RasterBufferAndPrint [11:53:25]line Счет N : (3)99842 [11:53:25]line ИÐÐ: 02508201610067 [11:53:25]line Контрольно-КаÑÑовый Чек [11:53:25]line ПРОДÐЖР[11:53:25]line Товар: 4870001570071 [11:53:25]line Ðапиток Pepsi 1л [11:53:25]line 1.000 * 119.00 [11:53:25]line = 119.00 [11:53:25]line ÐДС 12% ÐСП 1% [11:53:25]line > о реализуемом товаре [11:53:25]line ИТОГО: 119.00 [11:53:25]line ÐСП 1% : 1.05 [11:53:25]line ÐДС 12% : 12.64 [11:53:25]line Ðаличными: 119.00 [11:53:25]line Безнал.: 0.00 [11:53:25]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:53:25]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:53:25]line СÐО: Общий режим [11:53:25]line Чек 62 18.10.2024 11:53 [11:53:25]line Смена: 22 ФФД: 1.0 [11:53:25]line ЗÐМ: 0300000191 [11:53:25]line РÐМ: 0000000000207295 [11:53:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:53:25]line ФМ: 0000000002342820 [11:53:25]line ФД: 2437 [11:53:25]line ФПД: 109534589736977 [11:53:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T115327&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2437&fm=109534589736977&tin=02508201610067®Number=0000000000207295&sum=11900 [11:53:25]line 0 [11:53:25]OFD Sender: Processing packet 2437 [packets to send 1, broken 0] [11:53:25]ProducePacketName [11:53:25]name=ofd_packets/00002437 [11:53:25]OFD Sender: To server: ‡•öpG, [11:53:25]CommunicateWithHost lk.salyk.kg:30040 [11:53:25]ConnectInit lk.salyk.kg [11:53:25]written 0, free lines is 4095 [11:53:25]Connected sock=10 [11:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 1E 01 00 00 4C 60 16 01 AB 90 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 37 4C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 85 09 00 00 35 04 06 00 63 9F 02 4F D8 11 D3 D3 2C D8 1B C0 19 E9 [11:53:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 39 57 47 00 3C 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 85 09 00 00 F4 03 04 00 9B F7 11 67 B6 04 01 00 00 00 31 B0 54 81 26 35 92 [11:53:26]CommunicateWithHost err = 0 [11:53:26]CheckOFDResponse [11:53:26]1017 (14) - 77093643461234 [11:53:26]1041 (16) - 0000000002342820 [11:53:26]1040 (4) - 2437 [11:53:26]1012 (4) - 18.10.2024 05:52 [11:53:26]1206 (1) - 0 [11:53:26]OFD Sender: Remove packet 2437 [11:53:26]ProducePacketName [11:53:26]name=ofd_packets/00002437 [11:53:26]NVStorageDeleteData [11:53:26]Write to MH i2c: 01 00 00 A3 1F C2 [11:53:26]Write i2c OK [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: 01 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: 01 07 00 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: 01 07 00 A3 1F 00 00 00 00 00 BE 0C 93 [11:53:26]RasterBufferAndPrint [11:53:26]line [11:53:26]line [11:53:26]line [11:53:26]line [11:53:26]line [11:53:26]written 0, free lines is 3269 [11:53:26]MH_Cut [11:53:26]Write to MH i2c: D1 01 00 AA 1F 01 9B [11:53:26]Write i2c OK [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: D1 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: D1 01 00 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: D1 01 00 AA 1F 00 9A [11:53:26]Write to MH i2c: 01 00 00 AB 1F CA [11:53:26]Write i2c OK [11:53:26]MH_I2C_Read... [11:53:26]OFD Sender: No OFD packet to send [11:53:27]*** Cut start [11:53:27]*** Partial cut [11:53:27]*** CUTSNS_PIN = 1 [11:53:27]*** CUTSNS_PIN = 0 [11:53:27]*** Brake cut motor [11:53:27]Read from MH i2c: 01 [11:53:27]MH_I2C_Read... [11:53:27]*** Stop cut motor [11:53:27]*** Cut end [11:53:27]Read from MH i2c: 01 07 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: 01 07 00 AB 1F 00 00 00 00 00 FF 0F DF [11:53:27]process_action close_receipt done [11:53:27]requested_data is exist [11:53:27]produce_requested_data [11:53:27]requested_item fm.sn is exist - process it [11:53:27]wFMCommunicate request_size=4 [11:53:27]MH_SAM_APDU [11:53:27]CAPDU: 80 11 00 00 [11:53:27]Write to MH i2c: E2 08 00 AC 1F 80 11 00 00 00 00 00 00 45 [11:53:27]Write i2c OK [11:53:27]MH_I2C_Read... [11:53:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:27]Read from MH i2c: E2 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 17 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 17 00 AC 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 8D [11:53:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:53:27]wFMCommunicate OK [11:53:27]requested_item fd.num is exist - process it [11:53:27]SAM_PROTO_GetFieldsCounters [11:53:27]wFMCommunicate request_size=4 [11:53:27]MH_SAM_APDU [11:53:27]CAPDU: 80 13 00 00 [11:53:27]Write to MH i2c: E2 08 00 AD 1F 80 13 00 00 00 00 00 00 48 [11:53:27]Write i2c OK [11:53:27]MH_I2C_Read... [11:53:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:27]Read from MH i2c: E2 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 62 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 62 00 AD 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 85 09 00 00 0E 04 04 00 16 00 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 BC [11:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 85 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:27]wFMCommunicate OK [11:53:27]SAM_PROTO_GetFieldsCounters done [11:53:27]requested_item shift.num is exist - process it [11:53:27]requested_item shift.opened is exist - process it [11:53:27]req_shift_opened [11:53:27]FM_GetShiftState [11:53:27]SAM_PROTO_GetShiftState [11:53:27]wFMCommunicate request_size=4 [11:53:27]MH_SAM_APDU [11:53:27]CAPDU: 80 13 01 00 [11:53:27]Write to MH i2c: E2 08 00 AE 1F 80 13 01 00 00 00 00 00 4A [11:53:27]Write i2c OK [11:53:27]MH_I2C_Read... [11:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:27]Read from MH i2c: E2 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 0E 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 0E 00 AE 1F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E8 [11:53:27]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:53:27]wFMCommunicate OK [11:53:27]SAM_PROTO_GetShiftState done [11:53:27]FM_GetShiftState done [11:53:27]req_shift_opened done [11:53:27]requested_item shift.open_date is exist - process it [11:53:27]req_shift_open_date [11:53:27]req_shift_open_date done [11:53:27]produce_requested_data done [11:53:27]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2437,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:53:27]process_action_free close_receipt [11:53:27]json_value_free [11:53:27]json_value_free done [11:53:27]process_json_proto returns [11:53:27]Send response to host [11:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2437,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:53:27]free response buf [11:53:27]execute_script done [11:53:27]execute_script returns [11:53:27]free content buf [11:53:27]Sock 7.Close socket [11:53:27]Sock 7.Thread stoped [11:53:31]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:09]accept exits with 9 [11:59:09]New connection [11:59:09]New thread 3066850660 created [11:59:09]Thread 3066707300 joined [11:59:09]Waiting for new connection... [11:59:09] Sock 9.Parse request [11:59:09]Sock 9.Check first char [11:59:09]Sock 9.First char is OK [11:59:09]request: POST /json_proto HTTP/1.0 [11:59:09]Method: POST [11:59:09]URL: /json_proto [11:59:09]Method is POST - this is cgi request [11:59:09]url: /json_proto [11:59:09]query_string will be loaded in cgi processing [11:59:09]execute_cgi json_proto POST (null) [11:59:09]execute_cgi path=json_proto method=POST [11:59:09]POST find Content-Length [11:59:09]Host: 172.17.52.132:8080 [11:59:09]Content-Length: 625 [11:59:09]Content-Type: application/json [11:59:09] [11:59:09]POST finish read [11:59:09]Found Content-Length = 625 [11:59:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99843", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:09]execute_script... [11:59: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 : (3)99843", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:59:09]POST & json_proto [11:59:09]process_json_proto [11:59:09]json parsed OK: [11:59:09]protocol is kg_v1.0 [11:59:09]action value=close_receipt [11:59:09]process_action close_receipt [11:59:09]cmd_close_receipt [11:59:09]MH_GetDate [11:59:09]Write to MH i2c: F0 00 00 AF 1F BD [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: F0 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: F0 09 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: F0 09 00 AF 1F 00 91 4D 12 67 5A BE F6 66 91 [11:59:09]GetLastDocTimeStamp 1729252407 [11:59:09]current date 1729252753 [11:59:09]FM_GetShiftState [11:59:09]SAM_PROTO_GetShiftState [11:59:09]wFMCommunicate request_size=4 [11:59:09]MH_SAM_APDU [11:59:09]CAPDU: 80 13 01 00 [11:59:09]Write to MH i2c: E2 08 00 B0 1F 80 13 01 00 00 00 00 00 4C [11:59:09]Write i2c OK [11:59:09]MH_I2C_Read... [11:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:09]Read from MH i2c: E2 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 0E 00 [11:59:09]MH_I2C_Read... [11:59:09]Read from MH i2c: E2 0E 00 B0 1F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 EA [11:59:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:59:09]wFMCommunicate OK [11:59:09]SAM_PROTO_GetShiftState done [11:59:09]FM_GetShiftState done [11:59:09]opened in 1729209717 [11:59:09]opened+sec_in_day 1729296117 [11:59:09]quantity*price = 23000 [11:59:09]sum+1 = 23001 [11:59:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 ÐСП 1% : 2.03 ÐДС 12% : 24.42 Ðаличными: 230.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 63 18.10.2024 11:59 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2438 ФПД: 159898370567623 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T115913&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2438&fm=159898370567623&tin=02508201610067®Number=0000000000207295&sum=23000 0 [11:59:10]StoreToDocumentArchive [11:59:10]shift 22 fd 2438 [11:59:10]save to /storage/0022/doc_00002438 [11:59:10]save last doc name /storage/0022/doc_00002438 to /storage/kkm_last_doc_name [11:59:10]save OK [11:59:10]Clear old archive folders... [11:59:10]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:59:10]tlvbuf is 013A60F0 [11:59:10]SAM_PROTO_ClearQueue [11:59:10]wFMCommunicate request_size=4 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 09 00 00 [11:59:10]Write to MH i2c: E2 08 00 BD 1F 80 09 00 00 00 00 00 00 4E [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:10]Read from MH i2c: E2 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 BD 1F 00 90 00 50 [11:59:10]RAPDU: 90 00 [11:59:10]wFMCommunicate OK [11:59:10]SAM_PROTO_ClearQueue done [11:59:10]KKMCreateOFDPacket [11:59:10]OFDProtocolAddRootSTLVToBuf [11:59:10]FM_MakeSignedData [11:59:10]FM_MakeSignedData [11:59:10]SAM_PROTO_SignData [11:59:10]wFMCommunicate request_size=4 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 0D 01 02 [11:59:10]Write to MH i2c: E2 08 00 BE 1F 80 0D 01 02 00 00 00 00 56 [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:10]Read from MH i2c: E2 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 [11:59:10]MH_I2C_Read... [11:59:10]Read from MH i2c: E2 03 00 BE 1F 00 90 00 51 [11:59:10]RAPDU: 90 00 [11:59:10]wFMCommunicate OK [11:59:10]wFMCommunicate request_size=255 [11:59:10]MH_SAM_APDU [11:59:10]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 91 4D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 [11:59:10]Write to MH i2c: E2 02 01 BF 1F 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 91 4D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 00 00 04 [11:59:10]Write i2c OK [11:59:10]MH_I2C_Read... [11:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:11]Read from MH i2c: E2 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 03 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 03 00 BF 1F 00 90 00 52 [11:59:11]RAPDU: 90 00 [11:59:11]wFMCommunicate OK [11:59:11]wFMCommunicate request_size=33 [11:59:11]MH_SAM_APDU [11:59:11]CAPDU: 80 0D 02 02 1C 30 30 30 32 33 34 32 38 32 30 10 04 04 00 86 09 00 00 35 04 06 00 91 6D 3D 93 ED C7 [11:59:11]Write to MH i2c: E2 24 00 C0 1F 80 0D 02 02 1C 00 30 30 30 32 33 34 32 38 32 30 10 04 04 00 86 09 00 00 35 04 06 00 91 6D 3D 93 ED C7 00 00 EE [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:11]Read from MH i2c: E2 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 03 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 03 00 C0 1F 00 90 00 53 [11:59:11]RAPDU: 90 00 [11:59:11]wFMCommunicate OK [11:59:11]wFMCommunicate request_size=4 [11:59:11]MH_SAM_APDU [11:59:11]CAPDU: 80 0D 03 02 [11:59:11]Write to MH i2c: E2 08 00 C1 1F 80 0D 03 02 00 00 00 00 5B [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:11]Read from MH i2c: E2 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 0B 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 0B 00 C1 1F 00 75 6A 3E 9C 46 63 2D C3 90 00 AE [11:59:11]RAPDU: 75 6A 3E 9C 46 63 2D C3 90 00 [11:59:11]wFMCommunicate OK [11:59:11]SAM_PROTO_SignData done [11:59:11]FM_MakeSignedData done [11:59:11]CreateOFDProtocolMessage [11:59:11]wFMCommunicate request_size=4 [11:59:11]MH_SAM_APDU [11:59:11]CAPDU: 80 11 00 00 [11:59:11]Write to MH i2c: E2 08 00 C2 1F 80 11 00 00 00 00 00 00 5B [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:11]Read from MH i2c: E2 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 17 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: E2 17 00 C2 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 A3 [11:59:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:59:11]wFMCommunicate OK [11:59:11]CreateOFDProtocolMessage done [11:59:11]OFDSenderStorePacket 2438 [11:59:11]StoreOFDPacket docnum=2438 [11:59:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 26 01 00 00 BA 97 1E 01 A1 AC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 91 4D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 86 09 00 00 35 04 06 00 91 6D 3D 93 ED C7 75 6A 3E 9C 46 63 2D C3 [11:59:11]CheckFolder [11:59:11]dirname=/storage/ofd_packets [11:59:11]CheckFolder done [11:59:11]ProducePacketName [11:59:11]name=ofd_packets/00002438 [11:59:11]NVStorageSaveData ofd_packets/00002438 [11:59:11]File name is /storage/ofd_packets/00002438 [11:59:11]Write 324 bytes [11:59:11]NVStorageSaveData done [11:59:11]OFDSenderStorePacket done [11:59:11]KKMCreateOFDPacket done [11:59:11]NVStorageSaveData kkm_last_timestamp [11:59:11]File name is /storage/kkm_last_timestamp [11:59:11]Write 4 bytes [11:59:11]NVStorageSaveData done [11:59:11]ExternCall_PrintAddStr [11:59:11]wPrintStart [11:59:11]Write to MH i2c: 01 00 00 C3 1F E2 [11:59:11]Write i2c OK [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 07 00 [11:59:11]MH_I2C_Read... [11:59:11]Read from MH i2c: 01 07 00 C3 1F 00 00 00 00 00 FF 0F F7 [11:59:11]RasterBufferAndPrint [11:59:11]line Счет N : (3)99843 [11:59:11]line ИÐÐ: 02508201610067 [11:59:11]line Контрольно-КаÑÑовый Чек [11:59:11]line ПРОДÐЖР[11:59:11]line Товар: 2000036240010 [11:59:11]line Кофе Латте (GABB TRADE) [11:59:11]line 2.000 * 115.00 [11:59:11]line = 230.00 [11:59:11]line ÐДС 12% ÐСП 1% [11:59:11]line > о реализуемом товаре [11:59:11]line ИТОГО: 230.00 [11:59:11]line ÐСП 1% : 2.03 [11:59:11]line ÐДС 12% : 24.42 [11:59:11]line Ðаличными: 230.00 [11:59:11]line Безнал.: 0.00 [11:59:11]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [11:59:11]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [11:59:11]line СÐО: Общий режим [11:59:11]line Чек 63 18.10.2024 11:59 [11:59:11]line Смена: 22 ФФД: 1.0 [11:59:11]line ЗÐМ: 0300000191 [11:59:11]line РÐМ: 0000000000207295 [11:59:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [11:59:11]line ФМ: 0000000002342820 [11:59:11]line ФД: 2438 [11:59:11]line ФПД: 159898370567623 [11:59:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T115913&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2438&fm=159898370567623&tin=02508201610067®Number=0000000000207295&sum=23000 [11:59:11]line 0 [11:59:11]OFD Sender: Processing packet 2438 [packets to send 1, broken 0] [11:59:11]ProducePacketName [11:59:11]name=ofd_packets/00002438 [11:59:11]OFD Sender: To server: ‡•öpG, [11:59:11]CommunicateWithHost lk.salyk.kg:30040 [11:59:11]ConnectInit lk.salyk.kg [11:59:11]written 0, free lines is 4095 [11:59:11]Connected sock=10 [11:59:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 26 01 00 00 BA 97 1E 01 A1 AC 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 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 91 4D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 86 09 00 00 35 04 06 00 91 6D 3D 93 ED C7 75 6A 3E 9C 46 63 2D C3 [11:59:12]Write to MH i2c: 01 00 00 EB 1F 0A [11:59:12]Write i2c OK [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: 01 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: 01 07 00 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: 01 07 00 EB 1F 00 00 00 00 00 C5 0C E2 [11:59:12]RasterBufferAndPrint [11:59:12]line [11:59:12]line [11:59:12]line [11:59:12]line [11:59:12]line [11:59:12]written 0, free lines is 3273 [11:59:12]MH_Cut [11:59:12]Write to MH i2c: D1 01 00 F2 1F 01 E3 [11:59:12]Write i2c OK [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: D1 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: D1 01 00 [11:59:12]MH_I2C_Read... [11:59:12]Read from MH i2c: D1 01 00 F2 1F 00 E2 [11:59:12]Write to MH i2c: 01 00 00 F3 1F 12 [11:59:12]Write i2c OK [11:59:12]MH_I2C_Read... [11:59:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 86 F0 47 00 8E 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 32 33 34 32 38 32 30 10 04 04 00 86 09 00 00 F4 03 04 00 F5 F8 11 67 B6 04 01 00 00 94 BD 98 20 06 DC 96 B5 [11:59:12]CommunicateWithHost err = 0 [11:59:12]CheckOFDResponse [11:59:12]1017 (14) - 77093643461234 [11:59:12]1041 (16) - 0000000002342820 [11:59:12]1040 (4) - 2438 [11:59:12]1012 (4) - 18.10.2024 05:58 [11:59:12]1206 (1) - 0 [11:59:12]OFD Sender: Remove packet 2438 [11:59:12]ProducePacketName [11:59:12]name=ofd_packets/00002438 [11:59:12]NVStorageDeleteData [11:59:12]OFD Sender: No OFD packet to send [11:59:13]*** Cut start [11:59:13]*** Partial cut [11:59:13]*** CUTSNS_PIN = 1 [11:59:13]*** CUTSNS_PIN = 0 [11:59:13]*** Brake cut motor [11:59:13]Read from MH i2c: 01 [11:59:13]*** Stop cut motor [11:59:13]*** Cut end [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: 01 07 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: 01 07 00 F3 1F 00 00 00 00 00 FF 0F 27 [11:59:13]process_action close_receipt done [11:59:13]requested_data is exist [11:59:13]produce_requested_data [11:59:13]requested_item fm.sn is exist - process it [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 11 00 00 [11:59:13]Write to MH i2c: E2 08 00 F4 1F 80 11 00 00 00 00 00 00 8D [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 17 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 17 00 F4 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D5 [11:59:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [11:59:13]wFMCommunicate OK [11:59:13]requested_item fd.num is exist - process it [11:59:13]SAM_PROTO_GetFieldsCounters [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 13 00 00 [11:59:13]Write to MH i2c: E2 08 00 F5 1F 80 13 00 00 00 00 00 00 90 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 62 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 62 00 F5 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 86 09 00 00 0E 04 04 00 16 00 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 08 [11:59:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 86 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:13]wFMCommunicate OK [11:59:13]SAM_PROTO_GetFieldsCounters done [11:59:13]requested_item shift.num is exist - process it [11:59:13]requested_item shift.opened is exist - process it [11:59:13]req_shift_opened [11:59:13]FM_GetShiftState [11:59:13]SAM_PROTO_GetShiftState [11:59:13]wFMCommunicate request_size=4 [11:59:13]MH_SAM_APDU [11:59:13]CAPDU: 80 13 01 00 [11:59:13]Write to MH i2c: E2 08 00 F6 1F 80 13 01 00 00 00 00 00 92 [11:59:13]Write i2c OK [11:59:13]MH_I2C_Read... [11:59:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:13]Read from MH i2c: E2 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 0E 00 [11:59:13]MH_I2C_Read... [11:59:13]Read from MH i2c: E2 0E 00 F6 1F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 30 [11:59:13]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [11:59:13]wFMCommunicate OK [11:59:13]SAM_PROTO_GetShiftState done [11:59:13]FM_GetShiftState done [11:59:13]req_shift_opened done [11:59:13]requested_item shift.open_date is exist - process it [11:59:13]req_shift_open_date [11:59:13]req_shift_open_date done [11:59:13]produce_requested_data done [11:59:13]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2438,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [11:59:13]process_action_free close_receipt [11:59:13]json_value_free [11:59:13]json_value_free done [11:59:13]process_json_proto returns [11:59:13]Send response to host [11:59:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2438,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [11:59:13]free response buf [11:59:13]execute_script done [11:59:13]execute_script returns [11:59:13]free content buf [11:59:13]Sock 9.Close socket [11:59:13]Sock 9.Thread stoped [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:37]OFD Sender: No OFD packet to send [11:59:42]OFD Sender: No OFD packet to send [11:59:47]OFD Sender: No OFD packet to send [11:59:52]OFD Sender: No OFD packet to send [11:59:57]OFD Sender: No OFD packet to send [12:00:02]OFD Sender: No OFD packet to send [12:00:07]OFD Sender: No OFD packet to send [12:00:12]OFD Sender: No OFD packet to send [12:00:17]OFD Sender: No OFD packet to send [12:00:22]OFD Sender: No OFD packet to send [12:00:27]OFD Sender: No OFD packet to send [12:00:32]OFD Sender: No OFD packet to send [12:00:37]OFD Sender: No OFD packet to send [12:00:42]OFD Sender: No OFD packet to send [12:00:47]OFD Sender: No OFD packet to send [12:00:52]OFD Sender: No OFD packet to send [12:00:57]OFD Sender: No OFD packet to send [12:01:02]OFD Sender: No OFD packet to send [12:01:07]OFD Sender: No OFD packet to send [12:01:12]OFD Sender: No OFD packet to send [12:01:17]OFD Sender: No OFD packet to send [12:01:22]OFD Sender: No OFD packet to send [12:01:27]OFD Sender: No OFD packet to send [12:01:32]OFD Sender: No OFD packet to send [12:01:37]OFD Sender: No OFD packet to send [12:01:42]OFD Sender: No OFD packet to send [12:01:47]OFD Sender: No OFD packet to send [12:01:52]OFD Sender: No OFD packet to send [12:01:57]OFD Sender: No OFD packet to send [12:02:02]OFD Sender: No OFD packet to send [12:02:07]OFD Sender: No OFD packet to send [12:02:12]OFD Sender: No OFD packet to send [12:02:17]OFD Sender: No OFD packet to send [12:02:22]OFD Sender: No OFD packet to send [12:02:27]OFD Sender: No OFD packet to send [12:02:32]OFD Sender: No OFD packet to send [12:02:37]OFD Sender: No OFD packet to send [12:02:42]OFD Sender: No OFD packet to send [12:02:47]OFD Sender: No OFD packet to send [12:02:52]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [12:06:28]OFD Sender: No OFD packet to send [12:06:33]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:13]OFD Sender: No OFD packet to send [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:41]accept exits with 7 [12:07:41]New connection [12:07:41]New thread 3066707300 created [12:07:41]Thread 3066850660 joined [12:07:41]Waiting for new connection... [12:07:41] Sock 7.Parse request [12:07:41]Sock 7.Check first char [12:07:41]Sock 7.First char is OK [12:07:41]request: POST /json_proto HTTP/1.0 [12:07:41]Method: POST [12:07:41]URL: /json_proto [12:07:41]Method is POST - this is cgi request [12:07:41]url: /json_proto [12:07:41]query_string will be loaded in cgi processing [12:07:41]execute_cgi json_proto POST (null) [12:07:41]execute_cgi path=json_proto method=POST [12:07:41]POST find Content-Length [12:07:41]Host: 172.17.52.132:8080 [12:07:41]Content-Length: 964 [12:07:41]Content-Type: application/json [12:07:41] [12:07:41]POST finish read [12:07:41]Found Content-Length = 964 [12:07:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99844", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:41]execute_script... [12: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 : (3)99844", "tax_sys" : 0, "items" : [ { "code": "5449000189349", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043C\u0430\u043D\u0433\u043E \u0430\u043D\u0430\u043D\u0430\u0441 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:07:41]POST & json_proto [12:07:41]process_json_proto [12:07:41]json parsed OK: [12:07:41]protocol is kg_v1.0 [12:07:41]action value=close_receipt [12:07:41]process_action close_receipt [12:07:41]cmd_close_receipt [12:07:41]MH_GetDate [12:07:41]Write to MH i2c: F0 00 00 F7 1F 05 [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 09 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: F0 09 00 F7 1F 00 91 4F 12 67 5A BE F6 66 DB [12:07:41]GetLastDocTimeStamp 1729252753 [12:07:41]current date 1729253265 [12:07:41]FM_GetShiftState [12:07:41]SAM_PROTO_GetShiftState [12:07:41]wFMCommunicate request_size=4 [12:07:41]MH_SAM_APDU [12:07:41]CAPDU: 80 13 01 00 [12:07:41]Write to MH i2c: E2 08 00 F8 1F 80 13 01 00 00 00 00 00 94 [12:07:41]Write i2c OK [12:07:41]MH_I2C_Read... [12:07:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:41]Read from MH i2c: E2 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 0E 00 [12:07:41]MH_I2C_Read... [12:07:41]Read from MH i2c: E2 0E 00 F8 1F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 32 [12:07:41]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:07:41]wFMCommunicate OK [12:07:41]SAM_PROTO_GetShiftState done [12:07:41]FM_GetShiftState done [12:07:41]opened in 1729209717 [12:07:41]opened+sec_in_day 1729296117 [12:07:41]quantity*price = 7500 [12:07:41]sum+1 = 7501 [12:07:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 134.00 ÐСП 1% : 1.18 ÐДС 12% : 14.22 Ðаличными: 134.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 64 18.10.2024 12:07 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2439 ФПД: 92316707572744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T120745&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2439&fm=92316707572744&tin=02508201610067®Number=0000000000207295&sum=13400 0 [12:07:42]StoreToDocumentArchive [12:07:42]shift 22 fd 2439 [12:07:42]save to /storage/0022/doc_00002439 [12:07:42]save last doc name /storage/0022/doc_00002439 to /storage/kkm_last_doc_name [12:07:42]save OK [12:07:42]Clear old archive folders... [12:07:42]ProcessDocumentItem done err = 0, tmpTLVsize=411 [12:07:42]tlvbuf is 013B9BE0 [12:07:42]SAM_PROTO_ClearQueue [12:07:42]wFMCommunicate request_size=4 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 09 00 00 [12:07:42]Write to MH i2c: E2 08 00 05 20 80 09 00 00 00 00 00 00 97 [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:42]Read from MH i2c: E2 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 [12:07:42]MH_I2C_Read... [12:07:42]Read from MH i2c: E2 03 00 05 20 00 90 00 99 [12:07:42]RAPDU: 90 00 [12:07:42]wFMCommunicate OK [12:07:42]SAM_PROTO_ClearQueue done [12:07:42]KKMCreateOFDPacket [12:07:42]OFDProtocolAddRootSTLVToBuf [12:07:42]FM_MakeSignedData [12:07:42]FM_MakeSignedData [12:07:42]SAM_PROTO_SignData [12:07:42]wFMCommunicate request_size=4 [12:07:42]MH_SAM_APDU [12:07:42]CAPDU: 80 0D 01 02 [12:07:42]Write to MH i2c: E2 08 00 06 20 80 0D 01 02 00 00 00 00 9F [12:07:42]Write i2c OK [12:07:42]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 06 20 00 90 00 9A [12:07:43]RAPDU: 90 00 [12:07:43]wFMCommunicate OK [12:07:43]wFMCommunicate request_size=255 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 0D 02 02 FA 03 00 9B 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [12:07:43]Write to MH i2c: E2 02 01 07 20 80 0D 02 02 FA 00 03 00 9B 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 55 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]OFD Sender: No OFD packet to send [12:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 07 20 00 90 00 9B [12:07:43]RAPDU: 90 00 [12:07:43]wFMCommunicate OK [12:07:43]wFMCommunicate request_size=170 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 0D 02 02 A5 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 91 4F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 87 09 00 00 35 04 06 00 53 F6 28 8F CC 08 [12:07:43]Write to MH i2c: E2 AD 00 08 20 80 0D 02 02 A5 00 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 91 4F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 87 09 00 00 35 04 06 00 53 F6 28 8F CC 08 00 00 57 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 03 00 08 20 00 90 00 9C [12:07:43]RAPDU: 90 00 [12:07:43]wFMCommunicate OK [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 0D 03 02 [12:07:43]Write to MH i2c: E2 08 00 09 20 80 0D 03 02 00 00 00 00 A4 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0B 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 0B 00 09 20 00 0D 44 94 E8 77 F0 EE 9D 90 00 64 [12:07:43]RAPDU: 0D 44 94 E8 77 F0 EE 9D 90 00 [12:07:43]wFMCommunicate OK [12:07:43]SAM_PROTO_SignData done [12:07:43]FM_MakeSignedData done [12:07:43]CreateOFDProtocolMessage [12:07:43]wFMCommunicate request_size=4 [12:07:43]MH_SAM_APDU [12:07:43]CAPDU: 80 11 00 00 [12:07:43]Write to MH i2c: E2 08 00 0A 20 80 11 00 00 00 00 00 00 A4 [12:07:43]Write i2c OK [12:07:43]MH_I2C_Read... [12:07:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:43]Read from MH i2c: E2 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 17 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: E2 17 00 0A 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EC [12:07:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:07:43]wFMCommunicate OK [12:07:43]CreateOFDProtocolMessage done [12:07:43]OFDSenderStorePacket 2439 [12:07:43]StoreOFDPacket docnum=2439 [12:07:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 AF 01 00 00 10 BE A7 01 53 15 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 91 4F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 87 09 00 00 35 04 06 00 53 F6 28 8F CC 08 0D 44 94 E8 77 F0 EE 9D [12:07:43]CheckFolder [12:07:43]dirname=/storage/ofd_packets [12:07:43]CheckFolder done [12:07:43]ProducePacketName [12:07:43]name=ofd_packets/00002439 [12:07:43]NVStorageSaveData ofd_packets/00002439 [12:07:43]File name is /storage/ofd_packets/00002439 [12:07:43]Write 461 bytes [12:07:43]NVStorageSaveData done [12:07:43]OFDSenderStorePacket done [12:07:43]KKMCreateOFDPacket done [12:07:43]NVStorageSaveData kkm_last_timestamp [12:07:43]File name is /storage/kkm_last_timestamp [12:07:43]Write 4 bytes [12:07:43]NVStorageSaveData done [12:07:43]ExternCall_PrintAddStr [12:07:43]wPrintStart [12:07:43]Write to MH i2c: 01 00 00 0B 20 2B [12:07:43]OFD Sender: Processing packet 2439 [packets to send 1, broken 0] [12:07:43]ProducePacketName [12:07:43]name=ofd_packets/00002439 [12:07:43]OFD Sender: To server: ‡•öpG, [12:07:43]Write i2c OK [12:07:43]CommunicateWithHost lk.salyk.kg:30040 [12:07:43]MH_I2C_Read... [12:07:43]ConnectInit lk.salyk.kg [12:07:43]Read from MH i2c: 01 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: 01 07 00 [12:07:43]MH_I2C_Read... [12:07:43]Read from MH i2c: 01 07 00 0B 20 00 00 00 00 00 FF 0F 40 [12:07:43]RasterBufferAndPrint [12:07:43]line Счет N : (3)99844 [12:07:43]line ИÐÐ: 02508201610067 [12:07:43]line Контрольно-КаÑÑовый Чек [12:07:43]line ПРОДÐЖР[12:07:43]line Товар: 5449000189349 [12:07:43]line Холодный чай Fuse манго Ð°Ð½Ð°Ð½Ð°Ñ 0,5л [12:07:43]line 1.000 * 75.00 [12:07:43]line = 75.00 [12:07:43]line ÐДС 12% ÐСП 1% [12:07:43]line > о реализуемом товаре [12:07:43]line Товар: 4607065001445 [12:07:43]line Шок батончик Snickers 50,5г [12:07:43]line 1.000 * 59.00 [12:07:43]line = 59.00 [12:07:43]line ÐДС 12% ÐСП 1% [12:07:43]line > о реализуемом товаре [12:07:43]line ИТОГО: 134.00 [12:07:43]line ÐСП 1% : 1.18 [12:07:43]line ÐДС 12% : 14.22 [12:07:43]line Ðаличными: 134.00 [12:07:43]line Безнал.: 0.00 [12:07:43]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:07:43]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:07:43]line СÐО: Общий режим [12:07:43]line Чек 64 18.10.2024 12:07 [12:07:43]line Смена: 22 ФФД: 1.0 [12:07:43]line ЗÐМ: 0300000191 [12:07:43]line РÐМ: 0000000000207295 [12:07:43]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:07:43]line ФМ: 0000000002342820 [12:07:43]line ФД: 2439 [12:07:43]line ФПД: 92316707572744 [12:07:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T120745&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2439&fm=92316707572744&tin=02508201610067®Number=0000000000207295&sum=13400 [12:07:43]line 0 [12:07:43]written 0, free lines is 4095 [12:07:44]Connected sock=10 [12:07:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 AF 01 00 00 10 BE A7 01 53 15 5A 03 01 00 03 00 9B 01 1E 04 01 00 01 23 04 7E 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 34 39 06 04 3A 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 20 D0 B0 D0 BD D0 B0 D0 BD D0 B0 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8E 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 91 4F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 87 09 00 00 35 04 06 00 53 F6 28 8F CC 08 0D 44 94 E8 77 F0 EE 9D [12:07:44]Write to MH i2c: 01 00 00 3A 20 5A [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 07 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: 01 07 00 3A 20 00 00 00 00 00 4B 0C B8 [12:07:44]RasterBufferAndPrint [12:07:44]line [12:07:44]line [12:07:44]line [12:07:44]line [12:07:44]line [12:07:44]written 0, free lines is 3152 [12:07:44]MH_Cut [12:07:44]Write to MH i2c: D1 01 00 41 20 01 33 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: D1 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: D1 01 00 [12:07:44]MH_I2C_Read... [12:07:44]Read from MH i2c: D1 01 00 41 20 00 32 [12:07:44]Write to MH i2c: 01 00 00 42 20 62 [12:07:44]Write i2c OK [12:07:44]MH_I2C_Read... [12:07:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 C7 90 47 00 44 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 32 33 34 32 38 32 30 10 04 04 00 87 09 00 00 F4 03 04 00 F6 FA 11 67 B6 04 01 00 00 6D 9B AA AC CD BF C6 11 [12:07:44]CommunicateWithHost err = 0 [12:07:44]CheckOFDResponse [12:07:44]1017 (14) - 77093643461234 [12:07:44]1041 (16) - 0000000002342820 [12:07:44]1040 (4) - 2439 [12:07:44]1012 (4) - 18.10.2024 06:06 [12:07:44]1206 (1) - 0 [12:07:44]OFD Sender: Remove packet 2439 [12:07:44]ProducePacketName [12:07:44]name=ofd_packets/00002439 [12:07:44]NVStorageDeleteData [12:07:45]OFD Sender: No OFD packet to send [12:07:45]*** Cut start [12:07:45]*** Partial cut [12:07:45]*** CUTSNS_PIN = 1 [12:07:45]*** CUTSNS_PIN = 0 [12:07:45]*** Brake cut motor [12:07:46]Read from MH i2c: 01 [12:07:46]MH_I2C_Read... [12:07:46]*** Stop cut motor [12:07:46]*** Cut end [12:07:46]Read from MH i2c: 01 07 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: 01 07 00 42 20 00 00 00 00 00 FF 0F 77 [12:07:46]process_action close_receipt done [12:07:46]requested_data is exist [12:07:46]produce_requested_data [12:07:46]requested_item fm.sn is exist - process it [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 11 00 00 [12:07:46]Write to MH i2c: E2 08 00 43 20 80 11 00 00 00 00 00 00 DD [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 17 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 17 00 43 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 25 [12:07:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:07:46]wFMCommunicate OK [12:07:46]requested_item fd.num is exist - process it [12:07:46]SAM_PROTO_GetFieldsCounters [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 13 00 00 [12:07:46]Write to MH i2c: E2 08 00 44 20 80 13 00 00 00 00 00 00 E0 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 62 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 62 00 44 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 87 09 00 00 0E 04 04 00 16 00 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 5C [12:07:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 87 09 00 00 0E 04 04 00 16 00 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:07:46]wFMCommunicate OK [12:07:46]SAM_PROTO_GetFieldsCounters done [12:07:46]requested_item shift.num is exist - process it [12:07:46]requested_item shift.opened is exist - process it [12:07:46]req_shift_opened [12:07:46]FM_GetShiftState [12:07:46]SAM_PROTO_GetShiftState [12:07:46]wFMCommunicate request_size=4 [12:07:46]MH_SAM_APDU [12:07:46]CAPDU: 80 13 01 00 [12:07:46]Write to MH i2c: E2 08 00 45 20 80 13 01 00 00 00 00 00 E2 [12:07:46]Write i2c OK [12:07:46]MH_I2C_Read... [12:07:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:46]Read from MH i2c: E2 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0E 00 [12:07:46]MH_I2C_Read... [12:07:46]Read from MH i2c: E2 0E 00 45 20 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 80 [12:07:46]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:07:46]wFMCommunicate OK [12:07:46]SAM_PROTO_GetShiftState done [12:07:46]FM_GetShiftState done [12:07:46]req_shift_opened done [12:07:46]requested_item shift.open_date is exist - process it [12:07:46]req_shift_open_date [12:07:46]req_shift_open_date done [12:07:46]produce_requested_data done [12:07:46]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2439,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:07:46]process_action_free close_receipt [12:07:46]json_value_free [12:07:46]json_value_free done [12:07:46]process_json_proto returns [12:07:46]Send response to host [12:07:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2439,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:07:46]free response buf [12:07:46]execute_script done [12:07:46]execute_script returns [12:07:46]free content buf [12:07:46]Sock 7.Close socket [12:07:46]Sock 7.Thread stoped [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13: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:40]accept exits with 9 [12:14:40]New connection [12:14:40]New thread 3066850660 created [12:14:40]Thread 3066707300 joined [12:14:40]Waiting for new connection... [12:14:40] Sock 9.Parse request [12:14:40]Sock 9.Check first char [12:14:40]Sock 9.First char is OK [12:14:40]request: POST /json_proto HTTP/1.0 [12:14:40]Method: POST [12:14:40]URL: /json_proto [12:14:40]Method is POST - this is cgi request [12:14:40]url: /json_proto [12:14:40]query_string will be loaded in cgi processing [12:14:40]execute_cgi json_proto POST (null) [12:14:40]execute_cgi path=json_proto method=POST [12:14:40]POST find Content-Length [12:14:40]Host: 172.17.52.132:8080 [12:14:40]Content-Length: 656 [12:14:40]Content-Type: application/json [12:14:40] [12:14:40]POST finish read [12:14:40]Found Content-Length = 656 [12:14:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99845", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 2.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:40]execute_script... [12:14:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99845", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 2.000, "sum" : 138.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 138.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:40]POST & json_proto [12:14:40]process_json_proto [12:14:40]json parsed OK: [12:14:40]protocol is kg_v1.0 [12:14:40]action value=close_receipt [12:14:40]process_action close_receipt [12:14:40]cmd_close_receipt [12:14:40]MH_GetDate [12:14:40]Write to MH i2c: F0 00 00 46 20 55 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: F0 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: F0 09 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: F0 09 00 46 20 00 34 51 12 67 5A BE F6 66 D0 [12:14:40]GetLastDocTimeStamp 1729253265 [12:14:40]current date 1729253684 [12:14:40]FM_GetShiftState [12:14:40]SAM_PROTO_GetShiftState [12:14:40]wFMCommunicate request_size=4 [12:14:40]MH_SAM_APDU [12:14:40]CAPDU: 80 13 01 00 [12:14:40]Write to MH i2c: E2 08 00 47 20 80 13 01 00 00 00 00 00 E4 [12:14:40]Write i2c OK [12:14:40]MH_I2C_Read... [12:14:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:40]Read from MH i2c: E2 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 0E 00 [12:14:40]MH_I2C_Read... [12:14:40]Read from MH i2c: E2 0E 00 47 20 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 82 [12:14:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:14:40]wFMCommunicate OK [12:14:40]SAM_PROTO_GetShiftState done [12:14:40]FM_GetShiftState done [12:14:40]opened in 1729209717 [12:14:40]opened+sec_in_day 1729296117 [12:14:40]quantity*price = 13800 [12:14:40]sum+1 = 13801 [12:14:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 138.00 ÐСП 1% : 1.22 ÐДС 12% : 14.65 Ðаличными: 138.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 65 18.10.2024 12:14 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2440 ФПД: 251710922521747 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121444&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2440&fm=251710922521747&tin=02508201610067®Number=0000000000207295&sum=13800 0 [12:14:41]StoreToDocumentArchive [12:14:41]shift 22 fd 2440 [12:14:41]save to /storage/0022/doc_00002440 [12:14:41]save last doc name /storage/0022/doc_00002440 to /storage/kkm_last_doc_name [12:14:41]save OK [12:14:41]Clear old archive folders... [12:14:41]ProcessDocumentItem done err = 0, tmpTLVsize=294 [12:14:41]tlvbuf is 013B9AD0 [12:14:41]SAM_PROTO_ClearQueue [12:14:41]wFMCommunicate request_size=4 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 09 00 00 [12:14:41]Write to MH i2c: E2 08 00 54 20 80 09 00 00 00 00 00 00 E6 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 54 20 00 90 00 E8 [12:14:41]RAPDU: 90 00 [12:14:41]wFMCommunicate OK [12:14:41]SAM_PROTO_ClearQueue done [12:14:41]KKMCreateOFDPacket [12:14:41]OFDProtocolAddRootSTLVToBuf [12:14:41]FM_MakeSignedData [12:14:41]FM_MakeSignedData [12:14:41]SAM_PROTO_SignData [12:14:41]wFMCommunicate request_size=4 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 0D 01 02 [12:14:41]Write to MH i2c: E2 08 00 55 20 80 0D 01 02 00 00 00 00 EE [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:41]Read from MH i2c: E2 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 [12:14:41]MH_I2C_Read... [12:14:41]Read from MH i2c: E2 03 00 55 20 00 90 00 E9 [12:14:41]RAPDU: 90 00 [12:14:41]wFMCommunicate OK [12:14:41]wFMCommunicate request_size=255 [12:14:41]MH_SAM_APDU [12:14:41]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 34 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [12:14:41]Write to MH i2c: E2 02 01 56 20 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 34 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 87 [12:14:41]Write i2c OK [12:14:41]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 03 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 03 00 56 20 00 90 00 EA [12:14:42]RAPDU: 90 00 [12:14:42]wFMCommunicate OK [12:14:42]wFMCommunicate request_size=53 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 0D 02 02 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 88 09 00 00 35 04 06 00 E4 EE 04 1F 7C 93 [12:14:42]Write to MH i2c: E2 38 00 57 20 80 0D 02 02 30 00 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 88 09 00 00 35 04 06 00 E4 EE 04 1F 7C 93 00 00 70 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 03 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 03 00 57 20 00 90 00 EB [12:14:42]RAPDU: 90 00 [12:14:42]wFMCommunicate OK [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 0D 03 02 [12:14:42]Write to MH i2c: E2 08 00 58 20 80 0D 03 02 00 00 00 00 F3 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0B 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 0B 00 58 20 00 5B 61 9F 56 7E E1 37 79 90 00 B4 [12:14:42]RAPDU: 5B 61 9F 56 7E E1 37 79 90 00 [12:14:42]wFMCommunicate OK [12:14:42]SAM_PROTO_SignData done [12:14:42]FM_MakeSignedData done [12:14:42]CreateOFDProtocolMessage [12:14:42]wFMCommunicate request_size=4 [12:14:42]MH_SAM_APDU [12:14:42]CAPDU: 80 11 00 00 [12:14:42]Write to MH i2c: E2 08 00 59 20 80 11 00 00 00 00 00 00 F3 [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:42]Read from MH i2c: E2 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 17 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: E2 17 00 59 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 3B [12:14:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:14:42]wFMCommunicate OK [12:14:42]CreateOFDProtocolMessage done [12:14:42]OFDSenderStorePacket 2440 [12:14:42]StoreOFDPacket docnum=2440 [12:14:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3A 01 00 00 2E 6B 32 01 B8 3F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 34 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 88 09 00 00 35 04 06 00 E4 EE 04 1F 7C 93 5B 61 9F 56 7E E1 37 79 [12:14:42]CheckFolder [12:14:42]dirname=/storage/ofd_packets [12:14:42]CheckFolder done [12:14:42]ProducePacketName [12:14:42]name=ofd_packets/00002440 [12:14:42]NVStorageSaveData ofd_packets/00002440 [12:14:42]File name is /storage/ofd_packets/00002440 [12:14:42]Write 344 bytes [12:14:42]NVStorageSaveData done [12:14:42]OFDSenderStorePacket done [12:14:42]KKMCreateOFDPacket done [12:14:42]NVStorageSaveData kkm_last_timestamp [12:14:42]File name is /storage/kkm_last_timestamp [12:14:42]Write 4 bytes [12:14:42]NVStorageSaveData done [12:14:42]ExternCall_PrintAddStr [12:14:42]wPrintStart [12:14:42]Write to MH i2c: 01 00 00 5A 20 7A [12:14:42]OFD Sender: Processing packet 2440 [packets to send 1, broken 0] [12:14:42]ProducePacketName [12:14:42]name=ofd_packets/00002440 [12:14:42]OFD Sender: To server: ‡•öpG, [12:14:42]CommunicateWithHost lk.salyk.kg:30040 [12:14:42]ConnectInit lk.salyk.kg [12:14:42]Write i2c OK [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 07 00 [12:14:42]MH_I2C_Read... [12:14:42]Read from MH i2c: 01 07 00 5A 20 00 00 00 00 00 FF 0F 8F [12:14:42]RasterBufferAndPrint [12:14:42]line Счет N : (3)99845 [12:14:42]line ИÐÐ: 02508201610067 [12:14:42]line Контрольно-КаÑÑовый Чек [12:14:42]line ПРОДÐЖР[12:14:42]line Товар: 4600682557456 [12:14:42]line Ðапиток FLash up energy Ñн ж/б 0,5/0,45л [12:14:42]line 2.000 * 69.00 [12:14:42]line = 138.00 [12:14:42]line ÐДС 12% ÐСП 1% [12:14:42]line > о реализуемом товаре [12:14:42]line ИТОГО: 138.00 [12:14:42]line ÐСП 1% : 1.22 [12:14:42]line ÐДС 12% : 14.65 [12:14:42]line Ðаличными: 138.00 [12:14:42]line Безнал.: 0.00 [12:14:42]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:14:42]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:14:42]line СÐО: Общий режим [12:14:42]line Чек 65 18.10.2024 12:14 [12:14:42]line Смена: 22 ФФД: 1.0 [12:14:42]line ЗÐМ: 0300000191 [12:14:42]line РÐМ: 0000000000207295 [12:14:42]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:14:42]line ФМ: 0000000002342820 [12:14:42]line ФД: 2440 [12:14:42]line ФПД: 251710922521747 [12:14:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121444&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2440&fm=251710922521747&tin=02508201610067®Number=0000000000207295&sum=13800 [12:14:42]line 0 [12:14:42]Connected sock=10 [12:14:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3A 01 00 00 2E 6B 32 01 B8 3F 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 E8 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B9 05 00 00 00 00 07 04 06 00 E8 35 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 34 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 88 09 00 00 35 04 06 00 E4 EE 04 1F 7C 93 5B 61 9F 56 7E E1 37 79 [12:14:42]written 0, free lines is 4095 [12:14:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 71 3B 47 00 D6 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 32 33 34 32 38 32 30 10 04 04 00 88 09 00 00 F4 03 04 00 98 FC 11 67 B6 04 01 00 00 F1 D5 C3 1D 6C 5B EF DF [12:14:42]CommunicateWithHost err = 0 [12:14:42]CheckOFDResponse [12:14:42]1017 (14) - 77093643461234 [12:14:42]1041 (16) - 0000000002342820 [12:14:42]1040 (4) - 2440 [12:14:42]1012 (4) - 18.10.2024 06:13 [12:14:42]1206 (1) - 0 [12:14:42]OFD Sender: Remove packet 2440 [12:14:42]ProducePacketName [12:14:42]name=ofd_packets/00002440 [12:14:42]NVStorageDeleteData [12:14:43]Write to MH i2c: 01 00 00 83 20 A3 [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: 01 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: 01 07 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: 01 07 00 83 20 00 00 00 00 00 B1 0C 67 [12:14:43]RasterBufferAndPrint [12:14:43]line [12:14:43]line [12:14:43]line [12:14:43]line [12:14:43]line [12:14:43]written 0, free lines is 3254 [12:14:43]MH_Cut [12:14:43]Write to MH i2c: D1 01 00 8A 20 01 7C [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: D1 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: D1 01 00 [12:14:43]MH_I2C_Read... [12:14:43]Read from MH i2c: D1 01 00 8A 20 00 7B [12:14:43]Write to MH i2c: 01 00 00 8B 20 AB [12:14:43]Write i2c OK [12:14:43]MH_I2C_Read... [12:14:43]OFD Sender: No OFD packet to send [12:14:44]*** Cut start [12:14:44]*** Partial cut [12:14:44]*** CUTSNS_PIN = 1 [12:14:44]*** CUTSNS_PIN = 0 [12:14:44]*** Brake cut motor [12:14:44]Read from MH i2c: 01 [12:14:44]MH_I2C_Read... [12:14:44]*** Stop cut motor [12:14:44]*** Cut end [12:14:44]Read from MH i2c: 01 07 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: 01 07 00 8B 20 00 00 00 00 00 FF 0F C0 [12:14:44]process_action close_receipt done [12:14:44]requested_data is exist [12:14:44]produce_requested_data [12:14:44]requested_item fm.sn is exist - process it [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 11 00 00 [12:14:44]Write to MH i2c: E2 08 00 8C 20 80 11 00 00 00 00 00 00 26 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 17 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 17 00 8C 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 6E [12:14:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:14:44]wFMCommunicate OK [12:14:44]requested_item fd.num is exist - process it [12:14:44]SAM_PROTO_GetFieldsCounters [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 13 00 00 [12:14:44]Write to MH i2c: E2 08 00 8D 20 80 13 00 00 00 00 00 00 29 [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 62 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 62 00 8D 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 88 09 00 00 0E 04 04 00 16 00 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 A9 [12:14:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 88 09 00 00 0E 04 04 00 16 00 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:14:44]wFMCommunicate OK [12:14:44]SAM_PROTO_GetFieldsCounters done [12:14:44]requested_item shift.num is exist - process it [12:14:44]requested_item shift.opened is exist - process it [12:14:44]req_shift_opened [12:14:44]FM_GetShiftState [12:14:44]SAM_PROTO_GetShiftState [12:14:44]wFMCommunicate request_size=4 [12:14:44]MH_SAM_APDU [12:14:44]CAPDU: 80 13 01 00 [12:14:44]Write to MH i2c: E2 08 00 8E 20 80 13 01 00 00 00 00 00 2B [12:14:44]Write i2c OK [12:14:44]MH_I2C_Read... [12:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:44]Read from MH i2c: E2 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 0E 00 [12:14:44]MH_I2C_Read... [12:14:44]Read from MH i2c: E2 0E 00 8E 20 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C9 [12:14:44]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:14:44]wFMCommunicate OK [12:14:44]SAM_PROTO_GetShiftState done [12:14:44]FM_GetShiftState done [12:14:44]req_shift_opened done [12:14:44]requested_item shift.open_date is exist - process it [12:14:44]req_shift_open_date [12:14:44]req_shift_open_date done [12:14:44]produce_requested_data done [12:14:44]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2440,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:14:44]process_action_free close_receipt [12:14:44]json_value_free [12:14:44]json_value_free done [12:14:44]process_json_proto returns [12:14:44]Send response to host [12:14:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2440,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:14:44]free response buf [12:14:44]execute_script done [12:14:44]execute_script returns [12:14:44]free content buf [12:14:44]Sock 9.Close socket [12:14:44]Sock 9.Thread stoped [12:14:48]OFD Sender: No OFD packet to send [12:14:53]OFD Sender: No OFD packet to send [12:14:58]OFD Sender: No OFD packet to send [12:15:03]OFD Sender: No OFD packet to send [12:15:08]OFD Sender: No OFD packet to send [12:15:13]OFD Sender: No OFD packet to send [12:15:18]OFD Sender: No OFD packet to send [12:15:23]OFD Sender: No OFD packet to send [12:15:28]OFD Sender: No OFD packet to send [12:15:33]OFD Sender: No OFD packet to send [12:15:38]OFD Sender: No OFD packet to send [12:15:43]OFD Sender: No OFD packet to send [12:15:44]accept exits with 7 [12:15:44]New connection [12:15:44]New thread 3066707300 created [12:15:44]Thread 3066850660 joined [12:15:44]Waiting for new connection... [12:15:44] Sock 7.Parse request [12:15:44]Sock 7.Check first char [12:15:44]Sock 7.First char is OK [12:15:44]request: POST /json_proto HTTP/1.0 [12:15:44]Method: POST [12:15:44]URL: /json_proto [12:15:44]Method is POST - this is cgi request [12:15:44]url: /json_proto [12:15:44]query_string will be loaded in cgi processing [12:15:44]execute_cgi json_proto POST (null) [12:15:44]execute_cgi path=json_proto method=POST [12:15:44]POST find Content-Length [12:15:44]Host: 172.17.52.132:8080 [12:15:44]Content-Length: 616 [12:15:44]Content-Type: application/json [12:15:44] [12:15:44]POST finish read [12:15:44]Found Content-Length = 616 [12:15:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99846", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:44]execute_script... [12:15:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99846", "tax_sys" : 0, "items" : [ { "code": "47803008", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:15:44]POST & json_proto [12:15:44]process_json_proto [12:15:44]json parsed OK: [12:15:44]protocol is kg_v1.0 [12:15:44]action value=close_receipt [12:15:44]process_action close_receipt [12:15:44]cmd_close_receipt [12:15:44]MH_GetDate [12:15:44]Write to MH i2c: F0 00 00 8F 20 9E [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: F0 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: F0 09 00 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: F0 09 00 8F 20 00 74 51 12 67 5A BE F6 66 59 [12:15:44]GetLastDocTimeStamp 1729253684 [12:15:44]current date 1729253748 [12:15:44]FM_GetShiftState [12:15:44]SAM_PROTO_GetShiftState [12:15:44]wFMCommunicate request_size=4 [12:15:44]MH_SAM_APDU [12:15:44]CAPDU: 80 13 01 00 [12:15:44]Write to MH i2c: E2 08 00 90 20 80 13 01 00 00 00 00 00 2D [12:15:44]Write i2c OK [12:15:44]MH_I2C_Read... [12:15:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:44]Read from MH i2c: E2 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 0E 00 [12:15:44]MH_I2C_Read... [12:15:44]Read from MH i2c: E2 0E 00 90 20 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 CB [12:15:44]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:15:44]wFMCommunicate OK [12:15:44]SAM_PROTO_GetShiftState done [12:15:44]FM_GetShiftState done [12:15:44]opened in 1729209717 [12:15:44]opened+sec_in_day 1729296117 [12:15:44]quantity*price = 14400 [12:15:44]sum+1 = 14401 [12:15:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 ÐСП 1% : 1.27 ÐДС 12% : 15.29 Ðаличными: 144.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 66 18.10.2024 12:15 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2441 ФПД: 118738080164065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121548&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2441&fm=118738080164065&tin=02508201610067®Number=0000000000207295&sum=14400 0 [12:15:45]StoreToDocumentArchive [12:15:45]shift 22 fd 2441 [12:15:45]save to /storage/0022/doc_00002441 [12:15:45]save last doc name /storage/0022/doc_00002441 to /storage/kkm_last_doc_name [12:15:45]save OK [12:15:45]Clear old archive folders... [12:15:45]ProcessDocumentItem done err = 0, tmpTLVsize=269 [12:15:45]tlvbuf is 013E89F0 [12:15:45]SAM_PROTO_ClearQueue [12:15:45]wFMCommunicate request_size=4 [12:15:45]MH_SAM_APDU [12:15:45]CAPDU: 80 09 00 00 [12:15:45]Write to MH i2c: E2 08 00 9D 20 80 09 00 00 00 00 00 00 2F [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:15:45]Read from MH i2c: E2 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 03 00 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 03 00 9D 20 00 90 00 31 [12:15:45]RAPDU: 90 00 [12:15:45]wFMCommunicate OK [12:15:45]SAM_PROTO_ClearQueue done [12:15:45]KKMCreateOFDPacket [12:15:45]OFDProtocolAddRootSTLVToBuf [12:15:45]FM_MakeSignedData [12:15:45]FM_MakeSignedData [12:15:45]SAM_PROTO_SignData [12:15:45]wFMCommunicate request_size=4 [12:15:45]MH_SAM_APDU [12:15:45]CAPDU: 80 0D 01 02 [12:15:45]Write to MH i2c: E2 08 00 9E 20 80 0D 01 02 00 00 00 00 37 [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:15:45]Read from MH i2c: E2 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 03 00 [12:15:45]MH_I2C_Read... [12:15:45]Read from MH i2c: E2 03 00 9E 20 00 90 00 32 [12:15:45]RAPDU: 90 00 [12:15:45]wFMCommunicate OK [12:15:45]wFMCommunicate request_size=255 [12:15:45]MH_SAM_APDU [12:15:45]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 58 53 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 74 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 [12:15:45]Write to MH i2c: E2 02 01 9F 20 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 58 53 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 74 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 00 00 2A [12:15:45]Write i2c OK [12:15:45]MH_I2C_Read... [12:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:46]Read from MH i2c: E2 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 03 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 03 00 9F 20 00 90 00 33 [12:15:46]RAPDU: 90 00 [12:15:46]wFMCommunicate OK [12:15:46]wFMCommunicate request_size=28 [12:15:46]MH_SAM_APDU [12:15:46]CAPDU: 80 0D 02 02 17 34 32 38 32 30 10 04 04 00 89 09 00 00 35 04 06 00 6B FD DD 16 E8 E1 [12:15:46]Write to MH i2c: E2 1F 00 A0 20 80 0D 02 02 17 00 34 32 38 32 30 10 04 04 00 89 09 00 00 35 04 06 00 6B FD DD 16 E8 E1 00 00 75 [12:15:46]Write i2c OK [12:15:46]MH_I2C_Read... [12:15:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:15:46]Read from MH i2c: E2 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 03 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 03 00 A0 20 00 90 00 34 [12:15:46]RAPDU: 90 00 [12:15:46]wFMCommunicate OK [12:15:46]wFMCommunicate request_size=4 [12:15:46]MH_SAM_APDU [12:15:46]CAPDU: 80 0D 03 02 [12:15:46]Write to MH i2c: E2 08 00 A1 20 80 0D 03 02 00 00 00 00 3C [12:15:46]Write i2c OK [12:15:46]MH_I2C_Read... [12:15:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:15:46]Read from MH i2c: E2 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 0B 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 0B 00 A1 20 00 EE 0E BE 62 7E BE 95 27 90 00 51 [12:15:46]RAPDU: EE 0E BE 62 7E BE 95 27 90 00 [12:15:46]wFMCommunicate OK [12:15:46]SAM_PROTO_SignData done [12:15:46]FM_MakeSignedData done [12:15:46]CreateOFDProtocolMessage [12:15:46]wFMCommunicate request_size=4 [12:15:46]MH_SAM_APDU [12:15:46]CAPDU: 80 11 00 00 [12:15:46]Write to MH i2c: E2 08 00 A2 20 80 11 00 00 00 00 00 00 3C [12:15:46]Write i2c OK [12:15:46]MH_I2C_Read... [12:15:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:46]Read from MH i2c: E2 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 17 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: E2 17 00 A2 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 84 [12:15:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:15:46]wFMCommunicate OK [12:15:46]CreateOFDProtocolMessage done [12:15:46]OFDSenderStorePacket 2441 [12:15:46]StoreOFDPacket docnum=2441 [12:15:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 21 01 00 00 86 81 19 01 69 2F 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 58 53 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 74 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 89 09 00 00 35 04 06 00 6B FD DD 16 E8 E1 EE 0E BE 62 7E BE 95 27 [12:15:46]CheckFolder [12:15:46]dirname=/storage/ofd_packets [12:15:46]CheckFolder done [12:15:46]ProducePacketName [12:15:46]name=ofd_packets/00002441 [12:15:46]NVStorageSaveData ofd_packets/00002441 [12:15:46]File name is /storage/ofd_packets/00002441 [12:15:46]Write 319 bytes [12:15:46]NVStorageSaveData done [12:15:46]OFDSenderStorePacket done [12:15:46]KKMCreateOFDPacket done [12:15:46]NVStorageSaveData kkm_last_timestamp [12:15:46]File name is /storage/kkm_last_timestamp [12:15:46]Write 4 bytes [12:15:46]NVStorageSaveData done [12:15:46]ExternCall_PrintAddStr [12:15:46]wPrintStart [12:15:46]Write to MH i2c: 01 00 00 A3 20 C3 [12:15:46]Write i2c OK [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: 01 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: 01 07 00 [12:15:46]MH_I2C_Read... [12:15:46]Read from MH i2c: 01 07 00 A3 20 00 00 00 00 00 FF 0F D8 [12:15:46]RasterBufferAndPrint [12:15:46]line Счет N : (3)99846 [12:15:46]line ИÐÐ: 02508201610067 [12:15:46]line Контрольно-КаÑÑовый Чек [12:15:46]line ПРОДÐЖР[12:15:46]line Товар: 47803008 [12:15:46]line Сигареты Winston XS Blue [12:15:46]line 1.000 * 144.00 [12:15:46]line = 144.00 [12:15:46]line ÐДС 12% ÐСП 1% [12:15:46]line > о реализуемом товаре [12:15:46]line ИТОГО: 144.00 [12:15:46]line ÐСП 1% : 1.27 [12:15:46]line ÐДС 12% : 15.29 [12:15:46]line Ðаличными: 144.00 [12:15:46]line Безнал.: 0.00 [12:15:46]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:15:46]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:15:46]line СÐО: Общий режим [12:15:46]line Чек 66 18.10.2024 12:15 [12:15:46]line Смена: 22 ФФД: 1.0 [12:15:46]line ЗÐМ: 0300000191 [12:15:46]line РÐМ: 0000000000207295 [12:15:46]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:15:46]line ФМ: 0000000002342820 [12:15:46]line ФД: 2441 [12:15:46]line ФПД: 118738080164065 [12:15:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121548&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2441&fm=118738080164065&tin=02508201610067®Number=0000000000207295&sum=14400 [12:15:46]OFD Sender: Processing packet 2441 [packets to send 1, broken 0] [12:15:46]ProducePacketName [12:15:46]name=ofd_packets/00002441 [12:15:46]OFD Sender: To server: ‡•öpG, [12:15:46]CommunicateWithHost lk.salyk.kg:30040 [12:15:46]ConnectInit lk.salyk.kg [12:15:46]line 0 [12:15:46]written 0, free lines is 4095 [12:15:46]Connected sock=10 [12:15:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 21 01 00 00 86 81 19 01 69 2F 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 08 00 34 37 38 30 33 30 30 38 06 04 20 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 58 53 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 74 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 89 09 00 00 35 04 06 00 6B FD DD 16 E8 E1 EE 0E BE 62 7E BE 95 27 [12:15:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 94 36 47 00 A0 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 32 33 34 32 38 32 30 10 04 04 00 89 09 00 00 F4 03 04 00 D8 FC 11 67 B6 04 01 00 00 23 51 F7 C7 66 FF 39 D2 [12:15:46]CommunicateWithHost err = 0 [12:15:46]CheckOFDResponse [12:15:46]1017 (14) - 77093643461234 [12:15:46]1041 (16) - 0000000002342820 [12:15:46]1040 (4) - 2441 [12:15:46]1012 (4) - 18.10.2024 06:14 [12:15:46]1206 (1) - 0 [12:15:46]OFD Sender: Remove packet 2441 [12:15:46]ProducePacketName [12:15:46]name=ofd_packets/00002441 [12:15:46]NVStorageDeleteData [12:15:47]Write to MH i2c: 01 00 00 CB 20 EB [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: 01 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: 01 07 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: 01 07 00 CB 20 00 00 00 00 00 C8 0C C6 [12:15:47]RasterBufferAndPrint [12:15:47]line [12:15:47]line [12:15:47]line [12:15:47]line [12:15:47]line [12:15:47]written 0, free lines is 3276 [12:15:47]MH_Cut [12:15:47]Write to MH i2c: D1 01 00 D2 20 01 C4 [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: D1 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: D1 01 00 [12:15:47]MH_I2C_Read... [12:15:47]Read from MH i2c: D1 01 00 D2 20 00 C3 [12:15:47]Write to MH i2c: 01 00 00 D3 20 F3 [12:15:47]Write i2c OK [12:15:47]MH_I2C_Read... [12:15:47]OFD Sender: No OFD packet to send [12:15:47]*** Cut start [12:15:47]*** Partial cut [12:15:47]*** CUTSNS_PIN = 1 [12:15:47]*** CUTSNS_PIN = 0 [12:15:48]*** Brake cut motor [12:15:48]Read from MH i2c: 01 [12:15:48]MH_I2C_Read... [12:15:48]*** Stop cut motor [12:15:48]*** Cut end [12:15:48]Read from MH i2c: 01 07 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: 01 07 00 D3 20 00 00 00 00 00 FF 0F 08 [12:15:48]process_action close_receipt done [12:15:48]requested_data is exist [12:15:48]produce_requested_data [12:15:48]requested_item fm.sn is exist - process it [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 11 00 00 [12:15:48]Write to MH i2c: E2 08 00 D4 20 80 11 00 00 00 00 00 00 6E [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 17 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 17 00 D4 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B6 [12:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:15:48]wFMCommunicate OK [12:15:48]requested_item fd.num is exist - process it [12:15:48]SAM_PROTO_GetFieldsCounters [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 13 00 00 [12:15:48]Write to MH i2c: E2 08 00 D5 20 80 13 00 00 00 00 00 00 71 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 62 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 62 00 D5 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 89 09 00 00 0E 04 04 00 16 00 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 F5 [12:15:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 89 09 00 00 0E 04 04 00 16 00 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:15:48]wFMCommunicate OK [12:15:48]SAM_PROTO_GetFieldsCounters done [12:15:48]requested_item shift.num is exist - process it [12:15:48]requested_item shift.opened is exist - process it [12:15:48]req_shift_opened [12:15:48]FM_GetShiftState [12:15:48]SAM_PROTO_GetShiftState [12:15:48]wFMCommunicate request_size=4 [12:15:48]MH_SAM_APDU [12:15:48]CAPDU: 80 13 01 00 [12:15:48]Write to MH i2c: E2 08 00 D6 20 80 13 01 00 00 00 00 00 73 [12:15:48]Write i2c OK [12:15:48]MH_I2C_Read... [12:15:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:15:48]Read from MH i2c: E2 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 0E 00 [12:15:48]MH_I2C_Read... [12:15:48]Read from MH i2c: E2 0E 00 D6 20 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 11 [12:15:48]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:15:48]wFMCommunicate OK [12:15:48]SAM_PROTO_GetShiftState done [12:15:48]FM_GetShiftState done [12:15:48]req_shift_opened done [12:15:48]requested_item shift.open_date is exist - process it [12:15:48]req_shift_open_date [12:15:48]req_shift_open_date done [12:15:48]produce_requested_data done [12:15:48]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2441,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:15:48]process_action_free close_receipt [12:15:48]json_value_free [12:15:48]json_value_free done [12:15:48]process_json_proto returns [12:15:48]Send response to host [12:15:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2441,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:15:48]free response buf [12:15:48]execute_script done [12:15:48]execute_script returns [12:15:48]free content buf [12:15:48]Sock 7.Close socket [12:15:48]Sock 7.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:26]accept exits with 9 [12:16:26]New connection [12:16:26]New thread 3066850660 created [12:16:26]Thread 3066707300 joined [12:16:26]Waiting for new connection... [12:16:26] Sock 9.Parse request [12:16:26]Sock 9.Check first char [12:16:26]Sock 9.First char is OK [12:16:26]request: POST /json_proto HTTP/1.0 [12:16:26]Method: POST [12:16:26]URL: /json_proto [12:16:26]Method is POST - this is cgi request [12:16:26]url: /json_proto [12:16:26]query_string will be loaded in cgi processing [12:16:26]execute_cgi json_proto POST (null) [12:16:26]execute_cgi path=json_proto method=POST [12:16:26]POST find Content-Length [12:16:26]Host: 172.17.52.132:8080 [12:16:26]Content-Length: 677 [12:16:26]Content-Type: application/json [12:16:26] [12:16:26]POST finish read [12:16:26]Found Content-Length = 677 [12:16:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475369", "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" : 74.20, "quantity" : 7.010, "sum" : 520.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:26]execute_script... [12:16: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)475369", "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" : 74.20, "quantity" : 7.010, "sum" : 520.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:26]POST & json_proto [12:16:26]process_json_proto [12:16:26]json parsed OK: [12:16:26]protocol is kg_v1.0 [12:16:26]action value=close_receipt [12:16:26]process_action close_receipt [12:16:26]cmd_close_receipt [12:16:26]MH_GetDate [12:16:26]Write to MH i2c: F0 00 00 D7 20 E6 [12:16:26]Write i2c OK [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: F0 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: F0 09 00 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: F0 09 00 D7 20 00 9E 51 12 67 5A BE F6 66 CB [12:16:26]GetLastDocTimeStamp 1729253748 [12:16:26]current date 1729253790 [12:16:26]FM_GetShiftState [12:16:26]SAM_PROTO_GetShiftState [12:16:26]wFMCommunicate request_size=4 [12:16:26]MH_SAM_APDU [12:16:26]CAPDU: 80 13 01 00 [12:16:26]Write to MH i2c: E2 08 00 D8 20 80 13 01 00 00 00 00 00 75 [12:16:26]Write i2c OK [12:16:26]MH_I2C_Read... [12:16:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:26]Read from MH i2c: E2 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: E2 0E 00 [12:16:26]MH_I2C_Read... [12:16:26]Read from MH i2c: E2 0E 00 D8 20 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 13 [12:16:26]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:16:26]wFMCommunicate OK [12:16:26]SAM_PROTO_GetShiftState done [12:16:26]FM_GetShiftState done [12:16:26]opened in 1729209717 [12:16:26]opened+sec_in_day 1729296117 [12:16:26]quantity*price = 52014 [12:16:26]sum+1 = 52015 [12:16:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.14 ИТОГО: 520.00 ВнеÑено: 520.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.60 ÐДС 12% : 55.24 Ðаличными: 520.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 67 18.10.2024 12:16 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2442 ФПД: 5845517652419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121630&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2442&fm=5845517652419&tin=02508201610067®Number=0000000000207295&sum=52000 [12:16:27]StoreToDocumentArchive [12:16:27]shift 22 fd 2442 [12:16:27]save to /storage/0022/doc_00002442 [12:16:27]save last doc name /storage/0022/doc_00002442 to /storage/kkm_last_doc_name [12:16:27]save OK [12:16:27]Clear old archive folders... [12:16:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:16:27]tlvbuf is 01399AB0 [12:16:27]SAM_PROTO_ClearQueue [12:16:27]wFMCommunicate request_size=4 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 09 00 00 [12:16:27]Write to MH i2c: E2 08 00 E5 20 80 09 00 00 00 00 00 00 77 [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 E5 20 00 90 00 79 [12:16:27]RAPDU: 90 00 [12:16:27]wFMCommunicate OK [12:16:27]SAM_PROTO_ClearQueue done [12:16:27]KKMCreateOFDPacket [12:16:27]OFDProtocolAddRootSTLVToBuf [12:16:27]FM_MakeSignedData [12:16:27]FM_MakeSignedData [12:16:27]SAM_PROTO_SignData [12:16:27]wFMCommunicate request_size=4 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 0D 01 02 [12:16:27]Write to MH i2c: E2 08 00 E6 20 80 0D 01 02 00 00 00 00 7F [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 E6 20 00 90 00 7A [12:16:27]RAPDU: 90 00 [12:16:27]wFMCommunicate OK [12:16:27]wFMCommunicate request_size=255 [12:16:27]MH_SAM_APDU [12:16: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 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9E 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8A 09 00 00 35 04 06 00 05 [12:16:27]Write to MH i2c: E2 02 01 E7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9E 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8A 09 00 00 35 04 06 00 05 00 00 B5 [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 E7 20 00 90 00 7B [12:16:27]RAPDU: 90 00 [12:16:27]wFMCommunicate OK [12:16:27]wFMCommunicate request_size=10 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 0D 02 02 05 51 04 00 D1 C3 [12:16:27]Write to MH i2c: E2 0D 00 E8 20 80 0D 02 02 05 00 51 04 00 D1 C3 00 00 75 [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:16:27]Read from MH i2c: E2 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 [12:16:27]MH_I2C_Read... [12:16:27]Read from MH i2c: E2 03 00 E8 20 00 90 00 7C [12:16:27]RAPDU: 90 00 [12:16:27]wFMCommunicate OK [12:16:27]wFMCommunicate request_size=4 [12:16:27]MH_SAM_APDU [12:16:27]CAPDU: 80 0D 03 02 [12:16:27]Write to MH i2c: E2 08 00 E9 20 80 0D 03 02 00 00 00 00 84 [12:16:27]Write i2c OK [12:16:27]MH_I2C_Read... [12:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:16:28]Read from MH i2c: E2 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 0B 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 0B 00 E9 20 00 3C B4 20 5F F9 34 60 04 90 00 85 [12:16:28]RAPDU: 3C B4 20 5F F9 34 60 04 90 00 [12:16:28]wFMCommunicate OK [12:16:28]SAM_PROTO_SignData done [12:16:28]FM_MakeSignedData done [12:16:28]CreateOFDProtocolMessage [12:16:28]wFMCommunicate request_size=4 [12:16:28]MH_SAM_APDU [12:16:28]CAPDU: 80 11 00 00 [12:16:28]Write to MH i2c: E2 08 00 EA 20 80 11 00 00 00 00 00 00 84 [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:28]Read from MH i2c: E2 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 17 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: E2 17 00 EA 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CC [12:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:16:28]wFMCommunicate OK [12:16:28]CreateOFDProtocolMessage done [12:16:28]OFDSenderStorePacket 2442 [12:16:28]StoreOFDPacket docnum=2442 [12:16:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 D0 BE 07 01 70 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9E 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8A 09 00 00 35 04 06 00 05 51 04 00 D1 C3 3C B4 20 5F F9 34 60 04 [12:16:28]CheckFolder [12:16:28]dirname=/storage/ofd_packets [12:16:28]CheckFolder done [12:16:28]ProducePacketName [12:16:28]name=ofd_packets/00002442 [12:16:28]NVStorageSaveData ofd_packets/00002442 [12:16:28]File name is /storage/ofd_packets/00002442 [12:16:28]Write 301 bytes [12:16:28]NVStorageSaveData done [12:16:28]OFDSenderStorePacket done [12:16:28]KKMCreateOFDPacket done [12:16:28]NVStorageSaveData kkm_last_timestamp [12:16:28]File name is /storage/kkm_last_timestamp [12:16:28]Write 4 bytes [12:16:28]NVStorageSaveData done [12:16:28]ExternCall_PrintAddStr [12:16:28]wPrintStart [12:16:28]Write to MH i2c: 01 00 00 EB 20 0B [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 07 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 07 00 EB 20 00 00 00 00 00 FF 0F 20 [12:16:28]RasterBufferAndPrint [12:16:28]line Счет N : (1)475369 [12:16:28]line ИÐÐ: 02508201610067 [12:16:28]line Контрольно-КаÑÑовый Чек [12:16:28]line ПРОДÐЖР[12:16:28]line ТРК (МРК, ГÐК) : 41 [12:16:28]line Товар: 2710124500 [12:16:28]line Ðи-95-К-5 [12:16:28]line 7.010 * 74.20 [12:16:28]line = 520.14 [12:16:28]line ÐДС 12% ÐСП 1% [12:16:28]line > о реализуемом товаре [12:16:28]line ОКРУГЛЕÐИЕ: -0.14 [12:16:28]line ИТОГО: 520.00 [12:16:28]line ВнеÑено: 520.00 [12:16:28]line СДÐЧÐ: 0.00 [12:16:28]line ÐСП 1% : 4.60 [12:16:28]line ÐДС 12% : 55.24 [12:16:28]line Ðаличными: 520.00 [12:16:28]line Безнал.: 0.00 [12:16:28]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:16:28]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:16:28]line СÐО: Общий режим [12:16:28]line Чек 67 18.10.2024 12:16 [12:16:28]line Смена: 22 ФФД: 1.0 [12:16:28]line ЗÐМ: 0300000191 [12:16:28]line РÐМ: 0000000000207295 [12:16:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:16:28]line ФМ: 0000000002342820 [12:16:28]line ФД: 2442 [12:16:28]line ФПД: 5845517652419 [12:16:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121630&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2442&fm=5845517652419&tin=02508201610067®Number=0000000000207295&sum=52000 [12:16:28]OFD Sender: Processing packet 2442 [packets to send 1, broken 0] [12:16:28]ProducePacketName [12:16:28]name=ofd_packets/00002442 [12:16:28]OFD Sender: To server: ‡•öpG, [12:16:28]CommunicateWithHost lk.salyk.kg:30040 [12:16:28]ConnectInit lk.salyk.kg [12:16:28]written 0, free lines is 4095 [12:16:28]Connected sock=10 [12:16:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 D0 BE 07 01 70 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 62 1B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 2E CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 9E 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8A 09 00 00 35 04 06 00 05 51 04 00 D1 C3 3C B4 20 5F F9 34 60 04 [12:16:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 4E 67 47 00 31 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8A 09 00 00 F4 03 04 00 02 FD 11 67 B6 04 01 00 00 C9 32 E1 D0 30 23 52 F1 [12:16:28]CommunicateWithHost err = 0 [12:16:28]CheckOFDResponse [12:16:28]1017 (14) - 77093643461234 [12:16:28]1041 (16) - 0000000002342820 [12:16:28]1040 (4) - 2442 [12:16:28]1012 (4) - 18.10.2024 06:15 [12:16:28]1206 (1) - 0 [12:16:28]OFD Sender: Remove packet 2442 [12:16:28]ProducePacketName [12:16:28]name=ofd_packets/00002442 [12:16:28]NVStorageDeleteData [12:16:28]Write to MH i2c: 01 00 00 16 21 37 [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 07 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: 01 07 00 16 21 00 00 00 00 00 A3 0C ED [12:16:28]RasterBufferAndPrint [12:16:28]line [12:16:28]line [12:16:28]line [12:16:28]line [12:16:28]line [12:16:28]written 0, free lines is 3239 [12:16:28]MH_Cut [12:16:28]Write to MH i2c: D1 01 00 1D 21 01 10 [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: D1 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: D1 01 00 [12:16:28]MH_I2C_Read... [12:16:28]Read from MH i2c: D1 01 00 1D 21 00 0F [12:16:28]Write to MH i2c: 01 00 00 1E 21 3F [12:16:28]Write i2c OK [12:16:28]MH_I2C_Read... [12:16:29]OFD Sender: No OFD packet to send [12:16:29]*** Cut start [12:16:29]*** Partial cut [12:16:29]*** CUTSNS_PIN = 1 [12:16:29]*** CUTSNS_PIN = 0 [12:16:30]*** Brake cut motor [12:16:30]Read from MH i2c: 01 [12:16:30]MH_I2C_Read... [12:16:30]*** Stop cut motor [12:16:30]*** Cut end [12:16:30]Read from MH i2c: 01 07 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: 01 07 00 1E 21 00 00 00 00 00 FF 0F 54 [12:16:30]process_action close_receipt done [12:16:30]requested_data is exist [12:16:30]produce_requested_data [12:16:30]requested_item fm.sn is exist - process it [12:16:30]wFMCommunicate request_size=4 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 11 00 00 [12:16:30]Write to MH i2c: E2 08 00 1F 21 80 11 00 00 00 00 00 00 BA [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:30]Read from MH i2c: E2 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 17 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 17 00 1F 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 02 [12:16:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:16:30]wFMCommunicate OK [12:16:30]requested_item fd.num is exist - process it [12:16:30]SAM_PROTO_GetFieldsCounters [12:16:30]wFMCommunicate request_size=4 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 13 00 00 [12:16:30]Write to MH i2c: E2 08 00 20 21 80 13 00 00 00 00 00 00 BD [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:30]Read from MH i2c: E2 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 62 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 62 00 20 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8A 09 00 00 0E 04 04 00 16 00 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 45 [12:16:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8A 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:30]wFMCommunicate OK [12:16:30]SAM_PROTO_GetFieldsCounters done [12:16:30]requested_item shift.num is exist - process it [12:16:30]requested_item shift.opened is exist - process it [12:16:30]req_shift_opened [12:16:30]FM_GetShiftState [12:16:30]SAM_PROTO_GetShiftState [12:16:30]wFMCommunicate request_size=4 [12:16:30]MH_SAM_APDU [12:16:30]CAPDU: 80 13 01 00 [12:16:30]Write to MH i2c: E2 08 00 21 21 80 13 01 00 00 00 00 00 BF [12:16:30]Write i2c OK [12:16:30]MH_I2C_Read... [12:16:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:30]Read from MH i2c: E2 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 0E 00 [12:16:30]MH_I2C_Read... [12:16:30]Read from MH i2c: E2 0E 00 21 21 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5D [12:16:30]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:16:30]wFMCommunicate OK [12:16:30]SAM_PROTO_GetShiftState done [12:16:30]FM_GetShiftState done [12:16:30]req_shift_opened done [12:16:30]requested_item shift.open_date is exist - process it [12:16:30]req_shift_open_date [12:16:30]req_shift_open_date done [12:16:30]produce_requested_data done [12:16:30]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2442,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:16:30]process_action_free close_receipt [12:16:30]json_value_free [12:16:30]json_value_free done [12:16:30]process_json_proto returns [12:16:30]Send response to host [12:16:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2442,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:16:30]free response buf [12:16:30]execute_script done [12:16:30]execute_script returns [12:16:30]free content buf [12:16:30]Sock 9.Close socket [12:16:30]Sock 9.Thread stoped [12:16:34]OFD Sender: No OFD packet to send [12:16:39]OFD Sender: No OFD packet to send [12:16:44]OFD Sender: No OFD packet to send [12:16:49]OFD Sender: No OFD packet to send [12:16:54]OFD Sender: No OFD packet to send [12:16:59]OFD Sender: No OFD packet to send [12:17:04]OFD Sender: No OFD packet to send [12:17:09]OFD Sender: No OFD packet to send [12:17:14]OFD Sender: No OFD packet to send [12:17:19]OFD Sender: No OFD packet to send [12:17:24]OFD Sender: No OFD packet to send [12:17:29]OFD Sender: No OFD packet to send [12:17:34]OFD Sender: No OFD packet to send [12:17:39]OFD Sender: No OFD packet to send [12:17:44]OFD Sender: No OFD packet to send [12:17:49]OFD Sender: No OFD packet to send [12:17:51]accept exits with 7 [12:17:51]New connection [12:17:51]New thread 3066707300 created [12:17:51]Thread 3066850660 joined [12:17:51]Waiting for new connection... [12:17:51] Sock 7.Parse request [12:17:51]Sock 7.Check first char [12:17:51]Sock 7.First char is OK [12:17:51]request: POST /json_proto HTTP/1.0 [12:17:51]Method: POST [12:17:51]URL: /json_proto [12:17:51]Method is POST - this is cgi request [12:17:51]url: /json_proto [12:17:51]query_string will be loaded in cgi processing [12:17:51]execute_cgi json_proto POST (null) [12:17:51]execute_cgi path=json_proto method=POST [12:17:51]POST find Content-Length [12:17:51]Host: 172.17.52.132:8080 [12:17:51]Content-Length: 670 [12:17:51]Content-Type: application/json [12:17:51] [12:17:51]POST finish read [12:17:51]Found Content-Length = 670 [12:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475370", "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" : 68.40, "quantity" : 4.680, "sum" : 320.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:51]execute_script... [12:17: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)475370", "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" : 68.40, "quantity" : 4.680, "sum" : 320.11, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 320.00, "total" : 320.00, "payments": [ { "type": 0, "sum" : 320.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:51]POST & json_proto [12:17:51]process_json_proto [12:17:51]json parsed OK: [12:17:51]protocol is kg_v1.0 [12:17:51]action value=close_receipt [12:17:51]process_action close_receipt [12:17:51]cmd_close_receipt [12:17:51]MH_GetDate [12:17:51]Write to MH i2c: F0 00 00 22 21 32 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: F0 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: F0 09 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: F0 09 00 22 21 00 F4 51 12 67 5A BE F6 66 6D [12:17:51]GetLastDocTimeStamp 1729253790 [12:17:51]current date 1729253876 [12:17:51]FM_GetShiftState [12:17:51]SAM_PROTO_GetShiftState [12:17:51]wFMCommunicate request_size=4 [12:17:51]MH_SAM_APDU [12:17:51]CAPDU: 80 13 01 00 [12:17:51]Write to MH i2c: E2 08 00 23 21 80 13 01 00 00 00 00 00 C1 [12:17:51]Write i2c OK [12:17:51]MH_I2C_Read... [12:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:51]Read from MH i2c: E2 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 [12:17:51]MH_I2C_Read... [12:17:51]Read from MH i2c: E2 0E 00 23 21 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5F [12:17:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:17:51]wFMCommunicate OK [12:17:51]SAM_PROTO_GetShiftState done [12:17:51]FM_GetShiftState done [12:17:51]opened in 1729209717 [12:17:51]opened+sec_in_day 1729296117 [12:17:51]quantity*price = 32011 [12:17:51]sum+1 = 32012 [12:17:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.11 ИТОГО: 320.00 ВнеÑено: 320.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.83 ÐДС 12% : 33.99 Ðаличными: 320.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 68 18.10.2024 12:17 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2443 ФПД: 119925368168622 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121756&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2443&fm=119925368168622&tin=02508201610067®Number=0000000000207295&sum=32000 [12:17:53]StoreToDocumentArchive [12:17:53]shift 22 fd 2443 [12:17:53]save to /storage/0022/doc_00002443 [12:17:53]save last doc name /storage/0022/doc_00002443 to /storage/kkm_last_doc_name [12:17:53]save OK [12:17:53]Clear old archive folders... [12:17:53]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:17:53]tlvbuf is B6F3F6B0 [12:17:53]SAM_PROTO_ClearQueue [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 09 00 00 [12:17:53]Write to MH i2c: E2 08 00 30 21 80 09 00 00 00 00 00 00 C3 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 03 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 03 00 30 21 00 90 00 C5 [12:17:53]RAPDU: 90 00 [12:17:53]wFMCommunicate OK [12:17:53]SAM_PROTO_ClearQueue done [12:17:53]KKMCreateOFDPacket [12:17:53]OFDProtocolAddRootSTLVToBuf [12:17:53]FM_MakeSignedData [12:17:53]FM_MakeSignedData [12:17:53]SAM_PROTO_SignData [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 0D 01 02 [12:17:53]Write to MH i2c: E2 08 00 31 21 80 0D 01 02 00 00 00 00 CB [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 03 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 03 00 31 21 00 90 00 C6 [12:17:53]RAPDU: 90 00 [12:17:53]wFMCommunicate OK [12:17:53]wFMCommunicate request_size=255 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0B 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8B 09 00 00 35 04 06 00 [12:17:53]Write to MH i2c: E2 02 01 32 21 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0B 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8B 09 00 00 35 04 06 00 00 00 3E [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 03 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 03 00 32 21 00 90 00 C7 [12:17:53]RAPDU: 90 00 [12:17:53]wFMCommunicate OK [12:17:53]wFMCommunicate request_size=11 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 0D 02 02 06 6D 12 4C F8 20 AE [12:17:53]Write to MH i2c: E2 0E 00 33 21 80 0D 02 02 06 00 6D 12 4C F8 20 AE 00 00 6B [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 03 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 03 00 33 21 00 90 00 C8 [12:17:53]RAPDU: 90 00 [12:17:53]wFMCommunicate OK [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 0D 03 02 [12:17:53]Write to MH i2c: E2 08 00 34 21 80 0D 03 02 00 00 00 00 D0 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0B 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 0B 00 34 21 00 D5 D3 BE 14 69 0C 64 BC 90 00 E0 [12:17:53]RAPDU: D5 D3 BE 14 69 0C 64 BC 90 00 [12:17:53]wFMCommunicate OK [12:17:53]SAM_PROTO_SignData done [12:17:53]FM_MakeSignedData done [12:17:53]CreateOFDProtocolMessage [12:17:53]wFMCommunicate request_size=4 [12:17:53]MH_SAM_APDU [12:17:53]CAPDU: 80 11 00 00 [12:17:53]Write to MH i2c: E2 08 00 35 21 80 11 00 00 00 00 00 00 D0 [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:53]Read from MH i2c: E2 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 17 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: E2 17 00 35 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 18 [12:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:17:53]wFMCommunicate OK [12:17:53]CreateOFDProtocolMessage done [12:17:53]OFDSenderStorePacket 2443 [12:17:53]StoreOFDPacket docnum=2443 [12:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 4E 3A 08 01 E9 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0B 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8B 09 00 00 35 04 06 00 6D 12 4C F8 20 AE D5 D3 BE 14 69 0C 64 BC [12:17:53]CheckFolder [12:17:53]dirname=/storage/ofd_packets [12:17:53]CheckFolder done [12:17:53]ProducePacketName [12:17:53]name=ofd_packets/00002443 [12:17:53]NVStorageSaveData ofd_packets/00002443 [12:17:53]File name is /storage/ofd_packets/00002443 [12:17:53]Write 302 bytes [12:17:53]NVStorageSaveData done [12:17:53]OFDSenderStorePacket done [12:17:53]KKMCreateOFDPacket done [12:17:53]NVStorageSaveData kkm_last_timestamp [12:17:53]File name is /storage/kkm_last_timestamp [12:17:53]Write 4 bytes [12:17:53]NVStorageSaveData done [12:17:53]ExternCall_PrintAddStr [12:17:53]wPrintStart [12:17:53]Write to MH i2c: 01 00 00 36 21 57 [12:17:53]OFD Sender: Processing packet 2443 [packets to send 1, broken 0] [12:17:53]ProducePacketName [12:17:53]name=ofd_packets/00002443 [12:17:53]OFD Sender: To server: ‡•öpG, [12:17:53]CommunicateWithHost lk.salyk.kg:30040 [12:17:53]ConnectInit lk.salyk.kg [12:17:53]Write i2c OK [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: 01 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: 01 07 00 [12:17:53]MH_I2C_Read... [12:17:53]Read from MH i2c: 01 07 00 36 21 00 00 00 00 00 FF 0F 6C [12:17:53]RasterBufferAndPrint [12:17:53]line Счет N : (1)475370 [12:17:53]line ИÐÐ: 02508201610067 [12:17:53]line Контрольно-КаÑÑовый Чек [12:17:53]line ПРОДÐЖР[12:17:53]line ТРК (МРК, ГÐК) : 33 [12:17:53]line Товар: 2710124130 [12:17:53]line SUPER-92-К-5 [12:17:53]line 4.680 * 68.40 [12:17:53]line = 320.11 [12:17:53]line ÐДС 12% ÐСП 1% [12:17:53]line > о реализуемом товаре [12:17:53]line ОКРУГЛЕÐИЕ: -0.11 [12:17:53]line ИТОГО: 320.00 [12:17:53]line ВнеÑено: 320.00 [12:17:53]line СДÐЧÐ: 0.00 [12:17:53]line ÐСП 1% : 2.83 [12:17:53]line ÐДС 12% : 33.99 [12:17:53]line Ðаличными: 320.00 [12:17:53]line Безнал.: 0.00 [12:17:53]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:17:53]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:17:53]line СÐО: Общий режим [12:17:53]line Чек 68 18.10.2024 12:17 [12:17:53]line Смена: 22 ФФД: 1.0 [12:17:53]line ЗÐМ: 0300000191 [12:17:53]line РÐМ: 0000000000207295 [12:17:53]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:17:53]line ФМ: 0000000002342820 [12:17:53]line ФД: 2443 [12:17:53]line ФПД: 119925368168622 [12:17:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121756&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2443&fm=119925368168622&tin=02508201610067®Number=0000000000207295&sum=32000 [12:17:53]Connected sock=10 [12:17:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 4E 3A 08 01 E9 4B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 48 12 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 0B 7D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 7D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 0D 00 00 00 00 07 04 06 00 00 7D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 F4 51 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8B 09 00 00 35 04 06 00 6D 12 4C F8 20 AE D5 D3 BE 14 69 0C 64 BC [12:17:53]written 0, free lines is 4095 [12:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 44 E9 47 00 11 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 32 33 34 32 38 32 30 10 04 04 00 8B 09 00 00 F4 03 04 00 57 FD 11 67 B6 04 01 00 00 72 57 2F 6F B8 79 B4 F1 [12:17:54]CommunicateWithHost err = 0 [12:17:54]CheckOFDResponse [12:17:54]1017 (14) - 77093643461234 [12:17:54]1041 (16) - 0000000002342820 [12:17:54]1040 (4) - 2443 [12:17:54]1012 (4) - 18.10.2024 06:16 [12:17:54]1206 (1) - 0 [12:17:54]OFD Sender: Remove packet 2443 [12:17:54]ProducePacketName [12:17:54]name=ofd_packets/00002443 [12:17:54]NVStorageDeleteData [12:17:54]Write to MH i2c: 01 00 00 61 21 82 [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 07 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: 01 07 00 61 21 00 00 00 00 00 A4 0C 39 [12:17:54]RasterBufferAndPrint [12:17:54]line [12:17:54]line [12:17:54]line [12:17:54]line [12:17:54]line [12:17:54]written 0, free lines is 3239 [12:17:54]MH_Cut [12:17:54]Write to MH i2c: D1 01 00 68 21 01 5B [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: D1 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: D1 01 00 [12:17:54]MH_I2C_Read... [12:17:54]Read from MH i2c: D1 01 00 68 21 00 5A [12:17:54]Write to MH i2c: 01 00 00 69 21 8A [12:17:54]Write i2c OK [12:17:54]MH_I2C_Read... [12:17:54]OFD Sender: No OFD packet to send [12:17:55]*** Cut start [12:17:55]*** Partial cut [12:17:55]*** CUTSNS_PIN = 1 [12:17:55]*** CUTSNS_PIN = 0 [12:17:55]*** Brake cut motor [12:17:55]Read from MH i2c: 01 [12:17:55]MH_I2C_Read... [12:17:55]*** Stop cut motor [12:17:55]*** Cut end [12:17:55]Read from MH i2c: 01 07 00 [12:17:55]MH_I2C_Read... [12:17:55]Read from MH i2c: 01 07 00 69 21 00 00 00 00 00 FF 0F 9F [12:17:55]process_action close_receipt done [12:17:55]requested_data is exist [12:17:55]produce_requested_data [12:17:55]requested_item fm.sn is exist - process it [12:17:55]wFMCommunicate request_size=4 [12:17:55]MH_SAM_APDU [12:17:55]CAPDU: 80 11 00 00 [12:17:55]Write to MH i2c: E2 08 00 6A 21 80 11 00 00 00 00 00 00 05 [12:17:55]Write i2c OK [12:17:55]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 17 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 17 00 6A 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 4D [12:17:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:17:56]wFMCommunicate OK [12:17:56]requested_item fd.num is exist - process it [12:17:56]SAM_PROTO_GetFieldsCounters [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 13 00 00 [12:17:56]Write to MH i2c: E2 08 00 6B 21 80 13 00 00 00 00 00 00 08 [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 62 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 62 00 6B 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8B 09 00 00 0E 04 04 00 16 00 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 94 [12:17:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8B 09 00 00 0E 04 04 00 16 00 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:17:56]wFMCommunicate OK [12:17:56]SAM_PROTO_GetFieldsCounters done [12:17:56]requested_item shift.num is exist - process it [12:17:56]requested_item shift.opened is exist - process it [12:17:56]req_shift_opened [12:17:56]FM_GetShiftState [12:17:56]SAM_PROTO_GetShiftState [12:17:56]wFMCommunicate request_size=4 [12:17:56]MH_SAM_APDU [12:17:56]CAPDU: 80 13 01 00 [12:17:56]Write to MH i2c: E2 08 00 6C 21 80 13 01 00 00 00 00 00 0A [12:17:56]Write i2c OK [12:17:56]MH_I2C_Read... [12:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:56]Read from MH i2c: E2 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 0E 00 [12:17:56]MH_I2C_Read... [12:17:56]Read from MH i2c: E2 0E 00 6C 21 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A8 [12:17:56]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:17:56]wFMCommunicate OK [12:17:56]SAM_PROTO_GetShiftState done [12:17:56]FM_GetShiftState done [12:17:56]req_shift_opened done [12:17:56]requested_item shift.open_date is exist - process it [12:17:56]req_shift_open_date [12:17:56]req_shift_open_date done [12:17:56]produce_requested_data done [12:17:56]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2443,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:17:56]process_action_free close_receipt [12:17:56]json_value_free [12:17:56]json_value_free done [12:17:56]process_json_proto returns [12:17:56]Send response to host [12:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2443,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:17:56]free response buf [12:17:56]execute_script done [12:17:56]execute_script returns [12:17:56]free content buf [12:17:56]Sock 7.Close socket [12:17:56]Sock 7.Thread stoped [12:17:59]OFD Sender: No OFD packet to send [12:18:04]OFD Sender: No OFD packet to send [12:18:09]OFD Sender: No OFD packet to send [12:18:14]OFD Sender: No OFD packet to send [12:18:19]OFD Sender: No OFD packet to send [12:18:24]OFD Sender: No OFD packet to send [12:18:29]OFD Sender: No OFD packet to send [12:18:34]OFD Sender: No OFD packet to send [12:18:38]accept exits with 9 [12:18:38]New connection [12:18:38]New thread 3066850660 created [12:18:38]Thread 3066707300 joined [12:18:38]Waiting for new connection... [12:18:38] Sock 9.Parse request [12:18:38]Sock 9.Check first char [12:18:38]Sock 9.First char is OK [12:18:38]request: POST /json_proto HTTP/1.0 [12:18:38]Method: POST [12:18:38]URL: /json_proto [12:18:38]Method is POST - this is cgi request [12:18:38]url: /json_proto [12:18:38]query_string will be loaded in cgi processing [12:18:38]execute_cgi json_proto POST (null) [12:18:38]execute_cgi path=json_proto method=POST [12:18:38]POST find Content-Length [12:18:38]Host: 172.17.52.132:8080 [12:18:38]Content-Length: 1225 [12:18:38]Content-Type: application/json [12:18:38] [12:18:38]POST finish read [12:18:38]Found Content-Length = 1225 [12:18:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99847", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 5.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:38]execute_script... [12:18:38]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99847", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521292", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0421\u043E\u043A \u0431\u0435\u0440\u0435\u0437\u044B 1,2\u043B", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 5.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 279.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:18:38]POST & json_proto [12:18:38]process_json_proto [12:18:38]json parsed OK: [12:18:38]protocol is kg_v1.0 [12:18:38]action value=close_receipt [12:18:38]process_action close_receipt [12:18:38]cmd_close_receipt [12:18:38]MH_GetDate [12:18:38]Write to MH i2c: F0 00 00 6D 21 7D [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: F0 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: F0 09 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: F0 09 00 6D 21 00 22 52 12 67 5A BE F6 66 E7 [12:18:38]GetLastDocTimeStamp 1729253876 [12:18:38]current date 1729253922 [12:18:38]FM_GetShiftState [12:18:38]SAM_PROTO_GetShiftState [12:18:38]wFMCommunicate request_size=4 [12:18:38]MH_SAM_APDU [12:18:38]CAPDU: 80 13 01 00 [12:18:38]Write to MH i2c: E2 08 00 6E 21 80 13 01 00 00 00 00 00 0C [12:18:38]Write i2c OK [12:18:38]MH_I2C_Read... [12:18:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:38]Read from MH i2c: E2 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 0E 00 [12:18:38]MH_I2C_Read... [12:18:38]Read from MH i2c: E2 0E 00 6E 21 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 AA [12:18:38]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:18:38]wFMCommunicate OK [12:18:38]SAM_PROTO_GetShiftState done [12:18:38]FM_GetShiftState done [12:18:38]opened in 1729209717 [12:18:38]opened+sec_in_day 1729296117 [12:18:38]quantity*price = 10000 [12:18:38]sum+1 = 10001 [12:18:38]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521292 Ðапиток Сок березы 1,2л 1.000 * 104.00 = 104.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 4700000160099 Снек Курут индивидуальный 5.000 * 15.00 = 75.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 279.00 ÐСП 1% : 2.46 ÐДС 12% : 29.62 Ðаличными: 279.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 69 18.10.2024 12:18 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2444 ФПД: 214530093176736 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121842&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2444&fm=214530093176736&tin=02508201610067®Number=0000000000207295&sum=27900 0 [12:18:39]StoreToDocumentArchive [12:18:39]shift 22 fd 2444 [12:18:39]save to /storage/0022/doc_00002444 [12:18:39]save last doc name /storage/0022/doc_00002444 to /storage/kkm_last_doc_name [12:18:39]save OK [12:18:39]Clear old archive folders... [12:18:39]ProcessDocumentItem done err = 0, tmpTLVsize=501 [12:18:39]tlvbuf is 013B9AD0 [12:18:39]SAM_PROTO_ClearQueue [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 09 00 00 [12:18:39]Write to MH i2c: E2 08 00 7B 21 80 09 00 00 00 00 00 00 0E [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 7B 21 00 90 00 10 [12:18:39]RAPDU: 90 00 [12:18:39]wFMCommunicate OK [12:18:39]SAM_PROTO_ClearQueue done [12:18:39]KKMCreateOFDPacket [12:18:39]OFDProtocolAddRootSTLVToBuf [12:18:39]FM_MakeSignedData [12:18:39]FM_MakeSignedData [12:18:39]SAM_PROTO_SignData [12:18:39]wFMCommunicate request_size=4 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 0D 01 02 [12:18:39]Write to MH i2c: E2 08 00 7C 21 80 0D 01 02 00 00 00 00 16 [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 7C 21 00 90 00 11 [12:18:39]RAPDU: 90 00 [12:18:39]wFMCommunicate OK [12:18:39]wFMCommunicate request_size=255 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 0D 02 02 FA 03 00 F5 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 [12:18:39]Write to MH i2c: E2 02 01 7D 21 80 0D 02 02 FA 00 03 00 F5 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 00 00 DC [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:39]OFD Sender: No OFD packet to send [12:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:39]Read from MH i2c: E2 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 [12:18:39]MH_I2C_Read... [12:18:39]Read from MH i2c: E2 03 00 7D 21 00 90 00 12 [12:18:39]RAPDU: 90 00 [12:18:39]wFMCommunicate OK [12:18:39]wFMCommunicate request_size=255 [12:18:39]MH_SAM_APDU [12:18:39]CAPDU: 80 0D 02 02 FA B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 4C 1D 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 92 0B 00 00 00 00 07 04 06 00 FC 6C 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 22 52 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8C 09 00 00 35 04 06 00 C3 [12:18:39]Write to MH i2c: E2 02 01 7E 21 80 0D 02 02 FA 00 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 4C 1D 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 92 0B 00 00 00 00 07 04 06 00 FC 6C 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 22 52 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8C 09 00 00 35 04 06 00 C3 00 00 5E [12:18:39]Write i2c OK [12:18:39]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 03 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 03 00 7E 21 00 90 00 13 [12:18:40]RAPDU: 90 00 [12:18:40]wFMCommunicate OK [12:18:40]wFMCommunicate request_size=10 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 0D 02 02 05 1D 2D FF 57 A0 [12:18:40]Write to MH i2c: E2 0D 00 7F 21 80 0D 02 02 05 00 1D 2D FF 57 A0 00 00 64 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 03 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 03 00 7F 21 00 90 00 14 [12:18:40]RAPDU: 90 00 [12:18:40]wFMCommunicate OK [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 0D 03 02 [12:18:40]Write to MH i2c: E2 08 00 80 21 80 0D 03 02 00 00 00 00 1C [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0B 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 0B 00 80 21 00 E7 01 E4 71 02 1C 78 6D 90 00 5D [12:18:40]RAPDU: E7 01 E4 71 02 1C 78 6D 90 00 [12:18:40]wFMCommunicate OK [12:18:40]SAM_PROTO_SignData done [12:18:40]FM_MakeSignedData done [12:18:40]CreateOFDProtocolMessage [12:18:40]wFMCommunicate request_size=4 [12:18:40]MH_SAM_APDU [12:18:40]CAPDU: 80 11 00 00 [12:18:40]Write to MH i2c: E2 08 00 81 21 80 11 00 00 00 00 00 00 1C [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:40]Read from MH i2c: E2 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 17 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: E2 17 00 81 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 64 [12:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:18:40]wFMCommunicate OK [12:18:40]CreateOFDProtocolMessage done [12:18:40]OFDSenderStorePacket 2444 [12:18:40]StoreOFDPacket docnum=2444 [12:18:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 09 02 00 00 A5 97 01 02 96 B4 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 4C 1D 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 92 0B 00 00 00 00 07 04 06 00 FC 6C 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 22 52 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8C 09 00 00 35 04 06 00 C3 1D 2D FF 57 A0 E7 01 E4 71 02 1C 78 6D [12:18:40]CheckFolder [12:18:40]dirname=/storage/ofd_packets [12:18:40]CheckFolder done [12:18:40]ProducePacketName [12:18:40]name=ofd_packets/00002444 [12:18:40]NVStorageSaveData ofd_packets/00002444 [12:18:40]File name is /storage/ofd_packets/00002444 [12:18:40]Write 551 bytes [12:18:40]NVStorageSaveData done [12:18:40]OFDSenderStorePacket done [12:18:40]KKMCreateOFDPacket done [12:18:40]NVStorageSaveData kkm_last_timestamp [12:18:40]File name is /storage/kkm_last_timestamp [12:18:40]Write 4 bytes [12:18:40]NVStorageSaveData done [12:18:40]ExternCall_PrintAddStr [12:18:40]wPrintStart [12:18:40]Write to MH i2c: 01 00 00 82 21 A3 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 07 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 07 00 82 21 00 00 00 00 00 FF 0F B8 [12:18:40]RasterBufferAndPrint [12:18:40]line Счет N : (3)99847 [12:18:40]line ИÐÐ: 02508201610067 [12:18:40]line Контрольно-КаÑÑовый Чек [12:18:40]line ПРОДÐЖР[12:18:40]line Товар: 4700000160358 [12:18:40]line Вода Легенда 1л [12:18:40]line 2.000 * 50.00 [12:18:40]line = 100.00 [12:18:40]line ÐДС 12% ÐСП 1% [12:18:40]line > о реализуемом товаре [12:18:40]line Товар: 4870202521292 [12:18:40]line Ðапиток Сок березы 1,2л [12:18:40]line 1.000 * 104.00 [12:18:40]line = 104.00 [12:18:40]line ÐДС 12% ÐСП 1% [12:18:40]line > о реализуемом товаре [12:18:40]line Товар: 4700000160099 [12:18:40]line Снек Курут индивидуальный [12:18:40]line 5.000 * 15.00 [12:18:40]line = 75.00 [12:18:40]line ÐДС 12% ÐСП 1% [12:18:40]line > о реализуемом товаре [12:18:40]line ИТОГО: 279.00 [12:18:40]line ÐСП 1% : 2.46 [12:18:40]line ÐДС 12% : 29.62 [12:18:40]line Ðаличными: 279.00 [12:18:40]line Безнал.: 0.00 [12:18:40]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:18:40]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:18:40]line СÐО: Общий режим [12:18:40]line Чек 69 18.10.2024 12:18 [12:18:40]line Смена: 22 ФФД: 1.0 [12:18:40]line ЗÐМ: 0300000191 [12:18:40]line РÐМ: 0000000000207295 [12:18:40]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:18:40]line ФМ: 0000000002342820 [12:18:40]line ФД: 2444 [12:18:40]line ФПД: 214530093176736 [12:18:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T121842&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2444&fm=214530093176736&tin=02508201610067®Number=0000000000207295&sum=27900 [12:18:40]line 0 [12:18:40]written 0, free lines is 4095 [12:18:40]OFD Sender: Processing packet 2444 [packets to send 1, broken 0] [12:18:40]ProducePacketName [12:18:40]name=ofd_packets/00002444 [12:18:40]OFD Sender: To server: ‡•öpG, [12:18:40]CommunicateWithHost lk.salyk.kg:30040 [12:18:40]ConnectInit lk.salyk.kg [12:18:40]Connected sock=10 [12:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 09 02 00 00 A5 97 01 02 96 B4 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 39 32 06 04 28 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A1 D0 BE D0 BA 20 D0 B1 D0 B5 D1 80 D0 B5 D0 B7 D1 8B 20 31 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 4C 1D 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 92 0B 00 00 00 00 07 04 06 00 FC 6C 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 22 52 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8C 09 00 00 35 04 06 00 C3 1D 2D FF 57 A0 E7 01 E4 71 02 1C 78 6D [12:18:40]Write to MH i2c: 01 00 00 B6 21 D7 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 07 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: 01 07 00 B6 21 00 00 00 00 00 0D 0C F7 [12:18:40]RasterBufferAndPrint [12:18:40]line [12:18:40]line [12:18:40]line [12:18:40]line [12:18:40]line [12:18:40]written 0, free lines is 3091 [12:18:40]MH_Cut [12:18:40]Write to MH i2c: D1 01 00 BD 21 01 B0 [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: D1 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: D1 01 00 [12:18:40]MH_I2C_Read... [12:18:40]Read from MH i2c: D1 01 00 BD 21 00 AF [12:18:40]Write to MH i2c: 01 00 00 BE 21 DF [12:18:40]Write i2c OK [12:18:40]MH_I2C_Read... [12:18:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 5A 75 47 00 E9 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 32 33 34 32 38 32 30 10 04 04 00 8C 09 00 00 F4 03 04 00 86 FD 11 67 B6 04 01 00 00 CE C0 41 D9 65 73 97 F6 [12:18:41]CommunicateWithHost err = 0 [12:18:41]CheckOFDResponse [12:18:41]1017 (14) - 77093643461234 [12:18:41]1041 (16) - 0000000002342820 [12:18:41]1040 (4) - 2444 [12:18:41]1012 (4) - 18.10.2024 06:17 [12:18:41]1206 (1) - 0 [12:18:41]OFD Sender: Remove packet 2444 [12:18:41]ProducePacketName [12:18:41]name=ofd_packets/00002444 [12:18:41]NVStorageDeleteData [12:18:41]OFD Sender: No OFD packet to send [12:18:41]*** Cut start [12:18:41]*** Partial cut [12:18:41]*** CUTSNS_PIN = 1 [12:18:42]*** CUTSNS_PIN = 0 [12:18:42]*** Brake cut motor [12:18:42]Read from MH i2c: 01 [12:18:42]MH_I2C_Read... [12:18:42]*** Stop cut motor [12:18:42]*** Cut end [12:18:42]Read from MH i2c: 01 07 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: 01 07 00 BE 21 00 00 00 00 00 FF 0F F4 [12:18:42]process_action close_receipt done [12:18:42]requested_data is exist [12:18:42]produce_requested_data [12:18:42]requested_item fm.sn is exist - process it [12:18:42]wFMCommunicate request_size=4 [12:18:42]MH_SAM_APDU [12:18:42]CAPDU: 80 11 00 00 [12:18:42]Write to MH i2c: E2 08 00 BF 21 80 11 00 00 00 00 00 00 5A [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:42]Read from MH i2c: E2 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 17 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 17 00 BF 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 A2 [12:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:18:42]wFMCommunicate OK [12:18:42]requested_item fd.num is exist - process it [12:18:42]SAM_PROTO_GetFieldsCounters [12:18:42]wFMCommunicate request_size=4 [12:18:42]MH_SAM_APDU [12:18:42]CAPDU: 80 13 00 00 [12:18:42]Write to MH i2c: E2 08 00 C0 21 80 13 00 00 00 00 00 00 5D [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:42]Read from MH i2c: E2 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 62 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 62 00 C0 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8C 09 00 00 0E 04 04 00 16 00 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 ED [12:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8C 09 00 00 0E 04 04 00 16 00 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:18:42]wFMCommunicate OK [12:18:42]SAM_PROTO_GetFieldsCounters done [12:18:42]requested_item shift.num is exist - process it [12:18:42]requested_item shift.opened is exist - process it [12:18:42]req_shift_opened [12:18:42]FM_GetShiftState [12:18:42]SAM_PROTO_GetShiftState [12:18:42]wFMCommunicate request_size=4 [12:18:42]MH_SAM_APDU [12:18:42]CAPDU: 80 13 01 00 [12:18:42]Write to MH i2c: E2 08 00 C1 21 80 13 01 00 00 00 00 00 5F [12:18:42]Write i2c OK [12:18:42]MH_I2C_Read... [12:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:42]Read from MH i2c: E2 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 0E 00 [12:18:42]MH_I2C_Read... [12:18:42]Read from MH i2c: E2 0E 00 C1 21 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 FD [12:18:42]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:18:42]wFMCommunicate OK [12:18:42]SAM_PROTO_GetShiftState done [12:18:42]FM_GetShiftState done [12:18:42]req_shift_opened done [12:18:42]requested_item shift.open_date is exist - process it [12:18:42]req_shift_open_date [12:18:42]req_shift_open_date done [12:18:42]produce_requested_data done [12:18:42]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2444,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:18:42]process_action_free close_receipt [12:18:42]json_value_free [12:18:42]json_value_free done [12:18:42]process_json_proto returns [12:18:42]Send response to host [12:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2444,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:18:42]free response buf [12:18:42]execute_script done [12:18:42]execute_script returns [12:18:42]free content buf [12:18:42]Sock 9.Close socket [12:18:42]Sock 9.Thread stoped [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:31]OFD Sender: No OFD packet to send [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:21]OFD Sender: No OFD packet to send [12:24:26]OFD Sender: No OFD packet to send [12:24:31]OFD Sender: No OFD packet to send [12:24:36]OFD Sender: No OFD packet to send [12:24:41]OFD Sender: No OFD packet to send [12:24:46]OFD Sender: No OFD packet to send [12:24:51]OFD Sender: No OFD packet to send [12:24:56]OFD Sender: No OFD packet to send [12:25:01]OFD Sender: No OFD packet to send [12:25:06]OFD Sender: No OFD packet to send [12:25:11]OFD Sender: No OFD packet to send [12:25:16]OFD Sender: No OFD packet to send [12:25:21]OFD Sender: No OFD packet to send [12:25:26]OFD Sender: No OFD packet to send [12:25:31]OFD Sender: No OFD packet to send [12:25:36]OFD Sender: No OFD packet to send [12:25:41]OFD Sender: No OFD packet to send [12:25:46]OFD Sender: No OFD packet to send [12:25:51]OFD Sender: No OFD packet to send [12:25:56]OFD Sender: No OFD packet to send [12:26:01]OFD Sender: No OFD packet to send [12:26:06]OFD Sender: No OFD packet to send [12:26:11]OFD Sender: No OFD packet to send [12:26:16]OFD Sender: No OFD packet to send [12:26:21]OFD Sender: No OFD packet to send [12:26:26]OFD Sender: No OFD packet to send [12:26:31]OFD Sender: No OFD packet to send [12:26:36]OFD Sender: No OFD packet to send [12:26:41]OFD Sender: No OFD packet to send [12:26:46]OFD Sender: No OFD packet to send [12:26:51]OFD Sender: No OFD packet to send [12:26:56]OFD Sender: No OFD packet to send [12:27:01]OFD Sender: No OFD packet to send [12:27:06]OFD Sender: No OFD packet to send [12:27:11]OFD Sender: No OFD packet to send [12:27:16]OFD Sender: No OFD packet to send [12:27:21]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:41]OFD Sender: No OFD packet to send [12:27:46]OFD Sender: No OFD packet to send [12:27:51]OFD Sender: No OFD packet to send [12:27:56]OFD Sender: No OFD packet to send [12:28:01]OFD Sender: No OFD packet to send [12:28:06]OFD Sender: No OFD packet to send [12:28:11]OFD Sender: No OFD packet to send [12:28:16]OFD Sender: No OFD packet to send [12:28:21]OFD Sender: No OFD packet to send [12:28:26]OFD Sender: No OFD packet to send [12:28:31]OFD Sender: No OFD packet to send [12:28:36]OFD Sender: No OFD packet to send [12:28:41]OFD Sender: No OFD packet to send [12:28:46]OFD Sender: No OFD packet to send [12:28:51]OFD Sender: No OFD packet to send [12:28:56]OFD Sender: No OFD packet to send [12:29:01]OFD Sender: No OFD packet to send [12:29:06]OFD Sender: No OFD packet to send [12:29:11]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:22]OFD Sender: No OFD packet to send [12:31:26]accept exits with 7 [12:31:26]New connection [12:31:26]New thread 3066707300 created [12:31:26]Thread 3066850660 joined [12:31:26]Waiting for new connection... [12:31:26] Sock 7.Parse request [12:31:26]Sock 7.Check first char [12:31:26]Sock 7.First char is OK [12:31:26]request: POST /json_proto HTTP/1.0 [12:31:26]Method: POST [12:31:26]URL: /json_proto [12:31:26]Method is POST - this is cgi request [12:31:26]url: /json_proto [12:31:26]query_string will be loaded in cgi processing [12:31:26]execute_cgi json_proto POST (null) [12:31:26]execute_cgi path=json_proto method=POST [12:31:26]POST find Content-Length [12:31:26]Host: 172.17.52.132:8080 [12:31:26]Content-Length: 897 [12:31:26]Content-Type: application/json [12:31:26] [12:31:26]POST finish read [12:31:26]Found Content-Length = 897 [12:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99848", "tax_sys" : 0, "items" : [ { "code": "4870145004906", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A Flash Up Bubble Gum 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:26]execute_script... [12:31: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 : (3)99848", "tax_sys" : 0, "items" : [ { "code": "4870145004906", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0431\u0435\u0437\u0430\u043B\u043A Flash Up Bubble Gum 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:31:26]POST & json_proto [12:31:26]process_json_proto [12:31:26]json parsed OK: [12:31:26]protocol is kg_v1.0 [12:31:26]action value=close_receipt [12:31:26]process_action close_receipt [12:31:26]cmd_close_receipt [12:31:26]MH_GetDate [12:31:26]Write to MH i2c: F0 00 00 C2 21 D2 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: F0 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: F0 09 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: F0 09 00 C2 21 00 22 55 12 67 5A BE F6 66 3F [12:31:26]GetLastDocTimeStamp 1729253922 [12:31:26]current date 1729254690 [12:31:26]FM_GetShiftState [12:31:26]SAM_PROTO_GetShiftState [12:31:26]wFMCommunicate request_size=4 [12:31:26]MH_SAM_APDU [12:31:26]CAPDU: 80 13 01 00 [12:31:26]Write to MH i2c: E2 08 00 C3 21 80 13 01 00 00 00 00 00 61 [12:31:26]Write i2c OK [12:31:26]MH_I2C_Read... [12:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:26]Read from MH i2c: E2 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 0E 00 [12:31:26]MH_I2C_Read... [12:31:26]Read from MH i2c: E2 0E 00 C3 21 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 FF [12:31:26]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:31:26]wFMCommunicate OK [12:31:26]SAM_PROTO_GetShiftState done [12:31:26]FM_GetShiftState done [12:31:26]opened in 1729209717 [12:31:26]opened+sec_in_day 1729296117 [12:31:26]quantity*price = 9500 [12:31:26]sum+1 = 9501 [12:31:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 239.00 ÐСП 1% : 2.11 ÐДС 12% : 25.38 Ðаличными: 239.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 70 18.10.2024 12:31 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2445 ФПД: 108299286789662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T123130&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2445&fm=108299286789662&tin=02508201610067®Number=0000000000207295&sum=23900 0 [12:31:27]StoreToDocumentArchive [12:31:27]shift 22 fd 2445 [12:31:27]save to /storage/0022/doc_00002445 [12:31:27]save last doc name /storage/0022/doc_00002445 to /storage/kkm_last_doc_name [12:31:27]save OK [12:31:27]Clear old archive folders... [12:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=398 [12:31:27]tlvbuf is 013B9AD0 [12:31:27]SAM_PROTO_ClearQueue [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 09 00 00 [12:31:27]Write to MH i2c: E2 08 00 D0 21 80 09 00 00 00 00 00 00 63 [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 03 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 03 00 D0 21 00 90 00 65 [12:31:27]RAPDU: 90 00 [12:31:27]wFMCommunicate OK [12:31:27]SAM_PROTO_ClearQueue done [12:31:27]KKMCreateOFDPacket [12:31:27]OFDProtocolAddRootSTLVToBuf [12:31:27]FM_MakeSignedData [12:31:27]FM_MakeSignedData [12:31:27]SAM_PROTO_SignData [12:31:27]wFMCommunicate request_size=4 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 0D 01 02 [12:31:27]Write to MH i2c: E2 08 00 D1 21 80 0D 01 02 00 00 00 00 6B [12:31:27]Write i2c OK [12:31:27]MH_I2C_Read... [12:31:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:31:27]Read from MH i2c: E2 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 03 00 [12:31:27]MH_I2C_Read... [12:31:27]Read from MH i2c: E2 03 00 D1 21 00 90 00 66 [12:31:27]RAPDU: 90 00 [12:31:27]wFMCommunicate OK [12:31:27]wFMCommunicate request_size=255 [12:31:27]MH_SAM_APDU [12:31:27]CAPDU: 80 0D 02 02 FA 03 00 8E 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 30 36 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 5C 5D 00 00 00 00 EB 03 26 [12:31:27]Write to MH i2c: E2 02 01 D2 21 80 0D 02 02 FA 00 03 00 8E 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 30 36 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 5C 5D 00 00 00 00 EB 03 26 00 00 A0 [12:31:28]Write i2c OK [12:31:28]MH_I2C_Read... [12:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:28]Read from MH i2c: E2 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 03 00 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 03 00 D2 21 00 90 00 67 [12:31:28]RAPDU: 90 00 [12:31:28]wFMCommunicate OK [12:31:28]wFMCommunicate request_size=157 [12:31:28]MH_SAM_APDU [12:31:28]CAPDU: 80 0D 02 02 98 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 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 46 00 00 00 F4 03 04 00 22 55 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8D 09 00 00 35 04 06 00 62 7F 64 84 BE 1E [12:31:28]Write to MH i2c: E2 A0 00 D3 21 80 0D 02 02 98 00 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 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 46 00 00 00 F4 03 04 00 22 55 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8D 09 00 00 35 04 06 00 62 7F 64 84 BE 1E 00 00 C2 [12:31:28]Write i2c OK [12:31:28]MH_I2C_Read... [12:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:31:28]Read from MH i2c: E2 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 03 00 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 03 00 D3 21 00 90 00 68 [12:31:28]RAPDU: 90 00 [12:31:28]wFMCommunicate OK [12:31:28]wFMCommunicate request_size=4 [12:31:28]MH_SAM_APDU [12:31:28]CAPDU: 80 0D 03 02 [12:31:28]Write to MH i2c: E2 08 00 D4 21 80 0D 03 02 00 00 00 00 70 [12:31:28]Write i2c OK [12:31:28]MH_I2C_Read... [12:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:31:28]Read from MH i2c: E2 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 0B 00 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 0B 00 D4 21 00 34 7B 78 22 2C 99 64 D5 90 00 B8 [12:31:28]RAPDU: 34 7B 78 22 2C 99 64 D5 90 00 [12:31:28]wFMCommunicate OK [12:31:28]SAM_PROTO_SignData done [12:31:28]FM_MakeSignedData done [12:31:28]CreateOFDProtocolMessage [12:31:28]wFMCommunicate request_size=4 [12:31:28]MH_SAM_APDU [12:31:28]CAPDU: 80 11 00 00 [12:31:28]Write to MH i2c: E2 08 00 D5 21 80 11 00 00 00 00 00 00 70 [12:31:28]Write i2c OK [12:31:28]MH_I2C_Read... [12:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:28]Read from MH i2c: E2 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 17 00 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: E2 17 00 D5 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B8 [12:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:31:28]wFMCommunicate OK [12:31:28]CreateOFDProtocolMessage done [12:31:28]OFDSenderStorePacket 2445 [12:31:28]StoreOFDPacket docnum=2445 [12:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 A2 01 00 00 6F AC 9A 01 BD 64 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 30 36 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 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 46 00 00 00 F4 03 04 00 22 55 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8D 09 00 00 35 04 06 00 62 7F 64 84 BE 1E 34 7B 78 22 2C 99 64 D5 [12:31:28]CheckFolder [12:31:28]dirname=/storage/ofd_packets [12:31:28]CheckFolder done [12:31:28]ProducePacketName [12:31:28]name=ofd_packets/00002445 [12:31:28]NVStorageSaveData ofd_packets/00002445 [12:31:28]File name is /storage/ofd_packets/00002445 [12:31:28]Write 448 bytes [12:31:28]NVStorageSaveData done [12:31:28]OFDSenderStorePacket done [12:31:28]KKMCreateOFDPacket done [12:31:28]NVStorageSaveData kkm_last_timestamp [12:31:28]File name is /storage/kkm_last_timestamp [12:31:28]Write 4 bytes [12:31:28]NVStorageSaveData done [12:31:28]ExternCall_PrintAddStr [12:31:28]wPrintStart [12:31:28]Write to MH i2c: 01 00 00 D6 21 F7 [12:31:28]Write i2c OK [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: 01 [12:31:28]MH_I2C_Read... [12:31:28]Read from MH i2c: 01 07 00 [12:31:28]MH_I2C_Read... [12:31:28]OFD Sender: Processing packet 2445 [packets to send 1, broken 0] [12:31:28]ProducePacketName [12:31:28]name=ofd_packets/00002445 [12:31:28]OFD Sender: To server: ‡•öpG, [12:31:28]CommunicateWithHost lk.salyk.kg:30040 [12:31:28]ConnectInit lk.salyk.kg [12:31:28]Read from MH i2c: 01 07 00 D6 21 00 00 00 00 00 FF 0F 0C [12:31:28]RasterBufferAndPrint [12:31:28]line Счет N : (3)99848 [12:31:28]line ИÐÐ: 02508201610067 [12:31:28]line Контрольно-КаÑÑовый Чек [12:31:28]line ПРОДÐЖР[12:31:28]line Товар: 4870145004906 [12:31:28]line Ðапиток безалк Flash Up Bubble Gum 0,45 [12:31:28]line 1.000 * 95.00 [12:31:28]line = 95.00 [12:31:28]line ÐДС 12% ÐСП 1% [12:31:28]line > о реализуемом товаре [12:31:28]line Товар: 48743570 [12:31:28]line Сигареты Winston XStyle Blue [12:31:28]line 1.000 * 144.00 [12:31:28]line = 144.00 [12:31:28]line ÐДС 12% ÐСП 1% [12:31:28]line > о реализуемом товаре [12:31:28]line ИТОГО: 239.00 [12:31:28]line ÐСП 1% : 2.11 [12:31:28]line ÐДС 12% : 25.38 [12:31:28]line Ðаличными: 239.00 [12:31:28]line Безнал.: 0.00 [12:31:28]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:31:28]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:31:28]line СÐО: Общий режим [12:31:28]line Чек 70 18.10.2024 12:31 [12:31:28]line Смена: 22 ФФД: 1.0 [12:31:28]line ЗÐМ: 0300000191 [12:31:28]line РÐМ: 0000000000207295 [12:31:28]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:31:28]line ФМ: 0000000002342820 [12:31:28]line ФД: 2445 [12:31:28]line ФПД: 108299286789662 [12:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T123130&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2445&fm=108299286789662&tin=02508201610067®Number=0000000000207295&sum=23900 [12:31:28]line 0 [12:31:28]written 0, free lines is 4095 [12:31:28]Connected sock=10 [12:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 A2 01 00 00 6F AC 9A 01 BD 64 5A 03 01 00 03 00 8E 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 30 36 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B1 D0 B5 D0 B7 D0 B0 D0 BB D0 BA 20 46 6C 61 73 68 20 55 70 20 42 75 62 62 6C 65 20 47 75 6D 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 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 46 00 00 00 F4 03 04 00 22 55 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8D 09 00 00 35 04 06 00 62 7F 64 84 BE 1E 34 7B 78 22 2C 99 64 D5 [12:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 28 9D 47 00 8E 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 32 33 34 32 38 32 30 10 04 04 00 8D 09 00 00 F4 03 04 00 87 00 12 67 B6 04 01 00 00 0B FE 1C AE 2C 63 44 28 [12:31:29]CommunicateWithHost err = 0 [12:31:29]CheckOFDResponse [12:31:29]1017 (14) - 77093643461234 [12:31:29]1041 (16) - 0000000002342820 [12:31:29]1040 (4) - 2445 [12:31:29]1012 (4) - 18.10.2024 06:30 [12:31:29]1206 (1) - 0 [12:31:29]OFD Sender: Remove packet 2445 [12:31:29]ProducePacketName [12:31:29]name=ofd_packets/00002445 [12:31:29]NVStorageDeleteData [12:31:29]Write to MH i2c: 01 00 00 05 22 27 [12:31:29]Write i2c OK [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: 01 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: 01 07 00 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: 01 07 00 05 22 00 00 00 00 00 38 0C 72 [12:31:29]RasterBufferAndPrint [12:31:29]line [12:31:29]line [12:31:29]line [12:31:29]line [12:31:29]line [12:31:29]written 0, free lines is 3131 [12:31:29]MH_Cut [12:31:29]Write to MH i2c: D1 01 00 0C 22 01 00 [12:31:29]Write i2c OK [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: D1 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: D1 01 00 [12:31:29]MH_I2C_Read... [12:31:29]Read from MH i2c: D1 01 00 0C 22 00 FF [12:31:29]Write to MH i2c: 01 00 00 0D 22 2F [12:31:29]Write i2c OK [12:31:29]MH_I2C_Read... [12:31:29]OFD Sender: No OFD packet to send [12:31:30]*** Cut start [12:31:30]*** Partial cut [12:31:30]*** CUTSNS_PIN = 1 [12:31:30]*** CUTSNS_PIN = 0 [12:31:30]*** Brake cut motor [12:31:31]Read from MH i2c: 01 [12:31:31]MH_I2C_Read... [12:31:31]*** Stop cut motor [12:31:31]*** Cut end [12:31:31]Read from MH i2c: 01 07 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: 01 07 00 0D 22 00 00 00 00 00 FF 0F 44 [12:31:31]process_action close_receipt done [12:31:31]requested_data is exist [12:31:31]produce_requested_data [12:31:31]requested_item fm.sn is exist - process it [12:31:31]wFMCommunicate request_size=4 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 11 00 00 [12:31:31]Write to MH i2c: E2 08 00 0E 22 80 11 00 00 00 00 00 00 AA [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 17 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 17 00 0E 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F2 [12:31:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:31:31]wFMCommunicate OK [12:31:31]requested_item fd.num is exist - process it [12:31:31]SAM_PROTO_GetFieldsCounters [12:31:31]wFMCommunicate request_size=4 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 13 00 00 [12:31:31]Write to MH i2c: E2 08 00 0F 22 80 13 00 00 00 00 00 00 AD [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 62 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 62 00 0F 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8D 09 00 00 0E 04 04 00 16 00 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 41 [12:31:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8D 09 00 00 0E 04 04 00 16 00 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:31:31]wFMCommunicate OK [12:31:31]SAM_PROTO_GetFieldsCounters done [12:31:31]requested_item shift.num is exist - process it [12:31:31]requested_item shift.opened is exist - process it [12:31:31]req_shift_opened [12:31:31]FM_GetShiftState [12:31:31]SAM_PROTO_GetShiftState [12:31:31]wFMCommunicate request_size=4 [12:31:31]MH_SAM_APDU [12:31:31]CAPDU: 80 13 01 00 [12:31:31]Write to MH i2c: E2 08 00 10 22 80 13 01 00 00 00 00 00 AF [12:31:31]Write i2c OK [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 [12:31:31]MH_I2C_Read... [12:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:31:31]Read from MH i2c: E2 0E 00 [12:31:31]MH_I2C_Read... [12:31:31]Read from MH i2c: E2 0E 00 10 22 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 4D [12:31:31]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:31:31]wFMCommunicate OK [12:31:31]SAM_PROTO_GetShiftState done [12:31:31]FM_GetShiftState done [12:31:31]req_shift_opened done [12:31:31]requested_item shift.open_date is exist - process it [12:31:31]req_shift_open_date [12:31:31]req_shift_open_date done [12:31:31]produce_requested_data done [12:31:31]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2445,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:31:31]process_action_free close_receipt [12:31:31]json_value_free [12:31:31]json_value_free done [12:31:31]process_json_proto returns [12:31:31]Send response to host [12:31:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2445,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:31:31]free response buf [12:31:31]execute_script done [12:31:31]execute_script returns [12:31:31]free content buf [12:31:31]Sock 7.Close socket [12:31:31]Sock 7.Thread stoped [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:19]OFD Sender: No OFD packet to send [12:33:24]OFD Sender: No OFD packet to send [12:33:29]OFD Sender: No OFD packet to send [12:33:34]OFD Sender: No OFD packet to send [12:33:39]OFD Sender: No OFD packet to send [12:33:44]OFD Sender: No OFD packet to send [12:33:49]OFD Sender: No OFD packet to send [12:33:54]OFD Sender: No OFD packet to send [12:33:59]OFD Sender: No OFD packet to send [12:34:04]OFD Sender: No OFD packet to send [12:34:09]OFD Sender: No OFD packet to send [12:34:14]OFD Sender: No OFD packet to send [12:34:19]OFD Sender: No OFD packet to send [12:34:24]OFD Sender: No OFD packet to send [12:34:29]OFD Sender: No OFD packet to send [12:34:34]OFD Sender: No OFD packet to send [12:34:39]OFD Sender: No OFD packet to send [12:34:44]OFD Sender: No OFD packet to send [12:34:49]OFD Sender: No OFD packet to send [12:34:54]OFD Sender: No OFD packet to send [12:34:59]OFD Sender: No OFD packet to send [12:35:04]OFD Sender: No OFD packet to send [12:35:09]OFD Sender: No OFD packet to send [12:35:14]OFD Sender: No OFD packet to send [12:35:19]OFD Sender: No OFD packet to send [12:35:24]OFD Sender: No OFD packet to send [12:35:29]OFD Sender: No OFD packet to send [12:35:34]OFD Sender: No OFD packet to send [12:35:39]OFD Sender: No OFD packet to send [12:35:44]OFD Sender: No OFD packet to send [12:35:49]OFD Sender: No OFD packet to send [12:35:54]OFD Sender: No OFD packet to send [12:35:59]OFD Sender: No OFD packet to send [12:36:04]OFD Sender: No OFD packet to send [12:36:09]OFD Sender: No OFD packet to send [12:36:14]OFD Sender: No OFD packet to send [12:36:19]OFD Sender: No OFD packet to send [12:36:24]OFD Sender: No OFD packet to send [12:36:29]OFD Sender: No OFD packet to send [12:36:34]OFD Sender: No OFD packet to send [12:36:39]OFD Sender: No OFD packet to send [12:36:44]OFD Sender: No OFD packet to send [12:36:49]OFD Sender: No OFD packet to send [12:36:54]OFD Sender: No OFD packet to send [12:36:59]OFD Sender: No OFD packet to send [12:37:04]OFD Sender: No OFD packet to send [12:37:09]OFD Sender: No OFD packet to send [12:37:14]OFD Sender: No OFD packet to send [12:37:19]OFD Sender: No OFD packet to send [12:37:24]OFD Sender: No OFD packet to send [12:37:29]OFD Sender: No OFD packet to send [12:37:34]OFD Sender: No OFD packet to send [12:37:39]OFD Sender: No OFD packet to send [12:37:44]OFD Sender: No OFD packet to send [12:37:49]OFD Sender: No OFD packet to send [12:37:54]OFD Sender: No OFD packet to send [12:37:59]OFD Sender: No OFD packet to send [12:38:04]OFD Sender: No OFD packet to send [12:38:09]OFD Sender: No OFD packet to send [12:38:15]OFD Sender: No OFD packet to send [12:38:20]OFD Sender: No OFD packet to send [12:38:25]OFD Sender: No OFD packet to send [12:38:30]OFD Sender: No OFD packet to send [12:38:35]OFD Sender: No OFD packet to send [12:38:40]OFD Sender: No OFD packet to send [12:38:45]OFD Sender: No OFD packet to send [12:38:50]OFD Sender: No OFD packet to send [12:38:55]OFD Sender: No OFD packet to send [12:39:00]OFD Sender: No OFD packet to send [12:39:05]OFD Sender: No OFD packet to send [12:39:10]OFD Sender: No OFD packet to send [12:39:15]OFD Sender: No OFD packet to send [12:39:20]OFD Sender: No OFD packet to send [12:39:25]OFD Sender: No OFD packet to send [12:39:30]OFD Sender: No OFD packet to send [12:39:35]OFD Sender: No OFD packet to send [12:39:40]OFD Sender: No OFD packet to send [12:39:45]OFD Sender: No OFD packet to send [12:39:50]OFD Sender: No OFD packet to send [12:39:55]OFD Sender: No OFD packet to send [12:40:00]OFD Sender: No OFD packet to send [12:40:05]OFD Sender: No OFD packet to send [12:40:10]OFD Sender: No OFD packet to send [12:40:15]OFD Sender: No OFD packet to send [12:40:20]OFD Sender: No OFD packet to send [12:40:25]OFD Sender: No OFD packet to send [12:40:30]OFD Sender: No OFD packet to send [12:40:35]OFD Sender: No OFD packet to send [12:40:40]OFD Sender: No OFD packet to send [12:40:45]OFD Sender: No OFD packet to send [12:40:50]OFD Sender: No OFD packet to send [12:40:55]OFD Sender: No OFD packet to send [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:05]OFD Sender: No OFD packet to send [12:43:10]OFD Sender: No OFD packet to send [12:43:15]OFD Sender: No OFD packet to send [12:43:20]OFD Sender: No OFD packet to send [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:36]accept exits with 9 [12:43:36]New connection [12:43:36]New thread 3066850660 created [12:43:36]Thread 3066707300 joined [12:43:36]Waiting for new connection... [12:43:36] Sock 9.Parse request [12:43:36]Sock 9.Check first char [12:43:36]Sock 9.First char is OK [12:43:36]request: POST /json_proto HTTP/1.0 [12:43:36]Method: POST [12:43:36]URL: /json_proto [12:43:36]Method is POST - this is cgi request [12:43:36]url: /json_proto [12:43:36]query_string will be loaded in cgi processing [12:43:36]execute_cgi json_proto POST (null) [12:43:36]execute_cgi path=json_proto method=POST [12:43:36]POST find Content-Length [12:43:36]Host: 172.17.52.132:8080 [12:43:36]Content-Length: 774 [12:43:36]Content-Type: application/json [12:43:36] [12:43:36]POST finish read [12:43:36]Found Content-Length = 774 [12:43:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99849", "tax_sys" : 0, "items" : [ { "code": "8683130057735", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u0441\u0442\u0430\u043A\u0430", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:36]execute_script... [12:43:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99849", "tax_sys" : 0, "items" : [ { "code": "8683130057735", "name": "\u041C\u043E\u0440\u043E\u0436\u0435\u043D\u043E\u0435 \u0417\u043E\u043B\u043E\u0442\u043E\u0439 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 \u041F\u043B\u043E\u043C\u0431\u0438\u0440 \u0441\u0442\u0430\u043A\u0430", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:36]POST & json_proto [12:43:36]process_json_proto [12:43:36]json parsed OK: [12:43:36]protocol is kg_v1.0 [12:43:36]action value=close_receipt [12:43:36]process_action close_receipt [12:43:36]cmd_close_receipt [12:43:36]MH_GetDate [12:43:36]Write to MH i2c: F0 00 00 11 22 22 [12:43:36]Write i2c OK [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: F0 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: F0 09 00 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: F0 09 00 11 22 00 FC 57 12 67 5A BE F6 66 6B [12:43:36]GetLastDocTimeStamp 1729254690 [12:43:36]current date 1729255420 [12:43:36]FM_GetShiftState [12:43:36]SAM_PROTO_GetShiftState [12:43:36]wFMCommunicate request_size=4 [12:43:36]MH_SAM_APDU [12:43:36]CAPDU: 80 13 01 00 [12:43:36]Write to MH i2c: E2 08 00 12 22 80 13 01 00 00 00 00 00 B1 [12:43:36]Write i2c OK [12:43:36]MH_I2C_Read... [12:43:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:36]Read from MH i2c: E2 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: E2 0E 00 [12:43:36]MH_I2C_Read... [12:43:36]Read from MH i2c: E2 0E 00 12 22 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 4F [12:43:36]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:43:36]wFMCommunicate OK [12:43:36]SAM_PROTO_GetShiftState done [12:43:36]FM_GetShiftState done [12:43:36]opened in 1729209717 [12:43:36]opened+sec_in_day 1729296117 [12:43:36]quantity*price = 9500 [12:43:36]sum+1 = 9501 [12:43:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 71 18.10.2024 12:43 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2446 ФПД: 34248821420634 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124340&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2446&fm=34248821420634&tin=02508201610067®Number=0000000000207295&sum=9500 0 [12:43:37]StoreToDocumentArchive [12:43:37]shift 22 fd 2446 [12:43:37]save to /storage/0022/doc_00002446 [12:43:37]save last doc name /storage/0022/doc_00002446 to /storage/kkm_last_doc_name [12:43:37]save OK [12:43:37]Clear old archive folders... [12:43:37]ProcessDocumentItem done err = 0, tmpTLVsize=318 [12:43:37]tlvbuf is 0137DD60 [12:43:37]SAM_PROTO_ClearQueue [12:43:37]wFMCommunicate request_size=4 [12:43:37]MH_SAM_APDU [12:43:37]CAPDU: 80 09 00 00 [12:43:37]Write to MH i2c: E2 08 00 1F 22 80 09 00 00 00 00 00 00 B3 [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:37]Read from MH i2c: E2 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 1F 22 00 90 00 B5 [12:43:37]RAPDU: 90 00 [12:43:37]wFMCommunicate OK [12:43:37]SAM_PROTO_ClearQueue done [12:43:37]KKMCreateOFDPacket [12:43:37]OFDProtocolAddRootSTLVToBuf [12:43:37]FM_MakeSignedData [12:43:37]FM_MakeSignedData [12:43:37]SAM_PROTO_SignData [12:43:37]wFMCommunicate request_size=4 [12:43:37]MH_SAM_APDU [12:43:37]CAPDU: 80 0D 01 02 [12:43:37]Write to MH i2c: E2 08 00 20 22 80 0D 01 02 00 00 00 00 BB [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:37]Read from MH i2c: E2 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 [12:43:37]MH_I2C_Read... [12:43:37]Read from MH i2c: E2 03 00 20 22 00 90 00 B6 [12:43:37]RAPDU: 90 00 [12:43:37]wFMCommunicate OK [12:43:37]wFMCommunicate request_size=255 [12:43:37]MH_SAM_APDU [12:43:37]CAPDU: 80 0D 02 02 FA 03 00 3E 01 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 FC 57 12 [12:43:37]Write to MH i2c: E2 02 01 21 22 80 0D 02 02 FA 00 03 00 3E 01 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 FC 57 12 00 00 93 [12:43:37]Write i2c OK [12:43:37]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 21 22 00 90 00 B7 [12:43:38]RAPDU: 90 00 [12:43:38]wFMCommunicate OK [12:43:38]wFMCommunicate request_size=77 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 0D 02 02 48 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8E 09 00 00 35 04 06 00 1F 26 2C D5 B2 5A [12:43:38]Write to MH i2c: E2 50 00 22 22 80 0D 02 02 48 00 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8E 09 00 00 35 04 06 00 1F 26 2C D5 B2 5A 00 00 54 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 03 00 22 22 00 90 00 B8 [12:43:38]RAPDU: 90 00 [12:43:38]wFMCommunicate OK [12:43:38]wFMCommunicate request_size=4 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 0D 03 02 [12:43:38]Write to MH i2c: E2 08 00 23 22 80 0D 03 02 00 00 00 00 C0 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 0B 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 0B 00 23 22 00 E0 EF AE 34 7E 53 FD 46 90 00 86 [12:43:38]RAPDU: E0 EF AE 34 7E 53 FD 46 90 00 [12:43:38]wFMCommunicate OK [12:43:38]SAM_PROTO_SignData done [12:43:38]FM_MakeSignedData done [12:43:38]CreateOFDProtocolMessage [12:43:38]wFMCommunicate request_size=4 [12:43:38]MH_SAM_APDU [12:43:38]CAPDU: 80 11 00 00 [12:43:38]Write to MH i2c: E2 08 00 24 22 80 11 00 00 00 00 00 00 C0 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:38]Read from MH i2c: E2 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 17 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: E2 17 00 24 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 08 [12:43:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:43:38]wFMCommunicate OK [12:43:38]CreateOFDProtocolMessage done [12:43:38]OFDSenderStorePacket 2446 [12:43:38]StoreOFDPacket docnum=2446 [12:43:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 52 01 00 00 34 1F 4A 01 88 83 5A 03 01 00 03 00 3E 01 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 FC 57 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8E 09 00 00 35 04 06 00 1F 26 2C D5 B2 5A E0 EF AE 34 7E 53 FD 46 [12:43:38]CheckFolder [12:43:38]dirname=/storage/ofd_packets [12:43:38]CheckFolder done [12:43:38]ProducePacketName [12:43:38]name=ofd_packets/00002446 [12:43:38]NVStorageSaveData ofd_packets/00002446 [12:43:38]File name is /storage/ofd_packets/00002446 [12:43:38]Write 368 bytes [12:43:38]NVStorageSaveData done [12:43:38]OFDSenderStorePacket done [12:43:38]KKMCreateOFDPacket done [12:43:38]NVStorageSaveData kkm_last_timestamp [12:43:38]File name is /storage/kkm_last_timestamp [12:43:38]Write 4 bytes [12:43:38]NVStorageSaveData done [12:43:38]ExternCall_PrintAddStr [12:43:38]wPrintStart [12:43:38]Write to MH i2c: 01 00 00 25 22 47 [12:43:38]Write i2c OK [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 07 00 [12:43:38]MH_I2C_Read... [12:43:38]Read from MH i2c: 01 07 00 25 22 00 00 00 00 00 FF 0F 5C [12:43:38]RasterBufferAndPrint [12:43:38]line Счет N : (3)99849 [12:43:38]line ИÐÐ: 02508201610067 [12:43:38]line Контрольно-КаÑÑовый Чек [12:43:38]line ПРОДÐЖР[12:43:38]line Товар: 8683130057735 [12:43:38]line Мороженое Золотой Стандарт Пломбир Ñтака [12:43:38]line 1.000 * 95.00 [12:43:38]line = 95.00 [12:43:38]line ÐДС 12% ÐСП 1% [12:43:38]line > о реализуемом товаре [12:43:38]line ИТОГО: 95.00 [12:43:38]line ÐСП 1% : 0.84 [12:43:38]line ÐДС 12% : 10.09 [12:43:38]line Ðаличными: 95.00 [12:43:38]line Безнал.: 0.00 [12:43:38]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:43:38]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:43:38]line СÐО: Общий режим [12:43:38]line Чек 71 18.10.2024 12:43 [12:43:38]line Смена: 22 ФФД: 1.0 [12:43:38]line ЗÐМ: 0300000191 [12:43:38]line РÐМ: 0000000000207295 [12:43:38]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:43:38]line ФМ: 0000000002342820 [12:43:38]line ФД: 2446 [12:43:38]line ФПД: 34248821420634 [12:43:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124340&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2446&fm=34248821420634&tin=02508201610067®Number=0000000000207295&sum=9500 [12:43:38]line 0 [12:43:38]OFD Sender: Processing packet 2446 [packets to send 1, broken 0] [12:43:38]ProducePacketName [12:43:38]name=ofd_packets/00002446 [12:43:38]OFD Sender: To server: ‡•öpG, [12:43:38]CommunicateWithHost lk.salyk.kg:30040 [12:43:38]ConnectInit lk.salyk.kg [12:43:38]written 0, free lines is 4095 [12:43:38]Connected sock=10 [12:43:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 52 01 00 00 34 1F 4A 01 88 83 5A 03 01 00 03 00 3E 01 1E 04 01 00 01 23 04 90 00 8A 04 0D 00 38 36 38 33 31 33 30 30 35 37 37 33 35 06 04 4C 00 D0 9C D0 BE D1 80 D0 BE D0 B6 D0 B5 D0 BD D0 BE D0 B5 20 D0 97 D0 BE D0 BB D0 BE D1 82 D0 BE D0 B9 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 D0 9F D0 BB D0 BE D0 BC D0 B1 D0 B8 D1 80 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 FC 57 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8E 09 00 00 35 04 06 00 1F 26 2C D5 B2 5A E0 EF AE 34 7E 53 FD 46 [12:43:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 5F C1 47 00 25 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 32 33 34 32 38 32 30 10 04 04 00 8E 09 00 00 F4 03 04 00 60 03 12 67 B6 04 01 00 00 D9 BC E9 13 8F 6E C0 A8 [12:43:38]CommunicateWithHost err = 0 [12:43:38]CheckOFDResponse [12:43:38]1017 (14) - 77093643461234 [12:43:38]1041 (16) - 0000000002342820 [12:43:38]1040 (4) - 2446 [12:43:38]1012 (4) - 18.10.2024 06:42 [12:43:38]1206 (1) - 0 [12:43:38]OFD Sender: Remove packet 2446 [12:43:38]ProducePacketName [12:43:38]name=ofd_packets/00002446 [12:43:38]NVStorageDeleteData [12:43:39]Write to MH i2c: 01 00 00 4E 22 70 [12:43:39]Write i2c OK [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: 01 [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: 01 07 00 [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: 01 07 00 4E 22 00 00 00 00 00 A9 0C 2C [12:43:39]RasterBufferAndPrint [12:43:39]line [12:43:39]line [12:43:39]line [12:43:39]line [12:43:39]line [12:43:39]written 0, free lines is 3246 [12:43:39]MH_Cut [12:43:39]Write to MH i2c: D1 01 00 55 22 01 49 [12:43:39]Write i2c OK [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: D1 [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: D1 01 00 [12:43:39]MH_I2C_Read... [12:43:39]Read from MH i2c: D1 01 00 55 22 00 48 [12:43:39]Write to MH i2c: 01 00 00 56 22 78 [12:43:39]Write i2c OK [12:43:39]MH_I2C_Read... [12:43:39]OFD Sender: No OFD packet to send [12:43:39]*** Cut start [12:43:39]*** Partial cut [12:43:39]*** CUTSNS_PIN = 1 [12:43:39]*** CUTSNS_PIN = 0 [12:43:40]*** Brake cut motor [12:43:40]Read from MH i2c: 01 [12:43:40]MH_I2C_Read... [12:43:40]*** Stop cut motor [12:43:40]*** Cut end [12:43:40]Read from MH i2c: 01 07 00 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: 01 07 00 56 22 00 00 00 00 00 FF 0F 8D [12:43:40]process_action close_receipt done [12:43:40]requested_data is exist [12:43:40]produce_requested_data [12:43:40]requested_item fm.sn is exist - process it [12:43:40]wFMCommunicate request_size=4 [12:43:40]MH_SAM_APDU [12:43:40]CAPDU: 80 11 00 00 [12:43:40]Write to MH i2c: E2 08 00 57 22 80 11 00 00 00 00 00 00 F3 [12:43:40]Write i2c OK [12:43:40]MH_I2C_Read... [12:43:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:40]Read from MH i2c: E2 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 17 00 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 17 00 57 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 3B [12:43:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:43:40]wFMCommunicate OK [12:43:40]requested_item fd.num is exist - process it [12:43:40]SAM_PROTO_GetFieldsCounters [12:43:40]wFMCommunicate request_size=4 [12:43:40]MH_SAM_APDU [12:43:40]CAPDU: 80 13 00 00 [12:43:40]Write to MH i2c: E2 08 00 58 22 80 13 00 00 00 00 00 00 F6 [12:43:40]Write i2c OK [12:43:40]MH_I2C_Read... [12:43:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:40]Read from MH i2c: E2 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 62 00 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 62 00 58 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8E 09 00 00 0E 04 04 00 16 00 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 8E [12:43:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8E 09 00 00 0E 04 04 00 16 00 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:40]wFMCommunicate OK [12:43:40]SAM_PROTO_GetFieldsCounters done [12:43:40]requested_item shift.num is exist - process it [12:43:40]requested_item shift.opened is exist - process it [12:43:40]req_shift_opened [12:43:40]FM_GetShiftState [12:43:40]SAM_PROTO_GetShiftState [12:43:40]wFMCommunicate request_size=4 [12:43:40]MH_SAM_APDU [12:43:40]CAPDU: 80 13 01 00 [12:43:40]Write to MH i2c: E2 08 00 59 22 80 13 01 00 00 00 00 00 F8 [12:43:40]Write i2c OK [12:43:40]MH_I2C_Read... [12:43:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:40]Read from MH i2c: E2 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 0E 00 [12:43:40]MH_I2C_Read... [12:43:40]Read from MH i2c: E2 0E 00 59 22 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 96 [12:43:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:43:40]wFMCommunicate OK [12:43:40]SAM_PROTO_GetShiftState done [12:43:40]FM_GetShiftState done [12:43:40]req_shift_opened done [12:43:40]requested_item shift.open_date is exist - process it [12:43:40]req_shift_open_date [12:43:40]req_shift_open_date done [12:43:40]produce_requested_data done [12:43:40]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2446,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:43:40]process_action_free close_receipt [12:43:40]json_value_free [12:43:40]json_value_free done [12:43:40]process_json_proto returns [12:43:40]Send response to host [12:43:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2446,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:43:40]free response buf [12:43:40]execute_script done [12:43:40]execute_script returns [12:43:40]free content buf [12:43:40]Sock 9.Close socket [12:43:40]Sock 9.Thread stoped [12:43:44]OFD Sender: No OFD packet to send [12:43:49]OFD Sender: No OFD packet to send [12:43:54]OFD Sender: No OFD packet to send [12:43:59]OFD Sender: No OFD packet to send [12:43:59]accept exits with 7 [12:43:59]New connection [12:43:59]New thread 3066707300 created [12:43:59]Thread 3066850660 joined [12:43:59]Waiting for new connection... [12:43:59] Sock 7.Parse request [12:43:59]Sock 7.Check first char [12:43:59]Sock 7.First char is OK [12:43:59]request: POST /json_proto HTTP/1.0 [12:43:59]Method: POST [12:43:59]URL: /json_proto [12:43:59]Method is POST - this is cgi request [12:43:59]url: /json_proto [12:43:59]query_string will be loaded in cgi processing [12:43:59]execute_cgi json_proto POST (null) [12:43:59]execute_cgi path=json_proto method=POST [12:43:59]POST find Content-Length [12:43:59]Host: 172.17.52.132:8080 [12:43:59]Content-Length: 617 [12:43:59]Content-Type: application/json [12:43:59] [12:43:59]POST finish read [12:43:59]Found Content-Length = 617 [12:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99850", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:59]execute_script... [12:43: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 : (3)99850", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 134.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:59]POST & json_proto [12:43:59]process_json_proto [12:43:59]json parsed OK: [12:43:59]protocol is kg_v1.0 [12:43:59]action value=close_receipt [12:43:59]process_action close_receipt [12:43:59]cmd_close_receipt [12:43:59]MH_GetDate [12:43:59]Write to MH i2c: F0 00 00 5A 22 6B [12:43:59]Write i2c OK [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: F0 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: F0 09 00 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: F0 09 00 5A 22 00 13 58 12 67 5A BE F6 66 CC [12:43:59]GetLastDocTimeStamp 1729255420 [12:43:59]current date 1729255443 [12:43:59]FM_GetShiftState [12:43:59]SAM_PROTO_GetShiftState [12:43:59]wFMCommunicate request_size=4 [12:43:59]MH_SAM_APDU [12:43:59]CAPDU: 80 13 01 00 [12:43:59]Write to MH i2c: E2 08 00 5B 22 80 13 01 00 00 00 00 00 FA [12:43:59]Write i2c OK [12:43:59]MH_I2C_Read... [12:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:59]Read from MH i2c: E2 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: E2 0E 00 [12:43:59]MH_I2C_Read... [12:43:59]Read from MH i2c: E2 0E 00 5B 22 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 98 [12:43:59]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:43:59]wFMCommunicate OK [12:43:59]SAM_PROTO_GetShiftState done [12:43:59]FM_GetShiftState done [12:43:59]opened in 1729209717 [12:43:59]opened+sec_in_day 1729296117 [12:43:59]quantity*price = 13400 [12:43:59]sum+1 = 13401 [12:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 134.00 ÐСП 1% : 1.19 ÐДС 12% : 14.23 Ðаличными: 134.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 72 18.10.2024 12:44 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2447 ФПД: 139884372011674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124403&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2447&fm=139884372011674&tin=02508201610067®Number=0000000000207295&sum=13400 0 [12:44:00]StoreToDocumentArchive [12:44:00]shift 22 fd 2447 [12:44:00]save to /storage/0022/doc_00002447 [12:44:00]save last doc name /storage/0022/doc_00002447 to /storage/kkm_last_doc_name [12:44:00]save OK [12:44:00]Clear old archive folders... [12:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=270 [12:44:00]tlvbuf is 013DA840 [12:44:00]SAM_PROTO_ClearQueue [12:44:00]wFMCommunicate request_size=4 [12:44:00]MH_SAM_APDU [12:44:00]CAPDU: 80 09 00 00 [12:44:00]Write to MH i2c: E2 08 00 68 22 80 09 00 00 00 00 00 00 FC [12:44:00]Write i2c OK [12:44:00]MH_I2C_Read... [12:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:00]Read from MH i2c: E2 [12:44:00]MH_I2C_Read... [12:44:00]Read from MH i2c: E2 03 00 [12:44:00]MH_I2C_Read... [12:44:00]Read from MH i2c: E2 03 00 68 22 00 90 00 FE [12:44:00]RAPDU: 90 00 [12:44:00]wFMCommunicate OK [12:44:00]SAM_PROTO_ClearQueue done [12:44:00]KKMCreateOFDPacket [12:44:00]OFDProtocolAddRootSTLVToBuf [12:44:00]FM_MakeSignedData [12:44:00]FM_MakeSignedData [12:44:00]SAM_PROTO_SignData [12:44:00]wFMCommunicate request_size=4 [12:44:00]MH_SAM_APDU [12:44:00]CAPDU: 80 0D 01 02 [12:44:00]Write to MH i2c: E2 08 00 69 22 80 0D 01 02 00 00 00 00 04 [12:44:00]Write i2c OK [12:44:00]MH_I2C_Read... [12:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:00]Read from MH i2c: E2 [12:44:00]MH_I2C_Read... [12:44:00]Read from MH i2c: E2 03 00 [12:44:00]MH_I2C_Read... [12:44:00]Read from MH i2c: E2 03 00 69 22 00 90 00 FF [12:44:00]RAPDU: 90 00 [12:44:00]wFMCommunicate OK [12:44:00]wFMCommunicate request_size=255 [12:44:00]MH_SAM_APDU [12:44:00]CAPDU: 80 0D 02 02 FA 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 13 58 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 [12:44:00]Write to MH i2c: E2 02 01 6A 22 80 0D 02 02 FA 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 13 58 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 00 00 B4 [12:44:00]Write i2c OK [12:44:00]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 03 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 03 00 6A 22 00 90 00 00 [12:44:01]RAPDU: 90 00 [12:44:01]wFMCommunicate OK [12:44:01]wFMCommunicate request_size=29 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 0D 02 02 18 33 34 32 38 32 30 10 04 04 00 8F 09 00 00 35 04 06 00 7F 39 5E 4D AA 9A [12:44:01]Write to MH i2c: E2 20 00 6B 22 80 0D 02 02 18 00 33 34 32 38 32 30 10 04 04 00 8F 09 00 00 35 04 06 00 7F 39 5E 4D AA 9A 00 00 00 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 03 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 03 00 6B 22 00 90 00 01 [12:44:01]RAPDU: 90 00 [12:44:01]wFMCommunicate OK [12:44:01]wFMCommunicate request_size=4 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 0D 03 02 [12:44:01]Write to MH i2c: E2 08 00 6C 22 80 0D 03 02 00 00 00 00 09 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 0B 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 0B 00 6C 22 00 3B 49 57 E1 5E A1 06 02 90 00 CD [12:44:01]RAPDU: 3B 49 57 E1 5E A1 06 02 90 00 [12:44:01]wFMCommunicate OK [12:44:01]SAM_PROTO_SignData done [12:44:01]FM_MakeSignedData done [12:44:01]CreateOFDProtocolMessage [12:44:01]wFMCommunicate request_size=4 [12:44:01]MH_SAM_APDU [12:44:01]CAPDU: 80 11 00 00 [12:44:01]Write to MH i2c: E2 08 00 6D 22 80 11 00 00 00 00 00 00 09 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:01]Read from MH i2c: E2 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 17 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: E2 17 00 6D 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 51 [12:44:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:44:01]wFMCommunicate OK [12:44:01]CreateOFDProtocolMessage done [12:44:01]OFDSenderStorePacket 2447 [12:44:01]StoreOFDPacket docnum=2447 [12:44:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 22 01 00 00 E4 6E 1A 01 6C DD 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 13 58 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8F 09 00 00 35 04 06 00 7F 39 5E 4D AA 9A 3B 49 57 E1 5E A1 06 02 [12:44:01]CheckFolder [12:44:01]dirname=/storage/ofd_packets [12:44:01]CheckFolder done [12:44:01]ProducePacketName [12:44:01]name=ofd_packets/00002447 [12:44:01]NVStorageSaveData ofd_packets/00002447 [12:44:01]File name is /storage/ofd_packets/00002447 [12:44:01]Write 320 bytes [12:44:01]NVStorageSaveData done [12:44:01]OFDSenderStorePacket done [12:44:01]KKMCreateOFDPacket done [12:44:01]NVStorageSaveData kkm_last_timestamp [12:44:01]File name is /storage/kkm_last_timestamp [12:44:01]Write 4 bytes [12:44:01]NVStorageSaveData done [12:44:01]ExternCall_PrintAddStr [12:44:01]wPrintStart [12:44:01]Write to MH i2c: 01 00 00 6E 22 90 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 07 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 07 00 6E 22 00 00 00 00 00 FF 0F A5 [12:44:01]RasterBufferAndPrint [12:44:01]line Счет N : (3)99850 [12:44:01]line ИÐÐ: 02508201610067 [12:44:01]line Контрольно-КаÑÑовый Чек [12:44:01]line ПРОДÐЖР[12:44:01]line Товар: 48742191 [12:44:01]line Сигареты Bond Street Blue [12:44:01]line 1.000 * 134.00 [12:44:01]line = 134.00 [12:44:01]line ÐДС 12% ÐСП 1% [12:44:01]line > о реализуемом товаре [12:44:01]line ИТОГО: 134.00 [12:44:01]line ÐСП 1% : 1.19 [12:44:01]line ÐДС 12% : 14.23 [12:44:01]line Ðаличными: 134.00 [12:44:01]line Безнал.: 0.00 [12:44:01]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:44:01]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:44:01]line СÐО: Общий режим [12:44:01]line Чек 72 18.10.2024 12:44 [12:44:01]line Смена: 22 ФФД: 1.0 [12:44:01]line ЗÐМ: 0300000191 [12:44:01]line РÐМ: 0000000000207295 [12:44:01]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:44:01]line ФМ: 0000000002342820 [12:44:01]line ФД: 2447 [12:44:01]line ФПД: 139884372011674 [12:44:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124403&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2447&fm=139884372011674&tin=02508201610067®Number=0000000000207295&sum=13400 [12:44:01]line 0 [12:44:01]OFD Sender: Processing packet 2447 [packets to send 1, broken 0] [12:44:01]ProducePacketName [12:44:01]name=ofd_packets/00002447 [12:44:01]OFD Sender: To server: ‡•öpG, [12:44:01]CommunicateWithHost lk.salyk.kg:30040 [12:44:01]ConnectInit lk.salyk.kg [12:44:01]written 0, free lines is 4095 [12:44:01]Connected sock=10 [12:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 22 01 00 00 E4 6E 1A 01 6C DD 5A 03 01 00 03 00 0E 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 34 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 05 00 00 00 00 07 04 06 00 58 34 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 13 58 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8F 09 00 00 35 04 06 00 7F 39 5E 4D AA 9A 3B 49 57 E1 5E A1 06 02 [12:44:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 47 37 47 00 9D 3F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 8F 09 00 00 F4 03 04 00 77 03 12 67 B6 04 01 00 00 87 11 7F 17 C2 1B EA 1C [12:44:01]CommunicateWithHost err = 0 [12:44:01]CheckOFDResponse [12:44:01]1017 (14) - 77093643461234 [12:44:01]1041 (16) - 0000000002342820 [12:44:01]1040 (4) - 2447 [12:44:01]1012 (4) - 18.10.2024 06:43 [12:44:01]1206 (1) - 0 [12:44:01]OFD Sender: Remove packet 2447 [12:44:01]ProducePacketName [12:44:01]name=ofd_packets/00002447 [12:44:01]NVStorageDeleteData [12:44:01]Write to MH i2c: 01 00 00 96 22 B8 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 07 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: 01 07 00 96 22 00 00 00 00 00 D1 0C 9C [12:44:01]RasterBufferAndPrint [12:44:01]line [12:44:01]line [12:44:01]line [12:44:01]line [12:44:01]line [12:44:01]written 0, free lines is 3287 [12:44:01]MH_Cut [12:44:01]Write to MH i2c: D1 01 00 9D 22 01 91 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: D1 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: D1 01 00 [12:44:01]MH_I2C_Read... [12:44:01]Read from MH i2c: D1 01 00 9D 22 00 90 [12:44:01]Write to MH i2c: 01 00 00 9E 22 C0 [12:44:01]Write i2c OK [12:44:01]MH_I2C_Read... [12:44:02]OFD Sender: No OFD packet to send [12:44:02]*** Cut start [12:44:02]*** Partial cut [12:44:02]*** CUTSNS_PIN = 1 [12:44:02]*** CUTSNS_PIN = 0 [12:44:03]*** Brake cut motor [12:44:03]Read from MH i2c: 01 [12:44:03]MH_I2C_Read... [12:44:03]*** Stop cut motor [12:44:03]*** Cut end [12:44:03]Read from MH i2c: 01 07 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: 01 07 00 9E 22 00 00 00 00 00 FF 0F D5 [12:44:03]process_action close_receipt done [12:44:03]requested_data is exist [12:44:03]produce_requested_data [12:44:03]requested_item fm.sn is exist - process it [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 11 00 00 [12:44:03]Write to MH i2c: E2 08 00 9F 22 80 11 00 00 00 00 00 00 3B [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 17 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 17 00 9F 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 83 [12:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:44:03]wFMCommunicate OK [12:44:03]requested_item fd.num is exist - process it [12:44:03]SAM_PROTO_GetFieldsCounters [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 13 00 00 [12:44:03]Write to MH i2c: E2 08 00 A0 22 80 13 00 00 00 00 00 00 3E [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 62 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 62 00 A0 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8F 09 00 00 0E 04 04 00 16 00 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 DA [12:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 8F 09 00 00 0E 04 04 00 16 00 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:03]wFMCommunicate OK [12:44:03]SAM_PROTO_GetFieldsCounters done [12:44:03]requested_item shift.num is exist - process it [12:44:03]requested_item shift.opened is exist - process it [12:44:03]req_shift_opened [12:44:03]FM_GetShiftState [12:44:03]SAM_PROTO_GetShiftState [12:44:03]wFMCommunicate request_size=4 [12:44:03]MH_SAM_APDU [12:44:03]CAPDU: 80 13 01 00 [12:44:03]Write to MH i2c: E2 08 00 A1 22 80 13 01 00 00 00 00 00 40 [12:44:03]Write i2c OK [12:44:03]MH_I2C_Read... [12:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:03]Read from MH i2c: E2 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 0E 00 [12:44:03]MH_I2C_Read... [12:44:03]Read from MH i2c: E2 0E 00 A1 22 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 DE [12:44:03]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:44:03]wFMCommunicate OK [12:44:03]SAM_PROTO_GetShiftState done [12:44:03]FM_GetShiftState done [12:44:03]req_shift_opened done [12:44:03]requested_item shift.open_date is exist - process it [12:44:03]req_shift_open_date [12:44:03]req_shift_open_date done [12:44:03]produce_requested_data done [12:44:03]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2447,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:44:03]process_action_free close_receipt [12:44:03]json_value_free [12:44:03]json_value_free done [12:44:03]process_json_proto returns [12:44:03]Send response to host [12:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2447,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:44:03]free response buf [12:44:03]execute_script done [12:44:03]execute_script returns [12:44:03]free content buf [12:44:03]Sock 7.Close socket [12:44:03]Sock 7.Thread stoped [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:37]OFD Sender: No OFD packet to send [12:44:42]OFD Sender: No OFD packet to send [12:44:47]OFD Sender: No OFD packet to send [12:44:52]OFD Sender: No OFD packet to send [12:44:57]OFD Sender: No OFD packet to send [12:45:02]OFD Sender: No OFD packet to send [12:45:07]OFD Sender: No OFD packet to send [12:45:12]OFD Sender: No OFD packet to send [12:45:17]OFD Sender: No OFD packet to send [12:45:22]OFD Sender: No OFD packet to send [12:45:27]OFD Sender: No OFD packet to send [12:45:32]OFD Sender: No OFD packet to send [12:45:37]OFD Sender: No OFD packet to send [12:45:42]OFD Sender: No OFD packet to send [12:45:47]OFD Sender: No OFD packet to send [12:45:52]OFD Sender: No OFD packet to send [12:45:57]OFD Sender: No OFD packet to send [12:46:02]OFD Sender: No OFD packet to send [12:46:07]OFD Sender: No OFD packet to send [12:46:12]OFD Sender: No OFD packet to send [12:46:17]OFD Sender: No OFD packet to send [12:46:22]OFD Sender: No OFD packet to send [12:46:27]OFD Sender: No OFD packet to send [12:46:32]OFD Sender: No OFD packet to send [12:46:37]OFD Sender: No OFD packet to send [12:46:42]OFD Sender: No OFD packet to send [12:46:47]OFD Sender: No OFD packet to send [12:46:52]OFD Sender: No OFD packet to send [12:46:57]OFD Sender: No OFD packet to send [12:47:02]OFD Sender: No OFD packet to send [12:47:07]OFD Sender: No OFD packet to send [12:47:12]OFD Sender: No OFD packet to send [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:03]accept exits with 9 [12:48:03]New connection [12:48:03]New thread 3066850660 created [12:48:03]Thread 3066707300 joined [12:48:03]Waiting for new connection... [12:48:03] Sock 9.Parse request [12:48:03]Sock 9.Check first char [12:48:03]Sock 9.First char is OK [12:48:03]request: POST /json_proto HTTP/1.0 [12:48:03]Method: POST [12:48:03]URL: /json_proto [12:48:03]Method is POST - this is cgi request [12:48:03]url: /json_proto [12:48:03]query_string will be loaded in cgi processing [12:48:03]execute_cgi json_proto POST (null) [12:48:03]execute_cgi path=json_proto method=POST [12:48:03]POST find Content-Length [12:48:03]Host: 172.17.52.132:8080 [12:48:03]Content-Length: 815 [12:48:03]Content-Type: application/json [12:48:03] [12:48:03]POST finish read [12:48:03]Found Content-Length = 815 [12:48:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99851", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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: Mbank", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:03]execute_script... [12:48: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 : (3)99851", "tax_sys" : 0, "items" : [ { "code": "4870002326172", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043B\u0438\u043C\u043E\u043D \u041F\u042D\u0422 1\u043B", "price" : 100.00, "quantity" : 1.000, "sum" : 100.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: Mbank", "payments": [ { "type": 1, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:03]POST & json_proto [12:48:03]process_json_proto [12:48:03]json parsed OK: [12:48:03]protocol is kg_v1.0 [12:48:03]action value=close_receipt [12:48:03]process_action close_receipt [12:48:03]cmd_close_receipt [12:48:03]MH_GetDate [12:48:03]Write to MH i2c: F0 00 00 A2 22 B3 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: F0 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: F0 09 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: F0 09 00 A2 22 00 07 59 12 67 5A BE F6 66 09 [12:48:03]GetLastDocTimeStamp 1729255443 [12:48:03]current date 1729255687 [12:48:03]FM_GetShiftState [12:48:03]SAM_PROTO_GetShiftState [12:48:03]wFMCommunicate request_size=4 [12:48:03]MH_SAM_APDU [12:48:03]CAPDU: 80 13 01 00 [12:48:03]Write to MH i2c: E2 08 00 A3 22 80 13 01 00 00 00 00 00 42 [12:48:03]Write i2c OK [12:48:03]MH_I2C_Read... [12:48:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:03]Read from MH i2c: E2 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 0E 00 [12:48:03]MH_I2C_Read... [12:48:03]Read from MH i2c: E2 0E 00 A3 22 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E0 [12:48:03]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:48:03]wFMCommunicate OK [12:48:03]SAM_PROTO_GetShiftState done [12:48:03]FM_GetShiftState done [12:48:03]opened in 1729209717 [12:48:03]opened+sec_in_day 1729296117 [12:48:03]quantity*price = 10000 [12:48:03]sum+1 = 10001 [12:48:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 ÐСП 1% : 0.88 ÐДС 12% : 10.62 Ðаличными: 0.00 Безнал.: 100.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 73 18.10.2024 12:48 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2448 ФПД: 222086205163298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124807&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2448&fm=222086205163298&tin=02508201610067®Number=0000000000207295&sum=10000 0 [12:48:04]StoreToDocumentArchive [12:48:04]shift 22 fd 2448 [12:48:04]save to /storage/0022/doc_00002448 [12:48:04]save last doc name /storage/0022/doc_00002448 to /storage/kkm_last_doc_name [12:48:04]save OK [12:48:04]Clear old archive folders... [12:48:04]ProcessDocumentItem done err = 0, tmpTLVsize=293 [12:48:04]tlvbuf is B6D8F010 [12:48:04]SAM_PROTO_ClearQueue [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 09 00 00 [12:48:04]Write to MH i2c: E2 08 00 B0 22 80 09 00 00 00 00 00 00 44 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 B0 22 00 90 00 46 [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]SAM_PROTO_ClearQueue done [12:48:04]KKMCreateOFDPacket [12:48:04]OFDProtocolAddRootSTLVToBuf [12:48:04]FM_MakeSignedData [12:48:04]FM_MakeSignedData [12:48:04]SAM_PROTO_SignData [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 01 02 [12:48:04]Write to MH i2c: E2 08 00 B1 22 80 0D 01 02 00 00 00 00 4C [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 B1 22 00 90 00 47 [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]wFMCommunicate request_size=255 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 07 59 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [12:48:04]Write to MH i2c: E2 02 01 B2 22 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 07 59 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 3D [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 B2 22 00 90 00 48 [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]wFMCommunicate request_size=52 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 02 02 2F 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 90 09 00 00 35 04 06 00 C9 FC 79 5E 47 22 [12:48:04]Write to MH i2c: E2 37 00 B3 22 80 0D 02 02 2F 00 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 90 09 00 00 35 04 06 00 C9 FC 79 5E 47 22 00 00 A5 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:04]Read from MH i2c: E2 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 [12:48:04]MH_I2C_Read... [12:48:04]Read from MH i2c: E2 03 00 B3 22 00 90 00 49 [12:48:04]RAPDU: 90 00 [12:48:04]wFMCommunicate OK [12:48:04]wFMCommunicate request_size=4 [12:48:04]MH_SAM_APDU [12:48:04]CAPDU: 80 0D 03 02 [12:48:04]Write to MH i2c: E2 08 00 B4 22 80 0D 03 02 00 00 00 00 51 [12:48:04]Write i2c OK [12:48:04]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 0B 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 0B 00 B4 22 00 78 77 03 F8 8B 67 8A 58 90 00 10 [12:48:05]RAPDU: 78 77 03 F8 8B 67 8A 58 90 00 [12:48:05]wFMCommunicate OK [12:48:05]SAM_PROTO_SignData done [12:48:05]FM_MakeSignedData done [12:48:05]CreateOFDProtocolMessage [12:48:05]wFMCommunicate request_size=4 [12:48:05]MH_SAM_APDU [12:48:05]CAPDU: 80 11 00 00 [12:48:05]Write to MH i2c: E2 08 00 B5 22 80 11 00 00 00 00 00 00 51 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:05]Read from MH i2c: E2 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 17 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: E2 17 00 B5 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 99 [12:48:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:48:05]wFMCommunicate OK [12:48:05]CreateOFDProtocolMessage done [12:48:05]OFDSenderStorePacket 2448 [12:48:05]StoreOFDPacket docnum=2448 [12:48:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 39 01 00 00 AD 84 31 01 77 FA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 07 59 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 90 09 00 00 35 04 06 00 C9 FC 79 5E 47 22 78 77 03 F8 8B 67 8A 58 [12:48:05]CheckFolder [12:48:05]dirname=/storage/ofd_packets [12:48:05]CheckFolder done [12:48:05]ProducePacketName [12:48:05]name=ofd_packets/00002448 [12:48:05]NVStorageSaveData ofd_packets/00002448 [12:48:05]File name is /storage/ofd_packets/00002448 [12:48:05]Write 343 bytes [12:48:05]NVStorageSaveData done [12:48:05]OFDSenderStorePacket done [12:48:05]KKMCreateOFDPacket done [12:48:05]NVStorageSaveData kkm_last_timestamp [12:48:05]File name is /storage/kkm_last_timestamp [12:48:05]Write 4 bytes [12:48:05]NVStorageSaveData done [12:48:05]ExternCall_PrintAddStr [12:48:05]wPrintStart [12:48:05]Write to MH i2c: 01 00 00 B6 22 D8 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 07 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 07 00 B6 22 00 00 00 00 00 FF 0F ED [12:48:05]RasterBufferAndPrint [12:48:05]line Счет N : (3)99851 [12:48:05]line ИÐÐ: 02508201610067 [12:48:05]line Контрольно-КаÑÑовый Чек [12:48:05]line ПРОДÐЖР[12:48:05]line Товар: 4870002326172 [12:48:05]line Вода ASU пит н.газ лимон ПЭТ 1л [12:48:05]line 1.000 * 100.00 [12:48:05]line = 100.00 [12:48:05]line ÐДС 12% ÐСП 1% [12:48:05]line > о реализуемом товаре [12:48:05]line ИТОГО: 100.00 [12:48:05]line ÐСП 1% : 0.88 [12:48:05]line ÐДС 12% : 10.62 [12:48:05]line Ðаличными: 0.00 [12:48:05]line Безнал.: 100.00 [12:48:05]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:48:05]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:48:05]line СÐО: Общий режим [12:48:05]line Чек 73 18.10.2024 12:48 [12:48:05]line Смена: 22 ФФД: 1.0 [12:48:05]line ЗÐМ: 0300000191 [12:48:05]line РÐМ: 0000000000207295 [12:48:05]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:48:05]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [12:48:05]line ФМ: 0000000002342820 [12:48:05]line ФД: 2448 [12:48:05]line ФПД: 222086205163298 [12:48:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124807&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2448&fm=222086205163298&tin=02508201610067®Number=0000000000207295&sum=10000 [12:48:05]line 0 [12:48:05]OFD Sender: Processing packet 2448 [packets to send 1, broken 0] [12:48:05]ProducePacketName [12:48:05]name=ofd_packets/00002448 [12:48:05]OFD Sender: To server: ‡•öpG, [12:48:05]CommunicateWithHost lk.salyk.kg:30040 [12:48:05]ConnectInit lk.salyk.kg [12:48:05]written 0, free lines is 4095 [12:48:05]Connected sock=10 [12:48:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 39 01 00 00 AD 84 31 01 77 FA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 36 31 37 32 06 04 33 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 10 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 00 00 00 00 00 00 39 04 06 00 10 27 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 07 59 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 90 09 00 00 35 04 06 00 C9 FC 79 5E 47 22 78 77 03 F8 8B 67 8A 58 [12:48:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 BC 47 47 00 9B 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 32 33 34 32 38 32 30 10 04 04 00 90 09 00 00 F4 03 04 00 6B 04 12 67 B6 04 01 00 00 D5 9B 6D 53 FB C4 15 0D [12:48:05]CommunicateWithHost err = 0 [12:48:05]CheckOFDResponse [12:48:05]1017 (14) - 77093643461234 [12:48:05]1041 (16) - 0000000002342820 [12:48:05]1040 (4) - 2448 [12:48:05]1012 (4) - 18.10.2024 06:47 [12:48:05]1206 (1) - 0 [12:48:05]OFD Sender: Remove packet 2448 [12:48:05]ProducePacketName [12:48:05]name=ofd_packets/00002448 [12:48:05]NVStorageDeleteData [12:48:05]Write to MH i2c: 01 00 00 E0 22 02 [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 07 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: 01 07 00 E0 22 00 00 00 00 00 AD 0C C2 [12:48:05]RasterBufferAndPrint [12:48:05]line [12:48:05]line [12:48:05]line [12:48:05]line [12:48:05]line [12:48:05]written 0, free lines is 3249 [12:48:05]MH_Cut [12:48:05]Write to MH i2c: D1 01 00 E7 22 01 DB [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: D1 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: D1 01 00 [12:48:05]MH_I2C_Read... [12:48:05]Read from MH i2c: D1 01 00 E7 22 00 DA [12:48:05]Write to MH i2c: 01 00 00 E8 22 0A [12:48:05]Write i2c OK [12:48:05]MH_I2C_Read... [12:48:06]OFD Sender: No OFD packet to send [12:48:06]*** Cut start [12:48:06]*** Partial cut [12:48:06]*** CUTSNS_PIN = 1 [12:48:06]*** CUTSNS_PIN = 0 [12:48:07]*** Brake cut motor [12:48:07]Read from MH i2c: 01 [12:48:07]MH_I2C_Read... [12:48:07]*** Stop cut motor [12:48:07]*** Cut end [12:48:07]Read from MH i2c: 01 07 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: 01 07 00 E8 22 00 00 00 00 00 FF 0F 1F [12:48:07]process_action close_receipt done [12:48:07]requested_data is exist [12:48:07]produce_requested_data [12:48:07]requested_item fm.sn is exist - process it [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 11 00 00 [12:48:07]Write to MH i2c: E2 08 00 E9 22 80 11 00 00 00 00 00 00 85 [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 17 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 17 00 E9 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CD [12:48:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:48:07]wFMCommunicate OK [12:48:07]requested_item fd.num is exist - process it [12:48:07]SAM_PROTO_GetFieldsCounters [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 13 00 00 [12:48:07]Write to MH i2c: E2 08 00 EA 22 80 13 00 00 00 00 00 00 88 [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 62 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 62 00 EA 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 90 09 00 00 0E 04 04 00 16 00 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 28 [12:48:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 90 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:07]wFMCommunicate OK [12:48:07]SAM_PROTO_GetFieldsCounters done [12:48:07]requested_item shift.num is exist - process it [12:48:07]requested_item shift.opened is exist - process it [12:48:07]req_shift_opened [12:48:07]FM_GetShiftState [12:48:07]SAM_PROTO_GetShiftState [12:48:07]wFMCommunicate request_size=4 [12:48:07]MH_SAM_APDU [12:48:07]CAPDU: 80 13 01 00 [12:48:07]Write to MH i2c: E2 08 00 EB 22 80 13 01 00 00 00 00 00 8A [12:48:07]Write i2c OK [12:48:07]MH_I2C_Read... [12:48:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:07]Read from MH i2c: E2 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 0E 00 [12:48:07]MH_I2C_Read... [12:48:07]Read from MH i2c: E2 0E 00 EB 22 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 28 [12:48:07]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:48:07]wFMCommunicate OK [12:48:07]SAM_PROTO_GetShiftState done [12:48:07]FM_GetShiftState done [12:48:07]req_shift_opened done [12:48:07]requested_item shift.open_date is exist - process it [12:48:07]req_shift_open_date [12:48:07]req_shift_open_date done [12:48:07]produce_requested_data done [12:48:07]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2448,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:48:07]process_action_free close_receipt [12:48:07]json_value_free [12:48:07]json_value_free done [12:48:07]process_json_proto returns [12:48:07]Send response to host [12:48:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2448,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:48:07]free response buf [12:48:07]execute_script done [12:48:07]execute_script returns [12:48:07]free content buf [12:48:07]Sock 9.Close socket [12:48:07]Sock 9.Thread stoped [12:48:11]OFD Sender: No OFD packet to send [12:48:16]OFD Sender: No OFD packet to send [12:48:21]OFD Sender: No OFD packet to send [12:48:26]OFD Sender: No OFD packet to send [12:48:31]OFD Sender: No OFD packet to send [12:48:36]OFD Sender: No OFD packet to send [12:48:41]OFD Sender: No OFD packet to send [12:48:46]OFD Sender: No OFD packet to send [12:48:51]OFD Sender: No OFD packet to send [12:48:56]OFD Sender: No OFD packet to send [12:49:01]OFD Sender: No OFD packet to send [12:49:06]OFD Sender: No OFD packet to send [12:49:11]OFD Sender: No OFD packet to send [12:49:16]OFD Sender: No OFD packet to send [12:49:19]accept exits with 7 [12:49:19]New connection [12:49:19]New thread 3066707300 created [12:49:19]Thread 3066850660 joined [12:49:19]Waiting for new connection... [12:49:19] Sock 7.Parse request [12:49:19]Sock 7.Check first char [12:49:19]Sock 7.First char is OK [12:49:19]request: POST /json_proto HTTP/1.0 [12:49:19]Method: POST [12:49:19]URL: /json_proto [12:49:19]Method is POST - this is cgi request [12:49:19]url: /json_proto [12:49:19]query_string will be loaded in cgi processing [12:49:19]execute_cgi json_proto POST (null) [12:49:19]execute_cgi path=json_proto method=POST [12:49:19]POST find Content-Length [12:49:19]Host: 172.17.52.132:8080 [12:49:19]Content-Length: 842 [12:49:19]Content-Type: application/json [12:49:19] [12:49:19]POST finish read [12:49:19]Found Content-Length = 842 [12:49:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99852", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:19]execute_script... [12:49: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 : (3)99852", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:19]POST & json_proto [12:49:19]process_json_proto [12:49:19]json parsed OK: [12:49:19]protocol is kg_v1.0 [12:49:19]action value=close_receipt [12:49:19]process_action close_receipt [12:49:19]cmd_close_receipt [12:49:19]MH_GetDate [12:49:19]Write to MH i2c: F0 00 00 EC 22 FD [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: F0 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: F0 09 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: F0 09 00 EC 22 00 53 59 12 67 5A BE F6 66 9F [12:49:19]GetLastDocTimeStamp 1729255687 [12:49:19]current date 1729255763 [12:49:19]FM_GetShiftState [12:49:19]SAM_PROTO_GetShiftState [12:49:19]wFMCommunicate request_size=4 [12:49:19]MH_SAM_APDU [12:49:19]CAPDU: 80 13 01 00 [12:49:19]Write to MH i2c: E2 08 00 ED 22 80 13 01 00 00 00 00 00 8C [12:49:19]Write i2c OK [12:49:19]MH_I2C_Read... [12:49:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:19]Read from MH i2c: E2 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 0E 00 [12:49:19]MH_I2C_Read... [12:49:19]Read from MH i2c: E2 0E 00 ED 22 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2A [12:49:19]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:49:19]wFMCommunicate OK [12:49:19]SAM_PROTO_GetShiftState done [12:49:19]FM_GetShiftState done [12:49:19]opened in 1729209717 [12:49:19]opened+sec_in_day 1729296117 [12:49:19]quantity*price = 4500 [12:49:19]sum+1 = 4501 [12:49:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 189.00 ÐСП 1% : 1.67 ÐДС 12% : 20.07 Ðаличными: 189.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 74 18.10.2024 12:49 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2449 ФПД: 70859067509836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124923&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2449&fm=70859067509836&tin=02508201610067®Number=0000000000207295&sum=18900 0 [12:49:20]StoreToDocumentArchive [12:49:20]shift 22 fd 2449 [12:49:20]save to /storage/0022/doc_00002449 [12:49:20]save last doc name /storage/0022/doc_00002449 to /storage/kkm_last_doc_name [12:49:20]save OK [12:49:20]Clear old archive folders... [12:49:20]ProcessDocumentItem done err = 0, tmpTLVsize=363 [12:49:20]tlvbuf is 0135AE00 [12:49:20]SAM_PROTO_ClearQueue [12:49:20]wFMCommunicate request_size=4 [12:49:20]MH_SAM_APDU [12:49:20]CAPDU: 80 09 00 00 [12:49:20]Write to MH i2c: E2 08 00 FA 22 80 09 00 00 00 00 00 00 8E [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:20]Read from MH i2c: E2 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 03 00 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 03 00 FA 22 00 90 00 90 [12:49:20]RAPDU: 90 00 [12:49:20]wFMCommunicate OK [12:49:20]SAM_PROTO_ClearQueue done [12:49:20]KKMCreateOFDPacket [12:49:20]OFDProtocolAddRootSTLVToBuf [12:49:20]FM_MakeSignedData [12:49:20]FM_MakeSignedData [12:49:20]SAM_PROTO_SignData [12:49:20]wFMCommunicate request_size=4 [12:49:20]MH_SAM_APDU [12:49:20]CAPDU: 80 0D 01 02 [12:49:20]Write to MH i2c: E2 08 00 FB 22 80 0D 01 02 00 00 00 00 96 [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:20]Read from MH i2c: E2 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 03 00 [12:49:20]MH_I2C_Read... [12:49:20]Read from MH i2c: E2 03 00 FB 22 00 90 00 91 [12:49:20]RAPDU: 90 00 [12:49:20]wFMCommunicate OK [12:49:20]wFMCommunicate request_size=255 [12:49:20]MH_SAM_APDU [12:49:20]CAPDU: 80 0D 02 02 FA 03 00 6B 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 [12:49:20]Write to MH i2c: E2 02 01 FC 22 80 0D 02 02 FA 00 03 00 6B 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 72 [12:49:20]Write i2c OK [12:49:20]MH_I2C_Read... [12:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:21]Read from MH i2c: E2 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: E2 03 00 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: E2 03 00 FC 22 00 90 00 92 [12:49:21]RAPDU: 90 00 [12:49:21]wFMCommunicate OK [12:49:21]wFMCommunicate request_size=122 [12:49:21]MH_SAM_APDU [12:49:21]CAPDU: 80 0D 02 02 75 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 53 59 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 91 09 00 00 35 04 06 00 40 72 29 8C 4C 4C [12:49:21]Write to MH i2c: E2 7D 00 FD 22 80 0D 02 02 75 00 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 53 59 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 91 09 00 00 35 04 06 00 40 72 29 8C 4C 4C 00 00 ED [12:49:21]Write i2c OK [12:49:21]MH_I2C_Read... [12:49:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:21]Read from MH i2c: E2 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: E2 03 00 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: E2 03 00 FD 22 00 90 00 93 [12:49:21]RAPDU: 90 00 [12:49:21]wFMCommunicate OK [12:49:21]wFMCommunicate request_size=4 [12:49:21]MH_SAM_APDU [12:49:21]CAPDU: 80 0D 03 02 [12:49:21]Write to MH i2c: E2 08 00 FE 22 80 0D 03 02 00 00 00 00 9B [12:49:21]Write i2c OK [12:49:21]MH_I2C_Read... [12:49:21]OFD Sender: No OFD packet to send [12:49:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:21]Read from MH i2c: E2 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: E2 0B 00 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: E2 0B 00 FE 22 00 B5 78 56 67 3D E4 47 05 90 00 F3 [12:49:21]RAPDU: B5 78 56 67 3D E4 47 05 90 00 [12:49:21]wFMCommunicate OK [12:49:21]SAM_PROTO_SignData done [12:49:21]FM_MakeSignedData done [12:49:21]CreateOFDProtocolMessage [12:49:21]wFMCommunicate request_size=4 [12:49:21]MH_SAM_APDU [12:49:21]CAPDU: 80 11 00 00 [12:49:21]Write to MH i2c: E2 08 00 FF 22 80 11 00 00 00 00 00 00 9B [12:49:21]Write i2c OK [12:49:21]MH_I2C_Read... [12:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:21]Read from MH i2c: E2 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: E2 17 00 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: E2 17 00 FF 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E3 [12:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:49:21]wFMCommunicate OK [12:49:21]CreateOFDProtocolMessage done [12:49:21]OFDSenderStorePacket 2449 [12:49:21]StoreOFDPacket docnum=2449 [12:49:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 7F 01 00 00 CF 06 77 01 E7 86 5A 03 01 00 03 00 6B 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 53 59 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 91 09 00 00 35 04 06 00 40 72 29 8C 4C 4C B5 78 56 67 3D E4 47 05 [12:49:21]CheckFolder [12:49:21]dirname=/storage/ofd_packets [12:49:21]CheckFolder done [12:49:21]ProducePacketName [12:49:21]name=ofd_packets/00002449 [12:49:21]NVStorageSaveData ofd_packets/00002449 [12:49:21]File name is /storage/ofd_packets/00002449 [12:49:21]Write 413 bytes [12:49:21]NVStorageSaveData done [12:49:21]OFDSenderStorePacket done [12:49:21]KKMCreateOFDPacket done [12:49:21]NVStorageSaveData kkm_last_timestamp [12:49:21]File name is /storage/kkm_last_timestamp [12:49:21]Write 4 bytes [12:49:21]NVStorageSaveData done [12:49:21]ExternCall_PrintAddStr [12:49:21]wPrintStart [12:49:21]Write to MH i2c: 01 00 00 00 23 23 [12:49:21]Write i2c OK [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: 01 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: 01 07 00 [12:49:21]MH_I2C_Read... [12:49:21]Read from MH i2c: 01 07 00 00 23 00 00 00 00 00 FF 0F 38 [12:49:21]RasterBufferAndPrint [12:49:21]line Счет N : (3)99852 [12:49:21]line ИÐÐ: 02508201610067 [12:49:21]line Контрольно-КаÑÑовый Чек [12:49:21]line ПРОДÐЖР[12:49:21]line Товар: 42113270 [12:49:21]line Жев Orbit арбуз [12:49:21]line 1.000 * 45.00 [12:49:21]line = 45.00 [12:49:21]line ÐДС 12% ÐСП 1% [12:49:21]line > о реализуемом товаре [12:49:21]line Товар: 48743570 [12:49:21]line Сигареты Winston XStyle Blue [12:49:21]line 1.000 * 144.00 [12:49:21]line = 144.00 [12:49:21]line ÐДС 12% ÐСП 1% [12:49:21]line > о реализуемом товаре [12:49:21]line ИТОГО: 189.00 [12:49:21]line ÐСП 1% : 1.67 [12:49:21]line ÐДС 12% : 20.07 [12:49:21]line Ðаличными: 189.00 [12:49:21]line Безнал.: 0.00 [12:49:21]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:49:21]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:49:21]line СÐО: Общий режим [12:49:21]line Чек 74 18.10.2024 12:49 [12:49:21]line Смена: 22 ФФД: 1.0 [12:49:21]line ЗÐМ: 0300000191 [12:49:21]line РÐМ: 0000000000207295 [12:49:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:49:21]line ФМ: 0000000002342820 [12:49:21]line ФД: 2449 [12:49:21]line ФПД: 70859067509836 [12:49:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T124923&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2449&fm=70859067509836&tin=02508201610067®Number=0000000000207295&sum=18900 [12:49:21]line 0 [12:49:21]OFD Sender: Processing packet 2449 [packets to send 1, broken 0] [12:49:21]ProducePacketName [12:49:21]name=ofd_packets/00002449 [12:49:21]OFD Sender: To server: ‡•öpG, [12:49:21]CommunicateWithHost lk.salyk.kg:30040 [12:49:21]ConnectInit lk.salyk.kg [12:49:21]written 0, free lines is 4095 [12:49:21]Connected sock=10 [12:49:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 7F 01 00 00 CF 06 77 01 E7 86 5A 03 01 00 03 00 6B 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 07 00 00 00 00 07 04 06 00 D4 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 53 59 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 91 09 00 00 35 04 06 00 40 72 29 8C 4C 4C B5 78 56 67 3D E4 47 05 [12:49:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 F2 8B 47 00 34 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 32 33 34 32 38 32 30 10 04 04 00 91 09 00 00 F4 03 04 00 B7 04 12 67 B6 04 01 00 00 B3 97 11 4A D6 3E 8C 0A [12:49:22]CommunicateWithHost err = 0 [12:49:22]CheckOFDResponse [12:49:22]1017 (14) - 77093643461234 [12:49:22]1041 (16) - 0000000002342820 [12:49:22]1040 (4) - 2449 [12:49:22]1012 (4) - 18.10.2024 06:48 [12:49:22]1206 (1) - 0 [12:49:22]OFD Sender: Remove packet 2449 [12:49:22]ProducePacketName [12:49:22]name=ofd_packets/00002449 [12:49:22]NVStorageDeleteData [12:49:22]Write to MH i2c: 01 00 00 2E 23 51 [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: 01 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: 01 07 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: 01 07 00 2E 23 00 00 00 00 00 5E 0C C2 [12:49:22]RasterBufferAndPrint [12:49:22]line [12:49:22]line [12:49:22]line [12:49:22]line [12:49:22]line [12:49:22]written 0, free lines is 3173 [12:49:22]MH_Cut [12:49:22]Write to MH i2c: D1 01 00 35 23 01 2A [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: D1 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: D1 01 00 [12:49:22]MH_I2C_Read... [12:49:22]Read from MH i2c: D1 01 00 35 23 00 29 [12:49:22]Write to MH i2c: 01 00 00 36 23 59 [12:49:22]Write i2c OK [12:49:22]MH_I2C_Read... [12:49:22]OFD Sender: No OFD packet to send [12:49:23]*** Cut start [12:49:23]*** Partial cut [12:49:23]*** CUTSNS_PIN = 1 [12:49:23]*** CUTSNS_PIN = 0 [12:49:23]*** Brake cut motor [12:49:23]Read from MH i2c: 01 [12:49:23]MH_I2C_Read... [12:49:23]*** Stop cut motor [12:49:23]*** Cut end [12:49:23]Read from MH i2c: 01 07 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: 01 07 00 36 23 00 00 00 00 00 FF 0F 6E [12:49:23]process_action close_receipt done [12:49:23]requested_data is exist [12:49:23]produce_requested_data [12:49:23]requested_item fm.sn is exist - process it [12:49:23]wFMCommunicate request_size=4 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 11 00 00 [12:49:23]Write to MH i2c: E2 08 00 37 23 80 11 00 00 00 00 00 00 D4 [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:23]Read from MH i2c: E2 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 17 00 [12:49:23]MH_I2C_Read... [12:49:23]Read from MH i2c: E2 17 00 37 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 1C [12:49:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:49:23]wFMCommunicate OK [12:49:23]requested_item fd.num is exist - process it [12:49:23]SAM_PROTO_GetFieldsCounters [12:49:23]wFMCommunicate request_size=4 [12:49:23]MH_SAM_APDU [12:49:23]CAPDU: 80 13 00 00 [12:49:23]Write to MH i2c: E2 08 00 38 23 80 13 00 00 00 00 00 00 D7 [12:49:23]Write i2c OK [12:49:23]MH_I2C_Read... [12:49:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:24]Read from MH i2c: E2 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 62 00 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 62 00 38 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 91 09 00 00 0E 04 04 00 16 00 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 7B [12:49:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 91 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [12:49:24]wFMCommunicate OK [12:49:24]SAM_PROTO_GetFieldsCounters done [12:49:24]requested_item shift.num is exist - process it [12:49:24]requested_item shift.opened is exist - process it [12:49:24]req_shift_opened [12:49:24]FM_GetShiftState [12:49:24]SAM_PROTO_GetShiftState [12:49:24]wFMCommunicate request_size=4 [12:49:24]MH_SAM_APDU [12:49:24]CAPDU: 80 13 01 00 [12:49:24]Write to MH i2c: E2 08 00 39 23 80 13 01 00 00 00 00 00 D9 [12:49:24]Write i2c OK [12:49:24]MH_I2C_Read... [12:49:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:24]Read from MH i2c: E2 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 0E 00 [12:49:24]MH_I2C_Read... [12:49:24]Read from MH i2c: E2 0E 00 39 23 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 77 [12:49:24]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:49:24]wFMCommunicate OK [12:49:24]SAM_PROTO_GetShiftState done [12:49:24]FM_GetShiftState done [12:49:24]req_shift_opened done [12:49:24]requested_item shift.open_date is exist - process it [12:49:24]req_shift_open_date [12:49:24]req_shift_open_date done [12:49:24]produce_requested_data done [12:49:24]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2449,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:49:24]process_action_free close_receipt [12:49:24]json_value_free [12:49:24]json_value_free done [12:49:24]process_json_proto returns [12:49:24]Send response to host [12:49:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2449,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:49:24]free response buf [12:49:24]execute_script done [12:49:24]execute_script returns [12:49:24]free content buf [12:49:24]Sock 7.Close socket [12:49:24]Sock 7.Thread stoped [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:22]OFD Sender: No OFD packet to send [12:52:27]OFD Sender: No OFD packet to send [12:52:32]OFD Sender: No OFD packet to send [12:52:37]OFD Sender: No OFD packet to send [12:52:42]OFD Sender: No OFD packet to send [12:52:47]OFD Sender: No OFD packet to send [12:52:52]OFD Sender: No OFD packet to send [12:52:57]OFD Sender: No OFD packet to send [12:53:02]OFD Sender: No OFD packet to send [12:53:07]OFD Sender: No OFD packet to send [12:53:12]OFD Sender: No OFD packet to send [12:53:17]OFD Sender: No OFD packet to send [12:53:22]OFD Sender: No OFD packet to send [12:53:27]OFD Sender: No OFD packet to send [12:53:32]OFD Sender: No OFD packet to send [12:53:37]OFD Sender: No OFD packet to send [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]OFD Sender: No OFD packet to send [12:54:02]OFD Sender: No OFD packet to send [12:54:07]OFD Sender: No OFD packet to send [12:54:12]OFD Sender: No OFD packet to send [12:54:17]OFD Sender: No OFD packet to send [12:54:22]OFD Sender: No OFD packet to send [12:54:27]OFD Sender: No OFD packet to send [12:54:32]OFD Sender: No OFD packet to send [12:54:37]OFD Sender: No OFD packet to send [12:54:42]OFD Sender: No OFD packet to send [12:54:47]OFD Sender: No OFD packet to send [12:54:52]OFD Sender: No OFD packet to send [12:54:57]OFD Sender: No OFD packet to send [12:55:02]OFD Sender: No OFD packet to send [12:55:07]OFD Sender: No OFD packet to send [12:55:12]OFD Sender: No OFD packet to send [12:55:17]OFD Sender: No OFD packet to send [12:55:22]OFD Sender: No OFD packet to send [12:55:27]OFD Sender: No OFD packet to send [12:55:32]OFD Sender: No OFD packet to send [12:55:37]OFD Sender: No OFD packet to send [12:55:42]OFD Sender: No OFD packet to send [12:55:47]OFD Sender: No OFD packet to send [12:55:52]OFD Sender: No OFD packet to send [12:55:57]OFD Sender: No OFD packet to send [12:56:02]OFD Sender: No OFD packet to send [12:56:07]OFD Sender: No OFD packet to send [12:56:12]OFD Sender: No OFD packet to send [12:56:17]OFD Sender: No OFD packet to send [12:56:22]OFD Sender: No OFD packet to send [12:56:27]OFD Sender: No OFD packet to send [12:56:32]OFD Sender: No OFD packet to send [12:56:37]OFD Sender: No OFD packet to send [12:56:42]OFD Sender: No OFD packet to send [12:56:47]OFD Sender: No OFD packet to send [12:56:52]OFD Sender: No OFD packet to send [12:56:57]OFD Sender: No OFD packet to send [12:57:02]OFD Sender: No OFD packet to send [12:57:07]OFD Sender: No OFD packet to send [12:57:12]OFD Sender: No OFD packet to send [12:57:17]OFD Sender: No OFD packet to send [12:57:22]OFD Sender: No OFD packet to send [12:57:27]OFD Sender: No OFD packet to send [12:57:32]OFD Sender: No OFD packet to send [12:57:37]OFD Sender: No OFD packet to send [12:57:42]OFD Sender: No OFD packet to send [12:57:47]OFD Sender: No OFD packet to send [12:57:50]accept exits with 9 [12:57:50]New connection [12:57:50]New thread 3066850660 created [12:57:50]Thread 3066707300 joined [12:57:50]Waiting for new connection... [12:57:50] Sock 9.Parse request [12:57:50]Sock 9.Check first char [12:57:50]Sock 9.First char is OK [12:57:50]request: POST /json_proto HTTP/1.0 [12:57:50]Method: POST [12:57:50]URL: /json_proto [12:57:50]Method is POST - this is cgi request [12:57:50]url: /json_proto [12:57:50]query_string will be loaded in cgi processing [12:57:50]execute_cgi json_proto POST (null) [12:57:50]execute_cgi path=json_proto method=POST [12:57:50]POST find Content-Length [12:57:50]Host: 172.17.52.132:8080 [12:57:50]Content-Length: 638 [12:57:50]Content-Type: application/json [12:57:50] [12:57:50]POST finish read [12:57:50]Found Content-Length = 638 [12:57:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99853", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:50]execute_script... [12:57: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 : (3)99853", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:57:50]POST & json_proto [12:57:50]process_json_proto [12:57:50]json parsed OK: [12:57:50]protocol is kg_v1.0 [12:57:50]action value=close_receipt [12:57:50]process_action close_receipt [12:57:50]cmd_close_receipt [12:57:50]MH_GetDate [12:57:50]Write to MH i2c: F0 00 00 3A 23 4C [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: F0 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: F0 09 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: F0 09 00 3A 23 00 52 5B 12 67 5A BE F6 66 EF [12:57:50]GetLastDocTimeStamp 1729255763 [12:57:50]current date 1729256274 [12:57:50]FM_GetShiftState [12:57:50]SAM_PROTO_GetShiftState [12:57:50]wFMCommunicate request_size=4 [12:57:50]MH_SAM_APDU [12:57:50]CAPDU: 80 13 01 00 [12:57:50]Write to MH i2c: E2 08 00 3B 23 80 13 01 00 00 00 00 00 DB [12:57:50]Write i2c OK [12:57:50]MH_I2C_Read... [12:57:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:50]Read from MH i2c: E2 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 0E 00 [12:57:50]MH_I2C_Read... [12:57:50]Read from MH i2c: E2 0E 00 3B 23 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 79 [12:57:50]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:57:50]wFMCommunicate OK [12:57:50]SAM_PROTO_GetShiftState done [12:57:50]FM_GetShiftState done [12:57:50]opened in 1729209717 [12:57:50]opened+sec_in_day 1729296117 [12:57:50]quantity*price = 12500 [12:57:50]sum+1 = 12501 [12:57:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 ÐСП 1% : 1.11 ÐДС 12% : 13.27 Ðаличными: 125.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 75 18.10.2024 12:57 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2450 ФПД: 65331207316542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T125754&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2450&fm=65331207316542&tin=02508201610067®Number=0000000000207295&sum=12500 0 [12:57:51]StoreToDocumentArchive [12:57:51]shift 22 fd 2450 [12:57:51]save to /storage/0022/doc_00002450 [12:57:51]save last doc name /storage/0022/doc_00002450 to /storage/kkm_last_doc_name [12:57:51]save OK [12:57:51]Clear old archive folders... [12:57:51]ProcessDocumentItem done err = 0, tmpTLVsize=271 [12:57:51]tlvbuf is B6EC15D0 [12:57:51]SAM_PROTO_ClearQueue [12:57:51]wFMCommunicate request_size=4 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 09 00 00 [12:57:51]Write to MH i2c: E2 08 00 48 23 80 09 00 00 00 00 00 00 DD [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 03 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 03 00 48 23 00 90 00 DF [12:57:51]RAPDU: 90 00 [12:57:51]wFMCommunicate OK [12:57:51]SAM_PROTO_ClearQueue done [12:57:51]KKMCreateOFDPacket [12:57:51]OFDProtocolAddRootSTLVToBuf [12:57:51]FM_MakeSignedData [12:57:51]FM_MakeSignedData [12:57:51]SAM_PROTO_SignData [12:57:51]wFMCommunicate request_size=4 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 0D 01 02 [12:57:51]Write to MH i2c: E2 08 00 49 23 80 0D 01 02 00 00 00 00 E5 [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:57:51]Read from MH i2c: E2 03 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 03 00 49 23 00 90 00 E0 [12:57:51]RAPDU: 90 00 [12:57:51]wFMCommunicate OK [12:57:51]wFMCommunicate request_size=255 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 52 5B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [12:57:51]Write to MH i2c: E2 02 01 4A 23 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 52 5B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 71 [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 03 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 03 00 4A 23 00 90 00 E1 [12:57:51]RAPDU: 90 00 [12:57:51]wFMCommunicate OK [12:57:51]wFMCommunicate request_size=30 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 0D 02 02 19 32 33 34 32 38 32 30 10 04 04 00 92 09 00 00 35 04 06 00 3B 6B 1B 67 A4 3E [12:57:51]Write to MH i2c: E2 21 00 4B 23 80 0D 02 02 19 00 32 33 34 32 38 32 30 10 04 04 00 92 09 00 00 35 04 06 00 3B 6B 1B 67 A4 3E 00 00 7B [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 03 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 03 00 4B 23 00 90 00 E2 [12:57:51]RAPDU: 90 00 [12:57:51]wFMCommunicate OK [12:57:51]wFMCommunicate request_size=4 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 0D 03 02 [12:57:51]Write to MH i2c: E2 08 00 4C 23 80 0D 03 02 00 00 00 00 EA [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:57:51]Read from MH i2c: E2 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 0B 00 [12:57:51]MH_I2C_Read... [12:57:51]Read from MH i2c: E2 0B 00 4C 23 00 6C 7C 01 CE 28 F8 3E E3 90 00 E3 [12:57:51]RAPDU: 6C 7C 01 CE 28 F8 3E E3 90 00 [12:57:51]wFMCommunicate OK [12:57:51]SAM_PROTO_SignData done [12:57:51]FM_MakeSignedData done [12:57:51]CreateOFDProtocolMessage [12:57:51]wFMCommunicate request_size=4 [12:57:51]MH_SAM_APDU [12:57:51]CAPDU: 80 11 00 00 [12:57:51]Write to MH i2c: E2 08 00 4D 23 80 11 00 00 00 00 00 00 EA [12:57:51]Write i2c OK [12:57:51]MH_I2C_Read... [12:57:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:52]Read from MH i2c: E2 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 17 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: E2 17 00 4D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 32 [12:57:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:57:52]wFMCommunicate OK [12:57:52]CreateOFDProtocolMessage done [12:57:52]OFDSenderStorePacket 2450 [12:57:52]StoreOFDPacket docnum=2450 [12:57:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 23 01 00 00 E6 2A 1B 01 7B 83 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 52 5B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 92 09 00 00 35 04 06 00 3B 6B 1B 67 A4 3E 6C 7C 01 CE 28 F8 3E E3 [12:57:52]CheckFolder [12:57:52]dirname=/storage/ofd_packets [12:57:52]CheckFolder done [12:57:52]ProducePacketName [12:57:52]name=ofd_packets/00002450 [12:57:52]NVStorageSaveData ofd_packets/00002450 [12:57:52]File name is /storage/ofd_packets/00002450 [12:57:52]Write 321 bytes [12:57:52]NVStorageSaveData done [12:57:52]OFDSenderStorePacket done [12:57:52]KKMCreateOFDPacket done [12:57:52]NVStorageSaveData kkm_last_timestamp [12:57:52]File name is /storage/kkm_last_timestamp [12:57:52]Write 4 bytes [12:57:52]NVStorageSaveData done [12:57:52]ExternCall_PrintAddStr [12:57:52]wPrintStart [12:57:52]Write to MH i2c: 01 00 00 4E 23 71 [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 07 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 07 00 4E 23 00 00 00 00 00 FF 0F 86 [12:57:52]RasterBufferAndPrint [12:57:52]line Счет N : (3)99853 [12:57:52]line ИÐÐ: 02508201610067 [12:57:52]line Контрольно-КаÑÑовый Чек [12:57:52]line ПРОДÐЖР[12:57:52]line Товар: 5449000006271 [12:57:52]line Ðапиток Фанта 1л [12:57:52]line 1.000 * 125.00 [12:57:52]line = 125.00 [12:57:52]line ÐДС 12% ÐСП 1% [12:57:52]line > о реализуемом товаре [12:57:52]line ИТОГО: 125.00 [12:57:52]line ÐСП 1% : 1.11 [12:57:52]line ÐДС 12% : 13.27 [12:57:52]line Ðаличными: 125.00 [12:57:52]line Безнал.: 0.00 [12:57:52]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [12:57:52]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [12:57:52]line СÐО: Общий режим [12:57:52]line Чек 75 18.10.2024 12:57 [12:57:52]line Смена: 22 ФФД: 1.0 [12:57:52]line ЗÐМ: 0300000191 [12:57:52]line РÐМ: 0000000000207295 [12:57:52]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [12:57:52]line ФМ: 0000000002342820 [12:57:52]line ФД: 2450 [12:57:52]line ФПД: 65331207316542 [12:57:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T125754&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2450&fm=65331207316542&tin=02508201610067®Number=0000000000207295&sum=12500 [12:57:52]line 0 [12:57:52]OFD Sender: Processing packet 2450 [packets to send 1, broken 0] [12:57:52]ProducePacketName [12:57:52]name=ofd_packets/00002450 [12:57:52]OFD Sender: To server: ‡•öpG, [12:57:52]CommunicateWithHost lk.salyk.kg:30040 [12:57:52]ConnectInit lk.salyk.kg [12:57:52]written 0, free lines is 4095 [12:57:52]Connected sock=10 [12:57:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 23 01 00 00 E6 2A 1B 01 7B 83 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 D4 30 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4B 00 00 00 F4 03 04 00 52 5B 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 92 09 00 00 35 04 06 00 3B 6B 1B 67 A4 3E 6C 7C 01 CE 28 F8 3E E3 [12:57:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 8F 12 47 00 EA 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 32 33 34 32 38 32 30 10 04 04 00 92 09 00 00 F4 03 04 00 B6 06 12 67 B6 04 01 00 00 E5 D5 DC 46 11 BC 3B 57 [12:57:52]CommunicateWithHost err = 0 [12:57:52]CheckOFDResponse [12:57:52]1017 (14) - 77093643461234 [12:57:52]1041 (16) - 0000000002342820 [12:57:52]1040 (4) - 2450 [12:57:52]1012 (4) - 18.10.2024 06:56 [12:57:52]1206 (1) - 0 [12:57:52]OFD Sender: Remove packet 2450 [12:57:52]ProducePacketName [12:57:52]name=ofd_packets/00002450 [12:57:52]NVStorageDeleteData [12:57:52]Write to MH i2c: 01 00 00 76 23 99 [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 07 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: 01 07 00 76 23 00 00 00 00 00 BE 0C 6A [12:57:52]RasterBufferAndPrint [12:57:52]line [12:57:52]line [12:57:52]line [12:57:52]line [12:57:52]line [12:57:52]written 0, free lines is 3266 [12:57:52]MH_Cut [12:57:52]Write to MH i2c: D1 01 00 7D 23 01 72 [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: D1 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: D1 01 00 [12:57:52]MH_I2C_Read... [12:57:52]Read from MH i2c: D1 01 00 7D 23 00 71 [12:57:52]Write to MH i2c: 01 00 00 7E 23 A1 [12:57:52]Write i2c OK [12:57:52]MH_I2C_Read... [12:57:53]OFD Sender: No OFD packet to send [12:57:53]*** Cut start [12:57:53]*** Partial cut [12:57:53]*** CUTSNS_PIN = 1 [12:57:53]*** CUTSNS_PIN = 0 [12:57:53]*** Brake cut motor [12:57:54]Read from MH i2c: 01 [12:57:54]MH_I2C_Read... [12:57:54]*** Stop cut motor [12:57:54]*** Cut end [12:57:54]Read from MH i2c: 01 07 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: 01 07 00 7E 23 00 00 00 00 00 FF 0F B6 [12:57:54]process_action close_receipt done [12:57:54]requested_data is exist [12:57:54]produce_requested_data [12:57:54]requested_item fm.sn is exist - process it [12:57:54]wFMCommunicate request_size=4 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 11 00 00 [12:57:54]Write to MH i2c: E2 08 00 7F 23 80 11 00 00 00 00 00 00 1C [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 17 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 17 00 7F 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 64 [12:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [12:57:54]wFMCommunicate OK [12:57:54]requested_item fd.num is exist - process it [12:57:54]SAM_PROTO_GetFieldsCounters [12:57:54]wFMCommunicate request_size=4 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 13 00 00 [12:57:54]Write to MH i2c: E2 08 00 80 23 80 13 00 00 00 00 00 00 1F [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 62 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 62 00 80 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 92 09 00 00 0E 04 04 00 16 00 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 C7 [12:57:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 92 09 00 00 0E 04 04 00 16 00 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:57:54]wFMCommunicate OK [12:57:54]SAM_PROTO_GetFieldsCounters done [12:57:54]requested_item shift.num is exist - process it [12:57:54]requested_item shift.opened is exist - process it [12:57:54]req_shift_opened [12:57:54]FM_GetShiftState [12:57:54]SAM_PROTO_GetShiftState [12:57:54]wFMCommunicate request_size=4 [12:57:54]MH_SAM_APDU [12:57:54]CAPDU: 80 13 01 00 [12:57:54]Write to MH i2c: E2 08 00 81 23 80 13 01 00 00 00 00 00 21 [12:57:54]Write i2c OK [12:57:54]MH_I2C_Read... [12:57:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:57:54]Read from MH i2c: E2 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 0E 00 [12:57:54]MH_I2C_Read... [12:57:54]Read from MH i2c: E2 0E 00 81 23 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 BF [12:57:54]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [12:57:54]wFMCommunicate OK [12:57:54]SAM_PROTO_GetShiftState done [12:57:54]FM_GetShiftState done [12:57:54]req_shift_opened done [12:57:54]requested_item shift.open_date is exist - process it [12:57:54]req_shift_open_date [12:57:54]req_shift_open_date done [12:57:54]produce_requested_data done [12:57:54]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2450,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [12:57:54]process_action_free close_receipt [12:57:54]json_value_free [12:57:54]json_value_free done [12:57:54]process_json_proto returns [12:57:54]Send response to host [12:57:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2450,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [12:57:54]free response buf [12:57:54]execute_script done [12:57:54]execute_script returns [12:57:54]free content buf [12:57:54]Sock 9.Close socket [12:57:54]Sock 9.Thread stoped [12:57:58]OFD Sender: No OFD packet to send [12:58:03]OFD Sender: No OFD packet to send [12:58:08]OFD Sender: No OFD packet to send [12:58:13]OFD Sender: No OFD packet to send [12:58:18]OFD Sender: No OFD packet to send [12:58:23]OFD Sender: No OFD packet to send [12:58:28]OFD Sender: No OFD packet to send [12:58:33]OFD Sender: No OFD packet to send [12:58:38]OFD Sender: No OFD packet to send [12:58:43]OFD Sender: No OFD packet to send [12:58:48]OFD Sender: No OFD packet to send [12:58:53]OFD Sender: No OFD packet to send [12:58:58]OFD Sender: No OFD packet to send [12:59:03]OFD Sender: No OFD packet to send [12:59:08]OFD Sender: No OFD packet to send [12:59:13]OFD Sender: No OFD packet to send [12:59:18]OFD Sender: No OFD packet to send [12:59:23]OFD Sender: No OFD packet to send [12:59:28]OFD Sender: No OFD packet to send [12:59:33]OFD Sender: No OFD packet to send [12:59:38]OFD Sender: No OFD packet to send [12:59:43]OFD Sender: No OFD packet to send [12:59:48]OFD Sender: No OFD packet to send [12:59:53]OFD Sender: No OFD packet to send [12:59:58]OFD Sender: No OFD packet to send [13:00:03]OFD Sender: No OFD packet to send [13:00:08]OFD Sender: No OFD packet to send [13:00:13]OFD Sender: No OFD packet to send [13:00:18]OFD Sender: No OFD packet to send [13:00:23]OFD Sender: No OFD packet to send [13:00:28]OFD Sender: No OFD packet to send [13:00:33]OFD Sender: No OFD packet to send [13:00:38]OFD Sender: No OFD packet to send [13:00:43]OFD Sender: No OFD packet to send [13:00:48]OFD Sender: No OFD packet to send [13:00:53]OFD Sender: No OFD packet to send [13:00:58]OFD Sender: No OFD packet to send [13:01:03]OFD Sender: No OFD packet to send [13:01:08]OFD Sender: No OFD packet to send [13:01:13]OFD Sender: No OFD packet to send [13:01:18]OFD Sender: No OFD packet to send [13:01:23]OFD Sender: No OFD packet to send [13:01:28]OFD Sender: No OFD packet to send [13:01:33]OFD Sender: No OFD packet to send [13:01:38]OFD Sender: No OFD packet to send [13:01:43]OFD Sender: No OFD packet to send [13:01:48]OFD Sender: No OFD packet to send [13:01:53]OFD Sender: No OFD packet to send [13:01:58]OFD Sender: No OFD packet to send [13:02:03]OFD Sender: No OFD packet to send [13:02:08]OFD Sender: No OFD packet to send [13:02:13]OFD Sender: No OFD packet to send [13:02:18]OFD Sender: No OFD packet to send [13:02:23]OFD Sender: No OFD packet to send [13:02:28]OFD Sender: No OFD packet to send [13:02:33]OFD Sender: No OFD packet to send [13:02:38]OFD Sender: No OFD packet to send [13:02:43]OFD Sender: No OFD packet to send [13:02:48]OFD Sender: No OFD packet to send [13:02:53]OFD Sender: No OFD packet to send [13:02:58]OFD Sender: No OFD packet to send [13:03:03]OFD Sender: No OFD packet to send [13:03:08]OFD Sender: No OFD packet to send [13:03:13]OFD Sender: No OFD packet to send [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:53]OFD Sender: No OFD packet to send [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:03]OFD Sender: No OFD packet to send [13:05:08]OFD Sender: No OFD packet to send [13:05:13]OFD Sender: No OFD packet to send [13:05:18]OFD Sender: No OFD packet to send [13:05:23]OFD Sender: No OFD packet to send [13:05:28]OFD Sender: No OFD packet to send [13:05:33]OFD Sender: No OFD packet to send [13:05:38]OFD Sender: No OFD packet to send [13:05:43]OFD Sender: No OFD packet to send [13:05:48]OFD Sender: No OFD packet to send [13:05:53]OFD Sender: No OFD packet to send [13:05:58]OFD Sender: No OFD packet to send [13:06:03]OFD Sender: No OFD packet to send [13:06:08]OFD Sender: No OFD packet to send [13:06:13]OFD Sender: No OFD packet to send [13:06:18]OFD Sender: No OFD packet to send [13:06:23]OFD Sender: No OFD packet to send [13:06:28]OFD Sender: No OFD packet to send [13:06:33]OFD Sender: No OFD packet to send [13:06:38]OFD Sender: No OFD packet to send [13:06:43]OFD Sender: No OFD packet to send [13:06:48]OFD Sender: No OFD packet to send [13:06:53]OFD Sender: No OFD packet to send [13:06:58]OFD Sender: No OFD packet to send [13:07:03]OFD Sender: No OFD packet to send [13:07:08]OFD Sender: No OFD packet to send [13:07:13]OFD Sender: No OFD packet to send [13:07:18]OFD Sender: No OFD packet to send [13:07:23]OFD Sender: No OFD packet to send [13:07:28]OFD Sender: No OFD packet to send [13:07:33]OFD Sender: No OFD packet to send [13:07:38]OFD Sender: No OFD packet to send [13:07:43]OFD Sender: No OFD packet to send [13:07:48]OFD Sender: No OFD packet to send [13:07:53]OFD Sender: No OFD packet to send [13:07:58]OFD Sender: No OFD packet to send [13:08:03]OFD Sender: No OFD packet to send [13:08:08]OFD Sender: No OFD packet to send [13:08:13]OFD Sender: No OFD packet to send [13:08:18]OFD Sender: No OFD packet to send [13:08:23]OFD Sender: No OFD packet to send [13:08:28]OFD Sender: No OFD packet to send [13:08:33]OFD Sender: No OFD packet to send [13:08:38]OFD Sender: No OFD packet to send [13:08:43]OFD Sender: No OFD packet to send [13:08:48]OFD Sender: No OFD packet to send [13:08:53]OFD Sender: No OFD packet to send [13:08:58]OFD Sender: No OFD packet to send [13:09:03]OFD Sender: No OFD packet to send [13:09:08]OFD Sender: No OFD packet to send [13:09:13]OFD Sender: No OFD packet to send [13:09:18]OFD Sender: No OFD packet to send [13:09:23]OFD Sender: No OFD packet to send [13:09:28]OFD Sender: No OFD packet to send [13:09:33]OFD Sender: No OFD packet to send [13:09:38]OFD Sender: No OFD packet to send [13:09:43]OFD Sender: No OFD packet to send [13:09:48]OFD Sender: No OFD packet to send [13:09:53]OFD Sender: No OFD packet to send [13:09:58]OFD Sender: No OFD packet to send [13:10:03]OFD Sender: No OFD packet to send [13:10:08]OFD Sender: No OFD packet to send [13:10:13]OFD Sender: No OFD packet to send [13:10:18]OFD Sender: No OFD packet to send [13:10:23]OFD Sender: No OFD packet to send [13:10:28]OFD Sender: No OFD packet to send [13:10:33]OFD Sender: No OFD packet to send [13:10:38]OFD Sender: No OFD packet to send [13:10:43]OFD Sender: No OFD packet to send [13:10:48]OFD Sender: No OFD packet to send [13:10:53]OFD Sender: No OFD packet to send [13:10:58]OFD Sender: No OFD packet to send [13:11:03]OFD Sender: No OFD packet to send [13:11:08]OFD Sender: No OFD packet to send [13:11:13]OFD Sender: No OFD packet to send [13:11:18]OFD Sender: No OFD packet to send [13:11:23]OFD Sender: No OFD packet to send [13:11:28]OFD Sender: No OFD packet to send [13:11:33]OFD Sender: No OFD packet to send [13:11:38]OFD Sender: No OFD packet to send [13:11:43]OFD Sender: No OFD packet to send [13:11:48]OFD Sender: No OFD packet to send [13:11:53]OFD Sender: No OFD packet to send [13:11:58]OFD Sender: No OFD packet to send [13:12:03]OFD Sender: No OFD packet to send [13:12:08]OFD Sender: No OFD packet to send [13:12:13]OFD Sender: No OFD packet to send [13:12:18]OFD Sender: No OFD packet to send [13:12:23]OFD Sender: No OFD packet to send [13:12:28]OFD Sender: No OFD packet to send [13:12:33]OFD Sender: No OFD packet to send [13:12:38]OFD Sender: No OFD packet to send [13:12:43]OFD Sender: No OFD packet to send [13:12:48]OFD Sender: No OFD packet to send [13:12:53]OFD Sender: No OFD packet to send [13:12:58]OFD Sender: No OFD packet to send [13:13:03]OFD Sender: No OFD packet to send [13:13:08]OFD Sender: No OFD packet to send [13:13:13]OFD Sender: No OFD packet to send [13:13:18]OFD Sender: No OFD packet to send [13:13:23]OFD Sender: No OFD packet to send [13:13:28]OFD Sender: No OFD packet to send [13:13:33]OFD Sender: No OFD packet to send [13:13:38]OFD Sender: No OFD packet to send [13:13:43]OFD Sender: No OFD packet to send [13:13:48]OFD Sender: No OFD packet to send [13:13:53]OFD Sender: No OFD packet to send [13:13:58]OFD Sender: No OFD packet to send [13:14:03]OFD Sender: No OFD packet to send [13:14:08]OFD Sender: No OFD packet to send [13:14:13]OFD Sender: No OFD packet to send [13:14:18]OFD Sender: No OFD packet to send [13:14:23]OFD Sender: No OFD packet to send [13:14:28]OFD Sender: No OFD packet to send [13:14:33]OFD Sender: No OFD packet to send [13:14:38]OFD Sender: No OFD packet to send [13:14:43]OFD Sender: No OFD packet to send [13:14:48]OFD Sender: No OFD packet to send [13:14:53]OFD Sender: No OFD packet to send [13:14:58]OFD Sender: No OFD packet to send [13:15:03]OFD Sender: No OFD packet to send [13:15:08]OFD Sender: No OFD packet to send [13:15:13]OFD Sender: No OFD packet to send [13:15:18]OFD Sender: No OFD packet to send [13:15:23]OFD Sender: No OFD packet to send [13:15:28]OFD Sender: No OFD packet to send [13:15:33]OFD Sender: No OFD packet to send [13:15: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]OFD Sender: No OFD packet to send [13:17:14]OFD Sender: No OFD packet to send [13:17:19]OFD Sender: No OFD packet to send [13:17:24]OFD Sender: No OFD packet to send [13:17:29]OFD Sender: No OFD packet to send [13:17:34]OFD Sender: No OFD packet to send [13:17:39]OFD Sender: No OFD packet to send [13:17:44]OFD Sender: No OFD packet to send [13:17:49]OFD Sender: No OFD packet to send [13:17:54]OFD Sender: No OFD packet to send [13:17:59]OFD Sender: No OFD packet to send [13:18:04]OFD Sender: No OFD packet to send [13:18:09]OFD Sender: No OFD packet to send [13:18:14]OFD Sender: No OFD packet to send [13:18:19]OFD Sender: No OFD packet to send [13:18:24]OFD Sender: No OFD packet to send [13:18:29]OFD Sender: No OFD packet to send [13:18:30]accept exits with 7 [13:18:30]New connection [13:18:30]New thread 3066707300 created [13:18:30]Thread 3066850660 joined [13:18:30]Waiting for new connection... [13:18:30] Sock 7.Parse request [13:18:30]Sock 7.Check first char [13:18:30]Sock 7.First char is OK [13:18:30]request: POST /json_proto HTTP/1.0 [13:18:30]Method: POST [13:18:30]URL: /json_proto [13:18:30]Method is POST - this is cgi request [13:18:30]url: /json_proto [13:18:30]query_string will be loaded in cgi processing [13:18:30]execute_cgi json_proto POST (null) [13:18:30]execute_cgi path=json_proto method=POST [13:18:30]POST find Content-Length [13:18:30]Host: 172.17.52.132:8080 [13:18:30]Content-Length: 619 [13:18:30]Content-Type: application/json [13:18:30] [13:18:30]POST finish read [13:18:30]Found Content-Length = 619 [13:18:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99854", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:30]execute_script... [13:18: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 : (3)99854", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:18:30]POST & json_proto [13:18:30]process_json_proto [13:18:30]json parsed OK: [13:18:30]protocol is kg_v1.0 [13:18:30]action value=close_receipt [13:18:30]process_action close_receipt [13:18:30]cmd_close_receipt [13:18:30]MH_GetDate [13:18:30]Write to MH i2c: F0 00 00 82 23 94 [13:18:30]Write i2c OK [13:18:30]MH_I2C_Read... [13:18:30]Read from MH i2c: F0 [13:18:30]MH_I2C_Read... [13:18:30]Read from MH i2c: F0 09 00 [13:18:30]MH_I2C_Read... [13:18:30]Read from MH i2c: F0 09 00 82 23 00 2A 60 12 67 5A BE F6 66 14 [13:18:30]GetLastDocTimeStamp 1729256274 [13:18:30]current date 1729257514 [13:18:30]FM_GetShiftState [13:18:30]SAM_PROTO_GetShiftState [13:18:30]wFMCommunicate request_size=4 [13:18:30]MH_SAM_APDU [13:18:30]CAPDU: 80 13 01 00 [13:18:30]Write to MH i2c: E2 08 00 83 23 80 13 01 00 00 00 00 00 23 [13:18:30]Write i2c OK [13:18:30]MH_I2C_Read... [13:18:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:30]Read from MH i2c: E2 [13:18:30]MH_I2C_Read... [13:18:30]Read from MH i2c: E2 0E 00 [13:18:30]MH_I2C_Read... [13:18:30]Read from MH i2c: E2 0E 00 83 23 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C1 [13:18:30]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:18:30]wFMCommunicate OK [13:18:30]SAM_PROTO_GetShiftState done [13:18:30]FM_GetShiftState done [13:18:30]opened in 1729209717 [13:18:30]opened+sec_in_day 1729296117 [13:18:30]quantity*price = 15000 [13:18:30]sum+1 = 15001 [13:18:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 ÐСП 1% : 1.33 ÐДС 12% : 15.93 Ðаличными: 150.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 76 18.10.2024 13:18 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2451 ФПД: 151419628750544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T131834&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2451&fm=151419628750544&tin=02508201610067®Number=0000000000207295&sum=15000 0 [13:18:31]StoreToDocumentArchive [13:18:31]shift 22 fd 2451 [13:18:31]save to /storage/0022/doc_00002451 [13:18:31]save last doc name /storage/0022/doc_00002451 to /storage/kkm_last_doc_name [13:18:31]save OK [13:18:31]Clear old archive folders... [13:18:31]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:18:31]tlvbuf is B6D8F4B0 [13:18:31]SAM_PROTO_ClearQueue [13:18:31]wFMCommunicate request_size=4 [13:18:31]MH_SAM_APDU [13:18:31]CAPDU: 80 09 00 00 [13:18:31]Write to MH i2c: E2 08 00 90 23 80 09 00 00 00 00 00 00 25 [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:18:31]Read from MH i2c: E2 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 03 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 03 00 90 23 00 90 00 27 [13:18:31]RAPDU: 90 00 [13:18:31]wFMCommunicate OK [13:18:31]SAM_PROTO_ClearQueue done [13:18:31]KKMCreateOFDPacket [13:18:31]OFDProtocolAddRootSTLVToBuf [13:18:31]FM_MakeSignedData [13:18:31]FM_MakeSignedData [13:18:31]SAM_PROTO_SignData [13:18:31]wFMCommunicate request_size=4 [13:18:31]MH_SAM_APDU [13:18:31]CAPDU: 80 0D 01 02 [13:18:31]Write to MH i2c: E2 08 00 91 23 80 0D 01 02 00 00 00 00 2D [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:18:31]Read from MH i2c: E2 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 03 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 03 00 91 23 00 90 00 28 [13:18:31]RAPDU: 90 00 [13:18:31]wFMCommunicate OK [13:18:31]wFMCommunicate request_size=255 [13:18:31]MH_SAM_APDU [13:18:31]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2A 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 [13:18:31]Write to MH i2c: E2 02 01 92 23 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2A 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 00 00 1A [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:31]Read from MH i2c: E2 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 03 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 03 00 92 23 00 90 00 29 [13:18:31]RAPDU: 90 00 [13:18:31]wFMCommunicate OK [13:18:31]wFMCommunicate request_size=31 [13:18:31]MH_SAM_APDU [13:18:31]CAPDU: 80 0D 02 02 1A 30 32 33 34 32 38 32 30 10 04 04 00 93 09 00 00 35 04 06 00 89 B7 21 2F 06 D0 [13:18:31]Write to MH i2c: E2 22 00 93 23 80 0D 02 02 1A 00 30 32 33 34 32 38 32 30 10 04 04 00 93 09 00 00 35 04 06 00 89 B7 21 2F 06 D0 00 00 52 [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:18:31]Read from MH i2c: E2 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 03 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 03 00 93 23 00 90 00 2A [13:18:31]RAPDU: 90 00 [13:18:31]wFMCommunicate OK [13:18:31]wFMCommunicate request_size=4 [13:18:31]MH_SAM_APDU [13:18:31]CAPDU: 80 0D 03 02 [13:18:31]Write to MH i2c: E2 08 00 94 23 80 0D 03 02 00 00 00 00 32 [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:18:31]Read from MH i2c: E2 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 0B 00 [13:18:31]MH_I2C_Read... [13:18:31]Read from MH i2c: E2 0B 00 94 23 00 FE F7 8C 07 4B BD 8A 83 90 00 D0 [13:18:31]RAPDU: FE F7 8C 07 4B BD 8A 83 90 00 [13:18:31]wFMCommunicate OK [13:18:31]SAM_PROTO_SignData done [13:18:31]FM_MakeSignedData done [13:18:31]CreateOFDProtocolMessage [13:18:31]wFMCommunicate request_size=4 [13:18:31]MH_SAM_APDU [13:18:31]CAPDU: 80 11 00 00 [13:18:31]Write to MH i2c: E2 08 00 95 23 80 11 00 00 00 00 00 00 32 [13:18:31]Write i2c OK [13:18:31]MH_I2C_Read... [13:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:32]Read from MH i2c: E2 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 17 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: E2 17 00 95 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 7A [13:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:18:32]wFMCommunicate OK [13:18:32]CreateOFDProtocolMessage done [13:18:32]OFDSenderStorePacket 2451 [13:18:32]StoreOFDPacket docnum=2451 [13:18:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 24 01 00 00 02 3C 1C 01 6F 32 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2A 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 93 09 00 00 35 04 06 00 89 B7 21 2F 06 D0 FE F7 8C 07 4B BD 8A 83 [13:18:32]CheckFolder [13:18:32]dirname=/storage/ofd_packets [13:18:32]CheckFolder done [13:18:32]ProducePacketName [13:18:32]name=ofd_packets/00002451 [13:18:32]NVStorageSaveData ofd_packets/00002451 [13:18:32]File name is /storage/ofd_packets/00002451 [13:18:32]Write 322 bytes [13:18:32]NVStorageSaveData done [13:18:32]OFDSenderStorePacket done [13:18:32]KKMCreateOFDPacket done [13:18:32]NVStorageSaveData kkm_last_timestamp [13:18:32]File name is /storage/kkm_last_timestamp [13:18:32]Write 4 bytes [13:18:32]NVStorageSaveData done [13:18:32]ExternCall_PrintAddStr [13:18:32]wPrintStart [13:18:32]Write to MH i2c: 01 00 00 96 23 B9 [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 07 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 07 00 96 23 00 00 00 00 00 FF 0F CE [13:18:32]RasterBufferAndPrint [13:18:32]line Счет N : (3)99854 [13:18:32]line ИÐÐ: 02508201610067 [13:18:32]line Контрольно-КаÑÑовый Чек [13:18:32]line ПРОДÐЖР[13:18:32]line Товар: 4640030091607 [13:18:32]line Сигареты ESSE Exchange [13:18:32]line 1.000 * 150.00 [13:18:32]line = 150.00 [13:18:32]line ÐДС 12% ÐСП 1% [13:18:32]line > о реализуемом товаре [13:18:32]line ИТОГО: 150.00 [13:18:32]line ÐСП 1% : 1.33 [13:18:32]line ÐДС 12% : 15.93 [13:18:32]line Ðаличными: 150.00 [13:18:32]line Безнал.: 0.00 [13:18:32]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [13:18:32]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [13:18:32]line СÐО: Общий режим [13:18:32]line Чек 76 18.10.2024 13:18 [13:18:32]line Смена: 22 ФФД: 1.0 [13:18:32]line ЗÐМ: 0300000191 [13:18:32]line РÐМ: 0000000000207295 [13:18:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [13:18:32]line ФМ: 0000000002342820 [13:18:32]line ФД: 2451 [13:18:32]line ФПД: 151419628750544 [13:18:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T131834&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2451&fm=151419628750544&tin=02508201610067®Number=0000000000207295&sum=15000 [13:18:32]line 0 [13:18:32]OFD Sender: Processing packet 2451 [packets to send 1, broken 0] [13:18:32]ProducePacketName [13:18:32]name=ofd_packets/00002451 [13:18:32]OFD Sender: To server: ‡•öpG, [13:18:32]CommunicateWithHost lk.salyk.kg:30040 [13:18:32]ConnectInit lk.salyk.kg [13:18:32]written 0, free lines is 4095 [13:18:32]Connected sock=10 [13:18:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 24 01 00 00 02 3C 1C 01 6F 32 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 39 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 2A 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 93 09 00 00 35 04 06 00 89 B7 21 2F 06 D0 FE F7 8C 07 4B BD 8A 83 [13:18:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 8C C3 47 00 AA C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 93 09 00 00 F4 03 04 00 8E 0B 12 67 B6 04 01 00 00 1A 9B EB 2F E8 1E 6B 90 [13:18:32]CommunicateWithHost err = 0 [13:18:32]CheckOFDResponse [13:18:32]1017 (14) - 77093643461234 [13:18:32]1041 (16) - 0000000002342820 [13:18:32]1040 (4) - 2451 [13:18:32]1012 (4) - 18.10.2024 07:17 [13:18:32]1206 (1) - 0 [13:18:32]OFD Sender: Remove packet 2451 [13:18:32]ProducePacketName [13:18:32]name=ofd_packets/00002451 [13:18:32]NVStorageDeleteData [13:18:32]Write to MH i2c: 01 00 00 BE 23 E1 [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 07 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: 01 07 00 BE 23 00 00 00 00 00 BF 0C B3 [13:18:32]RasterBufferAndPrint [13:18:32]line [13:18:32]line [13:18:32]line [13:18:32]line [13:18:32]line [13:18:32]written 0, free lines is 3269 [13:18:32]MH_Cut [13:18:32]Write to MH i2c: D1 01 00 C5 23 01 BA [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: D1 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: D1 01 00 [13:18:32]MH_I2C_Read... [13:18:32]Read from MH i2c: D1 01 00 C5 23 00 B9 [13:18:32]Write to MH i2c: 01 00 00 C6 23 E9 [13:18:32]Write i2c OK [13:18:32]MH_I2C_Read... [13:18:33]OFD Sender: No OFD packet to send [13:18:33]*** Cut start [13:18:33]*** Partial cut [13:18:33]*** CUTSNS_PIN = 1 [13:18:33]*** CUTSNS_PIN = 0 [13:18:34]*** Brake cut motor [13:18:34]Read from MH i2c: 01 [13:18:34]MH_I2C_Read... [13:18:34]*** Stop cut motor [13:18:34]*** Cut end [13:18:34]Read from MH i2c: 01 07 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: 01 07 00 C6 23 00 00 00 00 00 FF 0F FE [13:18:34]process_action close_receipt done [13:18:34]requested_data is exist [13:18:34]produce_requested_data [13:18:34]requested_item fm.sn is exist - process it [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 11 00 00 [13:18:34]Write to MH i2c: E2 08 00 C7 23 80 11 00 00 00 00 00 00 64 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 17 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 17 00 C7 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 AC [13:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:18:34]wFMCommunicate OK [13:18:34]requested_item fd.num is exist - process it [13:18:34]SAM_PROTO_GetFieldsCounters [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 13 00 00 [13:18:34]Write to MH i2c: E2 08 00 C8 23 80 13 00 00 00 00 00 00 67 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 62 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 62 00 C8 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 93 09 00 00 0E 04 04 00 16 00 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 13 [13:18:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 93 09 00 00 0E 04 04 00 16 00 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 [13:18:34]wFMCommunicate OK [13:18:34]SAM_PROTO_GetFieldsCounters done [13:18:34]requested_item shift.num is exist - process it [13:18:34]requested_item shift.opened is exist - process it [13:18:34]req_shift_opened [13:18:34]FM_GetShiftState [13:18:34]SAM_PROTO_GetShiftState [13:18:34]wFMCommunicate request_size=4 [13:18:34]MH_SAM_APDU [13:18:34]CAPDU: 80 13 01 00 [13:18:34]Write to MH i2c: E2 08 00 C9 23 80 13 01 00 00 00 00 00 69 [13:18:34]Write i2c OK [13:18:34]MH_I2C_Read... [13:18:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:18:34]Read from MH i2c: E2 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 0E 00 [13:18:34]MH_I2C_Read... [13:18:34]Read from MH i2c: E2 0E 00 C9 23 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 07 [13:18:34]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:18:34]wFMCommunicate OK [13:18:34]SAM_PROTO_GetShiftState done [13:18:34]FM_GetShiftState done [13:18:34]req_shift_opened done [13:18:34]requested_item shift.open_date is exist - process it [13:18:34]req_shift_open_date [13:18:34]req_shift_open_date done [13:18:34]produce_requested_data done [13:18:34]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2451,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [13:18:34]process_action_free close_receipt [13:18:34]json_value_free [13:18:34]json_value_free done [13:18:34]process_json_proto returns [13:18:34]Send response to host [13:18:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2451,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [13:18:34]free response buf [13:18:34]execute_script done [13:18:34]execute_script returns [13:18:34]free content buf [13:18:34]Sock 7.Close socket [13:18:34]Sock 7.Thread stoped [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:09]accept exits with 9 [13:19:09]New connection [13:19:09]New thread 3066850660 created [13:19:09]Thread 3066707300 joined [13:19:09]Waiting for new connection... [13:19:09] Sock 9.Parse request [13:19:09]Sock 9.Check first char [13:19:09]Sock 9.First char is OK [13:19:09]request: POST /json_proto HTTP/1.0 [13:19:09]Method: POST [13:19:09]URL: /json_proto [13:19:09]Method is POST - this is cgi request [13:19:09]url: /json_proto [13:19:09]query_string will be loaded in cgi processing [13:19:09]execute_cgi json_proto POST (null) [13:19:09]execute_cgi path=json_proto method=POST [13:19:09]POST find Content-Length [13:19:09]Host: 172.17.52.132:8080 [13:19:09]Content-Length: 669 [13:19:09]Content-Type: application/json [13:19:09] [13:19:09]POST finish read [13:19:09]Found Content-Length = 669 [13:19:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99855", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:09]execute_script... [13:19: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 : (3)99855", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:19:09]POST & json_proto [13:19:09]process_json_proto [13:19:09]json parsed OK: [13:19:09]protocol is kg_v1.0 [13:19:09]action value=close_receipt [13:19:09]process_action close_receipt [13:19:09]cmd_close_receipt [13:19:09]MH_GetDate [13:19:09]Write to MH i2c: F0 00 00 CA 23 DC [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: F0 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: F0 09 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: F0 09 00 CA 23 00 51 60 12 67 5A BE F6 66 83 [13:19:09]GetLastDocTimeStamp 1729257514 [13:19:09]current date 1729257553 [13:19:09]FM_GetShiftState [13:19:09]SAM_PROTO_GetShiftState [13:19:09]wFMCommunicate request_size=4 [13:19:09]MH_SAM_APDU [13:19:09]CAPDU: 80 13 01 00 [13:19:09]Write to MH i2c: E2 08 00 CB 23 80 13 01 00 00 00 00 00 6B [13:19:09]Write i2c OK [13:19:09]MH_I2C_Read... [13:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:09]Read from MH i2c: E2 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 0E 00 [13:19:09]MH_I2C_Read... [13:19:09]Read from MH i2c: E2 0E 00 CB 23 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 09 [13:19:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:19:09]wFMCommunicate OK [13:19:09]SAM_PROTO_GetShiftState done [13:19:09]FM_GetShiftState done [13:19:09]opened in 1729209717 [13:19:09]opened+sec_in_day 1729296117 [13:19:09]quantity*price = 17000 [13:19:09]sum+1 = 17001 [13:19:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 ÐСП 1% : 1.50 ÐДС 12% : 18.05 Ðаличными: 170.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 77 18.10.2024 13:19 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2452 ФПД: 201871461183602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T131913&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2452&fm=201871461183602&tin=02508201610067®Number=0000000000207295&sum=17000 0 [13:19:10]StoreToDocumentArchive [13:19:10]shift 22 fd 2452 [13:19:10]save to /storage/0022/doc_00002452 [13:19:10]save last doc name /storage/0022/doc_00002452 to /storage/kkm_last_doc_name [13:19:10]save OK [13:19:10]Clear old archive folders... [13:19:10]ProcessDocumentItem done err = 0, tmpTLVsize=282 [13:19:10]tlvbuf is 013E0500 [13:19:10]SAM_PROTO_ClearQueue [13:19:10]wFMCommunicate request_size=4 [13:19:10]MH_SAM_APDU [13:19:10]CAPDU: 80 09 00 00 [13:19:10]Write to MH i2c: E2 08 00 D8 23 80 09 00 00 00 00 00 00 6D [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:19:10]Read from MH i2c: E2 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: E2 03 00 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: E2 03 00 D8 23 00 90 00 6F [13:19:10]RAPDU: 90 00 [13:19:10]wFMCommunicate OK [13:19:10]SAM_PROTO_ClearQueue done [13:19:10]KKMCreateOFDPacket [13:19:10]OFDProtocolAddRootSTLVToBuf [13:19:10]FM_MakeSignedData [13:19:10]FM_MakeSignedData [13:19:10]SAM_PROTO_SignData [13:19:10]wFMCommunicate request_size=4 [13:19:10]MH_SAM_APDU [13:19:10]CAPDU: 80 0D 01 02 [13:19:10]Write to MH i2c: E2 08 00 D9 23 80 0D 01 02 00 00 00 00 75 [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:19:10]Read from MH i2c: E2 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: E2 03 00 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: E2 03 00 D9 23 00 90 00 70 [13:19:10]RAPDU: 90 00 [13:19:10]wFMCommunicate OK [13:19:10]wFMCommunicate request_size=255 [13:19:10]MH_SAM_APDU [13:19:10]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 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 68 42 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 51 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 [13:19:10]Write to MH i2c: E2 02 01 DA 23 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 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 68 42 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 51 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 00 00 10 [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:10]Read from MH i2c: E2 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: E2 03 00 [13:19:10]MH_I2C_Read... [13:19:10]Read from MH i2c: E2 03 00 DA 23 00 90 00 71 [13:19:10]RAPDU: 90 00 [13:19:10]wFMCommunicate OK [13:19:10]wFMCommunicate request_size=41 [13:19:10]MH_SAM_APDU [13:19:10]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 94 09 00 00 35 04 06 00 B7 99 DC BB F0 72 [13:19:10]Write to MH i2c: E2 2C 00 DB 23 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 94 09 00 00 35 04 06 00 B7 99 DC BB F0 72 00 00 22 [13:19:10]Write i2c OK [13:19:10]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 03 00 DB 23 00 90 00 72 [13:19:11]RAPDU: 90 00 [13:19:11]wFMCommunicate OK [13:19:11]wFMCommunicate request_size=4 [13:19:11]MH_SAM_APDU [13:19:11]CAPDU: 80 0D 03 02 [13:19:11]Write to MH i2c: E2 08 00 DC 23 80 0D 03 02 00 00 00 00 7A [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 0B 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 0B 00 DC 23 00 37 6F BD 42 7A 87 73 0D 90 00 A1 [13:19:11]RAPDU: 37 6F BD 42 7A 87 73 0D 90 00 [13:19:11]wFMCommunicate OK [13:19:11]SAM_PROTO_SignData done [13:19:11]FM_MakeSignedData done [13:19:11]CreateOFDProtocolMessage [13:19:11]wFMCommunicate request_size=4 [13:19:11]MH_SAM_APDU [13:19:11]CAPDU: 80 11 00 00 [13:19:11]Write to MH i2c: E2 08 00 DD 23 80 11 00 00 00 00 00 00 7A [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:11]Read from MH i2c: E2 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 17 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: E2 17 00 DD 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C2 [13:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:19:11]wFMCommunicate OK [13:19:11]CreateOFDProtocolMessage done [13:19:11]OFDSenderStorePacket 2452 [13:19:11]StoreOFDPacket docnum=2452 [13:19:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 7F 9F 26 01 4C D6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 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 68 42 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 51 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 94 09 00 00 35 04 06 00 B7 99 DC BB F0 72 37 6F BD 42 7A 87 73 0D [13:19:11]CheckFolder [13:19:11]dirname=/storage/ofd_packets [13:19:11]CheckFolder done [13:19:11]ProducePacketName [13:19:11]name=ofd_packets/00002452 [13:19:11]NVStorageSaveData ofd_packets/00002452 [13:19:11]File name is /storage/ofd_packets/00002452 [13:19:11]Write 332 bytes [13:19:11]NVStorageSaveData done [13:19:11]OFDSenderStorePacket done [13:19:11]KKMCreateOFDPacket done [13:19:11]NVStorageSaveData kkm_last_timestamp [13:19:11]File name is /storage/kkm_last_timestamp [13:19:11]Write 4 bytes [13:19:11]NVStorageSaveData done [13:19:11]ExternCall_PrintAddStr [13:19:11]wPrintStart [13:19:11]Write to MH i2c: 01 00 00 DE 23 01 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 07 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 07 00 DE 23 00 00 00 00 00 FF 0F 16 [13:19:11]RasterBufferAndPrint [13:19:11]line Счет N : (3)99855 [13:19:11]line ИÐÐ: 02508201610067 [13:19:11]line Контрольно-КаÑÑовый Чек [13:19:11]line ПРОДÐЖР[13:19:11]line Товар: 4700000480357 [13:19:11]line Пиво шахтерÑкое 1л ПЭТ [13:19:11]line 1.000 * 170.00 [13:19:11]line = 170.00 [13:19:11]line ÐДС 12% ÐСП 1% [13:19:11]line > о реализуемом товаре [13:19:11]line ИТОГО: 170.00 [13:19:11]line ÐСП 1% : 1.50 [13:19:11]line ÐДС 12% : 18.05 [13:19:11]line Ðаличными: 170.00 [13:19:11]line Безнал.: 0.00 [13:19:11]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [13:19:11]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [13:19:11]line СÐО: Общий режим [13:19:11]line Чек 77 18.10.2024 13:19 [13:19:11]line Смена: 22 ФФД: 1.0 [13:19:11]line ЗÐМ: 0300000191 [13:19:11]line РÐМ: 0000000000207295 [13:19:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [13:19:11]line ФМ: 0000000002342820 [13:19:11]line ФД: 2452 [13:19:11]line ФПД: 201871461183602 [13:19:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T131913&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2452&fm=201871461183602&tin=02508201610067®Number=0000000000207295&sum=17000 [13:19:11]line 0 [13:19:11]OFD Sender: Processing packet 2452 [packets to send 1, broken 0] [13:19:11]ProducePacketName [13:19:11]name=ofd_packets/00002452 [13:19:11]OFD Sender: To server: ‡•öpG, [13:19:11]CommunicateWithHost lk.salyk.kg:30040 [13:19:11]ConnectInit lk.salyk.kg [13:19:11]written 0, free lines is 4095 [13:19:11]Connected sock=10 [13:19:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 7F 9F 26 01 4C D6 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 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 68 42 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 51 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 94 09 00 00 35 04 06 00 B7 99 DC BB F0 72 37 6F BD 42 7A 87 73 0D [13:19:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 89 DD 47 00 FD ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 94 09 00 00 F4 03 04 00 B5 0B 12 67 B6 04 01 00 00 D0 E7 21 FF F4 F7 AD 06 [13:19:11]CommunicateWithHost err = 0 [13:19:11]CheckOFDResponse [13:19:11]1017 (14) - 77093643461234 [13:19:11]1041 (16) - 0000000002342820 [13:19:11]1040 (4) - 2452 [13:19:11]1012 (4) - 18.10.2024 07:18 [13:19:11]1206 (1) - 0 [13:19:11]OFD Sender: Remove packet 2452 [13:19:11]ProducePacketName [13:19:11]name=ofd_packets/00002452 [13:19:11]NVStorageDeleteData [13:19:11]Write to MH i2c: 01 00 00 06 24 2A [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 07 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: 01 07 00 06 24 00 00 00 00 00 BF 0C FC [13:19:11]RasterBufferAndPrint [13:19:11]line [13:19:11]line [13:19:11]line [13:19:11]line [13:19:11]line [13:19:11]written 0, free lines is 3268 [13:19:11]MH_Cut [13:19:11]Write to MH i2c: D1 01 00 0D 24 01 03 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: D1 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: D1 01 00 [13:19:11]MH_I2C_Read... [13:19:11]Read from MH i2c: D1 01 00 0D 24 00 02 [13:19:11]Write to MH i2c: 01 00 00 0E 24 32 [13:19:11]Write i2c OK [13:19:11]MH_I2C_Read... [13:19:12]OFD Sender: No OFD packet to send [13:19:12]*** Cut start [13:19:12]*** Partial cut [13:19:12]*** CUTSNS_PIN = 1 [13:19:12]*** CUTSNS_PIN = 0 [13:19:13]*** Brake cut motor [13:19:13]Read from MH i2c: 01 [13:19:13]MH_I2C_Read... [13:19:13]*** Stop cut motor [13:19:13]*** Cut end [13:19:13]Read from MH i2c: 01 07 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: 01 07 00 0E 24 00 00 00 00 00 FF 0F 47 [13:19:13]process_action close_receipt done [13:19:13]requested_data is exist [13:19:13]produce_requested_data [13:19:13]requested_item fm.sn is exist - process it [13:19:13]wFMCommunicate request_size=4 [13:19:13]MH_SAM_APDU [13:19:13]CAPDU: 80 11 00 00 [13:19:13]Write to MH i2c: E2 08 00 0F 24 80 11 00 00 00 00 00 00 AD [13:19:13]Write i2c OK [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 [13:19:13]MH_I2C_Read... [13:19:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:19:13]Read from MH i2c: E2 17 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 17 00 0F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F5 [13:19:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:19:13]wFMCommunicate OK [13:19:13]requested_item fd.num is exist - process it [13:19:13]SAM_PROTO_GetFieldsCounters [13:19:13]wFMCommunicate request_size=4 [13:19:13]MH_SAM_APDU [13:19:13]CAPDU: 80 13 00 00 [13:19:13]Write to MH i2c: E2 08 00 10 24 80 13 00 00 00 00 00 00 B0 [13:19:13]Write i2c OK [13:19:13]MH_I2C_Read... [13:19:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:19:13]Read from MH i2c: E2 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 62 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 62 00 10 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 94 09 00 00 0E 04 04 00 16 00 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 60 [13:19:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 94 09 00 00 0E 04 04 00 16 00 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 [13:19:13]wFMCommunicate OK [13:19:13]SAM_PROTO_GetFieldsCounters done [13:19:13]requested_item shift.num is exist - process it [13:19:13]requested_item shift.opened is exist - process it [13:19:13]req_shift_opened [13:19:13]FM_GetShiftState [13:19:13]SAM_PROTO_GetShiftState [13:19:13]wFMCommunicate request_size=4 [13:19:13]MH_SAM_APDU [13:19:13]CAPDU: 80 13 01 00 [13:19:13]Write to MH i2c: E2 08 00 11 24 80 13 01 00 00 00 00 00 B2 [13:19:13]Write i2c OK [13:19:13]MH_I2C_Read... [13:19:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:19:13]Read from MH i2c: E2 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 0E 00 [13:19:13]MH_I2C_Read... [13:19:13]Read from MH i2c: E2 0E 00 11 24 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 50 [13:19:13]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:19:13]wFMCommunicate OK [13:19:13]SAM_PROTO_GetShiftState done [13:19:13]FM_GetShiftState done [13:19:13]req_shift_opened done [13:19:13]requested_item shift.open_date is exist - process it [13:19:13]req_shift_open_date [13:19:13]req_shift_open_date done [13:19:13]produce_requested_data done [13:19:13]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2452,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [13:19:13]process_action_free close_receipt [13:19:13]json_value_free [13:19:13]json_value_free done [13:19:13]process_json_proto returns [13:19:13]Send response to host [13:19:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2452,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [13:19:13]free response buf [13:19:13]execute_script done [13:19:13]execute_script returns [13:19:13]free content buf [13:19:13]Sock 9.Close socket [13:19:13]Sock 9.Thread stoped [13:19:17]OFD Sender: No OFD packet to send [13:19:22]OFD Sender: No OFD packet to send [13:19:27]OFD Sender: No OFD packet to send [13:19:32]OFD Sender: No OFD packet to send [13:19:37]OFD Sender: No OFD packet to send [13:19:42]OFD Sender: No OFD packet to send [13:19:47]OFD Sender: No OFD packet to send [13:19:52]OFD Sender: No OFD packet to send [13:19:57]OFD Sender: No OFD packet to send [13:20:02]OFD Sender: No OFD packet to send [13:20:07]OFD Sender: No OFD packet to send [13:20:12]OFD Sender: No OFD packet to send [13:20:17]OFD Sender: No OFD packet to send [13:20:22]OFD Sender: No OFD packet to send [13:20:27]OFD Sender: No OFD packet to send [13:20:32]OFD Sender: No OFD packet to send [13:20:37]OFD Sender: No OFD packet to send [13:20:42]OFD Sender: No OFD packet to send [13:20:47]OFD Sender: No OFD packet to send [13:20:52]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:52]accept exits with 7 [13:21:52]New connection [13:21:52]New thread 3066707300 created [13:21:52]Thread 3066850660 joined [13:21:52]Waiting for new connection... [13:21:52] Sock 7.Parse request [13:21:52]Sock 7.Check first char [13:21:52]Sock 7.First char is OK [13:21:52]request: POST /json_proto HTTP/1.0 [13:21:52]Method: POST [13:21:52]URL: /json_proto [13:21:52]Method is POST - this is cgi request [13:21:52]url: /json_proto [13:21:52]query_string will be loaded in cgi processing [13:21:52]execute_cgi json_proto POST (null) [13:21:52]execute_cgi path=json_proto method=POST [13:21:52]POST find Content-Length [13:21:52]Host: 172.17.52.132:8080 [13:21:52]Content-Length: 620 [13:21:52]Content-Type: application/json [13:21:52] [13:21:52]POST finish read [13:21:52]Found Content-Length = 620 [13:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99856", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:52]execute_script... [13:21: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 : (3)99856", "tax_sys" : 0, "items" : [ { "code": "48747066", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston True Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:21:52]POST & json_proto [13:21:52]process_json_proto [13:21:52]json parsed OK: [13:21:52]protocol is kg_v1.0 [13:21:52]action value=close_receipt [13:21:52]process_action close_receipt [13:21:52]cmd_close_receipt [13:21:52]MH_GetDate [13:21:52]Write to MH i2c: F0 00 00 12 24 25 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: F0 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: F0 09 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: F0 09 00 12 24 00 F4 60 12 67 5A BE F6 66 6F [13:21:52]GetLastDocTimeStamp 1729257553 [13:21:52]current date 1729257716 [13:21:52]FM_GetShiftState [13:21:52]SAM_PROTO_GetShiftState [13:21:52]wFMCommunicate request_size=4 [13:21:52]MH_SAM_APDU [13:21:52]CAPDU: 80 13 01 00 [13:21:52]Write to MH i2c: E2 08 00 13 24 80 13 01 00 00 00 00 00 B4 [13:21:52]Write i2c OK [13:21:52]MH_I2C_Read... [13:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:52]Read from MH i2c: E2 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 0E 00 [13:21:52]MH_I2C_Read... [13:21:52]Read from MH i2c: E2 0E 00 13 24 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 52 [13:21:52]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:21:52]wFMCommunicate OK [13:21:52]SAM_PROTO_GetShiftState done [13:21:52]FM_GetShiftState done [13:21:52]opened in 1729209717 [13:21:52]opened+sec_in_day 1729296117 [13:21:52]quantity*price = 14400 [13:21:52]sum+1 = 14401 [13:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 ÐСП 1% : 1.27 ÐДС 12% : 15.29 Ðаличными: 144.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 78 18.10.2024 13:21 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2453 ФПД: 196861792028084 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T132156&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2453&fm=196861792028084&tin=02508201610067®Number=0000000000207295&sum=14400 0 [13:21:53]StoreToDocumentArchive [13:21:53]shift 22 fd 2453 [13:21:53]save to /storage/0022/doc_00002453 [13:21:53]save last doc name /storage/0022/doc_00002453 to /storage/kkm_last_doc_name [13:21:53]save OK [13:21:53]Clear old archive folders... [13:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=273 [13:21:53]tlvbuf is 013E4C40 [13:21:53]SAM_PROTO_ClearQueue [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 09 00 00 [13:21:53]Write to MH i2c: E2 08 00 20 24 80 09 00 00 00 00 00 00 B6 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 20 24 00 90 00 B8 [13:21:53]RAPDU: 90 00 [13:21:53]wFMCommunicate OK [13:21:53]SAM_PROTO_ClearQueue done [13:21:53]KKMCreateOFDPacket [13:21:53]OFDProtocolAddRootSTLVToBuf [13:21:53]FM_MakeSignedData [13:21:53]FM_MakeSignedData [13:21:53]SAM_PROTO_SignData [13:21:53]wFMCommunicate request_size=4 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 0D 01 02 [13:21:53]Write to MH i2c: E2 08 00 21 24 80 0D 01 02 00 00 00 00 BE [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 21 24 00 90 00 B9 [13:21:53]RAPDU: 90 00 [13:21:53]wFMCommunicate OK [13:21:53]wFMCommunicate request_size=255 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 F4 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 [13:21:53]Write to MH i2c: E2 02 01 22 24 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 F4 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 81 [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:53]Read from MH i2c: E2 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 [13:21:53]MH_I2C_Read... [13:21:53]Read from MH i2c: E2 03 00 22 24 00 90 00 BA [13:21:53]RAPDU: 90 00 [13:21:53]wFMCommunicate OK [13:21:53]wFMCommunicate request_size=32 [13:21:53]MH_SAM_APDU [13:21:53]CAPDU: 80 0D 02 02 1B 30 30 32 33 34 32 38 32 30 10 04 04 00 95 09 00 00 35 04 06 00 B3 0B 75 2F 05 B4 [13:21:53]Write to MH i2c: E2 23 00 23 24 80 0D 02 02 1B 00 30 30 32 33 34 32 38 32 30 10 04 04 00 95 09 00 00 35 04 06 00 B3 0B 75 2F 05 B4 00 00 CC [13:21:53]Write i2c OK [13:21:53]MH_I2C_Read... [13:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 03 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 03 00 23 24 00 90 00 BB [13:21:54]RAPDU: 90 00 [13:21:54]wFMCommunicate OK [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 0D 03 02 [13:21:54]Write to MH i2c: E2 08 00 24 24 80 0D 03 02 00 00 00 00 C3 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 0B 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 0B 00 24 24 00 ED 38 0B FC 65 FA 23 67 90 00 D9 [13:21:54]RAPDU: ED 38 0B FC 65 FA 23 67 90 00 [13:21:54]wFMCommunicate OK [13:21:54]SAM_PROTO_SignData done [13:21:54]FM_MakeSignedData done [13:21:54]CreateOFDProtocolMessage [13:21:54]wFMCommunicate request_size=4 [13:21:54]MH_SAM_APDU [13:21:54]CAPDU: 80 11 00 00 [13:21:54]Write to MH i2c: E2 08 00 25 24 80 11 00 00 00 00 00 00 C3 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:54]Read from MH i2c: E2 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 17 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: E2 17 00 25 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 0B [13:21:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:21:54]wFMCommunicate OK [13:21:54]CreateOFDProtocolMessage done [13:21:54]OFDSenderStorePacket 2453 [13:21:54]StoreOFDPacket docnum=2453 [13:21:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 48 9A 1D 01 13 AE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 F4 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 95 09 00 00 35 04 06 00 B3 0B 75 2F 05 B4 ED 38 0B FC 65 FA 23 67 [13:21:54]CheckFolder [13:21:54]dirname=/storage/ofd_packets [13:21:54]CheckFolder done [13:21:54]ProducePacketName [13:21:54]name=ofd_packets/00002453 [13:21:54]NVStorageSaveData ofd_packets/00002453 [13:21:54]File name is /storage/ofd_packets/00002453 [13:21:54]Write 323 bytes [13:21:54]NVStorageSaveData done [13:21:54]OFDSenderStorePacket done [13:21:54]KKMCreateOFDPacket done [13:21:54]NVStorageSaveData kkm_last_timestamp [13:21:54]File name is /storage/kkm_last_timestamp [13:21:54]Write 4 bytes [13:21:54]NVStorageSaveData done [13:21:54]ExternCall_PrintAddStr [13:21:54]wPrintStart [13:21:54]Write to MH i2c: 01 00 00 26 24 4A [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: 01 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: 01 07 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: 01 07 00 26 24 00 00 00 00 00 FF 0F 5F [13:21:54]RasterBufferAndPrint [13:21:54]line Счет N : (3)99856 [13:21:54]line ИÐÐ: 02508201610067 [13:21:54]line Контрольно-КаÑÑовый Чек [13:21:54]line ПРОДÐЖР[13:21:54]line Товар: 48747066 [13:21:54]line Сигареты Winston True Silver [13:21:54]line 1.000 * 144.00 [13:21:54]line = 144.00 [13:21:54]line ÐДС 12% ÐСП 1% [13:21:54]line > о реализуемом товаре [13:21:54]line ИТОГО: 144.00 [13:21:54]line ÐСП 1% : 1.27 [13:21:54]line ÐДС 12% : 15.29 [13:21:54]line Ðаличными: 144.00 [13:21:54]line Безнал.: 0.00 [13:21:54]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [13:21:54]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [13:21:54]line СÐО: Общий режим [13:21:54]line Чек 78 18.10.2024 13:21 [13:21:54]line Смена: 22 ФФД: 1.0 [13:21:54]line ЗÐМ: 0300000191 [13:21:54]line РÐМ: 0000000000207295 [13:21:54]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [13:21:54]line ФМ: 0000000002342820 [13:21:54]line ФД: 2453 [13:21:54]line ФПД: 196861792028084 [13:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T132156&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2453&fm=196861792028084&tin=02508201610067®Number=0000000000207295&sum=14400 [13:21:54]line 0 [13:21:54]OFD Sender: Processing packet 2453 [packets to send 1, broken 0] [13:21:54]ProducePacketName [13:21:54]name=ofd_packets/00002453 [13:21:54]OFD Sender: To server: ‡•öpG, [13:21:54]CommunicateWithHost lk.salyk.kg:30040 [13:21:54]ConnectInit lk.salyk.kg [13:21:54]written 0, free lines is 4095 [13:21:54]Connected sock=10 [13:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 48 9A 1D 01 13 AE 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 36 36 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 54 72 75 65 20 53 69 6C 76 65 72 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 F4 60 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 95 09 00 00 35 04 06 00 B3 0B 75 2F 05 B4 ED 38 0B FC 65 FA 23 67 [13:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CB DD 47 00 68 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 32 33 34 32 38 32 30 10 04 04 00 95 09 00 00 F4 03 04 00 58 0C 12 67 B6 04 01 00 00 60 74 3F 1A 78 2C 00 66 [13:21:54]CommunicateWithHost err = 0 [13:21:54]CheckOFDResponse [13:21:54]1017 (14) - 77093643461234 [13:21:54]1041 (16) - 0000000002342820 [13:21:54]1040 (4) - 2453 [13:21:54]1012 (4) - 18.10.2024 07:20 [13:21:54]1206 (1) - 0 [13:21:54]OFD Sender: Remove packet 2453 [13:21:54]ProducePacketName [13:21:54]name=ofd_packets/00002453 [13:21:54]NVStorageDeleteData [13:21:54]Write to MH i2c: 01 00 00 4E 24 72 [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: 01 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: 01 07 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: 01 07 00 4E 24 00 00 00 00 00 CB 0C 50 [13:21:54]RasterBufferAndPrint [13:21:54]line [13:21:54]line [13:21:54]line [13:21:54]line [13:21:54]line [13:21:54]written 0, free lines is 3279 [13:21:54]MH_Cut [13:21:54]Write to MH i2c: D1 01 00 55 24 01 4B [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: D1 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: D1 01 00 [13:21:54]MH_I2C_Read... [13:21:54]Read from MH i2c: D1 01 00 55 24 00 4A [13:21:54]Write to MH i2c: 01 00 00 56 24 7A [13:21:54]Write i2c OK [13:21:54]MH_I2C_Read... [13:21:55]OFD Sender: No OFD packet to send [13:21:55]*** Cut start [13:21:55]*** Partial cut [13:21:55]*** CUTSNS_PIN = 1 [13:21:55]*** CUTSNS_PIN = 0 [13:21:56]*** Brake cut motor [13:21:56]Read from MH i2c: 01 [13:21:56]MH_I2C_Read... [13:21:56]*** Stop cut motor [13:21:56]*** Cut end [13:21:56]Read from MH i2c: 01 07 00 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: 01 07 00 56 24 00 00 00 00 00 FF 0F 8F [13:21:56]process_action close_receipt done [13:21:56]requested_data is exist [13:21:56]produce_requested_data [13:21:56]requested_item fm.sn is exist - process it [13:21:56]wFMCommunicate request_size=4 [13:21:56]MH_SAM_APDU [13:21:56]CAPDU: 80 11 00 00 [13:21:56]Write to MH i2c: E2 08 00 57 24 80 11 00 00 00 00 00 00 F5 [13:21:56]Write i2c OK [13:21:56]MH_I2C_Read... [13:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:21:56]Read from MH i2c: E2 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 17 00 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 17 00 57 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 3D [13:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:21:56]wFMCommunicate OK [13:21:56]requested_item fd.num is exist - process it [13:21:56]SAM_PROTO_GetFieldsCounters [13:21:56]wFMCommunicate request_size=4 [13:21:56]MH_SAM_APDU [13:21:56]CAPDU: 80 13 00 00 [13:21:56]Write to MH i2c: E2 08 00 58 24 80 13 00 00 00 00 00 00 F8 [13:21:56]Write i2c OK [13:21:56]MH_I2C_Read... [13:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:21:56]Read from MH i2c: E2 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 62 00 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 62 00 58 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 95 09 00 00 0E 04 04 00 16 00 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 AC [13:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 95 09 00 00 0E 04 04 00 16 00 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 [13:21:56]wFMCommunicate OK [13:21:56]SAM_PROTO_GetFieldsCounters done [13:21:56]requested_item shift.num is exist - process it [13:21:56]requested_item shift.opened is exist - process it [13:21:56]req_shift_opened [13:21:56]FM_GetShiftState [13:21:56]SAM_PROTO_GetShiftState [13:21:56]wFMCommunicate request_size=4 [13:21:56]MH_SAM_APDU [13:21:56]CAPDU: 80 13 01 00 [13:21:56]Write to MH i2c: E2 08 00 59 24 80 13 01 00 00 00 00 00 FA [13:21:56]Write i2c OK [13:21:56]MH_I2C_Read... [13:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:21:56]Read from MH i2c: E2 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 0E 00 [13:21:56]MH_I2C_Read... [13:21:56]Read from MH i2c: E2 0E 00 59 24 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 98 [13:21:56]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:21:56]wFMCommunicate OK [13:21:56]SAM_PROTO_GetShiftState done [13:21:56]FM_GetShiftState done [13:21:56]req_shift_opened done [13:21:56]requested_item shift.open_date is exist - process it [13:21:56]req_shift_open_date [13:21:56]req_shift_open_date done [13:21:56]produce_requested_data done [13:21:56]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2453,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [13:21:56]process_action_free close_receipt [13:21:56]json_value_free [13:21:56]json_value_free done [13:21:56]process_json_proto returns [13:21:56]Send response to host [13:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2453,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [13:21:56]free response buf [13:21:56]execute_script done [13:21:56]execute_script returns [13:21:56]free content buf [13:21:56]Sock 7.Close socket [13:21:56]Sock 7.Thread stoped [13:22:00]OFD Sender: No OFD packet to send [13:22:05]OFD Sender: No OFD packet to send [13:22:10]OFD Sender: No OFD packet to send [13:22:15]OFD Sender: No OFD packet to send [13:22:20]OFD Sender: No OFD packet to send [13:22:25]OFD Sender: No OFD packet to send [13:22:30]OFD Sender: No OFD packet to send [13:22:35]OFD Sender: No OFD packet to send [13:22:40]OFD Sender: No OFD packet to send [13:22:45]OFD Sender: No OFD packet to send [13:22:50]OFD Sender: No OFD packet to send [13:22:55]OFD Sender: No OFD packet to send [13:23:00]OFD Sender: No OFD packet to send [13:23:05]OFD Sender: No OFD packet to send [13:23:10]OFD Sender: No OFD packet to send [13:23:15]OFD Sender: No OFD packet to send [13:23:20]OFD Sender: No OFD packet to send [13:23:25]OFD Sender: No OFD packet to send [13:23:30]OFD Sender: No OFD packet to send [13:23:35]OFD Sender: No OFD packet to send [13:23:40]OFD Sender: No OFD packet to send [13:23:45]OFD Sender: No OFD packet to send [13:23:50]OFD Sender: No OFD packet to send [13:23:55]OFD Sender: No OFD packet to send [13:24:00]OFD Sender: No OFD packet to send [13:24:05]OFD Sender: No OFD packet to send [13:24:10]OFD Sender: No OFD packet to send [13:24:15]OFD Sender: No OFD packet to send [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:37]accept exits with 9 [13:24:37]New connection [13:24:37]New thread 3066850660 created [13:24:37]Thread 3066707300 joined [13:24:37]Waiting for new connection... [13:24:37] Sock 9.Parse request [13:24:37]Sock 9.Check first char [13:24:37]Sock 9.First char is OK [13:24:37]request: POST /json_proto HTTP/1.0 [13:24:37]Method: POST [13:24:37]URL: /json_proto [13:24:37]Method is POST - this is cgi request [13:24:37]url: /json_proto [13:24:37]query_string will be loaded in cgi processing [13:24:37]execute_cgi json_proto POST (null) [13:24:37]execute_cgi path=json_proto method=POST [13:24:37]POST find Content-Length [13:24:37]Host: 172.17.52.132:8080 [13:24:37]Content-Length: 694 [13:24:37]Content-Type: application/json [13:24:37] [13:24:37]POST finish read [13:24:37]Found Content-Length = 694 [13:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99857", "tax_sys" : 0, "items" : [ { "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:37]execute_script... [13:24:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99857", "tax_sys" : 0, "items" : [ { "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:37]POST & json_proto [13:24:37]process_json_proto [13:24:37]json parsed OK: [13:24:37]protocol is kg_v1.0 [13:24:37]action value=close_receipt [13:24:37]process_action close_receipt [13:24:37]cmd_close_receipt [13:24:37]MH_GetDate [13:24:37]Write to MH i2c: F0 00 00 5A 24 6D [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: F0 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: F0 09 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: F0 09 00 5A 24 00 99 61 12 67 5A BE F6 66 5D [13:24:37]GetLastDocTimeStamp 1729257716 [13:24:37]current date 1729257881 [13:24:37]FM_GetShiftState [13:24:37]SAM_PROTO_GetShiftState [13:24:37]wFMCommunicate request_size=4 [13:24:37]MH_SAM_APDU [13:24:37]CAPDU: 80 13 01 00 [13:24:37]Write to MH i2c: E2 08 00 5B 24 80 13 01 00 00 00 00 00 FC [13:24:37]Write i2c OK [13:24:37]MH_I2C_Read... [13:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:37]Read from MH i2c: E2 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 0E 00 [13:24:37]MH_I2C_Read... [13:24:37]Read from MH i2c: E2 0E 00 5B 24 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 9A [13:24:37]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:24:37]wFMCommunicate OK [13:24:37]SAM_PROTO_GetShiftState done [13:24:37]FM_GetShiftState done [13:24:37]opened in 1729209717 [13:24:37]opened+sec_in_day 1729296117 [13:24:37]quantity*price = 3000 [13:24:37]sum+1 = 3001 [13:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 ÐСП 1% : 0.26 ÐДС 12% : 3.19 Ðаличными: 30.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 79 18.10.2024 13:24 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2454 ФПД: 188581346510704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T132441&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2454&fm=188581346510704&tin=02508201610067®Number=0000000000207295&sum=3000 0 [13:24:38]StoreToDocumentArchive [13:24:38]shift 22 fd 2454 [13:24:38]save to /storage/0022/doc_00002454 [13:24:38]save last doc name /storage/0022/doc_00002454 to /storage/kkm_last_doc_name [13:24:38]save OK [13:24:38]Clear old archive folders... [13:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=290 [13:24:38]tlvbuf is 013DAA40 [13:24:38]SAM_PROTO_ClearQueue [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 09 00 00 [13:24:38]Write to MH i2c: E2 08 00 68 24 80 09 00 00 00 00 00 00 FE [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 03 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 03 00 68 24 00 90 00 00 [13:24:38]RAPDU: 90 00 [13:24:38]wFMCommunicate OK [13:24:38]SAM_PROTO_ClearQueue done [13:24:38]KKMCreateOFDPacket [13:24:38]OFDProtocolAddRootSTLVToBuf [13:24:38]FM_MakeSignedData [13:24:38]FM_MakeSignedData [13:24:38]SAM_PROTO_SignData [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 0D 01 02 [13:24:38]Write to MH i2c: E2 08 00 69 24 80 0D 01 02 00 00 00 00 06 [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 03 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 03 00 69 24 00 90 00 01 [13:24:38]RAPDU: 90 00 [13:24:38]wFMCommunicate OK [13:24:38]wFMCommunicate request_size=255 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 99 61 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [13:24:38]Write to MH i2c: E2 02 01 6A 24 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 99 61 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 EA [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 03 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 03 00 6A 24 00 90 00 02 [13:24:38]RAPDU: 90 00 [13:24:38]wFMCommunicate OK [13:24:38]wFMCommunicate request_size=49 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 0D 02 02 2C 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 96 09 00 00 35 04 06 00 AB 83 84 2B 87 70 [13:24:38]Write to MH i2c: E2 34 00 6B 24 80 0D 02 02 2C 00 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 96 09 00 00 35 04 06 00 AB 83 84 2B 87 70 00 00 9E [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 03 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 03 00 6B 24 00 90 00 03 [13:24:38]RAPDU: 90 00 [13:24:38]wFMCommunicate OK [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 0D 03 02 [13:24:38]Write to MH i2c: E2 08 00 6C 24 80 0D 03 02 00 00 00 00 0B [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 0B 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 0B 00 6C 24 00 0F 3F 76 63 DC FB A4 03 90 00 B1 [13:24:38]RAPDU: 0F 3F 76 63 DC FB A4 03 90 00 [13:24:38]wFMCommunicate OK [13:24:38]SAM_PROTO_SignData done [13:24:38]FM_MakeSignedData done [13:24:38]CreateOFDProtocolMessage [13:24:38]wFMCommunicate request_size=4 [13:24:38]MH_SAM_APDU [13:24:38]CAPDU: 80 11 00 00 [13:24:38]Write to MH i2c: E2 08 00 6D 24 80 11 00 00 00 00 00 00 0B [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:38]Read from MH i2c: E2 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 17 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: E2 17 00 6D 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 53 [13:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:24:38]wFMCommunicate OK [13:24:38]CreateOFDProtocolMessage done [13:24:38]OFDSenderStorePacket 2454 [13:24:38]StoreOFDPacket docnum=2454 [13:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 36 01 00 00 12 5D 2E 01 D4 51 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 99 61 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 96 09 00 00 35 04 06 00 AB 83 84 2B 87 70 0F 3F 76 63 DC FB A4 03 [13:24:38]CheckFolder [13:24:38]dirname=/storage/ofd_packets [13:24:38]CheckFolder done [13:24:38]ProducePacketName [13:24:38]name=ofd_packets/00002454 [13:24:38]NVStorageSaveData ofd_packets/00002454 [13:24:38]File name is /storage/ofd_packets/00002454 [13:24:38]Write 340 bytes [13:24:38]NVStorageSaveData done [13:24:38]OFDSenderStorePacket done [13:24:38]KKMCreateOFDPacket done [13:24:38]NVStorageSaveData kkm_last_timestamp [13:24:38]File name is /storage/kkm_last_timestamp [13:24:38]Write 4 bytes [13:24:38]NVStorageSaveData done [13:24:38]ExternCall_PrintAddStr [13:24:38]wPrintStart [13:24:38]Write to MH i2c: 01 00 00 6E 24 92 [13:24:38]Write i2c OK [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 [13:24:38]MH_I2C_Read... [13:24:38]Read from MH i2c: 01 07 00 6E 24 00 00 00 00 00 FF 0F A7 [13:24:38]RasterBufferAndPrint [13:24:38]line Счет N : (3)99857 [13:24:38]line ИÐÐ: 02508201610067 [13:24:38]line Контрольно-КаÑÑовый Чек [13:24:38]line ПРОДÐЖР[13:24:38]line Товар: 4700000160099 [13:24:38]line Снек Курут индивидуальный [13:24:38]line 2.000 * 15.00 [13:24:38]line = 30.00 [13:24:38]line ÐДС 12% ÐСП 1% [13:24:38]line > о реализуемом товаре [13:24:38]line ИТОГО: 30.00 [13:24:38]line ÐСП 1% : 0.26 [13:24:38]line ÐДС 12% : 3.19 [13:24:38]line Ðаличными: 30.00 [13:24:38]line Безнал.: 0.00 [13:24:38]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [13:24:38]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [13:24:38]line СÐО: Общий режим [13:24:38]line Чек 79 18.10.2024 13:24 [13:24:38]line Смена: 22 ФФД: 1.0 [13:24:38]line ЗÐМ: 0300000191 [13:24:38]line РÐМ: 0000000000207295 [13:24:38]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [13:24:38]line ФМ: 0000000002342820 [13:24:38]line ФД: 2454 [13:24:38]line ФПД: 188581346510704 [13:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T132441&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2454&fm=188581346510704&tin=02508201610067®Number=0000000000207295&sum=3000 [13:24:39]line 0 [13:24:39]OFD Sender: Processing packet 2454 [packets to send 1, broken 0] [13:24:39]ProducePacketName [13:24:39]name=ofd_packets/00002454 [13:24:39]OFD Sender: To server: ‡•öpG, [13:24:39]CommunicateWithHost lk.salyk.kg:30040 [13:24:39]ConnectInit lk.salyk.kg [13:24:39]written 0, free lines is 4095 [13:24:39]Connected sock=10 [13:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 36 01 00 00 12 5D 2E 01 D4 51 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 99 61 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 96 09 00 00 35 04 06 00 AB 83 84 2B 87 70 0F 3F 76 63 DC FB A4 03 [13:24:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 92 A6 47 00 89 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 96 09 00 00 F4 03 04 00 FD 0C 12 67 B6 04 01 00 00 99 10 37 10 07 30 55 1B [13:24:39]CommunicateWithHost err = 0 [13:24:39]CheckOFDResponse [13:24:39]1017 (14) - 77093643461234 [13:24:39]1041 (16) - 0000000002342820 [13:24:39]1040 (4) - 2454 [13:24:39]1012 (4) - 18.10.2024 07:23 [13:24:39]1206 (1) - 0 [13:24:39]OFD Sender: Remove packet 2454 [13:24:39]ProducePacketName [13:24:39]name=ofd_packets/00002454 [13:24:39]NVStorageDeleteData [13:24:39]Write to MH i2c: 01 00 00 96 24 BA [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: 01 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: 01 07 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: 01 07 00 96 24 00 00 00 00 00 B1 0C 7E [13:24:39]RasterBufferAndPrint [13:24:39]line [13:24:39]line [13:24:39]line [13:24:39]line [13:24:39]line [13:24:39]written 0, free lines is 3253 [13:24:39]MH_Cut [13:24:39]Write to MH i2c: D1 01 00 9D 24 01 93 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: D1 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: D1 01 00 [13:24:39]MH_I2C_Read... [13:24:39]Read from MH i2c: D1 01 00 9D 24 00 92 [13:24:39]Write to MH i2c: 01 00 00 9E 24 C2 [13:24:39]Write i2c OK [13:24:39]MH_I2C_Read... [13:24:40]OFD Sender: No OFD packet to send [13:24:40]*** Cut start [13:24:40]*** Partial cut [13:24:40]*** CUTSNS_PIN = 1 [13:24:40]*** CUTSNS_PIN = 0 [13:24:40]*** Brake cut motor [13:24:41]Read from MH i2c: 01 [13:24:41]MH_I2C_Read... [13:24:41]*** Stop cut motor [13:24:41]*** Cut end [13:24:41]Read from MH i2c: 01 07 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: 01 07 00 9E 24 00 00 00 00 00 FF 0F D7 [13:24:41]process_action close_receipt done [13:24:41]requested_data is exist [13:24:41]produce_requested_data [13:24:41]requested_item fm.sn is exist - process it [13:24:41]wFMCommunicate request_size=4 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 11 00 00 [13:24:41]Write to MH i2c: E2 08 00 9F 24 80 11 00 00 00 00 00 00 3D [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 17 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 17 00 9F 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 85 [13:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:24:41]wFMCommunicate OK [13:24:41]requested_item fd.num is exist - process it [13:24:41]SAM_PROTO_GetFieldsCounters [13:24:41]wFMCommunicate request_size=4 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 13 00 00 [13:24:41]Write to MH i2c: E2 08 00 A0 24 80 13 00 00 00 00 00 00 40 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 62 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 62 00 A0 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 96 09 00 00 0E 04 04 00 16 00 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 F8 [13:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 96 09 00 00 0E 04 04 00 16 00 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:24:41]wFMCommunicate OK [13:24:41]SAM_PROTO_GetFieldsCounters done [13:24:41]requested_item shift.num is exist - process it [13:24:41]requested_item shift.opened is exist - process it [13:24:41]req_shift_opened [13:24:41]FM_GetShiftState [13:24:41]SAM_PROTO_GetShiftState [13:24:41]wFMCommunicate request_size=4 [13:24:41]MH_SAM_APDU [13:24:41]CAPDU: 80 13 01 00 [13:24:41]Write to MH i2c: E2 08 00 A1 24 80 13 01 00 00 00 00 00 42 [13:24:41]Write i2c OK [13:24:41]MH_I2C_Read... [13:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:41]Read from MH i2c: E2 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 0E 00 [13:24:41]MH_I2C_Read... [13:24:41]Read from MH i2c: E2 0E 00 A1 24 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E0 [13:24:41]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:24:41]wFMCommunicate OK [13:24:41]SAM_PROTO_GetShiftState done [13:24:41]FM_GetShiftState done [13:24:41]req_shift_opened done [13:24:41]requested_item shift.open_date is exist - process it [13:24:41]req_shift_open_date [13:24:41]req_shift_open_date done [13:24:41]produce_requested_data done [13:24:41]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2454,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [13:24:41]process_action_free close_receipt [13:24:41]json_value_free [13:24:41]json_value_free done [13:24:41]process_json_proto returns [13:24:41]Send response to host [13:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2454,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [13:24:41]free response buf [13:24:41]execute_script done [13:24:41]execute_script returns [13:24:41]free content buf [13:24:41]Sock 9.Close socket [13:24:41]Sock 9.Thread stoped [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:30]OFD Sender: No OFD packet to send [13:25:35]OFD Sender: No OFD packet to send [13:25:40]OFD Sender: No OFD packet to send [13:25:45]OFD Sender: No OFD packet to send [13:25:50]OFD Sender: No OFD packet to send [13:25:55]OFD Sender: No OFD packet to send [13:26:00]OFD Sender: No OFD packet to send [13:26:05]OFD Sender: No OFD packet to send [13:26:10]OFD Sender: No OFD packet to send [13:26:15]OFD Sender: No OFD packet to send [13:26:20]OFD Sender: No OFD packet to send [13:26:25]OFD Sender: No OFD packet to send [13:26:30]OFD Sender: No OFD packet to send [13:26:35]OFD Sender: No OFD packet to send [13:26:40]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:30]OFD Sender: No OFD packet to send [13:27:35]OFD Sender: No OFD packet to send [13:27:40]OFD Sender: No OFD packet to send [13:27:45]OFD Sender: No OFD packet to send [13:27:50]OFD Sender: No OFD packet to send [13:27:55]OFD Sender: No OFD packet to send [13:28:00]OFD Sender: No OFD packet to send [13:28:05]OFD Sender: No OFD packet to send [13:28:10]OFD Sender: No OFD packet to send [13:28:15]OFD Sender: No OFD packet to send [13:28:20]OFD Sender: No OFD packet to send [13:28:25]OFD Sender: No OFD packet to send [13:28:30]OFD Sender: No OFD packet to send [13:28:35]OFD Sender: No OFD packet to send [13:28:40]OFD Sender: No OFD packet to send [13:28:45]OFD Sender: No OFD packet to send [13:28:50]OFD Sender: No OFD packet to send [13:28:55]OFD Sender: No OFD packet to send [13:29:00]OFD Sender: No OFD packet to send [13:29:05]OFD Sender: No OFD packet to send [13:29:10]OFD Sender: No OFD packet to send [13:29:15]OFD Sender: No OFD packet to send [13:29:20]OFD Sender: No OFD packet to send [13:29:25]OFD Sender: No OFD packet to send [13:29:30]OFD Sender: No OFD packet to send [13:29:35]OFD Sender: No OFD packet to send [13:29:40]OFD Sender: No OFD packet to send [13:29:45]OFD Sender: No OFD packet to send [13:29:50]OFD Sender: No OFD packet to send [13:29:55]OFD Sender: No OFD packet to send [13:30:00]OFD Sender: No OFD packet to send [13:30:05]OFD Sender: No OFD packet to send [13:30:10]OFD Sender: No OFD packet to send [13:30:15]OFD Sender: No OFD packet to send [13:30:20]OFD Sender: No OFD packet to send [13:30:25]OFD Sender: No OFD packet to send [13:30:30]OFD Sender: No OFD packet to send [13:30:35]OFD Sender: No OFD packet to send [13:30:40]OFD Sender: No OFD packet to send [13:30:45]OFD Sender: No OFD packet to send [13:30:50]OFD Sender: No OFD packet to send [13:30:55]OFD Sender: No OFD packet to send [13:31:00]OFD Sender: No OFD packet to send [13:31:05]OFD Sender: No OFD packet to send [13:31:10]OFD Sender: No OFD packet to send [13:31:15]OFD Sender: No OFD packet to send [13:31:20]OFD Sender: No OFD packet to send [13:31:25]OFD Sender: No OFD packet to send [13:31:30]OFD Sender: No OFD packet to send [13:31:35]OFD Sender: No OFD packet to send [13:31:40]OFD Sender: No OFD packet to send [13:31:45]OFD Sender: No OFD packet to send [13:31:50]OFD Sender: No OFD packet to send [13:31:55]OFD Sender: No OFD packet to send [13:32:00]OFD Sender: No OFD packet to send [13:32:05]OFD Sender: No OFD packet to send [13:32:10]OFD Sender: No OFD packet to send [13:32:15]OFD Sender: No OFD packet to send [13:32:20]OFD Sender: No OFD packet to send [13:32: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:50]OFD Sender: No OFD packet to send [13:32:55]OFD Sender: No OFD packet to send [13:33:00]OFD Sender: No OFD packet to send [13:33:05]OFD Sender: No OFD packet to send [13:33:10]OFD Sender: No OFD packet to send [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:25]OFD Sender: No OFD packet to send [13:33:30]OFD Sender: No OFD packet to send [13:33:35]OFD Sender: No OFD packet to send [13:33:40]OFD Sender: No OFD packet to send [13:33:45]OFD Sender: No OFD packet to send [13:33:50]OFD Sender: No OFD packet to send [13:33:55]OFD Sender: No OFD packet to send [13:34:00]OFD Sender: No OFD packet to send [13:34:05]OFD Sender: No OFD packet to send [13:34:10]OFD Sender: No OFD packet to send [13:34:15]OFD Sender: No OFD packet to send [13:34:20]OFD Sender: No OFD packet to send [13:34:21]accept exits with 7 [13:34:21]New connection [13:34:21]New thread 3066707300 created [13:34:21]Thread 3066850660 joined [13:34:21]Waiting for new connection... [13:34:21] Sock 7.Parse request [13:34:21]Sock 7.Check first char [13:34:21]Sock 7.First char is OK [13:34:21]request: POST /json_proto HTTP/1.0 [13:34:21]Method: POST [13:34:21]URL: /json_proto [13:34:21]Method is POST - this is cgi request [13:34:21]url: /json_proto [13:34:21]query_string will be loaded in cgi processing [13:34:21]execute_cgi json_proto POST (null) [13:34:21]execute_cgi path=json_proto method=POST [13:34:21]POST find Content-Length [13:34:21]Host: 172.17.52.132:8080 [13:34:21]Content-Length: 628 [13:34:21]Content-Type: application/json [13:34:21] [13:34:21]POST finish read [13:34:21]Found Content-Length = 628 [13:34:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99858", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:21]execute_script... [13:34: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 : (3)99858", "tax_sys" : 0, "items" : [ { "code": "4620006996716", "name": "\u0412\u043E\u0434\u043A\u0430 \u0422\u0430\u043B\u043A\u0430 0,1\u043B", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:21]POST & json_proto [13:34:21]process_json_proto [13:34:21]json parsed OK: [13:34:21]protocol is kg_v1.0 [13:34:21]action value=close_receipt [13:34:21]process_action close_receipt [13:34:21]cmd_close_receipt [13:34:21]MH_GetDate [13:34:21]Write to MH i2c: F0 00 00 A2 24 B5 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: F0 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: F0 09 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: F0 09 00 A2 24 00 E1 63 12 67 5A BE F6 66 EF [13:34:21]GetLastDocTimeStamp 1729257881 [13:34:21]current date 1729258465 [13:34:21]FM_GetShiftState [13:34:21]SAM_PROTO_GetShiftState [13:34:21]wFMCommunicate request_size=4 [13:34:21]MH_SAM_APDU [13:34:21]CAPDU: 80 13 01 00 [13:34:21]Write to MH i2c: E2 08 00 A3 24 80 13 01 00 00 00 00 00 44 [13:34:21]Write i2c OK [13:34:21]MH_I2C_Read... [13:34:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:21]Read from MH i2c: E2 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: E2 0E 00 [13:34:21]MH_I2C_Read... [13:34:21]Read from MH i2c: E2 0E 00 A3 24 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E2 [13:34:21]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:34:21]wFMCommunicate OK [13:34:21]SAM_PROTO_GetShiftState done [13:34:21]FM_GetShiftState done [13:34:21]opened in 1729209717 [13:34:21]opened+sec_in_day 1729296117 [13:34:21]quantity*price = 13000 [13:34:21]sum+1 = 13001 [13:34:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 ÐСП 1% : 1.15 ÐДС 12% : 13.80 Ðаличными: 130.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 80 18.10.2024 13:34 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2455 ФПД: 204915317489727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T133425&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2455&fm=204915317489727&tin=02508201610067®Number=0000000000207295&sum=13000 0 [13:34:22]StoreToDocumentArchive [13:34:22]shift 22 fd 2455 [13:34:22]save to /storage/0022/doc_00002455 [13:34:22]save last doc name /storage/0022/doc_00002455 to /storage/kkm_last_doc_name [13:34:22]save OK [13:34:22]Clear old archive folders... [13:34:22]ProcessDocumentItem done err = 0, tmpTLVsize=269 [13:34:22]tlvbuf is 013E4D80 [13:34:22]SAM_PROTO_ClearQueue [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 09 00 00 [13:34:22]Write to MH i2c: E2 08 00 B0 24 80 09 00 00 00 00 00 00 46 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 B0 24 00 90 00 48 [13:34:22]RAPDU: 90 00 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_ClearQueue done [13:34:22]KKMCreateOFDPacket [13:34:22]OFDProtocolAddRootSTLVToBuf [13:34:22]FM_MakeSignedData [13:34:22]FM_MakeSignedData [13:34:22]SAM_PROTO_SignData [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 0D 01 02 [13:34:22]Write to MH i2c: E2 08 00 B1 24 80 0D 01 02 00 00 00 00 4E [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 B1 24 00 90 00 49 [13:34:22]RAPDU: 90 00 [13:34:22]wFMCommunicate OK [13:34:22]wFMCommunicate request_size=255 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 50 00 00 00 F4 03 04 00 E1 63 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 [13:34:22]Write to MH i2c: E2 02 01 B2 24 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 50 00 00 00 F4 03 04 00 E1 63 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 00 00 96 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 B2 24 00 90 00 4A [13:34:22]RAPDU: 90 00 [13:34:22]wFMCommunicate OK [13:34:22]wFMCommunicate request_size=28 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 0D 02 02 17 34 32 38 32 30 10 04 04 00 97 09 00 00 35 04 06 00 BA 5E 90 B5 40 3F [13:34:22]Write to MH i2c: E2 1F 00 B3 24 80 0D 02 02 17 00 34 32 38 32 30 10 04 04 00 97 09 00 00 35 04 06 00 BA 5E 90 B5 40 3F 00 00 52 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 03 00 B3 24 00 90 00 4B [13:34:22]RAPDU: 90 00 [13:34:22]wFMCommunicate OK [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 0D 03 02 [13:34:22]Write to MH i2c: E2 08 00 B4 24 80 0D 03 02 00 00 00 00 53 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0B 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 0B 00 B4 24 00 28 7B 40 28 BE EA B0 D9 90 00 90 [13:34:22]RAPDU: 28 7B 40 28 BE EA B0 D9 90 00 [13:34:22]wFMCommunicate OK [13:34:22]SAM_PROTO_SignData done [13:34:22]FM_MakeSignedData done [13:34:22]CreateOFDProtocolMessage [13:34:22]wFMCommunicate request_size=4 [13:34:22]MH_SAM_APDU [13:34:22]CAPDU: 80 11 00 00 [13:34:22]Write to MH i2c: E2 08 00 B5 24 80 11 00 00 00 00 00 00 53 [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:22]Read from MH i2c: E2 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 17 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: E2 17 00 B5 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 9B [13:34:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:34:22]wFMCommunicate OK [13:34:22]CreateOFDProtocolMessage done [13:34:22]OFDSenderStorePacket 2455 [13:34:22]StoreOFDPacket docnum=2455 [13:34:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 21 01 00 00 B0 FF 19 01 77 60 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 50 00 00 00 F4 03 04 00 E1 63 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 97 09 00 00 35 04 06 00 BA 5E 90 B5 40 3F 28 7B 40 28 BE EA B0 D9 [13:34:22]CheckFolder [13:34:22]dirname=/storage/ofd_packets [13:34:22]CheckFolder done [13:34:22]ProducePacketName [13:34:22]name=ofd_packets/00002455 [13:34:22]NVStorageSaveData ofd_packets/00002455 [13:34:22]File name is /storage/ofd_packets/00002455 [13:34:22]Write 319 bytes [13:34:22]NVStorageSaveData done [13:34:22]OFDSenderStorePacket done [13:34:22]KKMCreateOFDPacket done [13:34:22]NVStorageSaveData kkm_last_timestamp [13:34:22]File name is /storage/kkm_last_timestamp [13:34:22]Write 4 bytes [13:34:22]NVStorageSaveData done [13:34:22]ExternCall_PrintAddStr [13:34:22]wPrintStart [13:34:22]Write to MH i2c: 01 00 00 B6 24 DA [13:34:22]Write i2c OK [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: 01 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: 01 07 00 [13:34:22]MH_I2C_Read... [13:34:22]Read from MH i2c: 01 07 00 B6 24 00 00 00 00 00 FF 0F EF [13:34:22]RasterBufferAndPrint [13:34:22]line Счет N : (3)99858 [13:34:22]line ИÐÐ: 02508201610067 [13:34:22]line Контрольно-КаÑÑовый Чек [13:34:22]line ПРОДÐЖР[13:34:22]line Товар: 4620006996716 [13:34:22]line Водка Талка 0,1л [13:34:22]line 1.000 * 130.00 [13:34:22]line = 130.00 [13:34:22]line ÐДС 12% ÐСП 1% [13:34:22]line > о реализуемом товаре [13:34:22]line ИТОГО: 130.00 [13:34:22]line ÐСП 1% : 1.15 [13:34:22]line ÐДС 12% : 13.80 [13:34:22]line Ðаличными: 130.00 [13:34:22]line Безнал.: 0.00 [13:34:22]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [13:34:22]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [13:34:22]line СÐО: Общий режим [13:34:22]line Чек 80 18.10.2024 13:34 [13:34:22]line Смена: 22 ФФД: 1.0 [13:34:22]line ЗÐМ: 0300000191 [13:34:22]line РÐМ: 0000000000207295 [13:34:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [13:34:22]line ФМ: 0000000002342820 [13:34:22]line ФД: 2455 [13:34:22]line ФПД: 204915317489727 [13:34:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T133425&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2455&fm=204915317489727&tin=02508201610067®Number=0000000000207295&sum=13000 [13:34:23]line 0 [13:34:23]OFD Sender: Processing packet 2455 [packets to send 1, broken 0] [13:34:23]ProducePacketName [13:34:23]name=ofd_packets/00002455 [13:34:23]OFD Sender: To server: ‡•öpG, [13:34:23]CommunicateWithHost lk.salyk.kg:30040 [13:34:23]ConnectInit lk.salyk.kg [13:34:23]written 0, free lines is 4095 [13:34:23]Connected sock=11 [13:34:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 21 01 00 00 B0 FF 19 01 77 60 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 36 37 31 36 06 04 1B 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A2 D0 B0 D0 BB D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 50 00 00 00 F4 03 04 00 E1 63 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 97 09 00 00 35 04 06 00 BA 5E 90 B5 40 3F 28 7B 40 28 BE EA B0 D9 [13:34:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 59 B3 47 00 70 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 32 33 34 32 38 32 30 10 04 04 00 97 09 00 00 F4 03 04 00 45 0F 12 67 B6 04 01 00 00 2E 2F 76 4F 48 DF 67 5B [13:34:23]CommunicateWithHost err = 0 [13:34:23]CheckOFDResponse [13:34:23]1017 (14) - 77093643461234 [13:34:23]1041 (16) - 0000000002342820 [13:34:23]1040 (4) - 2455 [13:34:23]1012 (4) - 18.10.2024 07:33 [13:34:23]1206 (1) - 0 [13:34:23]OFD Sender: Remove packet 2455 [13:34:23]ProducePacketName [13:34:23]name=ofd_packets/00002455 [13:34:23]NVStorageDeleteData [13:34:23]Write to MH i2c: 01 00 00 DE 24 02 [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 07 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: 01 07 00 DE 24 00 00 00 00 00 C5 0C DA [13:34:23]RasterBufferAndPrint [13:34:23]line [13:34:23]line [13:34:23]line [13:34:23]line [13:34:23]line [13:34:23]written 0, free lines is 3272 [13:34:23]MH_Cut [13:34:23]Write to MH i2c: D1 01 00 E5 24 01 DB [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: D1 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: D1 01 00 [13:34:23]MH_I2C_Read... [13:34:23]Read from MH i2c: D1 01 00 E5 24 00 DA [13:34:23]Write to MH i2c: 01 00 00 E6 24 0A [13:34:23]Write i2c OK [13:34:23]MH_I2C_Read... [13:34:24]OFD Sender: No OFD packet to send [13:34:24]*** Cut start [13:34:24]*** Partial cut [13:34:24]*** CUTSNS_PIN = 1 [13:34:24]*** CUTSNS_PIN = 0 [13:34:24]*** Brake cut motor [13:34:25]Read from MH i2c: 01 [13:34:25]MH_I2C_Read... [13:34:25]*** Stop cut motor [13:34:25]*** Cut end [13:34:25]Read from MH i2c: 01 07 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: 01 07 00 E6 24 00 00 00 00 00 FF 0F 1F [13:34:25]process_action close_receipt done [13:34:25]requested_data is exist [13:34:25]produce_requested_data [13:34:25]requested_item fm.sn is exist - process it [13:34:25]wFMCommunicate request_size=4 [13:34:25]MH_SAM_APDU [13:34:25]CAPDU: 80 11 00 00 [13:34:25]Write to MH i2c: E2 08 00 E7 24 80 11 00 00 00 00 00 00 85 [13:34:25]Write i2c OK [13:34:25]MH_I2C_Read... [13:34:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:25]Read from MH i2c: E2 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 17 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 17 00 E7 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CD [13:34:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [13:34:25]wFMCommunicate OK [13:34:25]requested_item fd.num is exist - process it [13:34:25]SAM_PROTO_GetFieldsCounters [13:34:25]wFMCommunicate request_size=4 [13:34:25]MH_SAM_APDU [13:34:25]CAPDU: 80 13 00 00 [13:34:25]Write to MH i2c: E2 08 00 E8 24 80 13 00 00 00 00 00 00 88 [13:34:25]Write i2c OK [13:34:25]MH_I2C_Read... [13:34:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:25]Read from MH i2c: E2 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 62 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 62 00 E8 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 97 09 00 00 0E 04 04 00 16 00 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 44 [13:34:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 97 09 00 00 0E 04 04 00 16 00 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:34:25]wFMCommunicate OK [13:34:25]SAM_PROTO_GetFieldsCounters done [13:34:25]requested_item shift.num is exist - process it [13:34:25]requested_item shift.opened is exist - process it [13:34:25]req_shift_opened [13:34:25]FM_GetShiftState [13:34:25]SAM_PROTO_GetShiftState [13:34:25]wFMCommunicate request_size=4 [13:34:25]MH_SAM_APDU [13:34:25]CAPDU: 80 13 01 00 [13:34:25]Write to MH i2c: E2 08 00 E9 24 80 13 01 00 00 00 00 00 8A [13:34:25]Write i2c OK [13:34:25]MH_I2C_Read... [13:34:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:25]Read from MH i2c: E2 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 0E 00 [13:34:25]MH_I2C_Read... [13:34:25]Read from MH i2c: E2 0E 00 E9 24 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 28 [13:34:25]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [13:34:25]wFMCommunicate OK [13:34:25]SAM_PROTO_GetShiftState done [13:34:25]FM_GetShiftState done [13:34:25]req_shift_opened done [13:34:25]requested_item shift.open_date is exist - process it [13:34:25]req_shift_open_date [13:34:25]req_shift_open_date done [13:34:25]produce_requested_data done [13:34:25]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2455,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [13:34:25]process_action_free close_receipt [13:34:25]json_value_free [13:34:25]json_value_free done [13:34:25]process_json_proto returns [13:34:25]Send response to host [13:34:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2455,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [13:34:25]free response buf [13:34:25]execute_script done [13:34:25]execute_script returns [13:34:25]free content buf [13:34:25]Sock 7.Close socket [13:34:25]Sock 7.Thread stoped [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:14]OFD Sender: No OFD packet to send [13:44:19]OFD Sender: No OFD packet to send [13:44:24]OFD Sender: No OFD packet to send [13:44:29]OFD Sender: No OFD packet to send [13:44:34]OFD Sender: No OFD packet to send [13:44:39]OFD Sender: No OFD packet to send [13:44:44]OFD Sender: No OFD packet to send [13:44:49]OFD Sender: No OFD packet to send [13:44:54]OFD Sender: No OFD packet to send [13:44:59]OFD Sender: No OFD packet to send [13:45:04]OFD Sender: No OFD packet to send [13:45:09]OFD Sender: No OFD packet to send [13:45:14]OFD Sender: No OFD packet to send [13:45:19]OFD Sender: No OFD packet to send [13:45:24]OFD Sender: No OFD packet to send [13:45:29]OFD Sender: No OFD packet to send [13:45:34]OFD Sender: No OFD packet to send [13:45:39]OFD Sender: No OFD packet to send [13:45:44]OFD Sender: No OFD packet to send [13:45:49]OFD Sender: No OFD packet to send [13:45:54]OFD Sender: No OFD packet to send [13:45:59]OFD Sender: No OFD packet to send [13:46:04]OFD Sender: No OFD packet to send [13:46:09]OFD Sender: No OFD packet to send [13:46:14]OFD Sender: No OFD packet to send [13:46:19]OFD Sender: No OFD packet to send [13:46:24]OFD Sender: No OFD packet to send [13:46:29]OFD Sender: No OFD packet to send [13:46:34]OFD Sender: No OFD packet to send [13:46:39]OFD Sender: No OFD packet to send [13:46:44]OFD Sender: No OFD packet to send [13:46:49]OFD Sender: No OFD packet to send [13:46:54]OFD Sender: No OFD packet to send [13:46:59]OFD Sender: No OFD packet to send [13:47:04]OFD Sender: No OFD packet to send [13:47:09]OFD Sender: No OFD packet to send [13:47:14]OFD Sender: No OFD packet to send [13:47:19]OFD Sender: No OFD packet to send [13:47:24]OFD Sender: No OFD packet to send [13:47:29]OFD Sender: No OFD packet to send [13:47:34]OFD Sender: No OFD packet to send [13:47:39]OFD Sender: No OFD packet to send [13:47:44]OFD Sender: No OFD packet to send [13:47:49]OFD Sender: No OFD packet to send [13:47:54]OFD Sender: No OFD packet to send [13:47:59]OFD Sender: No OFD packet to send [13:48:04]OFD Sender: No OFD packet to send [13:48:09]OFD Sender: No OFD packet to send [13:48:14]OFD Sender: No OFD packet to send [13:48:19]OFD Sender: No OFD packet to send [13:48:24]OFD Sender: No OFD packet to send [13:48:29]OFD Sender: No OFD packet to send [13:48:34]OFD Sender: No OFD packet to send [13:48:39]OFD Sender: No OFD packet to send [13:48:44]OFD Sender: No OFD packet to send [13:48:49]OFD Sender: No OFD packet to send [13:48:54]OFD Sender: No OFD packet to send [13:48:59]OFD Sender: No OFD packet to send [13:49:04]OFD Sender: No OFD packet to send [13:49:09]OFD Sender: No OFD packet to send [13:49:14]OFD Sender: No OFD packet to send [13:49:19]OFD Sender: No OFD packet to send [13:49:24]OFD Sender: No OFD packet to send [13:49:29]OFD Sender: No OFD packet to send [13:49:34]OFD Sender: No OFD packet to send [13:49:39]OFD Sender: No OFD packet to send [13:49:44]OFD Sender: No OFD packet to send [13:49:49]OFD Sender: No OFD packet to send [13:49:54]OFD Sender: No OFD packet to send [13:49:59]OFD Sender: No OFD packet to send [13:50:04]OFD Sender: No OFD packet to send [13:50:09]OFD Sender: No OFD packet to send [13:50:14]OFD Sender: No OFD packet to send [13:50:19]OFD Sender: No OFD packet to send [13:50:24]OFD Sender: No OFD packet to send [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:44]OFD Sender: No OFD packet to send [13:53:49]OFD Sender: No OFD packet to send [13:53:54]OFD Sender: No OFD packet to send [13:53:59]OFD Sender: No OFD packet to send [13:54:04]OFD Sender: No OFD packet to send [13:54:09]OFD Sender: No OFD packet to send [13:54:14]OFD Sender: No OFD packet to send [13:54:19]OFD Sender: No OFD packet to send [13:54:24]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:50]OFD Sender: No OFD packet to send [13:55:55]OFD Sender: No OFD packet to send [13:56:00]OFD Sender: No OFD packet to send [13:56:05]OFD Sender: No OFD packet to send [13:56:10]OFD Sender: No OFD packet to send [13:56:15]OFD Sender: No OFD packet to send [13:56:20]OFD Sender: No OFD packet to send [13:56:25]OFD Sender: No OFD packet to send [13:56:30]OFD Sender: No OFD packet to send [13:56:35]OFD Sender: No OFD packet to send [13:56:40]OFD Sender: No OFD packet to send [13:56:45]OFD Sender: No OFD packet to send [13:56:50]OFD Sender: No OFD packet to send [13:56:55]OFD Sender: No OFD packet to send [13:57:00]OFD Sender: No OFD packet to send [13:57:05]OFD Sender: No OFD packet to send [13:57:10]OFD Sender: No OFD packet to send [13:57:15]OFD Sender: No OFD packet to send [13:57:20]OFD Sender: No OFD packet to send [13:57:25]OFD Sender: No OFD packet to send [13:57:30]OFD Sender: No OFD packet to send [13:57:35]OFD Sender: No OFD packet to send [13:57:40]OFD Sender: No OFD packet to send [13:57:45]OFD Sender: No OFD packet to send [13:57:50]OFD Sender: No OFD packet to send [13:57:55]OFD Sender: No OFD packet to send [13:58:00]OFD Sender: No OFD packet to send [13:58:05]OFD Sender: No OFD packet to send [13:58:10]OFD Sender: No OFD packet to send [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]OFD Sender: No OFD packet to send [13:59:25]OFD Sender: No OFD packet to send [13:59:30]OFD Sender: No OFD packet to send [13:59:35]OFD Sender: No OFD packet to send [13:59:40]OFD Sender: No OFD packet to send [13:59:45]OFD Sender: No OFD packet to send [13:59:50]OFD Sender: No OFD packet to send [13:59:55]OFD Sender: No OFD packet to send [14:00:00]OFD Sender: No OFD packet to send [14:00:05]OFD Sender: No OFD packet to send [14:00:10]OFD Sender: No OFD packet to send [14:00:15]OFD Sender: No OFD packet to send [14:00:20]OFD Sender: No OFD packet to send [14:00:25]OFD Sender: No OFD packet to send [14:00:30]OFD Sender: No OFD packet to send [14:00:35]OFD Sender: No OFD packet to send [14:00:40]OFD Sender: No OFD packet to send [14:00:45]OFD Sender: No OFD packet to send [14:00:50]OFD Sender: No OFD packet to send [14:00:55]OFD Sender: No OFD packet to send [14:01:00]OFD Sender: No OFD packet to send [14:01:05]OFD Sender: No OFD packet to send [14:01:10]OFD Sender: No OFD packet to send [14:01:15]OFD Sender: No OFD packet to send [14:01:20]OFD Sender: No OFD packet to send [14:01:25]OFD Sender: No OFD packet to send [14:01:30]OFD Sender: No OFD packet to send [14:01:35]OFD Sender: No OFD packet to send [14:01:40]OFD Sender: No OFD packet to send [14:01:45]OFD Sender: No OFD packet to send [14:01:50]OFD Sender: No OFD packet to send [14:01:55]OFD Sender: No OFD packet to send [14:02:00]OFD Sender: No OFD packet to send [14:02:05]OFD Sender: No OFD packet to send [14:02:10]OFD Sender: No OFD packet to send [14:02:15]OFD Sender: No OFD packet to send [14:02:20]OFD Sender: No OFD packet to send [14:02:25]OFD Sender: No OFD packet to send [14:02:30]OFD Sender: No OFD packet to send [14:02:35]OFD Sender: No OFD packet to send [14:02:40]OFD Sender: No OFD packet to send [14:02:45]OFD Sender: No OFD packet to send [14:02:50]OFD Sender: No OFD packet to send [14:02:55]OFD Sender: No OFD packet to send [14:03:00]OFD Sender: No OFD packet to send [14:03:05]OFD Sender: No OFD packet to send [14:03:10]OFD Sender: No OFD packet to send [14:03:15]OFD Sender: No OFD packet to send [14:03:20]OFD Sender: No OFD packet to send [14:03:25]OFD Sender: No OFD packet to send [14:03:30]OFD Sender: No OFD packet to send [14:03:35]OFD Sender: No OFD packet to send [14:03:40]OFD Sender: No OFD packet to send [14:03:45]OFD Sender: No OFD packet to send [14:03:50]OFD Sender: No OFD packet to send [14:03:55]OFD Sender: No OFD packet to send [14:04:00]OFD Sender: No OFD packet to send [14:04:05]OFD Sender: No OFD packet to send [14:04:10]OFD Sender: No OFD packet to send [14:04:15]OFD Sender: No OFD packet to send [14:04:20]OFD Sender: No OFD packet to send [14:04:25]OFD Sender: No OFD packet to send [14:04:30]OFD Sender: No OFD packet to send [14:04:35]OFD Sender: No OFD packet to send [14:04:40]OFD Sender: No OFD packet to send [14:04:45]OFD Sender: No OFD packet to send [14:04:50]OFD Sender: No OFD packet to send [14:04:55]OFD Sender: No OFD packet to send [14:05:00]OFD Sender: No OFD packet to send [14:05:05]OFD Sender: No OFD packet to send [14:05:10]OFD Sender: No OFD packet to send [14:05:15]OFD Sender: No OFD packet to send [14:05:20]OFD Sender: No OFD packet to send [14:05:25]OFD Sender: No OFD packet to send [14:05:30]OFD Sender: No OFD packet to send [14:05:35]OFD Sender: No OFD packet to send [14:05:40]OFD Sender: No OFD packet to send [14:05:45]OFD Sender: No OFD packet to send [14:05:50]OFD Sender: No OFD packet to send [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:10]OFD Sender: No OFD packet to send [14:06:15]OFD Sender: No OFD packet to send [14:06:20]OFD Sender: No OFD packet to send [14:06:25]OFD Sender: No OFD packet to send [14:06:30]OFD Sender: No OFD packet to send [14:06:35]OFD Sender: No OFD packet to send [14:06:40]OFD Sender: No OFD packet to send [14:06:45]OFD Sender: No OFD packet to send [14:06:50]OFD Sender: No OFD packet to send [14:06:55]OFD Sender: No OFD packet to send [14:07:00]OFD Sender: No OFD packet to send [14:07:05]OFD Sender: No OFD packet to send [14:07:10]OFD Sender: No OFD packet to send [14:07:15]OFD Sender: No OFD packet to send [14:07:20]OFD Sender: No OFD packet to send [14:07:25]OFD Sender: No OFD packet to send [14:07:30]OFD Sender: No OFD packet to send [14:07:35]OFD Sender: No OFD packet to send [14:07:40]OFD Sender: No OFD packet to send [14:07:45]OFD Sender: No OFD packet to send [14:07:50]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [14:08:15]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [14:09:10]OFD Sender: No OFD packet to send [14:09:15]OFD Sender: No OFD packet to send [14:09:20]OFD Sender: No OFD packet to send [14:09:25]OFD Sender: No OFD packet to send [14:09:30]OFD Sender: No OFD packet to send [14:09:35]OFD Sender: No OFD packet to send [14:09:40]OFD Sender: No OFD packet to send [14:09:45]OFD Sender: No OFD packet to send [14:09:50]OFD Sender: No OFD packet to send [14:09:55]OFD Sender: No OFD packet to send [14:10:00]OFD Sender: No OFD packet to send [14:10:05]OFD Sender: No OFD packet to send [14:12:43]ConnectInit Can't connect to host [14:12:45]OFD Sender: No OFD packet to send [14:12:50]OFD Sender: No OFD packet to send [14:12:55]OFD Sender: No OFD packet to send [14:13:00]OFD Sender: No OFD packet to send [14:13:05]OFD Sender: No OFD packet to send [14:13:10]OFD Sender: No OFD packet to send [14:13:15]OFD Sender: No OFD packet to send [14:13:20]OFD Sender: No OFD packet to send [14:13:25]OFD Sender: No OFD packet to send [14:13:30]OFD Sender: No OFD packet to send [14:13:35]OFD Sender: No OFD packet to send [14:13:40]OFD Sender: No OFD packet to send [14:13:45]OFD Sender: No OFD packet to send [14:13:50]OFD Sender: No OFD packet to send [14:13:55]OFD Sender: No OFD packet to send [14:14:00]OFD Sender: No OFD packet to send [14:14:05]OFD Sender: No OFD packet to send [14:14:10]OFD Sender: No OFD packet to send [14:14:15]OFD Sender: No OFD packet to send [14:14:20]OFD Sender: No OFD packet to send [14:14:25]OFD Sender: No OFD packet to send [14:14:30]OFD Sender: No OFD packet to send [14:14:35]OFD Sender: No OFD packet to send [14:14:40]OFD Sender: No OFD packet to send [14:14:45]OFD Sender: No OFD packet to send [14:14:50]OFD Sender: No OFD packet to send [14:14:55]OFD Sender: No OFD packet to send [14:15:00]OFD Sender: No OFD packet to send [14:15:05]OFD Sender: No OFD packet to send [14:15:10]OFD Sender: No OFD packet to send [14:15:15]OFD Sender: No OFD packet to send [14:15:20]OFD Sender: No OFD packet to send [14:15:25]OFD Sender: No OFD packet to send [14:15:30]OFD Sender: No OFD packet to send [14:15:35]OFD Sender: No OFD packet to send [14:15:40]OFD Sender: No OFD packet to send [14:15:45]OFD Sender: No OFD packet to send [14:15:47]accept exits with 9 [14:15:47]New connection [14:15:47]New thread 3066850660 created [14:15:47]Thread 3066707300 joined [14:15:47]Waiting for new connection... [14:15:47] Sock 9.Parse request [14:15:47]Sock 9.Check first char [14:15:47]Sock 9.First char is OK [14:15:47]request: POST /json_proto HTTP/1.0 [14:15:47]Method: POST [14:15:47]URL: /json_proto [14:15:47]Method is POST - this is cgi request [14:15:47]url: /json_proto [14:15:47]query_string will be loaded in cgi processing [14:15:47]execute_cgi json_proto POST (null) [14:15:47]execute_cgi path=json_proto method=POST [14:15:47]POST find Content-Length [14:15:47]Host: 172.17.52.132:8080 [14:15:47]Content-Length: 682 [14:15:47]Content-Type: application/json [14:15:47] [14:15:47]POST finish read [14:15:47]Found Content-Length = 682 [14:15:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:47]execute_script... [14:15: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)475444", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-5", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:15:47]POST & json_proto [14:15:47]process_json_proto [14:15:47]json parsed OK: [14:15:47]protocol is kg_v1.0 [14:15:47]action value=close_receipt [14:15:47]process_action close_receipt [14:15:47]cmd_close_receipt [14:15:47]MH_GetDate [14:15:47]Write to MH i2c: F0 00 00 EA 24 FD [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: F0 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: F0 09 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: F0 09 00 EA 24 00 97 6D 12 67 5A BE F6 66 F7 [14:15:47]GetLastDocTimeStamp 1729258465 [14:15:47]current date 1729260951 [14:15:47]FM_GetShiftState [14:15:47]SAM_PROTO_GetShiftState [14:15:47]wFMCommunicate request_size=4 [14:15:47]MH_SAM_APDU [14:15:47]CAPDU: 80 13 01 00 [14:15:47]Write to MH i2c: E2 08 00 EB 24 80 13 01 00 00 00 00 00 8C [14:15:47]Write i2c OK [14:15:47]MH_I2C_Read... [14:15:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:47]Read from MH i2c: E2 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 0E 00 [14:15:47]MH_I2C_Read... [14:15:47]Read from MH i2c: E2 0E 00 EB 24 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2A [14:15:47]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:15:47]wFMCommunicate OK [14:15:47]SAM_PROTO_GetShiftState done [14:15:47]FM_GetShiftState done [14:15:47]opened in 1729209717 [14:15:47]opened+sec_in_day 1729296117 [14:15:47]quantity*price = 100021 [14:15:47]sum+1 = 100023 [14:15:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.22 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.22 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 81 18.10.2024 14:15 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2456 ФПД: 241766792274661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141551&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2456&fm=241766792274661&tin=02508201610067®Number=0000000000207295&sum=100000 [14:15:48]StoreToDocumentArchive [14:15:48]shift 22 fd 2456 [14:15:48]save to /storage/0022/doc_00002456 [14:15:48]save last doc name /storage/0022/doc_00002456 to /storage/kkm_last_doc_name [14:15:48]save OK [14:15:48]Clear old archive folders... [14:15:48]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:15:48]tlvbuf is 013BA170 [14:15:48]SAM_PROTO_ClearQueue [14:15:48]wFMCommunicate request_size=4 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 09 00 00 [14:15:48]Write to MH i2c: E2 08 00 F8 24 80 09 00 00 00 00 00 00 8E [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:15:48]Read from MH i2c: E2 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 03 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 03 00 F8 24 00 90 00 90 [14:15:48]RAPDU: 90 00 [14:15:48]wFMCommunicate OK [14:15:48]SAM_PROTO_ClearQueue done [14:15:48]KKMCreateOFDPacket [14:15:48]OFDProtocolAddRootSTLVToBuf [14:15:48]FM_MakeSignedData [14:15:48]FM_MakeSignedData [14:15:48]SAM_PROTO_SignData [14:15:48]wFMCommunicate request_size=4 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 0D 01 02 [14:15:48]Write to MH i2c: E2 08 00 F9 24 80 0D 01 02 00 00 00 00 96 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:15:48]Read from MH i2c: E2 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 03 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 03 00 F9 24 00 90 00 91 [14:15:48]RAPDU: 90 00 [14:15:48]wFMCommunicate OK [14:15:48]wFMCommunicate request_size=255 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 97 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 98 09 00 00 35 04 06 00 DB [14:15:48]Write to MH i2c: E2 02 01 FA 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 97 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 98 09 00 00 35 04 06 00 DB 00 00 97 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:48]Read from MH i2c: E2 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 03 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 03 00 FA 24 00 90 00 92 [14:15:48]RAPDU: 90 00 [14:15:48]wFMCommunicate OK [14:15:48]wFMCommunicate request_size=10 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 0D 02 02 05 E2 B7 C5 A2 E5 [14:15:48]Write to MH i2c: E2 0D 00 FB 24 80 0D 02 02 05 00 E2 B7 C5 A2 E5 00 00 88 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:15:48]Read from MH i2c: E2 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 03 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 03 00 FB 24 00 90 00 93 [14:15:48]RAPDU: 90 00 [14:15:48]wFMCommunicate OK [14:15:48]wFMCommunicate request_size=4 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 0D 03 02 [14:15:48]Write to MH i2c: E2 08 00 FC 24 80 0D 03 02 00 00 00 00 9B [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:15:48]Read from MH i2c: E2 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 0B 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 0B 00 FC 24 00 C1 D4 80 C7 32 84 86 81 90 00 35 [14:15:48]RAPDU: C1 D4 80 C7 32 84 86 81 90 00 [14:15:48]wFMCommunicate OK [14:15:48]SAM_PROTO_SignData done [14:15:48]FM_MakeSignedData done [14:15:48]CreateOFDProtocolMessage [14:15:48]wFMCommunicate request_size=4 [14:15:48]MH_SAM_APDU [14:15:48]CAPDU: 80 11 00 00 [14:15:48]Write to MH i2c: E2 08 00 FD 24 80 11 00 00 00 00 00 00 9B [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:48]Read from MH i2c: E2 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 17 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: E2 17 00 FD 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E3 [14:15:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:15:48]wFMCommunicate OK [14:15:48]CreateOFDProtocolMessage done [14:15:48]OFDSenderStorePacket 2456 [14:15:48]StoreOFDPacket docnum=2456 [14:15:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 B2 08 07 01 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 97 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 98 09 00 00 35 04 06 00 DB E2 B7 C5 A2 E5 C1 D4 80 C7 32 84 86 81 [14:15:48]CheckFolder [14:15:48]dirname=/storage/ofd_packets [14:15:48]CheckFolder done [14:15:48]ProducePacketName [14:15:48]name=ofd_packets/00002456 [14:15:48]NVStorageSaveData ofd_packets/00002456 [14:15:48]File name is /storage/ofd_packets/00002456 [14:15:48]Write 301 bytes [14:15:48]NVStorageSaveData done [14:15:48]OFDSenderStorePacket done [14:15:48]KKMCreateOFDPacket done [14:15:48]NVStorageSaveData kkm_last_timestamp [14:15:48]File name is /storage/kkm_last_timestamp [14:15:48]Write 4 bytes [14:15:48]NVStorageSaveData done [14:15:48]ExternCall_PrintAddStr [14:15:48]wPrintStart [14:15:48]Write to MH i2c: 01 00 00 FE 24 22 [14:15:48]Write i2c OK [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: 01 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: 01 07 00 [14:15:48]MH_I2C_Read... [14:15:48]Read from MH i2c: 01 07 00 FE 24 00 00 00 00 00 FF 0F 37 [14:15:48]RasterBufferAndPrint [14:15:48]line Счет N : (1)475444 [14:15:48]line ИÐÐ: 02508201610067 [14:15:48]line Контрольно-КаÑÑовый Чек [14:15:48]line ПРОДÐЖР[14:15:48]line ТРК (МРК, ГÐК) : 51 [14:15:48]line Товар: 2710124500 [14:15:48]line Ðи-95-К-5 [14:15:48]line 13.480 * 74.20 [14:15:48]line = 1000.22 [14:15:48]line ÐДС 12% ÐСП 1% [14:15:48]line > о реализуемом товаре [14:15:48]line ОКРУГЛЕÐИЕ: -0.22 [14:15:48]line ИТОГО: 1000.00 [14:15:48]line ВнеÑено: 1000.00 [14:15:48]line СДÐЧÐ: 0.00 [14:15:48]line ÐСП 1% : 8.85 [14:15:48]line ÐДС 12% : 106.22 [14:15:48]line Ðаличными: 1000.00 [14:15:48]line Безнал.: 0.00 [14:15:48]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:15:48]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:15:48]line СÐО: Общий режим [14:15:48]line Чек 81 18.10.2024 14:15 [14:15:48]line Смена: 22 ФФД: 1.0 [14:15:48]line ЗÐМ: 0300000191 [14:15:48]line РÐМ: 0000000000207295 [14:15:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:15:48]line ФМ: 0000000002342820 [14:15:48]line ФД: 2456 [14:15:48]line ФПД: 241766792274661 [14:15:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141551&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2456&fm=241766792274661&tin=02508201610067®Number=0000000000207295&sum=100000 [14:15:49]OFD Sender: Processing packet 2456 [packets to send 1, broken 0] [14:15:49]ProducePacketName [14:15:49]name=ofd_packets/00002456 [14:15:49]OFD Sender: To server: ‡•öpG, [14:15:49]CommunicateWithHost lk.salyk.kg:30040 [14:15:49]ConnectInit lk.salyk.kg [14:15:49]written 0, free lines is 4095 [14:15:49]Write to MH i2c: 01 00 00 29 25 4E [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: 01 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: 01 07 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: 01 07 00 29 25 00 00 00 00 00 95 0C F6 [14:15:49]RasterBufferAndPrint [14:15:49]line [14:15:49]line [14:15:49]line [14:15:49]line [14:15:49]line [14:15:49]written 0, free lines is 3224 [14:15:49]MH_Cut [14:15:49]Write to MH i2c: D1 01 00 30 25 01 27 [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: D1 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: D1 01 00 [14:15:49]MH_I2C_Read... [14:15:49]Read from MH i2c: D1 01 00 30 25 00 26 [14:15:49]Write to MH i2c: 01 00 00 31 25 56 [14:15:49]Write i2c OK [14:15:49]MH_I2C_Read... [14:15:50]*** Cut start [14:15:50]*** Partial cut [14:15:50]*** CUTSNS_PIN = 1 [14:15:50]*** CUTSNS_PIN = 0 [14:15:50]*** Brake cut motor [14:15:51]Read from MH i2c: 01 [14:15:51]MH_I2C_Read... [14:15:51]*** Stop cut motor [14:15:51]*** Cut end [14:15:51]Read from MH i2c: 01 07 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: 01 07 00 31 25 00 00 00 00 00 FF 0F 6B [14:15:51]process_action close_receipt done [14:15:51]requested_data is exist [14:15:51]produce_requested_data [14:15:51]requested_item fm.sn is exist - process it [14:15:51]wFMCommunicate request_size=4 [14:15:51]MH_SAM_APDU [14:15:51]CAPDU: 80 11 00 00 [14:15:51]Write to MH i2c: E2 08 00 32 25 80 11 00 00 00 00 00 00 D1 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 17 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 17 00 32 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 19 [14:15:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:15:51]wFMCommunicate OK [14:15:51]requested_item fd.num is exist - process it [14:15:51]SAM_PROTO_GetFieldsCounters [14:15:51]wFMCommunicate request_size=4 [14:15:51]MH_SAM_APDU [14:15:51]CAPDU: 80 13 00 00 [14:15:51]Write to MH i2c: E2 08 00 33 25 80 13 00 00 00 00 00 00 D4 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 62 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 62 00 33 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 98 09 00 00 0E 04 04 00 16 00 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 94 [14:15:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 98 09 00 00 0E 04 04 00 16 00 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 [14:15:51]wFMCommunicate OK [14:15:51]SAM_PROTO_GetFieldsCounters done [14:15:51]requested_item shift.num is exist - process it [14:15:51]requested_item shift.opened is exist - process it [14:15:51]req_shift_opened [14:15:51]FM_GetShiftState [14:15:51]SAM_PROTO_GetShiftState [14:15:51]wFMCommunicate request_size=4 [14:15:51]MH_SAM_APDU [14:15:51]CAPDU: 80 13 01 00 [14:15:51]Write to MH i2c: E2 08 00 34 25 80 13 01 00 00 00 00 00 D6 [14:15:51]Write i2c OK [14:15:51]MH_I2C_Read... [14:15:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:15:51]Read from MH i2c: E2 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 0E 00 [14:15:51]MH_I2C_Read... [14:15:51]Read from MH i2c: E2 0E 00 34 25 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 74 [14:15:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:15:51]wFMCommunicate OK [14:15:51]SAM_PROTO_GetShiftState done [14:15:51]FM_GetShiftState done [14:15:51]req_shift_opened done [14:15:51]requested_item shift.open_date is exist - process it [14:15:51]req_shift_open_date [14:15:51]req_shift_open_date done [14:15:51]produce_requested_data done [14:15:51]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2456,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:15:51]process_action_free close_receipt [14:15:51]json_value_free [14:15:51]json_value_free done [14:15:51]process_json_proto returns [14:15:51]Send response to host [14:15:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2456,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:15:51]free response buf [14:15:51]execute_script done [14:15:51]execute_script returns [14:15:51]free content buf [14:15:51]Sock 9.Close socket [14:15:51]Sock 9.Thread stoped [14:16:47]accept exits with 7 [14:16:47]New connection [14:16:47]New thread 3066707300 created [14:16:47]Thread 3066850660 joined [14:16:47]Waiting for new connection... [14:16:47] Sock 7.Parse request [14:16:47]Sock 7.Check first char [14:16:47]Sock 7.First char is OK [14:16:47]request: POST /json_proto HTTP/1.0 [14:16:47]Method: POST [14:16:47]URL: /json_proto [14:16:47]Method is POST - this is cgi request [14:16:47]url: /json_proto [14:16:47]query_string will be loaded in cgi processing [14:16:47]execute_cgi json_proto POST (null) [14:16:47]execute_cgi path=json_proto method=POST [14:16:47]POST find Content-Length [14:16:47]Host: 172.17.52.132:8080 [14:16:47]Content-Length: 707 [14:16:47]Content-Type: application/json [14:16:47] [14:16:47]POST finish read [14:16:47]Found Content-Length = 707 [14:16:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99859", "tax_sys" : 0, "items" : [ { "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:47]execute_script... [14:16: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 : (3)99859", "tax_sys" : 0, "items" : [ { "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:16:47]POST & json_proto [14:16:47]process_json_proto [14:16:47]json parsed OK: [14:16:47]protocol is kg_v1.0 [14:16:47]action value=close_receipt [14:16:47]process_action close_receipt [14:16:47]cmd_close_receipt [14:16:47]MH_GetDate [14:16:47]Write to MH i2c: F0 00 00 35 25 49 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: F0 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: F0 09 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: F0 09 00 35 25 00 D3 6D 12 67 5A BE F6 66 7F [14:16:47]GetLastDocTimeStamp 1729260951 [14:16:47]current date 1729261011 [14:16:47]FM_GetShiftState [14:16:47]SAM_PROTO_GetShiftState [14:16:47]wFMCommunicate request_size=4 [14:16:47]MH_SAM_APDU [14:16:47]CAPDU: 80 13 01 00 [14:16:47]Write to MH i2c: E2 08 00 36 25 80 13 01 00 00 00 00 00 D8 [14:16:47]Write i2c OK [14:16:47]MH_I2C_Read... [14:16:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:47]Read from MH i2c: E2 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 0E 00 [14:16:47]MH_I2C_Read... [14:16:47]Read from MH i2c: E2 0E 00 36 25 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 76 [14:16:47]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:16:47]wFMCommunicate OK [14:16:47]SAM_PROTO_GetShiftState done [14:16:47]FM_GetShiftState done [14:16:47]opened in 1729209717 [14:16:47]opened+sec_in_day 1729296117 [14:16:47]quantity*price = 12900 [14:16:47]sum+1 = 12901 [14:16:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 129.00 ÐСП 1% : 1.14 ÐДС 12% : 13.70 Ðаличными: 129.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 82 18.10.2024 14:16 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2457 ФПД: 224078142469338 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141651&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2457&fm=224078142469338&tin=02508201610067®Number=0000000000207295&sum=12900 0 [14:16:48]StoreToDocumentArchive [14:16:48]shift 22 fd 2457 [14:16:48]save to /storage/0022/doc_00002457 [14:16:48]save last doc name /storage/0022/doc_00002457 to /storage/kkm_last_doc_name [14:16:48]save OK [14:16:48]Clear old archive folders... [14:16:48]ProcessDocumentItem done err = 0, tmpTLVsize=296 [14:16:48]tlvbuf is 01382040 [14:16:48]SAM_PROTO_ClearQueue [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 09 00 00 [14:16:48]Write to MH i2c: E2 08 00 43 25 80 09 00 00 00 00 00 00 DA [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 43 25 00 90 00 DC [14:16:48]RAPDU: 90 00 [14:16:48]wFMCommunicate OK [14:16:48]SAM_PROTO_ClearQueue done [14:16:48]KKMCreateOFDPacket [14:16:48]OFDProtocolAddRootSTLVToBuf [14:16:48]FM_MakeSignedData [14:16:48]FM_MakeSignedData [14:16:48]SAM_PROTO_SignData [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 0D 01 02 [14:16:48]Write to MH i2c: E2 08 00 44 25 80 0D 01 02 00 00 00 00 E2 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 44 25 00 90 00 DD [14:16:48]RAPDU: 90 00 [14:16:48]wFMCommunicate OK [14:16:48]wFMCommunicate request_size=255 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 52 00 00 00 F4 03 04 00 D3 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [14:16:48]Write to MH i2c: E2 02 01 45 25 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 52 00 00 00 F4 03 04 00 D3 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 9F [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 45 25 00 90 00 DE [14:16:48]RAPDU: 90 00 [14:16:48]wFMCommunicate OK [14:16:48]wFMCommunicate request_size=55 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 99 09 00 00 35 04 06 00 CB CC 42 15 74 DA [14:16:48]Write to MH i2c: E2 3A 00 46 25 80 0D 02 02 32 00 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 99 09 00 00 35 04 06 00 CB CC 42 15 74 DA 00 00 11 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 03 00 46 25 00 90 00 DF [14:16:48]RAPDU: 90 00 [14:16:48]wFMCommunicate OK [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 0D 03 02 [14:16:48]Write to MH i2c: E2 08 00 47 25 80 0D 03 02 00 00 00 00 E7 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 0B 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 0B 00 47 25 00 44 A3 95 A0 5F 13 D7 FC 90 00 49 [14:16:48]RAPDU: 44 A3 95 A0 5F 13 D7 FC 90 00 [14:16:48]wFMCommunicate OK [14:16:48]SAM_PROTO_SignData done [14:16:48]FM_MakeSignedData done [14:16:48]CreateOFDProtocolMessage [14:16:48]wFMCommunicate request_size=4 [14:16:48]MH_SAM_APDU [14:16:48]CAPDU: 80 11 00 00 [14:16:48]Write to MH i2c: E2 08 00 48 25 80 11 00 00 00 00 00 00 E7 [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:48]Read from MH i2c: E2 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 17 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: E2 17 00 48 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 2F [14:16:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:16:48]wFMCommunicate OK [14:16:48]CreateOFDProtocolMessage done [14:16:48]OFDSenderStorePacket 2457 [14:16:48]StoreOFDPacket docnum=2457 [14:16:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3C 01 00 00 AE E8 34 01 73 C8 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 52 00 00 00 F4 03 04 00 D3 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 99 09 00 00 35 04 06 00 CB CC 42 15 74 DA 44 A3 95 A0 5F 13 D7 FC [14:16:48]CheckFolder [14:16:48]dirname=/storage/ofd_packets [14:16:48]CheckFolder done [14:16:48]ProducePacketName [14:16:48]name=ofd_packets/00002457 [14:16:48]NVStorageSaveData ofd_packets/00002457 [14:16:48]File name is /storage/ofd_packets/00002457 [14:16:48]Write 346 bytes [14:16:48]NVStorageSaveData done [14:16:48]OFDSenderStorePacket done [14:16:48]KKMCreateOFDPacket done [14:16:48]NVStorageSaveData kkm_last_timestamp [14:16:48]File name is /storage/kkm_last_timestamp [14:16:48]Write 4 bytes [14:16:48]NVStorageSaveData done [14:16:48]ExternCall_PrintAddStr [14:16:48]wPrintStart [14:16:48]Write to MH i2c: 01 00 00 49 25 6E [14:16:48]Write i2c OK [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 07 00 [14:16:48]MH_I2C_Read... [14:16:48]Read from MH i2c: 01 07 00 49 25 00 00 00 00 00 FF 0F 83 [14:16:48]RasterBufferAndPrint [14:16:48]line Счет N : (3)99859 [14:16:48]line ИÐÐ: 02508201610067 [14:16:48]line Контрольно-КаÑÑовый Чек [14:16:48]line ПРОДÐЖР[14:16:48]line Товар: 4607015235401 [14:16:48]line ПрÑники Яшкино шоколадные 350г [14:16:48]line 1.000 * 129.00 [14:16:48]line = 129.00 [14:16:48]line ÐДС 12% ÐСП 1% [14:16:48]line > о реализуемом товаре [14:16:48]line ИТОГО: 129.00 [14:16:48]line ÐСП 1% : 1.14 [14:16:48]line ÐДС 12% : 13.70 [14:16:48]line Ðаличными: 129.00 [14:16:48]line Безнал.: 0.00 [14:16:48]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:16:48]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:16:48]line СÐО: Общий режим [14:16:48]line Чек 82 18.10.2024 14:16 [14:16:48]line Смена: 22 ФФД: 1.0 [14:16:48]line ЗÐМ: 0300000191 [14:16:48]line РÐМ: 0000000000207295 [14:16:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:16:48]line ФМ: 0000000002342820 [14:16:48]line ФД: 2457 [14:16:48]line ФПД: 224078142469338 [14:16:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141651&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2457&fm=224078142469338&tin=02508201610067®Number=0000000000207295&sum=12900 [14:16:49]line 0 [14:16:49]written 0, free lines is 4095 [14:16:49]Write to MH i2c: 01 00 00 72 25 97 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: 01 07 00 72 25 00 00 00 00 00 A1 0C 4B [14:16:49]RasterBufferAndPrint [14:16:49]line [14:16:49]line [14:16:49]line [14:16:49]line [14:16:49]line [14:16:49]written 0, free lines is 3238 [14:16:49]MH_Cut [14:16:49]Write to MH i2c: D1 01 00 79 25 01 70 [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: D1 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: D1 01 00 [14:16:49]MH_I2C_Read... [14:16:49]Read from MH i2c: D1 01 00 79 25 00 6F [14:16:49]Write to MH i2c: 01 00 00 7A 25 9F [14:16:49]Write i2c OK [14:16:49]MH_I2C_Read... [14:16:50]*** Cut start [14:16:50]*** Partial cut [14:16:50]*** CUTSNS_PIN = 1 [14:16:50]*** CUTSNS_PIN = 0 [14:16:50]*** Brake cut motor [14:16:51]Read from MH i2c: 01 [14:16:51]*** Stop cut motor [14:16:51]*** Cut end [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: 01 07 00 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: 01 07 00 7A 25 00 00 00 00 00 FF 0F B4 [14:16:51]process_action close_receipt done [14:16:51]requested_data is exist [14:16:51]produce_requested_data [14:16:51]requested_item fm.sn is exist - process it [14:16:51]wFMCommunicate request_size=4 [14:16:51]MH_SAM_APDU [14:16:51]CAPDU: 80 11 00 00 [14:16:51]Write to MH i2c: E2 08 00 7B 25 80 11 00 00 00 00 00 00 1A [14:16:51]Write i2c OK [14:16:51]MH_I2C_Read... [14:16:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:16:51]Read from MH i2c: E2 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 17 00 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 17 00 7B 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 62 [14:16:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:16:51]wFMCommunicate OK [14:16:51]requested_item fd.num is exist - process it [14:16:51]SAM_PROTO_GetFieldsCounters [14:16:51]wFMCommunicate request_size=4 [14:16:51]MH_SAM_APDU [14:16:51]CAPDU: 80 13 00 00 [14:16:51]Write to MH i2c: E2 08 00 7C 25 80 13 00 00 00 00 00 00 1D [14:16:51]Write i2c OK [14:16:51]MH_I2C_Read... [14:16:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:16:51]Read from MH i2c: E2 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 62 00 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 62 00 7C 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 99 09 00 00 0E 04 04 00 16 00 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 E1 [14:16:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 99 09 00 00 0E 04 04 00 16 00 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 [14:16:51]wFMCommunicate OK [14:16:51]SAM_PROTO_GetFieldsCounters done [14:16:51]requested_item shift.num is exist - process it [14:16:51]requested_item shift.opened is exist - process it [14:16:51]req_shift_opened [14:16:51]FM_GetShiftState [14:16:51]SAM_PROTO_GetShiftState [14:16:51]wFMCommunicate request_size=4 [14:16:51]MH_SAM_APDU [14:16:51]CAPDU: 80 13 01 00 [14:16:51]Write to MH i2c: E2 08 00 7D 25 80 13 01 00 00 00 00 00 1F [14:16:51]Write i2c OK [14:16:51]MH_I2C_Read... [14:16:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:16:51]Read from MH i2c: E2 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 0E 00 [14:16:51]MH_I2C_Read... [14:16:51]Read from MH i2c: E2 0E 00 7D 25 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 BD [14:16:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:16:51]wFMCommunicate OK [14:16:51]SAM_PROTO_GetShiftState done [14:16:51]FM_GetShiftState done [14:16:51]req_shift_opened done [14:16:51]requested_item shift.open_date is exist - process it [14:16:51]req_shift_open_date [14:16:51]req_shift_open_date done [14:16:51]produce_requested_data done [14:16:51]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2457,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:16:51]process_action_free close_receipt [14:16:51]json_value_free [14:16:51]json_value_free done [14:16:51]process_json_proto returns [14:16:51]Send response to host [14:16:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2457,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:16:51]free response buf [14:16:51]execute_script done [14:16:51]execute_script returns [14:16:51]free content buf [14:16:51]Sock 7.Close socket [14:16:51]Sock 7.Thread stoped [14:17:18]accept exits with 9 [14:17:18]New connection [14:17:18]New thread 3066850660 created [14:17:18]Thread 3066707300 joined [14:17:18]Waiting for new connection... [14:17:18] Sock 9.Parse request [14:17:18]Sock 9.Check first char [14:17:18]Sock 9.First char is OK [14:17:18]request: POST /json_proto HTTP/1.0 [14:17:18]Method: POST [14:17:18]URL: /json_proto [14:17:18]Method is POST - this is cgi request [14:17:18]url: /json_proto [14:17:18]query_string will be loaded in cgi processing [14:17:18]execute_cgi json_proto POST (null) [14:17:18]execute_cgi path=json_proto method=POST [14:17:18]POST find Content-Length [14:17:18]Host: 172.17.52.132:8080 [14:17:18]Content-Length: 682 [14:17:18]Content-Type: application/json [14:17:18] [14:17:18]POST finish read [14:17:18]Found Content-Length = 682 [14:17:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:18]execute_script... [14:17: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)475446", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:17:18]POST & json_proto [14:17:18]process_json_proto [14:17:18]json parsed OK: [14:17:18]protocol is kg_v1.0 [14:17:18]action value=close_receipt [14:17:18]process_action close_receipt [14:17:18]cmd_close_receipt [14:17:18]MH_GetDate [14:17:18]Write to MH i2c: F0 00 00 7E 25 92 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: F0 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: F0 09 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: F0 09 00 7E 25 00 F3 6D 12 67 5A BE F6 66 E8 [14:17:18]GetLastDocTimeStamp 1729261011 [14:17:18]current date 1729261043 [14:17:18]FM_GetShiftState [14:17:18]SAM_PROTO_GetShiftState [14:17:18]wFMCommunicate request_size=4 [14:17:18]MH_SAM_APDU [14:17:18]CAPDU: 80 13 01 00 [14:17:18]Write to MH i2c: E2 08 00 7F 25 80 13 01 00 00 00 00 00 21 [14:17:18]Write i2c OK [14:17:18]MH_I2C_Read... [14:17:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:18]Read from MH i2c: E2 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 0E 00 [14:17:18]MH_I2C_Read... [14:17:18]Read from MH i2c: E2 0E 00 7F 25 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 BF [14:17:18]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:17:18]wFMCommunicate OK [14:17:18]SAM_PROTO_GetShiftState done [14:17:18]FM_GetShiftState done [14:17:18]opened in 1729209717 [14:17:18]opened+sec_in_day 1729296117 [14:17:18]quantity*price = 100015 [14:17:18]sum+1 = 100017 [14:17:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.16 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.21 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 83 18.10.2024 14:17 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2458 ФПД: 159362957315864 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141723&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2458&fm=159362957315864&tin=02508201610067®Number=0000000000207295&sum=100000 [14:17:20]StoreToDocumentArchive [14:17:20]shift 22 fd 2458 [14:17:20]save to /storage/0022/doc_00002458 [14:17:20]save last doc name /storage/0022/doc_00002458 to /storage/kkm_last_doc_name [14:17:20]save OK [14:17:20]Clear old archive folders... [14:17:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:20]tlvbuf is 0137E150 [14:17:20]SAM_PROTO_ClearQueue [14:17:20]wFMCommunicate request_size=4 [14:17:20]MH_SAM_APDU [14:17:20]CAPDU: 80 09 00 00 [14:17:20]Write to MH i2c: E2 08 00 8C 25 80 09 00 00 00 00 00 00 23 [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 8C 25 00 90 00 25 [14:17:20]RAPDU: 90 00 [14:17:20]wFMCommunicate OK [14:17:20]SAM_PROTO_ClearQueue done [14:17:20]KKMCreateOFDPacket [14:17:20]OFDProtocolAddRootSTLVToBuf [14:17:20]FM_MakeSignedData [14:17:20]FM_MakeSignedData [14:17:20]SAM_PROTO_SignData [14:17:20]wFMCommunicate request_size=4 [14:17:20]MH_SAM_APDU [14:17:20]CAPDU: 80 0D 01 02 [14:17:20]Write to MH i2c: E2 08 00 8D 25 80 0D 01 02 00 00 00 00 2B [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 8D 25 00 90 00 26 [14:17:20]RAPDU: 90 00 [14:17:20]wFMCommunicate OK [14:17:20]wFMCommunicate request_size=255 [14:17:20]MH_SAM_APDU [14:17: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 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F3 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9A 09 00 00 35 04 06 00 90 [14:17:20]Write to MH i2c: E2 02 01 8E 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F3 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9A 09 00 00 35 04 06 00 90 00 00 1E [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 8E 25 00 90 00 27 [14:17:20]RAPDU: 90 00 [14:17:20]wFMCommunicate OK [14:17:20]wFMCommunicate request_size=10 [14:17:20]MH_SAM_APDU [14:17:20]CAPDU: 80 0D 02 02 05 F0 94 76 0F 18 [14:17:20]Write to MH i2c: E2 0D 00 8F 25 80 0D 02 02 05 00 F0 94 76 0F 18 00 00 59 [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 03 00 8F 25 00 90 00 28 [14:17:20]RAPDU: 90 00 [14:17:20]wFMCommunicate OK [14:17:20]wFMCommunicate request_size=4 [14:17:20]MH_SAM_APDU [14:17:20]CAPDU: 80 0D 03 02 [14:17:20]Write to MH i2c: E2 08 00 90 25 80 0D 03 02 00 00 00 00 30 [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 0B 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 0B 00 90 25 00 9E 01 80 FA 64 35 14 93 90 00 8A [14:17:20]RAPDU: 9E 01 80 FA 64 35 14 93 90 00 [14:17:20]wFMCommunicate OK [14:17:20]SAM_PROTO_SignData done [14:17:20]FM_MakeSignedData done [14:17:20]CreateOFDProtocolMessage [14:17:20]wFMCommunicate request_size=4 [14:17:20]MH_SAM_APDU [14:17:20]CAPDU: 80 11 00 00 [14:17:20]Write to MH i2c: E2 08 00 91 25 80 11 00 00 00 00 00 00 30 [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:20]Read from MH i2c: E2 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 17 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: E2 17 00 91 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 78 [14:17:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:17:20]wFMCommunicate OK [14:17:20]CreateOFDProtocolMessage done [14:17:20]OFDSenderStorePacket 2458 [14:17:20]StoreOFDPacket docnum=2458 [14:17:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 AE 06 07 01 81 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F3 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9A 09 00 00 35 04 06 00 90 F0 94 76 0F 18 9E 01 80 FA 64 35 14 93 [14:17:20]CheckFolder [14:17:20]dirname=/storage/ofd_packets [14:17:20]CheckFolder done [14:17:20]ProducePacketName [14:17:20]name=ofd_packets/00002458 [14:17:20]NVStorageSaveData ofd_packets/00002458 [14:17:20]File name is /storage/ofd_packets/00002458 [14:17:20]Write 301 bytes [14:17:20]NVStorageSaveData done [14:17:20]OFDSenderStorePacket done [14:17:20]KKMCreateOFDPacket done [14:17:20]NVStorageSaveData kkm_last_timestamp [14:17:20]File name is /storage/kkm_last_timestamp [14:17:20]Write 4 bytes [14:17:20]NVStorageSaveData done [14:17:20]ExternCall_PrintAddStr [14:17:20]wPrintStart [14:17:20]Write to MH i2c: 01 00 00 92 25 B7 [14:17:20]Write i2c OK [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: 01 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: 01 07 00 [14:17:20]MH_I2C_Read... [14:17:20]Read from MH i2c: 01 07 00 92 25 00 00 00 00 00 FF 0F CC [14:17:20]RasterBufferAndPrint [14:17:20]line Счет N : (1)475446 [14:17:20]line ИÐÐ: 02508201610067 [14:17:20]line Контрольно-КаÑÑовый Чек [14:17:20]line ПРОДÐЖР[14:17:20]line ТРК (МРК, ГÐК) : 62 [14:17:20]line Товар: 2710124130 [14:17:20]line Ðи-92-К-5 [14:17:20]line 14.950 * 66.90 [14:17:20]line = 1000.16 [14:17:20]line ÐДС 12% ÐСП 1% [14:17:20]line > о реализуемом товаре [14:17:20]line ОКРУГЛЕÐИЕ: -0.16 [14:17:20]line ИТОГО: 1000.00 [14:17:20]line ВнеÑено: 1000.00 [14:17:20]line СДÐЧÐ: 0.00 [14:17:20]line ÐСП 1% : 8.85 [14:17:20]line ÐДС 12% : 106.21 [14:17:20]line Ðаличными: 1000.00 [14:17:20]line Безнал.: 0.00 [14:17:20]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:17:20]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:17:20]line СÐО: Общий режим [14:17:20]line Чек 83 18.10.2024 14:17 [14:17:20]line Смена: 22 ФФД: 1.0 [14:17:20]line ЗÐМ: 0300000191 [14:17:20]line РÐМ: 0000000000207295 [14:17:20]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:17:20]line ФМ: 0000000002342820 [14:17:20]line ФД: 2458 [14:17:20]line ФПД: 159362957315864 [14:17:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141723&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2458&fm=159362957315864&tin=02508201610067®Number=0000000000207295&sum=100000 [14:17:20]written 0, free lines is 4095 [14:17:21]Write to MH i2c: 01 00 00 BD 25 E2 [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: 01 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: 01 07 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: 01 07 00 BD 25 00 00 00 00 00 98 0C 8D [14:17:21]RasterBufferAndPrint [14:17:21]line [14:17:21]line [14:17:21]line [14:17:21]line [14:17:21]line [14:17:21]written 0, free lines is 3227 [14:17:21]MH_Cut [14:17:21]Write to MH i2c: D1 01 00 C4 25 01 BB [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: D1 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: D1 01 00 [14:17:21]MH_I2C_Read... [14:17:21]Read from MH i2c: D1 01 00 C4 25 00 BA [14:17:21]Write to MH i2c: 01 00 00 C5 25 EA [14:17:21]Write i2c OK [14:17:21]MH_I2C_Read... [14:17:22]*** Cut start [14:17:22]*** Partial cut [14:17:22]*** CUTSNS_PIN = 1 [14:17:22]*** CUTSNS_PIN = 0 [14:17:22]*** Brake cut motor [14:17:22]Read from MH i2c: 01 [14:17:22]MH_I2C_Read... [14:17:22]*** Stop cut motor [14:17:22]*** Cut end [14:17:22]Read from MH i2c: 01 07 00 [14:17:22]MH_I2C_Read... [14:17:22]Read from MH i2c: 01 07 00 C5 25 00 00 00 00 00 FF 0F FF [14:17:22]process_action close_receipt done [14:17:22]requested_data is exist [14:17:22]produce_requested_data [14:17:22]requested_item fm.sn is exist - process it [14:17:22]wFMCommunicate request_size=4 [14:17:22]MH_SAM_APDU [14:17:22]CAPDU: 80 11 00 00 [14:17:22]Write to MH i2c: E2 08 00 C6 25 80 11 00 00 00 00 00 00 65 [14:17:22]Write i2c OK [14:17:22]MH_I2C_Read... [14:17:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:23]Read from MH i2c: E2 [14:17:23]MH_I2C_Read... [14:17:23]Read from MH i2c: E2 17 00 [14:17:23]MH_I2C_Read... [14:17:23]Read from MH i2c: E2 17 00 C6 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 AD [14:17:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:17:23]wFMCommunicate OK [14:17:23]requested_item fd.num is exist - process it [14:17:23]SAM_PROTO_GetFieldsCounters [14:17:23]wFMCommunicate request_size=4 [14:17:23]MH_SAM_APDU [14:17:23]CAPDU: 80 13 00 00 [14:17:23]Write to MH i2c: E2 08 00 C7 25 80 13 00 00 00 00 00 00 68 [14:17:23]Write i2c OK [14:17:23]MH_I2C_Read... [14:17:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:23]Read from MH i2c: E2 [14:17:23]MH_I2C_Read... [14:17:23]Read from MH i2c: E2 62 00 [14:17:23]MH_I2C_Read... [14:17:23]Read from MH i2c: E2 62 00 C7 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9A 09 00 00 0E 04 04 00 16 00 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 30 [14:17:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9A 09 00 00 0E 04 04 00 16 00 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 [14:17:23]wFMCommunicate OK [14:17:23]SAM_PROTO_GetFieldsCounters done [14:17:23]requested_item shift.num is exist - process it [14:17:23]requested_item shift.opened is exist - process it [14:17:23]req_shift_opened [14:17:23]FM_GetShiftState [14:17:23]SAM_PROTO_GetShiftState [14:17:23]wFMCommunicate request_size=4 [14:17:23]MH_SAM_APDU [14:17:23]CAPDU: 80 13 01 00 [14:17:23]Write to MH i2c: E2 08 00 C8 25 80 13 01 00 00 00 00 00 6A [14:17:23]Write i2c OK [14:17:23]MH_I2C_Read... [14:17:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:23]Read from MH i2c: E2 [14:17:23]MH_I2C_Read... [14:17:23]Read from MH i2c: E2 0E 00 [14:17:23]MH_I2C_Read... [14:17:23]Read from MH i2c: E2 0E 00 C8 25 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 08 [14:17:23]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:17:23]wFMCommunicate OK [14:17:23]SAM_PROTO_GetShiftState done [14:17:23]FM_GetShiftState done [14:17:23]req_shift_opened done [14:17:23]requested_item shift.open_date is exist - process it [14:17:23]req_shift_open_date [14:17:23]req_shift_open_date done [14:17:23]produce_requested_data done [14:17:23]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2458,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:17:23]process_action_free close_receipt [14:17:23]json_value_free [14:17:23]json_value_free done [14:17:23]process_json_proto returns [14:17:23]Send response to host [14:17:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2458,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:17:23]free response buf [14:17:23]execute_script done [14:17:23]execute_script returns [14:17:23]free content buf [14:17:23]Sock 9.Close socket [14:17:23]Sock 9.Thread stoped [14:17:42]accept exits with 7 [14:17:42]New connection [14:17:42]New thread 3066707300 created [14:17:42]Thread 3066850660 joined [14:17:42]Waiting for new connection... [14:17:42] Sock 7.Parse request [14:17:42]Sock 7.Check first char [14:17:42]Sock 7.First char is OK [14:17:42]request: POST /json_proto HTTP/1.0 [14:17:42]Method: POST [14:17:42]URL: /json_proto [14:17:42]Method is POST - this is cgi request [14:17:42]url: /json_proto [14:17:42]query_string will be loaded in cgi processing [14:17:42]execute_cgi json_proto POST (null) [14:17:42]execute_cgi path=json_proto method=POST [14:17:42]POST find Content-Length [14:17:42]Host: 172.17.52.132:8080 [14:17:42]Content-Length: 678 [14:17:42]Content-Type: application/json [14:17:42] [14:17:42]POST finish read [14:17:42]Found Content-Length = 678 [14:17:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475447", "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" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [14:17:42]execute_script... [14: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)475447", "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" : 74.20, "quantity" : 10.790, "sum" : 800.62, "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" ] } } [14:17:42]POST & json_proto [14:17:42]process_json_proto [14:17:42]json parsed OK: [14:17:42]protocol is kg_v1.0 [14:17:42]action value=close_receipt [14:17:42]process_action close_receipt [14:17:42]cmd_close_receipt [14:17:42]MH_GetDate [14:17:42]Write to MH i2c: F0 00 00 C9 25 DD [14:17:42]Write i2c OK [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: F0 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: F0 09 00 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: F0 09 00 C9 25 00 0B 6E 12 67 5A BE F6 66 4C [14:17:42]GetLastDocTimeStamp 1729261043 [14:17:42]current date 1729261067 [14:17:42]FM_GetShiftState [14:17:42]SAM_PROTO_GetShiftState [14:17:42]wFMCommunicate request_size=4 [14:17:42]MH_SAM_APDU [14:17:42]CAPDU: 80 13 01 00 [14:17:42]Write to MH i2c: E2 08 00 CA 25 80 13 01 00 00 00 00 00 6C [14:17:42]Write i2c OK [14:17:42]MH_I2C_Read... [14:17:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:42]Read from MH i2c: E2 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: E2 0E 00 [14:17:42]MH_I2C_Read... [14:17:42]Read from MH i2c: E2 0E 00 CA 25 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 0A [14:17:42]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:17:42]wFMCommunicate OK [14:17:42]SAM_PROTO_GetShiftState done [14:17:42]FM_GetShiftState done [14:17:42]opened in 1729209717 [14:17:42]opened+sec_in_day 1729296117 [14:17:42]quantity*price = 80061 [14:17:42]sum+1 = 80063 [14:17:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.62 ИТОГО: 800.00 ВнеÑено: 800.00 СДÐЧÐ: 0.00 ÐСП 1% : 7.08 ÐДС 12% : 85.02 Ðаличными: 800.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 84 18.10.2024 14:17 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2459 ФПД: 118306576872168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141747&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2459&fm=118306576872168&tin=02508201610067®Number=0000000000207295&sum=80000 [14:17:43]StoreToDocumentArchive [14:17:43]shift 22 fd 2459 [14:17:43]save to /storage/0022/doc_00002459 [14:17:43]save last doc name /storage/0022/doc_00002459 to /storage/kkm_last_doc_name [14:17:43]save OK [14:17:43]Clear old archive folders... [14:17:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:17:43]tlvbuf is B6D8F600 [14:17:43]SAM_PROTO_ClearQueue [14:17:43]wFMCommunicate request_size=4 [14:17:43]MH_SAM_APDU [14:17:43]CAPDU: 80 09 00 00 [14:17:43]Write to MH i2c: E2 08 00 D7 25 80 09 00 00 00 00 00 00 6E [14:17:43]Write i2c OK [14:17:43]MH_I2C_Read... [14:17:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:17:43]Read from MH i2c: E2 [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: E2 03 00 [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: E2 03 00 D7 25 00 90 00 70 [14:17:43]RAPDU: 90 00 [14:17:43]wFMCommunicate OK [14:17:43]SAM_PROTO_ClearQueue done [14:17:43]KKMCreateOFDPacket [14:17:43]OFDProtocolAddRootSTLVToBuf [14:17:43]FM_MakeSignedData [14:17:43]FM_MakeSignedData [14:17:43]SAM_PROTO_SignData [14:17:43]wFMCommunicate request_size=4 [14:17:43]MH_SAM_APDU [14:17:43]CAPDU: 80 0D 01 02 [14:17:43]Write to MH i2c: E2 08 00 D8 25 80 0D 01 02 00 00 00 00 76 [14:17:43]Write i2c OK [14:17:43]MH_I2C_Read... [14:17:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:17:43]Read from MH i2c: E2 [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: E2 03 00 [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: E2 03 00 D8 25 00 90 00 71 [14:17:43]RAPDU: 90 00 [14:17:43]wFMCommunicate OK [14:17:43]wFMCommunicate request_size=255 [14:17:43]MH_SAM_APDU [14: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 54 00 00 00 F4 03 04 00 0B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9B 09 00 00 35 04 06 00 6B [14:17:43]Write to MH i2c: E2 02 01 D9 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 54 00 00 00 F4 03 04 00 0B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9B 09 00 00 35 04 06 00 6B 00 00 D2 [14:17:43]Write i2c OK [14:17:43]MH_I2C_Read... [14:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:43]Read from MH i2c: E2 [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: E2 03 00 [14:17:43]MH_I2C_Read... [14:17:43]Read from MH i2c: E2 03 00 D9 25 00 90 00 72 [14:17:43]RAPDU: 90 00 [14:17:43]wFMCommunicate OK [14:17:43]wFMCommunicate request_size=10 [14:17:43]MH_SAM_APDU [14:17:43]CAPDU: 80 0D 02 02 05 99 65 7D 32 E8 [14:17:43]Write to MH i2c: E2 0D 00 DA 25 80 0D 02 02 05 00 99 65 7D 32 E8 00 00 18 [14:17:43]Write i2c OK [14:17:43]MH_I2C_Read... [14:17:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:17:44]Read from MH i2c: E2 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: E2 03 00 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: E2 03 00 DA 25 00 90 00 73 [14:17:44]RAPDU: 90 00 [14:17:44]wFMCommunicate OK [14:17:44]wFMCommunicate request_size=4 [14:17:44]MH_SAM_APDU [14:17:44]CAPDU: 80 0D 03 02 [14:17:44]Write to MH i2c: E2 08 00 DB 25 80 0D 03 02 00 00 00 00 7B [14:17:44]Write i2c OK [14:17:44]MH_I2C_Read... [14:17:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:17:44]Read from MH i2c: E2 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: E2 0B 00 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: E2 0B 00 DB 25 00 3C 34 3C 8E 21 9C F5 2D 90 00 95 [14:17:44]RAPDU: 3C 34 3C 8E 21 9C F5 2D 90 00 [14:17:44]wFMCommunicate OK [14:17:44]SAM_PROTO_SignData done [14:17:44]FM_MakeSignedData done [14:17:44]CreateOFDProtocolMessage [14:17:44]wFMCommunicate request_size=4 [14:17:44]MH_SAM_APDU [14:17:44]CAPDU: 80 11 00 00 [14:17:44]Write to MH i2c: E2 08 00 DC 25 80 11 00 00 00 00 00 00 7B [14:17:44]Write i2c OK [14:17:44]MH_I2C_Read... [14:17:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:44]Read from MH i2c: E2 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: E2 17 00 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: E2 17 00 DC 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C3 [14:17:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:17:44]wFMCommunicate OK [14:17:44]CreateOFDProtocolMessage done [14:17:44]OFDSenderStorePacket 2459 [14:17:44]StoreOFDPacket docnum=2459 [14:17:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 05 E0 07 01 E4 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 54 00 00 00 F4 03 04 00 0B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9B 09 00 00 35 04 06 00 6B 99 65 7D 32 E8 3C 34 3C 8E 21 9C F5 2D [14:17:44]CheckFolder [14:17:44]dirname=/storage/ofd_packets [14:17:44]CheckFolder done [14:17:44]ProducePacketName [14:17:44]name=ofd_packets/00002459 [14:17:44]NVStorageSaveData ofd_packets/00002459 [14:17:44]File name is /storage/ofd_packets/00002459 [14:17:44]Write 301 bytes [14:17:44]NVStorageSaveData done [14:17:44]OFDSenderStorePacket done [14:17:44]KKMCreateOFDPacket done [14:17:44]NVStorageSaveData kkm_last_timestamp [14:17:44]File name is /storage/kkm_last_timestamp [14:17:44]Write 4 bytes [14:17:44]NVStorageSaveData done [14:17:44]ExternCall_PrintAddStr [14:17:44]wPrintStart [14:17:44]Write to MH i2c: 01 00 00 DD 25 02 [14:17:44]Write i2c OK [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: 01 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: 01 07 00 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: 01 07 00 DD 25 00 00 00 00 00 FF 0F 17 [14:17:44]RasterBufferAndPrint [14:17:44]line Счет N : (1)475447 [14:17:44]line ИÐÐ: 02508201610067 [14:17:44]line Контрольно-КаÑÑовый Чек [14:17:44]line ПРОДÐЖР[14:17:44]line ТРК (МРК, ГÐК) : 41 [14:17:44]line Товар: 2710124500 [14:17:44]line Ðи-95-К-5 [14:17:44]line 10.790 * 74.20 [14:17:44]line = 800.62 [14:17:44]line ÐДС 12% ÐСП 1% [14:17:44]line > о реализуемом товаре [14:17:44]line ОКРУГЛЕÐИЕ: -0.62 [14:17:44]line ИТОГО: 800.00 [14:17:44]line ВнеÑено: 800.00 [14:17:44]line СДÐЧÐ: 0.00 [14:17:44]line ÐСП 1% : 7.08 [14:17:44]line ÐДС 12% : 85.02 [14:17:44]line Ðаличными: 800.00 [14:17:44]line Безнал.: 0.00 [14:17:44]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:17:44]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:17:44]line СÐО: Общий режим [14:17:44]line Чек 84 18.10.2024 14:17 [14:17:44]line Смена: 22 ФФД: 1.0 [14:17:44]line ЗÐМ: 0300000191 [14:17:44]line РÐМ: 0000000000207295 [14:17:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:17:44]line ФМ: 0000000002342820 [14:17:44]line ФД: 2459 [14:17:44]line ФПД: 118306576872168 [14:17:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141747&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2459&fm=118306576872168&tin=02508201610067®Number=0000000000207295&sum=80000 [14:17:44]written 0, free lines is 4095 [14:17:44]Write to MH i2c: 01 00 00 08 26 2E [14:17:44]Write i2c OK [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: 01 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: 01 07 00 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: 01 07 00 08 26 00 00 00 00 00 9B 0C DC [14:17:44]RasterBufferAndPrint [14:17:44]line [14:17:44]line [14:17:44]line [14:17:44]line [14:17:44]line [14:17:44]written 0, free lines is 3233 [14:17:44]MH_Cut [14:17:44]Write to MH i2c: D1 01 00 0F 26 01 07 [14:17:44]Write i2c OK [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: D1 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: D1 01 00 [14:17:44]MH_I2C_Read... [14:17:44]Read from MH i2c: D1 01 00 0F 26 00 06 [14:17:44]Write to MH i2c: 01 00 00 10 26 36 [14:17:44]Write i2c OK [14:17:44]MH_I2C_Read... [14:17:45]*** Cut start [14:17:45]*** Partial cut [14:17:45]*** CUTSNS_PIN = 1 [14:17:45]*** CUTSNS_PIN = 0 [14:17:46]*** Brake cut motor [14:17:46]Read from MH i2c: 01 [14:17:46]MH_I2C_Read... [14:17:46]*** Stop cut motor [14:17:46]*** Cut end [14:17:46]Read from MH i2c: 01 07 00 [14:17:46]MH_I2C_Read... [14:17:46]Read from MH i2c: 01 07 00 10 26 00 00 00 00 00 FF 0F 4B [14:17:46]process_action close_receipt done [14:17:46]requested_data is exist [14:17:46]produce_requested_data [14:17:46]requested_item fm.sn is exist - process it [14:17:46]wFMCommunicate request_size=4 [14:17:46]MH_SAM_APDU [14:17:46]CAPDU: 80 11 00 00 [14:17:46]Write to MH i2c: E2 08 00 11 26 80 11 00 00 00 00 00 00 B1 [14:17:46]Write i2c OK [14:17:46]MH_I2C_Read... [14:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:17:46]Read from MH i2c: E2 [14:17:46]MH_I2C_Read... [14:17:46]Read from MH i2c: E2 17 00 [14:17:46]MH_I2C_Read... [14:17:46]Read from MH i2c: E2 17 00 11 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F9 [14:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:17:46]wFMCommunicate OK [14:17:46]requested_item fd.num is exist - process it [14:17:46]SAM_PROTO_GetFieldsCounters [14:17:46]wFMCommunicate request_size=4 [14:17:46]MH_SAM_APDU [14:17:46]CAPDU: 80 13 00 00 [14:17:46]Write to MH i2c: E2 08 00 12 26 80 13 00 00 00 00 00 00 B4 [14:17:46]Write i2c OK [14:17:46]MH_I2C_Read... [14:17:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:17:46]Read from MH i2c: E2 [14:17:46]MH_I2C_Read... [14:17:46]Read from MH i2c: E2 62 00 [14:17:46]MH_I2C_Read... [14:17:46]Read from MH i2c: E2 62 00 12 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9B 09 00 00 0E 04 04 00 16 00 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 80 [14:17:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9B 09 00 00 0E 04 04 00 16 00 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 [14:17:46]wFMCommunicate OK [14:17:46]SAM_PROTO_GetFieldsCounters done [14:17:46]requested_item shift.num is exist - process it [14:17:46]requested_item shift.opened is exist - process it [14:17:46]req_shift_opened [14:17:46]FM_GetShiftState [14:17:46]SAM_PROTO_GetShiftState [14:17:46]wFMCommunicate request_size=4 [14:17:46]MH_SAM_APDU [14:17:46]CAPDU: 80 13 01 00 [14:17:46]Write to MH i2c: E2 08 00 13 26 80 13 01 00 00 00 00 00 B6 [14:17:46]Write i2c OK [14:17:46]MH_I2C_Read... [14:17:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:17:46]Read from MH i2c: E2 [14:17:46]MH_I2C_Read... [14:17:46]Read from MH i2c: E2 0E 00 [14:17:46]MH_I2C_Read... [14:17:46]Read from MH i2c: E2 0E 00 13 26 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 54 [14:17:46]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:17:46]wFMCommunicate OK [14:17:46]SAM_PROTO_GetShiftState done [14:17:46]FM_GetShiftState done [14:17:46]req_shift_opened done [14:17:46]requested_item shift.open_date is exist - process it [14:17:46]req_shift_open_date [14:17:46]req_shift_open_date done [14:17:46]produce_requested_data done [14:17:46]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2459,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:17:46]process_action_free close_receipt [14:17:46]json_value_free [14:17:46]json_value_free done [14:17:46]process_json_proto returns [14:17:46]Send response to host [14:17:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2459,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:17:46]free response buf [14:17:46]execute_script done [14:17:46]execute_script returns [14:17:46]free content buf [14:17:46]Sock 7.Close socket [14:17:46]Sock 7.Thread stoped [14:18:01]ConnectInit Can't connect to host [14:18:01]CommunicateWithHost connect error [14:18:01]CommunicateWithHost err = -1 [14:18:01]OFD Sender: Server communicate error [14:18:02]OFD Sender: Processing packet 2456 [packets to send 4, broken 0] [14:18:02]ProducePacketName [14:18:02]name=ofd_packets/00002456 [14:18:02]OFD Sender: To server: ‡•öpG, [14:18:02]CommunicateWithHost lk.salyk.kg:30040 [14:18:02]ConnectInit lk.salyk.kg [14:18:02]Connected sock=7 [14:18:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 B2 08 07 01 00 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 97 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 98 09 00 00 35 04 06 00 DB E2 B7 C5 A2 E5 C1 D4 80 C7 32 84 86 81 [14:18:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B9 BB 47 00 D5 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 32 33 34 32 38 32 30 10 04 04 00 98 09 00 00 F4 03 04 00 80 19 12 67 B6 04 01 00 00 5B C1 0F 11 2F 86 73 2B [14:18:02]CommunicateWithHost err = 0 [14:18:02]CheckOFDResponse [14:18:02]1017 (14) - 77093643461234 [14:18:02]1041 (16) - 0000000002342820 [14:18:02]1040 (4) - 2456 [14:18:02]1012 (4) - 18.10.2024 08:17 [14:18:02]1206 (1) - 0 [14:18:02]OFD Sender: Remove packet 2456 [14:18:02]ProducePacketName [14:18:02]name=ofd_packets/00002456 [14:18:02]NVStorageDeleteData [14:18:02]OFD Sender: Processing packet 2457 [packets to send 3, broken 0] [14:18:02]ProducePacketName [14:18:02]name=ofd_packets/00002457 [14:18:02]OFD Sender: To server: ‡•öpG, [14:18:02]CommunicateWithHost lk.salyk.kg:30040 [14:18:02]ConnectInit lk.salyk.kg [14:18:02]Connected sock=7 [14:18:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3C 01 00 00 AE E8 34 01 73 C8 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 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 52 00 00 00 F4 03 04 00 D3 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 99 09 00 00 35 04 06 00 CB CC 42 15 74 DA 44 A3 95 A0 5F 13 D7 FC [14:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 10 AA 47 00 7C AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 99 09 00 00 F4 03 04 00 81 19 12 67 B6 04 01 00 00 4A 43 0E 0F E2 88 29 4A [14:18:03]CommunicateWithHost err = 0 [14:18:03]CheckOFDResponse [14:18:03]1017 (14) - 77093643461234 [14:18:03]1041 (16) - 0000000002342820 [14:18:03]1040 (4) - 2457 [14:18:03]1012 (4) - 18.10.2024 08:17 [14:18:03]1206 (1) - 0 [14:18:03]OFD Sender: Remove packet 2457 [14:18:03]ProducePacketName [14:18:03]name=ofd_packets/00002457 [14:18:03]NVStorageDeleteData [14:18:03]OFD Sender: Processing packet 2458 [packets to send 2, broken 0] [14:18:03]ProducePacketName [14:18:03]name=ofd_packets/00002458 [14:18:03]OFD Sender: To server: ‡•öpG, [14:18:03]CommunicateWithHost lk.salyk.kg:30040 [14:18:03]ConnectInit lk.salyk.kg [14:18:03]Connected sock=7 [14:18:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 AE 06 07 01 81 D9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 F3 6D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9A 09 00 00 35 04 06 00 90 F0 94 76 0F 18 9E 01 80 FA 64 35 14 93 [14:18:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B2 07 47 00 38 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9A 09 00 00 F4 03 04 00 81 19 12 67 B6 04 01 00 00 C9 57 5E 3C D0 4C A1 77 [14:18:03]CommunicateWithHost err = 0 [14:18:03]CheckOFDResponse [14:18:03]1017 (14) - 77093643461234 [14:18:03]1041 (16) - 0000000002342820 [14:18:03]1040 (4) - 2458 [14:18:03]1012 (4) - 18.10.2024 08:17 [14:18:03]1206 (1) - 0 [14:18:03]OFD Sender: Remove packet 2458 [14:18:03]ProducePacketName [14:18:03]name=ofd_packets/00002458 [14:18:03]NVStorageDeleteData [14:18:04]OFD Sender: Processing packet 2459 [packets to send 1, broken 0] [14:18:04]ProducePacketName [14:18:04]name=ofd_packets/00002459 [14:18:04]OFD Sender: To server: ‡•öpG, [14:18:04]CommunicateWithHost lk.salyk.kg:30040 [14:18:04]ConnectInit lk.salyk.kg [14:18:04]Connected sock=7 [14:18:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 05 E0 07 01 E4 1B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 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 36 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 54 00 00 00 F4 03 04 00 0B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9B 09 00 00 35 04 06 00 6B 99 65 7D 32 E8 3C 34 3C 8E 21 9C F5 2D [14:18:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CF 85 47 00 41 D3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9B 09 00 00 F4 03 04 00 82 19 12 67 B6 04 01 00 00 AD 7D 2D EE 6F A4 2F B8 [14:18:04]CommunicateWithHost err = 0 [14:18:04]CheckOFDResponse [14:18:04]1017 (14) - 77093643461234 [14:18:04]1041 (16) - 0000000002342820 [14:18:04]1040 (4) - 2459 [14:18:04]1012 (4) - 18.10.2024 08:17 [14:18:04]1206 (1) - 0 [14:18:04]OFD Sender: Remove packet 2459 [14:18:04]ProducePacketName [14:18:04]name=ofd_packets/00002459 [14:18:04]NVStorageDeleteData [14:18:05]OFD Sender: No OFD packet to send [14:18:05]accept exits with 9 [14:18:05]New connection [14:18:05]New thread 3066850660 created [14:18:05]Thread 3066707300 joined [14:18:05]Waiting for new connection... [14:18:05] Sock 9.Parse request [14:18:05]Sock 9.Check first char [14:18:05]Sock 9.First char is OK [14:18:05]request: POST /json_proto HTTP/1.0 [14:18:05]Method: POST [14:18:05]URL: /json_proto [14:18:05]Method is POST - this is cgi request [14:18:05]url: /json_proto [14:18:05]query_string will be loaded in cgi processing [14:18:05]execute_cgi json_proto POST (null) [14:18:05]execute_cgi path=json_proto method=POST [14:18:05]POST find Content-Length [14:18:05]Host: 172.17.52.132:8080 [14:18:05]Content-Length: 819 [14:18:05]Content-Type: application/json [14:18:05] [14:18:05]POST finish read [14:18:05]Found Content-Length = 819 [14:18:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475448", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.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" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:05]execute_script... [14:18: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)475448", "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" : 74.20, "quantity" : 13.480, "sum" : 1000.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" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:05]POST & json_proto [14:18:05]process_json_proto [14:18:05]json parsed OK: [14:18:05]protocol is kg_v1.0 [14:18:05]action value=close_receipt [14:18:05]process_action close_receipt [14:18:05]cmd_close_receipt [14:18:05]MH_GetDate [14:18:05]Write to MH i2c: F0 00 00 14 26 29 [14:18:05]Write i2c OK [14:18:05]MH_I2C_Read... [14:18:05]Read from MH i2c: F0 [14:18:05]MH_I2C_Read... [14:18:05]Read from MH i2c: F0 09 00 [14:18:05]MH_I2C_Read... [14:18:05]Read from MH i2c: F0 09 00 14 26 00 22 6E 12 67 5A BE F6 66 AF [14:18:05]GetLastDocTimeStamp 1729261067 [14:18:05]current date 1729261090 [14:18:05]FM_GetShiftState [14:18:05]SAM_PROTO_GetShiftState [14:18:05]wFMCommunicate request_size=4 [14:18:05]MH_SAM_APDU [14:18:05]CAPDU: 80 13 01 00 [14:18:05]Write to MH i2c: E2 08 00 15 26 80 13 01 00 00 00 00 00 B8 [14:18:05]Write i2c OK [14:18:05]MH_I2C_Read... [14:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:05]Read from MH i2c: E2 [14:18:05]MH_I2C_Read... [14:18:05]Read from MH i2c: E2 0E 00 [14:18:05]MH_I2C_Read... [14:18:05]Read from MH i2c: E2 0E 00 15 26 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 56 [14:18:05]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:18:05]wFMCommunicate OK [14:18:05]SAM_PROTO_GetShiftState done [14:18:05]FM_GetShiftState done [14:18:05]opened in 1729209717 [14:18:05]opened+sec_in_day 1729296117 [14:18:05]quantity*price = 100021 [14:18:05]sum+1 = 100023 [14:18:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 ÐСП 1% : 8.85 ÐДС 12% : 106.22 Ðаличными: 0.00 Безнал.: 1000.22 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 85 18.10.2024 14:18 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000002342820 ФД: 2460 ФПД: 158617763654646 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141810&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2460&fm=158617763654646&tin=02508201610067®Number=0000000000207295&sum=100022 [14:18:07]StoreToDocumentArchive [14:18:07]shift 22 fd 2460 [14:18:07]save to /storage/0022/doc_00002460 [14:18:07]save last doc name /storage/0022/doc_00002460 to /storage/kkm_last_doc_name [14:18:07]save OK [14:18:07]Clear old archive folders... [14:18:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:07]tlvbuf is 01341A30 [14:18:07]SAM_PROTO_ClearQueue [14:18:07]wFMCommunicate request_size=4 [14:18:07]MH_SAM_APDU [14:18:07]CAPDU: 80 09 00 00 [14:18:07]Write to MH i2c: E2 08 00 22 26 80 09 00 00 00 00 00 00 BA [14:18:07]Write i2c OK [14:18:07]MH_I2C_Read... [14:18:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:07]Read from MH i2c: E2 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 03 00 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 03 00 22 26 00 90 00 BC [14:18:07]RAPDU: 90 00 [14:18:07]wFMCommunicate OK [14:18:07]SAM_PROTO_ClearQueue done [14:18:07]KKMCreateOFDPacket [14:18:07]OFDProtocolAddRootSTLVToBuf [14:18:07]FM_MakeSignedData [14:18:07]FM_MakeSignedData [14:18:07]SAM_PROTO_SignData [14:18:07]wFMCommunicate request_size=4 [14:18:07]MH_SAM_APDU [14:18:07]CAPDU: 80 0D 01 02 [14:18:07]Write to MH i2c: E2 08 00 23 26 80 0D 01 02 00 00 00 00 C2 [14:18:07]Write i2c OK [14:18:07]MH_I2C_Read... [14:18:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:07]Read from MH i2c: E2 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 03 00 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 03 00 23 26 00 90 00 BD [14:18:07]RAPDU: 90 00 [14:18:07]wFMCommunicate OK [14:18:07]wFMCommunicate request_size=255 [14:18:07]MH_SAM_APDU [14:18: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 22 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9C 09 00 00 35 04 06 00 90 [14:18:07]Write to MH i2c: E2 02 01 24 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 22 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9C 09 00 00 35 04 06 00 90 00 00 38 [14:18:07]Write i2c OK [14:18:07]MH_I2C_Read... [14:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:07]Read from MH i2c: E2 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 03 00 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 03 00 24 26 00 90 00 BE [14:18:07]RAPDU: 90 00 [14:18:07]wFMCommunicate OK [14:18:07]wFMCommunicate request_size=10 [14:18:07]MH_SAM_APDU [14:18:07]CAPDU: 80 0D 02 02 05 43 13 75 2B F6 [14:18:07]Write to MH i2c: E2 0D 00 25 26 80 0D 02 02 05 00 43 13 75 2B F6 00 00 BB [14:18:07]Write i2c OK [14:18:07]MH_I2C_Read... [14:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:07]Read from MH i2c: E2 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 03 00 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 03 00 25 26 00 90 00 BF [14:18:07]RAPDU: 90 00 [14:18:07]wFMCommunicate OK [14:18:07]wFMCommunicate request_size=4 [14:18:07]MH_SAM_APDU [14:18:07]CAPDU: 80 0D 03 02 [14:18:07]Write to MH i2c: E2 08 00 26 26 80 0D 03 02 00 00 00 00 C7 [14:18:07]Write i2c OK [14:18:07]MH_I2C_Read... [14:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:07]Read from MH i2c: E2 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 0B 00 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 0B 00 26 26 00 CC 22 B5 D6 78 04 13 BC 90 00 8C [14:18:07]RAPDU: CC 22 B5 D6 78 04 13 BC 90 00 [14:18:07]wFMCommunicate OK [14:18:07]SAM_PROTO_SignData done [14:18:07]FM_MakeSignedData done [14:18:07]CreateOFDProtocolMessage [14:18:07]wFMCommunicate request_size=4 [14:18:07]MH_SAM_APDU [14:18:07]CAPDU: 80 11 00 00 [14:18:07]Write to MH i2c: E2 08 00 27 26 80 11 00 00 00 00 00 00 C7 [14:18:07]Write i2c OK [14:18:07]MH_I2C_Read... [14:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:07]Read from MH i2c: E2 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 17 00 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: E2 17 00 27 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 0F [14:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:18:07]wFMCommunicate OK [14:18:07]CreateOFDProtocolMessage done [14:18:07]OFDSenderStorePacket 2460 [14:18:07]StoreOFDPacket docnum=2460 [14:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 3B 78 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 22 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9C 09 00 00 35 04 06 00 90 43 13 75 2B F6 CC 22 B5 D6 78 04 13 BC [14:18:07]CheckFolder [14:18:07]dirname=/storage/ofd_packets [14:18:07]CheckFolder done [14:18:07]ProducePacketName [14:18:07]name=ofd_packets/00002460 [14:18:07]NVStorageSaveData ofd_packets/00002460 [14:18:07]File name is /storage/ofd_packets/00002460 [14:18:07]Write 301 bytes [14:18:07]NVStorageSaveData done [14:18:07]OFDSenderStorePacket done [14:18:07]KKMCreateOFDPacket done [14:18:07]NVStorageSaveData kkm_last_timestamp [14:18:07]File name is /storage/kkm_last_timestamp [14:18:07]Write 4 bytes [14:18:07]NVStorageSaveData done [14:18:07]ExternCall_PrintAddStr [14:18:07]wPrintStart [14:18:07]Write to MH i2c: 01 00 00 28 26 4E [14:18:07]Write i2c OK [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: 01 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: 01 07 00 [14:18:07]MH_I2C_Read... [14:18:07]Read from MH i2c: 01 07 00 28 26 00 00 00 00 00 FF 0F 63 [14:18:07]RasterBufferAndPrint [14:18:07]line Счет N : (1)475448 [14:18:07]line ИÐÐ: 02508201610067 [14:18:07]line Контрольно-КаÑÑовый Чек [14:18:07]line ПРОДÐЖР[14:18:07]line ТРК (МРК, ГÐК) : 21 [14:18:07]line Товар: 2710124500 [14:18:07]line Ðи-95-К-5 [14:18:07]line 13.480 * 74.20 [14:18:07]line = 1000.22 [14:18:07]line ÐДС 12% ÐСП 1% [14:18:07]line > о реализуемом товаре [14:18:07]line ИТОГО: 1000.22 [14:18:07]line ÐСП 1% : 8.85 [14:18:07]line ÐДС 12% : 106.22 [14:18:07]line Ðаличными: 0.00 [14:18:07]line Безнал.: 1000.22 [14:18:07]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:18:07]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:18:07]line СÐО: Общий режим [14:18:07]line Чек 85 18.10.2024 14:18 [14:18:07]line Смена: 22 ФФД: 1.0 [14:18:07]line ЗÐМ: 0300000191 [14:18:07]line РÐМ: 0000000000207295 [14:18:07]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:18:07]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [14:18:07]line ФМ: 0000000002342820 [14:18:07]line ФД: 2460 [14:18:07]line ФПД: 158617763654646 [14:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141810&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2460&fm=158617763654646&tin=02508201610067®Number=0000000000207295&sum=100022 [14:18:07]written 0, free lines is 4095 [14:18:07]OFD Sender: Processing packet 2460 [packets to send 1, broken 0] [14:18:07]ProducePacketName [14:18:07]name=ofd_packets/00002460 [14:18:07]OFD Sender: To server: ‡•öpG, [14:18:07]CommunicateWithHost lk.salyk.kg:30040 [14:18:07]ConnectInit lk.salyk.kg [14:18:07]Connected sock=10 [14:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 3B 78 07 01 E4 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 22 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9C 09 00 00 35 04 06 00 90 43 13 75 2B F6 CC 22 B5 D6 78 04 13 BC [14:18:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 56 89 47 00 DA 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9C 09 00 00 F4 03 04 00 85 19 12 67 B6 04 01 00 00 6B F9 95 7E 1A 8E 95 92 [14:18:08]CommunicateWithHost err = 0 [14:18:08]CheckOFDResponse [14:18:08]1017 (14) - 77093643461234 [14:18:08]1041 (16) - 0000000002342820 [14:18:08]1040 (4) - 2460 [14:18:08]1012 (4) - 18.10.2024 08:17 [14:18:08]1206 (1) - 0 [14:18:08]OFD Sender: Remove packet 2460 [14:18:08]ProducePacketName [14:18:08]name=ofd_packets/00002460 [14:18:08]NVStorageDeleteData [14:18:08]Write to MH i2c: 01 00 00 52 26 78 [14:18:08]Write i2c OK [14:18:08]MH_I2C_Read... [14:18:08]Read from MH i2c: 01 [14:18:08]MH_I2C_Read... [14:18:08]Read from MH i2c: 01 07 00 [14:18:08]MH_I2C_Read... [14:18:08]Read from MH i2c: 01 07 00 52 26 00 00 00 00 00 C7 0C 52 [14:18:08]RasterBufferAndPrint [14:18:08]line [14:18:08]line [14:18:08]line [14:18:08]line [14:18:08]line [14:18:08]written 0, free lines is 3276 [14:18:08]MH_Cut [14:18:08]Write to MH i2c: D1 01 00 59 26 01 51 [14:18:08]Write i2c OK [14:18:08]MH_I2C_Read... [14:18:08]Read from MH i2c: D1 [14:18:08]MH_I2C_Read... [14:18:08]Read from MH i2c: D1 01 00 [14:18:08]MH_I2C_Read... [14:18:08]Read from MH i2c: D1 01 00 59 26 00 50 [14:18:08]Write to MH i2c: 01 00 00 5A 26 80 [14:18:08]Write i2c OK [14:18:08]MH_I2C_Read... [14:18:08]OFD Sender: No OFD packet to send [14:18:09]*** Cut start [14:18:09]*** Partial cut [14:18:09]*** CUTSNS_PIN = 1 [14:18:09]*** CUTSNS_PIN = 0 [14:18:09]*** Brake cut motor [14:18:09]Read from MH i2c: 01 [14:18:09]MH_I2C_Read... [14:18:09]*** Stop cut motor [14:18:09]*** Cut end [14:18:09]Read from MH i2c: 01 07 00 [14:18:09]MH_I2C_Read... [14:18:09]Read from MH i2c: 01 07 00 5A 26 00 00 00 00 00 FF 0F 95 [14:18:09]process_action close_receipt done [14:18:09]requested_data is exist [14:18:09]produce_requested_data [14:18:09]requested_item fm.sn is exist - process it [14:18:09]wFMCommunicate request_size=4 [14:18:09]MH_SAM_APDU [14:18:09]CAPDU: 80 11 00 00 [14:18:09]Write to MH i2c: E2 08 00 5B 26 80 11 00 00 00 00 00 00 FB [14:18:09]Write i2c OK [14:18:09]MH_I2C_Read... [14:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:09]Read from MH i2c: E2 [14:18:09]MH_I2C_Read... [14:18:09]Read from MH i2c: E2 17 00 [14:18:09]MH_I2C_Read... [14:18:09]Read from MH i2c: E2 17 00 5B 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 43 [14:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:18:09]wFMCommunicate OK [14:18:09]requested_item fd.num is exist - process it [14:18:09]SAM_PROTO_GetFieldsCounters [14:18:09]wFMCommunicate request_size=4 [14:18:09]MH_SAM_APDU [14:18:09]CAPDU: 80 13 00 00 [14:18:09]Write to MH i2c: E2 08 00 5C 26 80 13 00 00 00 00 00 00 FE [14:18:09]Write i2c OK [14:18:09]MH_I2C_Read... [14:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:09]Read from MH i2c: E2 [14:18:09]MH_I2C_Read... [14:18:09]Read from MH i2c: E2 62 00 [14:18:09]MH_I2C_Read... [14:18:09]Read from MH i2c: E2 62 00 5C 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9C 09 00 00 0E 04 04 00 16 00 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 CE [14:18:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9C 09 00 00 0E 04 04 00 16 00 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 [14:18:09]wFMCommunicate OK [14:18:09]SAM_PROTO_GetFieldsCounters done [14:18:09]requested_item shift.num is exist - process it [14:18:09]requested_item shift.opened is exist - process it [14:18:09]req_shift_opened [14:18:09]FM_GetShiftState [14:18:09]SAM_PROTO_GetShiftState [14:18:09]wFMCommunicate request_size=4 [14:18:09]MH_SAM_APDU [14:18:09]CAPDU: 80 13 01 00 [14:18:09]Write to MH i2c: E2 08 00 5D 26 80 13 01 00 00 00 00 00 00 [14:18:09]Write i2c OK [14:18:09]MH_I2C_Read... [14:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:09]Read from MH i2c: E2 [14:18:09]MH_I2C_Read... [14:18:09]Read from MH i2c: E2 0E 00 [14:18:09]MH_I2C_Read... [14:18:09]Read from MH i2c: E2 0E 00 5D 26 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 9E [14:18:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:18:09]wFMCommunicate OK [14:18:09]SAM_PROTO_GetShiftState done [14:18:09]FM_GetShiftState done [14:18:09]req_shift_opened done [14:18:09]requested_item shift.open_date is exist - process it [14:18:09]req_shift_open_date [14:18:09]req_shift_open_date done [14:18:09]produce_requested_data done [14:18:09]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2460,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:18:09]process_action_free close_receipt [14:18:09]json_value_free [14:18:09]json_value_free done [14:18:09]process_json_proto returns [14:18:09]Send response to host [14:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2460,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:18:09]free response buf [14:18:09]execute_script done [14:18:09]execute_script returns [14:18:09]free content buf [14:18:09]Sock 9.Close socket [14:18:09]Sock 9.Thread stoped [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:44]accept exits with 7 [14:18:44]New connection [14:18:44]New thread 3066707300 created [14:18:44]Thread 3066850660 joined [14:18:44]Waiting for new connection... [14:18:44] Sock 7.Parse request [14:18:44]Sock 7.Check first char [14:18:44]Sock 7.First char is OK [14:18:44]request: POST /json_proto HTTP/1.0 [14:18:44]Method: POST [14:18:44]URL: /json_proto [14:18:44]Method is POST - this is cgi request [14:18:44]url: /json_proto [14:18:44]query_string will be loaded in cgi processing [14:18:44]execute_cgi json_proto POST (null) [14:18:44]execute_cgi path=json_proto method=POST [14:18:44]POST find Content-Length [14:18:44]Host: 172.17.52.132:8080 [14:18:44]Content-Length: 797 [14:18:44]Content-Type: application/json [14:18:44] [14:18:44]POST finish read [14:18:44]Found Content-Length = 797 [14:18:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 23.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3987847", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:44]execute_script... [14:18: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)475450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 23.750, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3987847", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:44]POST & json_proto [14:18:44]process_json_proto [14:18:44]json parsed OK: [14:18:44]protocol is kg_v1.0 [14:18:44]action value=close_receipt [14:18:44]process_action close_receipt [14:18:44]cmd_close_receipt [14:18:44]MH_GetDate [14:18:44]Write to MH i2c: F0 00 00 5E 26 73 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: F0 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: F0 09 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: F0 09 00 5E 26 00 49 6E 12 67 5A BE F6 66 20 [14:18:44]GetLastDocTimeStamp 1729261090 [14:18:44]current date 1729261129 [14:18:44]FM_GetShiftState [14:18:44]SAM_PROTO_GetShiftState [14:18:44]wFMCommunicate request_size=4 [14:18:44]MH_SAM_APDU [14:18:44]CAPDU: 80 13 01 00 [14:18:44]Write to MH i2c: E2 08 00 5F 26 80 13 01 00 00 00 00 00 02 [14:18:44]Write i2c OK [14:18:44]MH_I2C_Read... [14:18:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:44]Read from MH i2c: E2 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 0E 00 [14:18:44]MH_I2C_Read... [14:18:44]Read from MH i2c: E2 0E 00 5F 26 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A0 [14:18:44]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:18:44]wFMCommunicate OK [14:18:44]SAM_PROTO_GetShiftState done [14:18:44]FM_GetShiftState done [14:18:44]opened in 1729209717 [14:18:44]opened+sec_in_day 1729296117 [14:18:44]quantity*price = 0 [14:18:44]sum+1 = 1 [14:18:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 ÐСП 1% : 0.00 ÐДС 12% : 0.00 Ðаличными: 0.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 86 18.10.2024 14:18 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 Талоны: Топливные Талоны 3987847 ФМ: 0000000002342820 ФД: 2461 ФПД: 280164360055540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141849&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2461&fm=280164360055540&tin=02508201610067®Number=0000000000207295&sum=0 [14:18:45]StoreToDocumentArchive [14:18:45]shift 22 fd 2461 [14:18:45]save to /storage/0022/doc_00002461 [14:18:45]save last doc name /storage/0022/doc_00002461 to /storage/kkm_last_doc_name [14:18:45]save OK [14:18:45]Clear old archive folders... [14:18:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:18:45]tlvbuf is 013CE1E0 [14:18:45]SAM_PROTO_ClearQueue [14:18:45]wFMCommunicate request_size=4 [14:18:45]MH_SAM_APDU [14:18:45]CAPDU: 80 09 00 00 [14:18:45]Write to MH i2c: E2 08 00 6C 26 80 09 00 00 00 00 00 00 04 [14:18:45]Write i2c OK [14:18:45]MH_I2C_Read... [14:18:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:45]Read from MH i2c: E2 [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: E2 03 00 [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: E2 03 00 6C 26 00 90 00 06 [14:18:45]RAPDU: 90 00 [14:18:45]wFMCommunicate OK [14:18:45]SAM_PROTO_ClearQueue done [14:18:45]KKMCreateOFDPacket [14:18:45]OFDProtocolAddRootSTLVToBuf [14:18:45]FM_MakeSignedData [14:18:45]FM_MakeSignedData [14:18:45]SAM_PROTO_SignData [14:18:45]wFMCommunicate request_size=4 [14:18:45]MH_SAM_APDU [14:18:45]CAPDU: 80 0D 01 02 [14:18:45]Write to MH i2c: E2 08 00 6D 26 80 0D 01 02 00 00 00 00 0C [14:18:45]Write i2c OK [14:18:45]MH_I2C_Read... [14:18:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:45]Read from MH i2c: E2 [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: E2 03 00 [14:18:45]MH_I2C_Read... [14:18:45]Read from MH i2c: E2 03 00 6D 26 00 90 00 07 [14:18:45]RAPDU: 90 00 [14:18:45]wFMCommunicate OK [14:18:45]wFMCommunicate request_size=255 [14:18:45]MH_SAM_APDU [14:18: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 C6 5C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 49 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9D 09 00 00 35 04 06 00 FE CE D9 28 [14:18:45]Write to MH i2c: E2 02 01 6E 26 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C6 5C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 49 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9D 09 00 00 35 04 06 00 FE CE D9 28 00 00 8F [14:18:45]Write i2c OK [14:18:45]MH_I2C_Read... [14:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:46]Read from MH i2c: E2 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 03 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 03 00 6E 26 00 90 00 08 [14:18:46]RAPDU: 90 00 [14:18:46]wFMCommunicate OK [14:18:46]wFMCommunicate request_size=7 [14:18:46]MH_SAM_APDU [14:18:46]CAPDU: 80 0D 02 02 02 EA F4 [14:18:46]Write to MH i2c: E2 0A 00 6F 26 80 0D 02 02 02 00 EA F4 00 00 F1 [14:18:46]Write i2c OK [14:18:46]MH_I2C_Read... [14:18:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:46]Read from MH i2c: E2 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 03 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 03 00 6F 26 00 90 00 09 [14:18:46]RAPDU: 90 00 [14:18:46]wFMCommunicate OK [14:18:46]wFMCommunicate request_size=4 [14:18:46]MH_SAM_APDU [14:18:46]CAPDU: 80 0D 03 02 [14:18:46]Write to MH i2c: E2 08 00 70 26 80 0D 03 02 00 00 00 00 11 [14:18:46]Write i2c OK [14:18:46]MH_I2C_Read... [14:18:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:46]Read from MH i2c: E2 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 0B 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 0B 00 70 26 00 FB DD B6 59 0E 83 CA 32 90 00 86 [14:18:46]RAPDU: FB DD B6 59 0E 83 CA 32 90 00 [14:18:46]wFMCommunicate OK [14:18:46]SAM_PROTO_SignData done [14:18:46]FM_MakeSignedData done [14:18:46]CreateOFDProtocolMessage [14:18:46]wFMCommunicate request_size=4 [14:18:46]MH_SAM_APDU [14:18:46]CAPDU: 80 11 00 00 [14:18:46]Write to MH i2c: E2 08 00 71 26 80 11 00 00 00 00 00 00 11 [14:18:46]Write i2c OK [14:18:46]MH_I2C_Read... [14:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:46]Read from MH i2c: E2 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 17 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: E2 17 00 71 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 59 [14:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:18:46]wFMCommunicate OK [14:18:46]CreateOFDProtocolMessage done [14:18:46]OFDSenderStorePacket 2461 [14:18:46]StoreOFDPacket docnum=2461 [14:18:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 D2 AD 04 01 96 3B 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 C6 5C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 49 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9D 09 00 00 35 04 06 00 FE CE D9 28 EA F4 FB DD B6 59 0E 83 CA 32 [14:18:46]CheckFolder [14:18:46]dirname=/storage/ofd_packets [14:18:46]CheckFolder done [14:18:46]ProducePacketName [14:18:46]name=ofd_packets/00002461 [14:18:46]NVStorageSaveData ofd_packets/00002461 [14:18:46]File name is /storage/ofd_packets/00002461 [14:18:46]Write 298 bytes [14:18:46]NVStorageSaveData done [14:18:46]OFDSenderStorePacket done [14:18:46]KKMCreateOFDPacket done [14:18:46]NVStorageSaveData kkm_last_timestamp [14:18:46]File name is /storage/kkm_last_timestamp [14:18:46]Write 4 bytes [14:18:46]NVStorageSaveData done [14:18:46]ExternCall_PrintAddStr [14:18:46]wPrintStart [14:18:46]Write to MH i2c: 01 00 00 72 26 98 [14:18:46]Write i2c OK [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: 01 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: 01 07 00 [14:18:46]MH_I2C_Read... [14:18:46]Read from MH i2c: 01 07 00 72 26 00 00 00 00 00 FF 0F AD [14:18:46]RasterBufferAndPrint [14:18:46]line Счет N : (1)475450 [14:18:46]line ИÐÐ: 02508201610067 [14:18:46]line Контрольно-КаÑÑовый Чек [14:18:46]line ПРОДÐЖР[14:18:46]line ТРК (МРК, ГÐК) : 54 [14:18:46]line Товар: 2710194210 [14:18:46]line ДТ-К-5 [14:18:46]line 23.750 * 0.00 [14:18:46]line = 0.00 [14:18:46]line ÐДС 12% ÐСП 1% [14:18:46]line > о реализуемом товаре [14:18:46]line ИТОГО: 0.00 [14:18:46]line ÐСП 1% : 0.00 [14:18:46]line ÐДС 12% : 0.00 [14:18:46]line Ðаличными: 0.00 [14:18:46]line Безнал.: 0.00 [14:18:46]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:18:46]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:18:46]line СÐО: Общий режим [14:18:46]line Чек 86 18.10.2024 14:18 [14:18:46]line Смена: 22 ФФД: 1.0 [14:18:46]line ЗÐМ: 0300000191 [14:18:46]line РÐМ: 0000000000207295 [14:18:46]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:18:46]line Талоны: Топливные Талоны [14:18:46]line 3987847 [14:18:46]line ФМ: 0000000002342820 [14:18:46]line ФД: 2461 [14:18:46]line ФПД: 280164360055540 [14:18:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141849&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2461&fm=280164360055540&tin=02508201610067®Number=0000000000207295&sum=0 [14:18:46]OFD Sender: Processing packet 2461 [packets to send 1, broken 0] [14:18:46]ProducePacketName [14:18:46]name=ofd_packets/00002461 [14:18:46]OFD Sender: To server: ‡•öpG, [14:18:46]CommunicateWithHost lk.salyk.kg:30040 [14:18:46]ConnectInit lk.salyk.kg [14:18:46]written 0, free lines is 4095 [14:18:46]Connected sock=10 [14:18:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 D2 AD 04 01 96 3B 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 C6 5C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 56 00 00 00 F4 03 04 00 49 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9D 09 00 00 35 04 06 00 FE CE D9 28 EA F4 FB DD B6 59 0E 83 CA 32 [14:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 4F E4 47 00 A5 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 32 33 34 32 38 32 30 10 04 04 00 9D 09 00 00 F4 03 04 00 AC 19 12 67 B6 04 01 00 00 F4 2D 12 C4 E1 35 9E C4 [14:18:46]CommunicateWithHost err = 0 [14:18:46]CheckOFDResponse [14:18:46]1017 (14) - 77093643461234 [14:18:46]1041 (16) - 0000000002342820 [14:18:46]1040 (4) - 2461 [14:18:46]1012 (4) - 18.10.2024 08:17 [14:18:46]1206 (1) - 0 [14:18:46]OFD Sender: Remove packet 2461 [14:18:46]ProducePacketName [14:18:46]name=ofd_packets/00002461 [14:18:46]NVStorageDeleteData [14:18:47]Write to MH i2c: 01 00 00 9C 26 C2 [14:18:47]Write i2c OK [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: 01 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: 01 07 00 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: 01 07 00 9C 26 00 00 00 00 00 BB 0C 90 [14:18:47]RasterBufferAndPrint [14:18:47]line [14:18:47]line [14:18:47]line [14:18:47]line [14:18:47]line [14:18:47]written 0, free lines is 3265 [14:18:47]MH_Cut [14:18:47]Write to MH i2c: D1 01 00 A3 26 01 9B [14:18:47]Write i2c OK [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: D1 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: D1 01 00 [14:18:47]MH_I2C_Read... [14:18:47]Read from MH i2c: D1 01 00 A3 26 00 9A [14:18:47]Write to MH i2c: 01 00 00 A4 26 CA [14:18:47]Write i2c OK [14:18:47]MH_I2C_Read... [14:18:47]OFD Sender: No OFD packet to send [14:18:47]*** Cut start [14:18:47]*** Partial cut [14:18:47]*** CUTSNS_PIN = 1 [14:18:47]*** CUTSNS_PIN = 0 [14:18:48]*** Brake cut motor [14:18:48]Read from MH i2c: 01 [14:18:48]MH_I2C_Read... [14:18:48]*** Stop cut motor [14:18:48]*** Cut end [14:18:48]Read from MH i2c: 01 07 00 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: 01 07 00 A4 26 00 00 00 00 00 FF 0F DF [14:18:48]process_action close_receipt done [14:18:48]requested_data is exist [14:18:48]produce_requested_data [14:18:48]requested_item fm.sn is exist - process it [14:18:48]wFMCommunicate request_size=4 [14:18:48]MH_SAM_APDU [14:18:48]CAPDU: 80 11 00 00 [14:18:48]Write to MH i2c: E2 08 00 A5 26 80 11 00 00 00 00 00 00 45 [14:18:48]Write i2c OK [14:18:48]MH_I2C_Read... [14:18:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:48]Read from MH i2c: E2 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: E2 17 00 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: E2 17 00 A5 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 8D [14:18:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:18:48]wFMCommunicate OK [14:18:48]requested_item fd.num is exist - process it [14:18:48]SAM_PROTO_GetFieldsCounters [14:18:48]wFMCommunicate request_size=4 [14:18:48]MH_SAM_APDU [14:18:48]CAPDU: 80 13 00 00 [14:18:48]Write to MH i2c: E2 08 00 A6 26 80 13 00 00 00 00 00 00 48 [14:18:48]Write i2c OK [14:18:48]MH_I2C_Read... [14:18:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:48]Read from MH i2c: E2 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: E2 62 00 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: E2 62 00 A6 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9D 09 00 00 0E 04 04 00 16 00 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 1C [14:18:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9D 09 00 00 0E 04 04 00 16 00 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 [14:18:48]wFMCommunicate OK [14:18:48]SAM_PROTO_GetFieldsCounters done [14:18:48]requested_item shift.num is exist - process it [14:18:48]requested_item shift.opened is exist - process it [14:18:48]req_shift_opened [14:18:48]FM_GetShiftState [14:18:48]SAM_PROTO_GetShiftState [14:18:48]wFMCommunicate request_size=4 [14:18:48]MH_SAM_APDU [14:18:48]CAPDU: 80 13 01 00 [14:18:48]Write to MH i2c: E2 08 00 A7 26 80 13 01 00 00 00 00 00 4A [14:18:48]Write i2c OK [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: E2 [14:18:48]MH_I2C_Read... [14:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:48]Read from MH i2c: E2 0E 00 [14:18:48]MH_I2C_Read... [14:18:48]Read from MH i2c: E2 0E 00 A7 26 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E8 [14:18:48]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:18:48]wFMCommunicate OK [14:18:48]SAM_PROTO_GetShiftState done [14:18:48]FM_GetShiftState done [14:18:48]req_shift_opened done [14:18:48]requested_item shift.open_date is exist - process it [14:18:48]req_shift_open_date [14:18:48]req_shift_open_date done [14:18:48]produce_requested_data done [14:18:48]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2461,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:18:48]process_action_free close_receipt [14:18:48]json_value_free [14:18:48]json_value_free done [14:18:48]process_json_proto returns [14:18:48]Send response to host [14:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2461,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:18:48]free response buf [14:18:48]execute_script done [14:18:48]execute_script returns [14:18:48]free content buf [14:18:48]Sock 7.Close socket [14:18:48]Sock 7.Thread stoped [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:18:57]accept exits with 9 [14:18:57]New connection [14:18:57]New thread 3066850660 created [14:18:57]Thread 3066707300 joined [14:18:57]Waiting for new connection... [14:18:57] Sock 9.Parse request [14:18:57]Sock 9.Check first char [14:18:57]Sock 9.First char is OK [14:18:57]request: POST /json_proto HTTP/1.0 [14:18:57]Method: POST [14:18:57]URL: /json_proto [14:18:57]Method is POST - this is cgi request [14:18:57]url: /json_proto [14:18:57]query_string will be loaded in cgi processing [14:18:57]execute_cgi json_proto POST (null) [14:18:57]execute_cgi path=json_proto method=POST [14:18:57]POST find Content-Length [14:18:57]Host: 172.17.52.132:8080 [14:18:57]Content-Length: 632 [14:18:57]Content-Type: application/json [14:18:57] [14:18:57]POST finish read [14:18:57]Found Content-Length = 632 [14:18:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475451", "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" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:57]execute_script... [14:18:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475451", "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" : 68.40, "quantity" : 7.310, "sum" : 500.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:57]POST & json_proto [14:18:57]process_json_proto [14:18:57]json parsed OK: [14:18:57]protocol is kg_v1.0 [14:18:57]action value=close_receipt [14:18:57]process_action close_receipt [14:18:57]cmd_close_receipt [14:18:57]MH_GetDate [14:18:57]Write to MH i2c: F0 00 00 A8 26 BD [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 09 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: F0 09 00 A8 26 00 56 6E 12 67 5A BE F6 66 77 [14:18:57]GetLastDocTimeStamp 1729261129 [14:18:57]current date 1729261142 [14:18:57]FM_GetShiftState [14:18:57]SAM_PROTO_GetShiftState [14:18:57]wFMCommunicate request_size=4 [14:18:57]MH_SAM_APDU [14:18:57]CAPDU: 80 13 01 00 [14:18:57]Write to MH i2c: E2 08 00 A9 26 80 13 01 00 00 00 00 00 4C [14:18:57]Write i2c OK [14:18:57]MH_I2C_Read... [14:18:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:57]Read from MH i2c: E2 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 0E 00 [14:18:57]MH_I2C_Read... [14:18:57]Read from MH i2c: E2 0E 00 A9 26 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 EA [14:18:57]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:18:57]wFMCommunicate OK [14:18:57]SAM_PROTO_GetShiftState done [14:18:57]FM_GetShiftState done [14:18:57]opened in 1729209717 [14:18:57]opened+sec_in_day 1729296117 [14:18:57]quantity*price = 50000 [14:18:57]sum+1 = 50001 [14:18:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.00 ÐСП 1% : 4.42 ÐДС 12% : 53.10 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 87 18.10.2024 14:19 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2462 ФПД: 152466933014938 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141902&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2462&fm=152466933014938&tin=02508201610067®Number=0000000000207295&sum=50000 [14:18:58]StoreToDocumentArchive [14:18:58]shift 22 fd 2462 [14:18:58]save to /storage/0022/doc_00002462 [14:18:58]save last doc name /storage/0022/doc_00002462 to /storage/kkm_last_doc_name [14:18:58]save OK [14:18:58]Clear old archive folders... [14:18:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:18:58]tlvbuf is 013C4380 [14:18:58]SAM_PROTO_ClearQueue [14:18:58]wFMCommunicate request_size=4 [14:18:58]MH_SAM_APDU [14:18:58]CAPDU: 80 09 00 00 [14:18:58]Write to MH i2c: E2 08 00 B6 26 80 09 00 00 00 00 00 00 4E [14:18:58]Write i2c OK [14:18:58]MH_I2C_Read... [14:18:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:59]Read from MH i2c: E2 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 03 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 03 00 B6 26 00 90 00 50 [14:18:59]RAPDU: 90 00 [14:18:59]wFMCommunicate OK [14:18:59]SAM_PROTO_ClearQueue done [14:18:59]KKMCreateOFDPacket [14:18:59]OFDProtocolAddRootSTLVToBuf [14:18:59]FM_MakeSignedData [14:18:59]FM_MakeSignedData [14:18:59]SAM_PROTO_SignData [14:18:59]wFMCommunicate request_size=4 [14:18:59]MH_SAM_APDU [14:18:59]CAPDU: 80 0D 01 02 [14:18:59]Write to MH i2c: E2 08 00 B7 26 80 0D 01 02 00 00 00 00 56 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:59]Read from MH i2c: E2 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 03 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 03 00 B7 26 00 90 00 51 [14:18:59]RAPDU: 90 00 [14:18:59]wFMCommunicate OK [14:18:59]wFMCommunicate request_size=255 [14:18:59]MH_SAM_APDU [14:18: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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 57 00 00 00 F4 03 04 00 56 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9E 09 00 00 35 04 06 00 [14:18:59]Write to MH i2c: E2 02 01 B8 26 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 57 00 00 00 F4 03 04 00 56 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9E 09 00 00 35 04 06 00 00 00 92 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:59]Read from MH i2c: E2 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 03 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 03 00 B8 26 00 90 00 52 [14:18:59]RAPDU: 90 00 [14:18:59]wFMCommunicate OK [14:18:59]wFMCommunicate request_size=11 [14:18:59]MH_SAM_APDU [14:18:59]CAPDU: 80 0D 02 02 06 8A AA F9 61 E1 9A [14:18:59]Write to MH i2c: E2 0E 00 B9 26 80 0D 02 02 06 00 8A AA F9 61 E1 9A 00 00 6E [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:59]Read from MH i2c: E2 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 03 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 03 00 B9 26 00 90 00 53 [14:18:59]RAPDU: 90 00 [14:18:59]wFMCommunicate OK [14:18:59]wFMCommunicate request_size=4 [14:18:59]MH_SAM_APDU [14:18:59]CAPDU: 80 0D 03 02 [14:18:59]Write to MH i2c: E2 08 00 BA 26 80 0D 03 02 00 00 00 00 5B [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:59]Read from MH i2c: E2 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 0B 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 0B 00 BA 26 00 E7 07 E4 40 4C B6 A1 0E 90 00 1F [14:18:59]RAPDU: E7 07 E4 40 4C B6 A1 0E 90 00 [14:18:59]wFMCommunicate OK [14:18:59]SAM_PROTO_SignData done [14:18:59]FM_MakeSignedData done [14:18:59]CreateOFDProtocolMessage [14:18:59]wFMCommunicate request_size=4 [14:18:59]MH_SAM_APDU [14:18:59]CAPDU: 80 11 00 00 [14:18:59]Write to MH i2c: E2 08 00 BB 26 80 11 00 00 00 00 00 00 5B [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:59]Read from MH i2c: E2 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 17 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: E2 17 00 BB 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 A3 [14:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:18:59]wFMCommunicate OK [14:18:59]CreateOFDProtocolMessage done [14:18:59]OFDSenderStorePacket 2462 [14:18:59]StoreOFDPacket docnum=2462 [14:18:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 EC 4C 08 01 FD 56 5A 03 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 57 00 00 00 F4 03 04 00 56 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9E 09 00 00 35 04 06 00 8A AA F9 61 E1 9A E7 07 E4 40 4C B6 A1 0E [14:18:59]CheckFolder [14:18:59]dirname=/storage/ofd_packets [14:18:59]CheckFolder done [14:18:59]ProducePacketName [14:18:59]name=ofd_packets/00002462 [14:18:59]NVStorageSaveData ofd_packets/00002462 [14:18:59]File name is /storage/ofd_packets/00002462 [14:18:59]Write 302 bytes [14:18:59]NVStorageSaveData done [14:18:59]OFDSenderStorePacket done [14:18:59]KKMCreateOFDPacket done [14:18:59]NVStorageSaveData kkm_last_timestamp [14:18:59]File name is /storage/kkm_last_timestamp [14:18:59]Write 4 bytes [14:18:59]NVStorageSaveData done [14:18:59]ExternCall_PrintAddStr [14:18:59]wPrintStart [14:18:59]Write to MH i2c: 01 00 00 BC 26 E2 [14:18:59]Write i2c OK [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 07 00 [14:18:59]MH_I2C_Read... [14:18:59]Read from MH i2c: 01 07 00 BC 26 00 00 00 00 00 FF 0F F7 [14:18:59]RasterBufferAndPrint [14:18:59]line Счет N : (1)475451 [14:18:59]line ИÐÐ: 02508201610067 [14:18:59]line Контрольно-КаÑÑовый Чек [14:18:59]line ПРОДÐЖР[14:18:59]line ТРК (МРК, ГÐК) : 33 [14:18:59]line Товар: 2710124130 [14:18:59]line SUPER-92-К-5 [14:18:59]line 7.310 * 68.40 [14:18:59]line = 500.00 [14:18:59]line ÐДС 12% ÐСП 1% [14:18:59]line > о реализуемом товаре [14:18:59]line ИТОГО: 500.00 [14:18:59]line ÐСП 1% : 4.42 [14:18:59]line ÐДС 12% : 53.10 [14:18:59]line Ðаличными: 500.00 [14:18:59]line Безнал.: 0.00 [14:18:59]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:18:59]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:18:59]line СÐО: Общий режим [14:18:59]line Чек 87 18.10.2024 14:19 [14:18:59]line Смена: 22 ФФД: 1.0 [14:18:59]line ЗÐМ: 0300000191 [14:18:59]line РÐМ: 0000000000207295 [14:18:59]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:18:59]line ФМ: 0000000002342820 [14:18:59]line ФД: 2462 [14:18:59]line ФПД: 152466933014938 [14:18:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141902&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2462&fm=152466933014938&tin=02508201610067®Number=0000000000207295&sum=50000 [14:18:59]OFD Sender: Processing packet 2462 [packets to send 1, broken 0] [14:18:59]ProducePacketName [14:18:59]name=ofd_packets/00002462 [14:18:59]OFD Sender: To server: ‡•öpG, [14:18:59]CommunicateWithHost lk.salyk.kg:30040 [14:18:59]ConnectInit lk.salyk.kg [14:18:59]written 0, free lines is 4095 [14:18:59]Connected sock=10 [14:18:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 EC 4C 08 01 FD 56 5A 03 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8E 1C 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 50 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 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 57 00 00 00 F4 03 04 00 56 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9E 09 00 00 35 04 06 00 8A AA F9 61 E1 9A E7 07 E4 40 4C B6 A1 0E [14:19:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 4B D0 47 00 4F 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 32 33 34 32 38 32 30 10 04 04 00 9E 09 00 00 F4 03 04 00 BA 19 12 67 B6 04 01 00 00 E0 49 28 F4 8D 2A 46 A0 [14:19:00]CommunicateWithHost err = 0 [14:19:00]CheckOFDResponse [14:19:00]1017 (14) - 77093643461234 [14:19:00]1041 (16) - 0000000002342820 [14:19:00]1040 (4) - 2462 [14:19:00]1012 (4) - 18.10.2024 08:18 [14:19:00]1206 (1) - 0 [14:19:00]OFD Sender: Remove packet 2462 [14:19:00]ProducePacketName [14:19:00]name=ofd_packets/00002462 [14:19:00]NVStorageDeleteData [14:19:00]Write to MH i2c: 01 00 00 E4 26 0A [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: 01 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: 01 07 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: 01 07 00 E4 26 00 00 00 00 00 E3 0C 00 [14:19:00]RasterBufferAndPrint [14:19:00]line [14:19:00]line [14:19:00]line [14:19:00]line [14:19:00]line [14:19:00]written 0, free lines is 3306 [14:19:00]MH_Cut [14:19:00]Write to MH i2c: D1 01 00 EB 26 01 E3 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: D1 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: D1 01 00 [14:19:00]MH_I2C_Read... [14:19:00]Read from MH i2c: D1 01 00 EB 26 00 E2 [14:19:00]Write to MH i2c: 01 00 00 EC 26 12 [14:19:00]Write i2c OK [14:19:00]MH_I2C_Read... [14:19:00]OFD Sender: No OFD packet to send [14:19:01]*** Cut start [14:19:01]*** Partial cut [14:19:01]*** CUTSNS_PIN = 1 [14:19:01]*** CUTSNS_PIN = 0 [14:19:01]*** Brake cut motor [14:19:01]Read from MH i2c: 01 [14:19:01]MH_I2C_Read... [14:19:01]*** Stop cut motor [14:19:01]*** Cut end [14:19:01]Read from MH i2c: 01 07 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: 01 07 00 EC 26 00 00 00 00 00 FF 0F 27 [14:19:01]process_action close_receipt done [14:19:01]requested_data is exist [14:19:01]produce_requested_data [14:19:01]requested_item fm.sn is exist - process it [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 11 00 00 [14:19:01]Write to MH i2c: E2 08 00 ED 26 80 11 00 00 00 00 00 00 8D [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 17 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 17 00 ED 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D5 [14:19:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:19:01]wFMCommunicate OK [14:19:01]requested_item fd.num is exist - process it [14:19:01]SAM_PROTO_GetFieldsCounters [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 13 00 00 [14:19:01]Write to MH i2c: E2 08 00 EE 26 80 13 00 00 00 00 00 00 90 [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:01]Read from MH i2c: E2 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 62 00 [14:19:01]MH_I2C_Read... [14:19:01]Read from MH i2c: E2 62 00 EE 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9E 09 00 00 0E 04 04 00 16 00 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 68 [14:19:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9E 09 00 00 0E 04 04 00 16 00 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 [14:19:01]wFMCommunicate OK [14:19:01]SAM_PROTO_GetFieldsCounters done [14:19:01]requested_item shift.num is exist - process it [14:19:01]requested_item shift.opened is exist - process it [14:19:01]req_shift_opened [14:19:01]FM_GetShiftState [14:19:01]SAM_PROTO_GetShiftState [14:19:01]wFMCommunicate request_size=4 [14:19:01]MH_SAM_APDU [14:19:01]CAPDU: 80 13 01 00 [14:19:01]Write to MH i2c: E2 08 00 EF 26 80 13 01 00 00 00 00 00 92 [14:19:01]Write i2c OK [14:19:01]MH_I2C_Read... [14:19:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:02]Read from MH i2c: E2 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 0E 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 0E 00 EF 26 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 30 [14:19:02]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:19:02]wFMCommunicate OK [14:19:02]SAM_PROTO_GetShiftState done [14:19:02]FM_GetShiftState done [14:19:02]req_shift_opened done [14:19:02]requested_item shift.open_date is exist - process it [14:19:02]req_shift_open_date [14:19:02]req_shift_open_date done [14:19:02]produce_requested_data done [14:19:02]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2462,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:19:02]process_action_free close_receipt [14:19:02]json_value_free [14:19:02]json_value_free done [14:19:02]process_json_proto returns [14:19:02]Send response to host [14:19:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2462,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:19:02]free response buf [14:19:02]execute_script done [14:19:02]execute_script returns [14:19:02]free content buf [14:19:02]Sock 9.Close socket [14:19:02]Sock 9.Thread stoped [14:19:02]accept exits with 7 [14:19:02]New connection [14:19:02]New thread 3066707300 created [14:19:02]Thread 3066850660 joined [14:19:02]Waiting for new connection... [14:19:02] Sock 7.Parse request [14:19:02]Sock 7.Check first char [14:19:02]Sock 7.First char is OK [14:19:02]request: POST /json_proto HTTP/1.0 [14:19:02]Method: POST [14:19:02]URL: /json_proto [14:19:02]Method is POST - this is cgi request [14:19:02]url: /json_proto [14:19:02]query_string will be loaded in cgi processing [14:19:02]execute_cgi json_proto POST (null) [14:19:02]execute_cgi path=json_proto method=POST [14:19:02]POST find Content-Length [14:19:02]Host: 172.17.52.132:8080 [14:19:02]Content-Length: 675 [14:19:02]Content-Type: application/json [14:19:02] [14:19:02]POST finish read [14:19:02]Found Content-Length = 675 [14:19:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475449", "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" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:02]execute_script... [14:19: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)475449", "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" : 68.40, "quantity" : 14.620, "sum" : 1000.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:19:02]POST & json_proto [14:19:02]process_json_proto [14:19:02]json parsed OK: [14:19:02]protocol is kg_v1.0 [14:19:02]action value=close_receipt [14:19:02]process_action close_receipt [14:19:02]cmd_close_receipt [14:19:02]MH_GetDate [14:19:02]Write to MH i2c: F0 00 00 F0 26 05 [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 09 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: F0 09 00 F0 26 00 5B 6E 12 67 5A BE F6 66 C4 [14:19:02]GetLastDocTimeStamp 1729261142 [14:19:02]current date 1729261147 [14:19:02]FM_GetShiftState [14:19:02]SAM_PROTO_GetShiftState [14:19:02]wFMCommunicate request_size=4 [14:19:02]MH_SAM_APDU [14:19:02]CAPDU: 80 13 01 00 [14:19:02]Write to MH i2c: E2 08 00 F1 26 80 13 01 00 00 00 00 00 94 [14:19:02]Write i2c OK [14:19:02]MH_I2C_Read... [14:19:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:02]Read from MH i2c: E2 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 0E 00 [14:19:02]MH_I2C_Read... [14:19:02]Read from MH i2c: E2 0E 00 F1 26 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 32 [14:19:02]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:19:02]wFMCommunicate OK [14:19:02]SAM_PROTO_GetShiftState done [14:19:02]FM_GetShiftState done [14:19:02]opened in 1729209717 [14:19:02]opened+sec_in_day 1729296117 [14:19:02]quantity*price = 100000 [14:19:02]sum+1 = 100002 [14:19:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.01 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.20 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 88 18.10.2024 14:19 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2463 ФПД: 147913538638720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141907&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2463&fm=147913538638720&tin=02508201610067®Number=0000000000207295&sum=100000 [14:19:03]StoreToDocumentArchive [14:19:03]shift 22 fd 2463 [14:19:03]save to /storage/0022/doc_00002463 [14:19:03]save last doc name /storage/0022/doc_00002463 to /storage/kkm_last_doc_name [14:19:03]save OK [14:19:03]Clear old archive folders... [14:19:03]ProcessDocumentItem done err = 0, tmpTLVsize=252 [14:19:03]tlvbuf is 01403F90 [14:19:03]SAM_PROTO_ClearQueue [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 09 00 00 [14:19:03]Write to MH i2c: E2 08 00 FE 26 80 09 00 00 00 00 00 00 96 [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 FE 26 00 90 00 98 [14:19:03]RAPDU: 90 00 [14:19:03]wFMCommunicate OK [14:19:03]SAM_PROTO_ClearQueue done [14:19:03]KKMCreateOFDPacket [14:19:03]OFDProtocolAddRootSTLVToBuf [14:19:03]FM_MakeSignedData [14:19:03]FM_MakeSignedData [14:19:03]SAM_PROTO_SignData [14:19:03]wFMCommunicate request_size=4 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 0D 01 02 [14:19:03]Write to MH i2c: E2 08 00 FF 26 80 0D 01 02 00 00 00 00 9E [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:03]Read from MH i2c: E2 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 [14:19:03]MH_I2C_Read... [14:19:03]Read from MH i2c: E2 03 00 FF 26 00 90 00 99 [14:19:03]RAPDU: 90 00 [14:19:03]wFMCommunicate OK [14:19:03]wFMCommunicate request_size=255 [14:19:03]MH_SAM_APDU [14:19:03]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 58 00 00 00 F4 03 04 00 5B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9F 09 00 00 35 04 06 00 [14:19:03]Write to MH i2c: E2 02 01 00 27 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 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 58 00 00 00 F4 03 04 00 5B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9F 09 00 00 35 04 06 00 00 00 5A [14:19:03]Write i2c OK [14:19:03]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 00 27 00 90 00 9B [14:19:04]RAPDU: 90 00 [14:19:04]wFMCommunicate OK [14:19:04]wFMCommunicate request_size=11 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 0D 02 02 06 86 86 CD ED 93 80 [14:19:04]Write to MH i2c: E2 0E 00 01 27 80 0D 02 02 06 00 86 86 CD ED 93 80 00 00 87 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 03 00 01 27 00 90 00 9C [14:19:04]RAPDU: 90 00 [14:19:04]wFMCommunicate OK [14:19:04]wFMCommunicate request_size=4 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 0D 03 02 [14:19:04]Write to MH i2c: E2 08 00 02 27 80 0D 03 02 00 00 00 00 A4 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 0B 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 0B 00 02 27 00 FE B8 25 88 97 00 97 D4 90 00 0A [14:19:04]RAPDU: FE B8 25 88 97 00 97 D4 90 00 [14:19:04]wFMCommunicate OK [14:19:04]SAM_PROTO_SignData done [14:19:04]FM_MakeSignedData done [14:19:04]CreateOFDProtocolMessage [14:19:04]wFMCommunicate request_size=4 [14:19:04]MH_SAM_APDU [14:19:04]CAPDU: 80 11 00 00 [14:19:04]Write to MH i2c: E2 08 00 03 27 80 11 00 00 00 00 00 00 A4 [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:04]Read from MH i2c: E2 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 17 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: E2 17 00 03 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EC [14:19:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:19:04]wFMCommunicate OK [14:19:04]CreateOFDProtocolMessage done [14:19:04]OFDSenderStorePacket 2463 [14:19:04]StoreOFDPacket docnum=2463 [14:19:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 72 82 08 01 3B EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 58 00 00 00 F4 03 04 00 5B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9F 09 00 00 35 04 06 00 86 86 CD ED 93 80 FE B8 25 88 97 00 97 D4 [14:19:04]CheckFolder [14:19:04]dirname=/storage/ofd_packets [14:19:04]CheckFolder done [14:19:04]ProducePacketName [14:19:04]name=ofd_packets/00002463 [14:19:04]NVStorageSaveData ofd_packets/00002463 [14:19:04]File name is /storage/ofd_packets/00002463 [14:19:04]Write 302 bytes [14:19:04]NVStorageSaveData done [14:19:04]OFDSenderStorePacket done [14:19:04]KKMCreateOFDPacket done [14:19:04]NVStorageSaveData kkm_last_timestamp [14:19:04]File name is /storage/kkm_last_timestamp [14:19:04]Write 4 bytes [14:19:04]NVStorageSaveData done [14:19:04]ExternCall_PrintAddStr [14:19:04]wPrintStart [14:19:04]Write to MH i2c: 01 00 00 04 27 2B [14:19:04]Write i2c OK [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 [14:19:04]MH_I2C_Read... [14:19:04]Read from MH i2c: 01 07 00 04 27 00 00 00 00 00 FF 0F 40 [14:19:04]RasterBufferAndPrint [14:19:04]line Счет N : (1)475449 [14:19:04]line ИÐÐ: 02508201610067 [14:19:04]line Контрольно-КаÑÑовый Чек [14:19:04]line ПРОДÐЖР[14:19:04]line ТРК (МРК, ГÐК) : 13 [14:19:04]line Товар: 2710124130 [14:19:04]line SUPER-92-К-5 [14:19:04]line 14.620 * 68.40 [14:19:04]line = 1000.01 [14:19:04]line ÐДС 12% ÐСП 1% [14:19:04]line > о реализуемом товаре [14:19:04]line ОКРУГЛЕÐИЕ: -0.01 [14:19:04]line ИТОГО: 1000.00 [14:19:04]line ВнеÑено: 1000.00 [14:19:04]line СДÐЧÐ: 0.00 [14:19:04]line ÐСП 1% : 8.85 [14:19:04]line ÐДС 12% : 106.20 [14:19:04]line Ðаличными: 1000.00 [14:19:04]line Безнал.: 0.00 [14:19:04]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:19:04]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:19:04]line СÐО: Общий режим [14:19:04]line Чек 88 18.10.2024 14:19 [14:19:04]line Смена: 22 ФФД: 1.0 [14:19:04]line ЗÐМ: 0300000191 [14:19:04]line РÐМ: 0000000000207295 [14:19:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:19:04]line ФМ: 0000000002342820 [14:19:04]line ФД: 2463 [14:19:04]line ФПД: 147913538638720 [14:19:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141907&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2463&fm=147913538638720&tin=02508201610067®Number=0000000000207295&sum=100000 [14:19:04]OFD Sender: Processing packet 2463 [packets to send 1, broken 0] [14:19:04]ProducePacketName [14:19:04]name=ofd_packets/00002463 [14:19:04]OFD Sender: To server: ‡•öpG, [14:19:04]CommunicateWithHost lk.salyk.kg:30040 [14:19:04]ConnectInit lk.salyk.kg [14:19:04]written 0, free lines is 4095 [14:19:04]Connected sock=10 [14:19:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 01 00 00 72 82 08 01 3B EE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0D 00 53 55 50 45 52 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 1C 39 00 00 00 00 00 37 04 06 00 B8 1A 00 00 00 00 13 04 06 00 A1 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 58 00 00 00 F4 03 04 00 5B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9F 09 00 00 35 04 06 00 86 86 CD ED 93 80 FE B8 25 88 97 00 97 D4 [14:19:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CE 36 47 00 B9 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 9F 09 00 00 F4 03 04 00 BF 19 12 67 B6 04 01 00 00 73 31 29 F5 57 C8 41 FE [14:19:05]CommunicateWithHost err = 0 [14:19:05]CheckOFDResponse [14:19:05]1017 (14) - 77093643461234 [14:19:05]1041 (16) - 0000000002342820 [14:19:05]1040 (4) - 2463 [14:19:05]1012 (4) - 18.10.2024 08:18 [14:19:05]1206 (1) - 0 [14:19:05]OFD Sender: Remove packet 2463 [14:19:05]ProducePacketName [14:19:05]name=ofd_packets/00002463 [14:19:05]NVStorageDeleteData [14:19:05]Write to MH i2c: 01 00 00 2F 27 56 [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: 01 07 00 2F 27 00 00 00 00 00 BE 0C 27 [14:19:05]RasterBufferAndPrint [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]line [14:19:05]written 0, free lines is 3276 [14:19:05]MH_Cut [14:19:05]Write to MH i2c: D1 01 00 36 27 01 2F [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 01 00 [14:19:05]MH_I2C_Read... [14:19:05]Read from MH i2c: D1 01 00 36 27 00 2E [14:19:05]Write to MH i2c: 01 00 00 37 27 5E [14:19:05]Write i2c OK [14:19:05]MH_I2C_Read... [14:19:05]OFD Sender: No OFD packet to send [14:19:06]*** Cut start [14:19:06]*** Partial cut [14:19:06]*** CUTSNS_PIN = 1 [14:19:06]*** CUTSNS_PIN = 0 [14:19:06]*** Brake cut motor [14:19:06]Read from MH i2c: 01 [14:19:06]MH_I2C_Read... [14:19:06]*** Stop cut motor [14:19:06]*** Cut end [14:19:06]Read from MH i2c: 01 07 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: 01 07 00 37 27 00 00 00 00 00 FF 0F 73 [14:19:06]process_action close_receipt done [14:19:06]requested_data is exist [14:19:06]produce_requested_data [14:19:06]requested_item fm.sn is exist - process it [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 11 00 00 [14:19:06]Write to MH i2c: E2 08 00 38 27 80 11 00 00 00 00 00 00 D9 [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:06]Read from MH i2c: E2 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 17 00 [14:19:06]MH_I2C_Read... [14:19:06]Read from MH i2c: E2 17 00 38 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 21 [14:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:19:06]wFMCommunicate OK [14:19:06]requested_item fd.num is exist - process it [14:19:06]SAM_PROTO_GetFieldsCounters [14:19:06]wFMCommunicate request_size=4 [14:19:06]MH_SAM_APDU [14:19:06]CAPDU: 80 13 00 00 [14:19:06]Write to MH i2c: E2 08 00 39 27 80 13 00 00 00 00 00 00 DC [14:19:06]Write i2c OK [14:19:06]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 62 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 62 00 39 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9F 09 00 00 0E 04 04 00 16 00 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 B8 [14:19:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 9F 09 00 00 0E 04 04 00 16 00 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 [14:19:07]wFMCommunicate OK [14:19:07]SAM_PROTO_GetFieldsCounters done [14:19:07]requested_item shift.num is exist - process it [14:19:07]requested_item shift.opened is exist - process it [14:19:07]req_shift_opened [14:19:07]FM_GetShiftState [14:19:07]SAM_PROTO_GetShiftState [14:19:07]wFMCommunicate request_size=4 [14:19:07]MH_SAM_APDU [14:19:07]CAPDU: 80 13 01 00 [14:19:07]Write to MH i2c: E2 08 00 3A 27 80 13 01 00 00 00 00 00 DE [14:19:07]Write i2c OK [14:19:07]MH_I2C_Read... [14:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:07]Read from MH i2c: E2 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 0E 00 [14:19:07]MH_I2C_Read... [14:19:07]Read from MH i2c: E2 0E 00 3A 27 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 7C [14:19:07]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:19:07]wFMCommunicate OK [14:19:07]SAM_PROTO_GetShiftState done [14:19:07]FM_GetShiftState done [14:19:07]req_shift_opened done [14:19:07]requested_item shift.open_date is exist - process it [14:19:07]req_shift_open_date [14:19:07]req_shift_open_date done [14:19:07]produce_requested_data done [14:19:07]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2463,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:19:07]process_action_free close_receipt [14:19:07]json_value_free [14:19:07]json_value_free done [14:19:07]process_json_proto returns [14:19:07]Send response to host [14:19:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2463,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:19:07]free response buf [14:19:07]execute_script done [14:19:07]execute_script returns [14:19:07]free content buf [14:19:07]Sock 7.Close socket [14:19:07]Sock 7.Thread stoped [14:19:10]OFD Sender: No OFD packet to send [14:19:15]OFD Sender: No OFD packet to send [14:19:20]accept exits with 9 [14:19:20]New connection [14:19:20]New thread 3066850660 created [14:19:20]Thread 3066707300 joined [14:19:20]Waiting for new connection... [14:19:20] Sock 9.Parse request [14:19:20]Sock 9.Check first char [14:19:20]Sock 9.First char is OK [14:19:20]request: POST /json_proto HTTP/1.0 [14:19:20]Method: POST [14:19:20]URL: /json_proto [14:19:20]Method is POST - this is cgi request [14:19:20]url: /json_proto [14:19:20]query_string will be loaded in cgi processing [14:19:20]execute_cgi json_proto POST (null) [14:19:20]execute_cgi path=json_proto method=POST [14:19:20]POST find Content-Length [14:19:20]Host: 172.17.52.132:8080 [14:19:20]Content-Length: 674 [14:19:20]Content-Type: application/json [14:19:20] [14:19:20]POST finish read [14:19:20]Found Content-Length = 674 [14:19:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.510, "sum" : 191.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 191.00, "total" : 191.00, "payments": [ { "type": 0, "sum" : 191.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:20]execute_script... [14:19: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)475452", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 2.510, "sum" : 191.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 191.00, "total" : 191.00, "payments": [ { "type": 0, "sum" : 191.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:20]POST & json_proto [14:19:20]process_json_proto [14:19:20]json parsed OK: [14:19:20]protocol is kg_v1.0 [14:19:20]action value=close_receipt [14:19:20]process_action close_receipt [14:19:20]cmd_close_receipt [14:19:20]MH_GetDate [14:19:20]Write to MH i2c: F0 00 00 3B 27 51 [14:19:20]Write i2c OK [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: F0 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: F0 09 00 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: F0 09 00 3B 27 00 6C 6E 12 67 5A BE F6 66 21 [14:19:20]GetLastDocTimeStamp 1729261147 [14:19:20]current date 1729261164 [14:19:20]FM_GetShiftState [14:19:20]SAM_PROTO_GetShiftState [14:19:20]wFMCommunicate request_size=4 [14:19:20]MH_SAM_APDU [14:19:20]CAPDU: 80 13 01 00 [14:19:20]Write to MH i2c: E2 08 00 3C 27 80 13 01 00 00 00 00 00 E0 [14:19:20]Write i2c OK [14:19:20]MH_I2C_Read... [14:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:20]Read from MH i2c: E2 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: E2 0E 00 [14:19:20]MH_I2C_Read... [14:19:20]Read from MH i2c: E2 0E 00 3C 27 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 7E [14:19:20]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:19:20]wFMCommunicate OK [14:19:20]SAM_PROTO_GetShiftState done [14:19:20]FM_GetShiftState done [14:19:20]opened in 1729209717 [14:19:20]opened+sec_in_day 1729296117 [14:19:20]quantity*price = 19126 [14:19:20]sum+1 = 19127 [14:19:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.26 ИТОГО: 191.00 ВнеÑено: 191.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.69 ÐДС 12% : 20.31 Ðаличными: 191.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 89 18.10.2024 14:19 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2464 ФПД: 277216920385443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141924&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2464&fm=277216920385443&tin=02508201610067®Number=0000000000207295&sum=19100 [14:19:21]StoreToDocumentArchive [14:19:21]shift 22 fd 2464 [14:19:21]save to /storage/0022/doc_00002464 [14:19:21]save last doc name /storage/0022/doc_00002464 to /storage/kkm_last_doc_name [14:19:21]save OK [14:19:21]Clear old archive folders... [14:19:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:19:21]tlvbuf is B6F3F230 [14:19:21]SAM_PROTO_ClearQueue [14:19:21]wFMCommunicate request_size=4 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 09 00 00 [14:19:21]Write to MH i2c: E2 08 00 49 27 80 09 00 00 00 00 00 00 E2 [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 03 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 03 00 49 27 00 90 00 E4 [14:19:21]RAPDU: 90 00 [14:19:21]wFMCommunicate OK [14:19:21]SAM_PROTO_ClearQueue done [14:19:21]KKMCreateOFDPacket [14:19:21]OFDProtocolAddRootSTLVToBuf [14:19:21]FM_MakeSignedData [14:19:21]FM_MakeSignedData [14:19:21]SAM_PROTO_SignData [14:19:21]wFMCommunicate request_size=4 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 0D 01 02 [14:19:21]Write to MH i2c: E2 08 00 4A 27 80 0D 01 02 00 00 00 00 EA [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 03 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 03 00 4A 27 00 90 00 E5 [14:19:21]RAPDU: 90 00 [14:19:21]wFMCommunicate OK [14:19:21]wFMCommunicate request_size=255 [14:19:21]MH_SAM_APDU [14:19:21]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 CE 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B6 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 07 00 00 00 00 07 04 06 00 9C 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6C 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A0 09 00 00 35 04 06 00 FC 20 98 10 [14:19:21]Write to MH i2c: E2 02 01 4B 27 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B6 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 07 00 00 00 00 07 04 06 00 9C 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6C 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A0 09 00 00 35 04 06 00 FC 20 98 10 00 00 8E [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 03 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 03 00 4B 27 00 90 00 E6 [14:19:21]RAPDU: 90 00 [14:19:21]wFMCommunicate OK [14:19:21]wFMCommunicate request_size=7 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 0D 02 02 02 B7 A3 [14:19:21]Write to MH i2c: E2 0A 00 4C 27 80 0D 02 02 02 00 B7 A3 00 00 4B [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 03 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 03 00 4C 27 00 90 00 E7 [14:19:21]RAPDU: 90 00 [14:19:21]wFMCommunicate OK [14:19:21]wFMCommunicate request_size=4 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 0D 03 02 [14:19:21]Write to MH i2c: E2 08 00 4D 27 80 0D 03 02 00 00 00 00 EF [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 0B 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 0B 00 4D 27 00 63 62 A5 25 91 77 66 91 90 00 7E [14:19:21]RAPDU: 63 62 A5 25 91 77 66 91 90 00 [14:19:21]wFMCommunicate OK [14:19:21]SAM_PROTO_SignData done [14:19:21]FM_MakeSignedData done [14:19:21]CreateOFDProtocolMessage [14:19:21]wFMCommunicate request_size=4 [14:19:21]MH_SAM_APDU [14:19:21]CAPDU: 80 11 00 00 [14:19:21]Write to MH i2c: E2 08 00 4E 27 80 11 00 00 00 00 00 00 EF [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:21]Read from MH i2c: E2 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 17 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: E2 17 00 4E 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 37 [14:19:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:19:21]wFMCommunicate OK [14:19:21]CreateOFDProtocolMessage done [14:19:21]OFDSenderStorePacket 2464 [14:19:21]StoreOFDPacket docnum=2464 [14:19:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 41 A2 04 01 AE 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B6 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 07 00 00 00 00 07 04 06 00 9C 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6C 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A0 09 00 00 35 04 06 00 FC 20 98 10 B7 A3 63 62 A5 25 91 77 66 91 [14:19:21]CheckFolder [14:19:21]dirname=/storage/ofd_packets [14:19:21]CheckFolder done [14:19:21]ProducePacketName [14:19:21]name=ofd_packets/00002464 [14:19:21]NVStorageSaveData ofd_packets/00002464 [14:19:21]File name is /storage/ofd_packets/00002464 [14:19:21]Write 298 bytes [14:19:21]NVStorageSaveData done [14:19:21]OFDSenderStorePacket done [14:19:21]KKMCreateOFDPacket done [14:19:21]NVStorageSaveData kkm_last_timestamp [14:19:21]File name is /storage/kkm_last_timestamp [14:19:21]Write 4 bytes [14:19:21]NVStorageSaveData done [14:19:21]ExternCall_PrintAddStr [14:19:21]wPrintStart [14:19:21]Write to MH i2c: 01 00 00 4F 27 76 [14:19:21]Write i2c OK [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: 01 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: 01 07 00 [14:19:21]MH_I2C_Read... [14:19:21]Read from MH i2c: 01 07 00 4F 27 00 00 00 00 00 FF 0F 8B [14:19:21]RasterBufferAndPrint [14:19:21]line Счет N : (1)475452 [14:19:21]line ИÐÐ: 02508201610067 [14:19:21]line Контрольно-КаÑÑовый Чек [14:19:21]line ПРОДÐЖР[14:19:21]line ТРК (МРК, ГÐК) : 54 [14:19:21]line Товар: 2710194210 [14:19:21]line ДТ-К-5 [14:19:21]line 2.510 * 76.20 [14:19:21]line = 191.26 [14:19:21]line ÐДС 12% ÐСП 1% [14:19:21]line > о реализуемом товаре [14:19:21]line ОКРУГЛЕÐИЕ: -0.26 [14:19:21]line ИТОГО: 191.00 [14:19:21]line ВнеÑено: 191.00 [14:19:21]line СДÐЧÐ: 0.00 [14:19:21]line ÐСП 1% : 1.69 [14:19:21]line ÐДС 12% : 20.31 [14:19:21]line Ðаличными: 191.00 [14:19:21]line Безнал.: 0.00 [14:19:21]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:19:21]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:19:21]line СÐО: Общий режим [14:19:21]line Чек 89 18.10.2024 14:19 [14:19:21]line Смена: 22 ФФД: 1.0 [14:19:21]line ЗÐМ: 0300000191 [14:19:21]line РÐМ: 0000000000207295 [14:19:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:19:21]line ФМ: 0000000002342820 [14:19:21]line ФД: 2464 [14:19:21]line ФПД: 277216920385443 [14:19:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141924&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2464&fm=277216920385443&tin=02508201610067®Number=0000000000207295&sum=19100 [14:19:21]written 0, free lines is 4095 [14:19:22]OFD Sender: Processing packet 2464 [packets to send 1, broken 0] [14:19:22]ProducePacketName [14:19:22]name=ofd_packets/00002464 [14:19:22]OFD Sender: To server: ‡•öpG, [14:19:22]CommunicateWithHost lk.salyk.kg:30040 [14:19:22]ConnectInit lk.salyk.kg [14:19:22]Connected sock=10 [14:19:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 41 A2 04 01 AE 2F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CE 09 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B6 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 07 00 00 00 00 07 04 06 00 9C 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6C 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A0 09 00 00 35 04 06 00 FC 20 98 10 B7 A3 63 62 A5 25 91 77 66 91 [14:19:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 D0 03 47 00 2E F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A0 09 00 00 F4 03 04 00 D0 19 12 67 B6 04 01 00 00 29 E6 2A 12 76 F5 E8 78 [14:19:22]CommunicateWithHost err = 0 [14:19:22]CheckOFDResponse [14:19:22]1017 (14) - 77093643461234 [14:19:22]1041 (16) - 0000000002342820 [14:19:22]1040 (4) - 2464 [14:19:22]1012 (4) - 18.10.2024 08:18 [14:19:22]1206 (1) - 0 [14:19:22]OFD Sender: Remove packet 2464 [14:19:22]ProducePacketName [14:19:22]name=ofd_packets/00002464 [14:19:22]NVStorageDeleteData [14:19:22]Write to MH i2c: 01 00 00 7A 27 A1 [14:19:22]Write i2c OK [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: 01 [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: 01 07 00 [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: 01 07 00 7A 27 00 00 00 00 00 BB 0C 6F [14:19:22]RasterBufferAndPrint [14:19:22]line [14:19:22]line [14:19:22]line [14:19:22]line [14:19:22]line [14:19:22]written 0, free lines is 3270 [14:19:22]MH_Cut [14:19:22]Write to MH i2c: D1 01 00 81 27 01 7A [14:19:22]Write i2c OK [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: D1 [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: D1 01 00 [14:19:22]MH_I2C_Read... [14:19:22]Read from MH i2c: D1 01 00 81 27 00 79 [14:19:22]Write to MH i2c: 01 00 00 82 27 A9 [14:19:22]Write i2c OK [14:19:22]MH_I2C_Read... [14:19:22]OFD Sender: No OFD packet to send [14:19:23]*** Cut start [14:19:23]*** Partial cut [14:19:23]*** CUTSNS_PIN = 1 [14:19:23]*** CUTSNS_PIN = 0 [14:19:23]*** Brake cut motor [14:19:23]Read from MH i2c: 01 [14:19:23]MH_I2C_Read... [14:19:23]*** Stop cut motor [14:19:23]Read from MH i2c: 01 07 00 [14:19:23]MH_I2C_Read... [14:19:23]*** Cut end [14:19:23]Read from MH i2c: 01 07 00 82 27 00 00 00 00 00 FF 0F BE [14:19:23]process_action close_receipt done [14:19:23]requested_data is exist [14:19:23]produce_requested_data [14:19:23]requested_item fm.sn is exist - process it [14:19:23]wFMCommunicate request_size=4 [14:19:23]MH_SAM_APDU [14:19:23]CAPDU: 80 11 00 00 [14:19:23]Write to MH i2c: E2 08 00 83 27 80 11 00 00 00 00 00 00 24 [14:19:23]Write i2c OK [14:19:23]MH_I2C_Read... [14:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:23]Read from MH i2c: E2 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 17 00 [14:19:23]MH_I2C_Read... [14:19:23]Read from MH i2c: E2 17 00 83 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 6C [14:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:19:23]wFMCommunicate OK [14:19:23]requested_item fd.num is exist - process it [14:19:23]SAM_PROTO_GetFieldsCounters [14:19:23]wFMCommunicate request_size=4 [14:19:23]MH_SAM_APDU [14:19:23]CAPDU: 80 13 00 00 [14:19:23]Write to MH i2c: E2 08 00 84 27 80 13 00 00 00 00 00 00 27 [14:19:24]Write i2c OK [14:19:24]MH_I2C_Read... [14:19:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:24]Read from MH i2c: E2 [14:19:24]MH_I2C_Read... [14:19:24]Read from MH i2c: E2 62 00 [14:19:24]MH_I2C_Read... [14:19:24]Read from MH i2c: E2 62 00 84 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A0 09 00 00 0E 04 04 00 16 00 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 07 [14:19:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A0 09 00 00 0E 04 04 00 16 00 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 [14:19:24]wFMCommunicate OK [14:19:24]SAM_PROTO_GetFieldsCounters done [14:19:24]requested_item shift.num is exist - process it [14:19:24]requested_item shift.opened is exist - process it [14:19:24]req_shift_opened [14:19:24]FM_GetShiftState [14:19:24]SAM_PROTO_GetShiftState [14:19:24]wFMCommunicate request_size=4 [14:19:24]MH_SAM_APDU [14:19:24]CAPDU: 80 13 01 00 [14:19:24]Write to MH i2c: E2 08 00 85 27 80 13 01 00 00 00 00 00 29 [14:19:24]Write i2c OK [14:19:24]MH_I2C_Read... [14:19:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:24]Read from MH i2c: E2 [14:19:24]MH_I2C_Read... [14:19:24]Read from MH i2c: E2 0E 00 [14:19:24]MH_I2C_Read... [14:19:24]Read from MH i2c: E2 0E 00 85 27 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C7 [14:19:24]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:19:24]wFMCommunicate OK [14:19:24]SAM_PROTO_GetShiftState done [14:19:24]FM_GetShiftState done [14:19:24]req_shift_opened done [14:19:24]requested_item shift.open_date is exist - process it [14:19:24]req_shift_open_date [14:19:24]req_shift_open_date done [14:19:24]produce_requested_data done [14:19:24]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2464,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:19:24]process_action_free close_receipt [14:19:24]json_value_free [14:19:24]json_value_free done [14:19:24]process_json_proto returns [14:19:24]Send response to host [14:19:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2464,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:19:24]free response buf [14:19:24]execute_script done [14:19:24]execute_script returns [14:19:24]free content buf [14:19:24]Sock 9.Close socket [14:19:24]Sock 9.Thread stoped [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:50]accept exits with 7 [14:19:50]New connection [14:19:50]New thread 3066707300 created [14:19:50]Thread 3066850660 joined [14:19:50]Waiting for new connection... [14:19:50] Sock 7.Parse request [14:19:50]Sock 7.Check first char [14:19:50]Sock 7.First char is OK [14:19:50]request: POST /json_proto HTTP/1.0 [14:19:50]Method: POST [14:19:50]URL: /json_proto [14:19:50]Method is POST - this is cgi request [14:19:50]url: /json_proto [14:19:50]query_string will be loaded in cgi processing [14:19:50]execute_cgi json_proto POST (null) [14:19:50]execute_cgi path=json_proto method=POST [14:19:50]POST find Content-Length [14:19:50]Host: 172.17.52.132:8080 [14:19:50]Content-Length: 677 [14:19:50]Content-Type: application/json [14:19:50] [14:19:50]POST finish read [14:19:50]Found Content-Length = 677 [14:19:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:50]execute_script... [14:19: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)475453", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 62", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-5", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:50]POST & json_proto [14:19:50]process_json_proto [14:19:50]json parsed OK: [14:19:50]protocol is kg_v1.0 [14:19:50]action value=close_receipt [14:19:50]process_action close_receipt [14:19:50]cmd_close_receipt [14:19:50]MH_GetDate [14:19:50]Write to MH i2c: F0 00 00 86 27 9C [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 09 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: F0 09 00 86 27 00 8B 6E 12 67 5A BE F6 66 8B [14:19:50]GetLastDocTimeStamp 1729261164 [14:19:50]current date 1729261195 [14:19:50]FM_GetShiftState [14:19:50]SAM_PROTO_GetShiftState [14:19:50]wFMCommunicate request_size=4 [14:19:50]MH_SAM_APDU [14:19:50]CAPDU: 80 13 01 00 [14:19:50]Write to MH i2c: E2 08 00 87 27 80 13 01 00 00 00 00 00 2B [14:19:50]Write i2c OK [14:19:50]MH_I2C_Read... [14:19:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:50]Read from MH i2c: E2 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 0E 00 [14:19:50]MH_I2C_Read... [14:19:50]Read from MH i2c: E2 0E 00 87 27 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C9 [14:19:50]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:19:50]wFMCommunicate OK [14:19:50]SAM_PROTO_GetShiftState done [14:19:50]FM_GetShiftState done [14:19:50]opened in 1729209717 [14:19:50]opened+sec_in_day 1729296117 [14:19:50]quantity*price = 20003 [14:19:50]sum+1 = 20004 [14:19:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.03 ИТОГО: 200.00 ВнеÑено: 200.00 СДÐЧÐ: 0.00 ÐСП 1% : 1.77 ÐДС 12% : 21.24 Ðаличными: 200.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 90 18.10.2024 14:19 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2465 ФПД: 221137243343210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141955&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2465&fm=221137243343210&tin=02508201610067®Number=0000000000207295&sum=20000 [14:19:52]StoreToDocumentArchive [14:19:52]shift 22 fd 2465 [14:19:52]save to /storage/0022/doc_00002465 [14:19:52]save last doc name /storage/0022/doc_00002465 to /storage/kkm_last_doc_name [14:19:52]save OK [14:19:52]Clear old archive folders... [14:19:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:19:52]tlvbuf is 013DAC20 [14:19:52]SAM_PROTO_ClearQueue [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 09 00 00 [14:19:52]Write to MH i2c: E2 08 00 94 27 80 09 00 00 00 00 00 00 2D [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 94 27 00 90 00 2F [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_ClearQueue done [14:19:52]KKMCreateOFDPacket [14:19:52]OFDProtocolAddRootSTLVToBuf [14:19:52]FM_MakeSignedData [14:19:52]FM_MakeSignedData [14:19:52]SAM_PROTO_SignData [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 0D 01 02 [14:19:52]Write to MH i2c: E2 08 00 95 27 80 0D 01 02 00 00 00 00 35 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 95 27 00 90 00 30 [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]wFMCommunicate request_size=255 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 8B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A1 09 00 00 35 04 06 00 C9 [14:19:52]Write to MH i2c: E2 02 01 96 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 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 8B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A1 09 00 00 35 04 06 00 C9 00 00 D0 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 96 27 00 90 00 31 [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]wFMCommunicate request_size=10 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 0D 02 02 05 1F 86 D6 09 6A [14:19:52]Write to MH i2c: E2 0D 00 97 27 80 0D 02 02 05 00 1F 86 D6 09 6A 00 00 30 [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 03 00 97 27 00 90 00 32 [14:19:52]RAPDU: 90 00 [14:19:52]wFMCommunicate OK [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 0D 03 02 [14:19:52]Write to MH i2c: E2 08 00 98 27 80 0D 03 02 00 00 00 00 3A [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0B 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 0B 00 98 27 00 F4 44 6F 2B 1E 2D 80 1F 90 00 F7 [14:19:52]RAPDU: F4 44 6F 2B 1E 2D 80 1F 90 00 [14:19:52]wFMCommunicate OK [14:19:52]SAM_PROTO_SignData done [14:19:52]FM_MakeSignedData done [14:19:52]CreateOFDProtocolMessage [14:19:52]wFMCommunicate request_size=4 [14:19:52]MH_SAM_APDU [14:19:52]CAPDU: 80 11 00 00 [14:19:52]Write to MH i2c: E2 08 00 99 27 80 11 00 00 00 00 00 00 3A [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:52]Read from MH i2c: E2 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: E2 17 00 99 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 82 [14:19:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:19:52]wFMCommunicate OK [14:19:52]CreateOFDProtocolMessage done [14:19:52]OFDSenderStorePacket 2465 [14:19:52]StoreOFDPacket docnum=2465 [14:19:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 87 97 07 01 00 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 8B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A1 09 00 00 35 04 06 00 C9 1F 86 D6 09 6A F4 44 6F 2B 1E 2D 80 1F [14:19:52]CheckFolder [14:19:52]dirname=/storage/ofd_packets [14:19:52]CheckFolder done [14:19:52]ProducePacketName [14:19:52]name=ofd_packets/00002465 [14:19:52]NVStorageSaveData ofd_packets/00002465 [14:19:52]File name is /storage/ofd_packets/00002465 [14:19:52]Write 301 bytes [14:19:52]NVStorageSaveData done [14:19:52]OFDSenderStorePacket done [14:19:52]KKMCreateOFDPacket done [14:19:52]NVStorageSaveData kkm_last_timestamp [14:19:52]File name is /storage/kkm_last_timestamp [14:19:52]Write 4 bytes [14:19:52]NVStorageSaveData done [14:19:52]ExternCall_PrintAddStr [14:19:52]wPrintStart [14:19:52]Write to MH i2c: 01 00 00 9A 27 C1 [14:19:52]OFD Sender: Processing packet 2465 [packets to send 1, broken 0] [14:19:52]ProducePacketName [14:19:52]name=ofd_packets/00002465 [14:19:52]OFD Sender: To server: ‡•öpG, [14:19:52]CommunicateWithHost lk.salyk.kg:30040 [14:19:52]ConnectInit lk.salyk.kg [14:19:52]Write i2c OK [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 [14:19:52]MH_I2C_Read... [14:19:52]Read from MH i2c: 01 07 00 9A 27 00 00 00 00 00 FF 0F D6 [14:19:52]RasterBufferAndPrint [14:19:52]line Счет N : (1)475453 [14:19:52]line ИÐÐ: 02508201610067 [14:19:52]line Контрольно-КаÑÑовый Чек [14:19:52]line ПРОДÐЖР[14:19:52]line ТРК (МРК, ГÐК) : 62 [14:19:52]line Товар: 2710124130 [14:19:52]line Ðи-92-К-5 [14:19:52]line 2.990 * 66.90 [14:19:52]line = 200.03 [14:19:52]line ÐДС 12% ÐСП 1% [14:19:52]line > о реализуемом товаре [14:19:52]line ОКРУГЛЕÐИЕ: -0.03 [14:19:52]line ИТОГО: 200.00 [14:19:52]line ВнеÑено: 200.00 [14:19:52]line СДÐЧÐ: 0.00 [14:19:52]line ÐСП 1% : 1.77 [14:19:52]line ÐДС 12% : 21.24 [14:19:52]line Ðаличными: 200.00 [14:19:52]line Безнал.: 0.00 [14:19:52]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:19:52]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:19:52]line СÐО: Общий режим [14:19:52]line Чек 90 18.10.2024 14:19 [14:19:52]line Смена: 22 ФФД: 1.0 [14:19:52]line ЗÐМ: 0300000191 [14:19:52]line РÐМ: 0000000000207295 [14:19:52]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:19:53]line ФМ: 0000000002342820 [14:19:53]line ФД: 2465 [14:19:53]line ФПД: 221137243343210 [14:19:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T141955&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2465&fm=221137243343210&tin=02508201610067®Number=0000000000207295&sum=20000 [14:19:53]Connected sock=10 [14:19:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 87 97 07 01 00 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 8B 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A1 09 00 00 35 04 06 00 C9 1F 86 D6 09 6A F4 44 6F 2B 1E 2D 80 1F [14:19:53]written 0, free lines is 4095 [14:19:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 12 19 47 00 66 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 32 33 34 32 38 32 30 10 04 04 00 A1 09 00 00 F4 03 04 00 EF 19 12 67 B6 04 01 00 00 9E F1 6F 26 62 7A 19 99 [14:19:53]CommunicateWithHost err = 0 [14:19:53]CheckOFDResponse [14:19:53]1017 (14) - 77093643461234 [14:19:53]1041 (16) - 0000000002342820 [14:19:53]1040 (4) - 2465 [14:19:53]1012 (4) - 18.10.2024 08:18 [14:19:53]1206 (1) - 0 [14:19:53]OFD Sender: Remove packet 2465 [14:19:53]ProducePacketName [14:19:53]name=ofd_packets/00002465 [14:19:53]NVStorageDeleteData [14:19:53]Write to MH i2c: 01 00 00 C5 27 EC [14:19:53]Write i2c OK [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: 01 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: 01 07 00 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: 01 07 00 C5 27 00 00 00 00 00 A4 0C A3 [14:19:53]RasterBufferAndPrint [14:19:53]line [14:19:53]line [14:19:53]line [14:19:53]line [14:19:53]line [14:19:53]written 0, free lines is 3239 [14:19:53]MH_Cut [14:19:53]Write to MH i2c: D1 01 00 CC 27 01 C5 [14:19:53]Write i2c OK [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: D1 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: D1 01 00 [14:19:53]MH_I2C_Read... [14:19:53]Read from MH i2c: D1 01 00 CC 27 00 C4 [14:19:53]Write to MH i2c: 01 00 00 CD 27 F4 [14:19:53]Write i2c OK [14:19:53]MH_I2C_Read... [14:19:53]OFD Sender: No OFD packet to send [14:19:54]*** Cut start [14:19:54]*** Partial cut [14:19:54]*** CUTSNS_PIN = 1 [14:19:54]*** CUTSNS_PIN = 0 [14:19:54]*** Brake cut motor [14:19:54]Read from MH i2c: 01 [14:19:54]MH_I2C_Read... [14:19:54]*** Stop cut motor [14:19:54]*** Cut end [14:19:54]Read from MH i2c: 01 07 00 [14:19:54]MH_I2C_Read... [14:19:54]Read from MH i2c: 01 07 00 CD 27 00 00 00 00 00 FF 0F 09 [14:19:54]process_action close_receipt done [14:19:54]requested_data is exist [14:19:54]produce_requested_data [14:19:54]requested_item fm.sn is exist - process it [14:19:54]wFMCommunicate request_size=4 [14:19:54]MH_SAM_APDU [14:19:54]CAPDU: 80 11 00 00 [14:19:54]Write to MH i2c: E2 08 00 CE 27 80 11 00 00 00 00 00 00 6F [14:19:54]Write i2c OK [14:19:54]MH_I2C_Read... [14:19:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:55]Read from MH i2c: E2 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: E2 17 00 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: E2 17 00 CE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B7 [14:19:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:19:55]wFMCommunicate OK [14:19:55]requested_item fd.num is exist - process it [14:19:55]SAM_PROTO_GetFieldsCounters [14:19:55]wFMCommunicate request_size=4 [14:19:55]MH_SAM_APDU [14:19:55]CAPDU: 80 13 00 00 [14:19:55]Write to MH i2c: E2 08 00 CF 27 80 13 00 00 00 00 00 00 72 [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:55]Read from MH i2c: E2 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: E2 62 00 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: E2 62 00 CF 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A1 09 00 00 0E 04 04 00 16 00 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 56 [14:19:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A1 09 00 00 0E 04 04 00 16 00 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 [14:19:55]wFMCommunicate OK [14:19:55]SAM_PROTO_GetFieldsCounters done [14:19:55]requested_item shift.num is exist - process it [14:19:55]requested_item shift.opened is exist - process it [14:19:55]req_shift_opened [14:19:55]FM_GetShiftState [14:19:55]SAM_PROTO_GetShiftState [14:19:55]wFMCommunicate request_size=4 [14:19:55]MH_SAM_APDU [14:19:55]CAPDU: 80 13 01 00 [14:19:55]Write to MH i2c: E2 08 00 D0 27 80 13 01 00 00 00 00 00 74 [14:19:55]Write i2c OK [14:19:55]MH_I2C_Read... [14:19:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:55]Read from MH i2c: E2 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: E2 0E 00 [14:19:55]MH_I2C_Read... [14:19:55]Read from MH i2c: E2 0E 00 D0 27 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 12 [14:19:55]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:19:55]wFMCommunicate OK [14:19:55]SAM_PROTO_GetShiftState done [14:19:55]FM_GetShiftState done [14:19:55]req_shift_opened done [14:19:55]requested_item shift.open_date is exist - process it [14:19:55]req_shift_open_date [14:19:55]req_shift_open_date done [14:19:55]produce_requested_data done [14:19:55]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2465,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:19:55]process_action_free close_receipt [14:19:55]json_value_free [14:19:55]json_value_free done [14:19:55]process_json_proto returns [14:19:55]Send response to host [14:19:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2465,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:19:55]free response buf [14:19:55]execute_script done [14:19:55]execute_script returns [14:19:55]free content buf [14:19:55]Sock 7.Close socket [14:19:55]Sock 7.Thread stoped [14:19:58]OFD Sender: No OFD packet to send [14:20:03]OFD Sender: No OFD packet to send [14:20:08]OFD Sender: No OFD packet to send [14:20:13]accept exits with 9 [14:20:13]New connection [14:20:13]New thread 3066850660 created [14:20:13]Thread 3066707300 joined [14:20:13]Waiting for new connection... [14:20:13] Sock 9.Parse request [14:20:13]Sock 9.Check first char [14:20:13]Sock 9.First char is OK [14:20:13]request: POST /json_proto HTTP/1.0 [14:20:13]Method: POST [14:20:13]URL: /json_proto [14:20:13]Method is POST - this is cgi request [14:20:13]url: /json_proto [14:20:13]query_string will be loaded in cgi processing [14:20:13]execute_cgi json_proto POST (null) [14:20:13]execute_cgi path=json_proto method=POST [14:20:13]POST find Content-Length [14:20:13]Host: 172.17.52.132:8080 [14:20:13]Content-Length: 625 [14:20:13]Content-Type: application/json [14:20:13] [14:20:13]POST finish read [14:20:13]Found Content-Length = 625 [14:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99861", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:13]execute_script... [14:20:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99861", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:20:13]POST & json_proto [14:20:13]process_json_proto [14:20:13]json parsed OK: [14:20:13]protocol is kg_v1.0 [14:20:13]action value=close_receipt [14:20:13]process_action close_receipt [14:20:13]cmd_close_receipt [14:20:13]MH_GetDate [14:20:13]Write to MH i2c: F0 00 00 D1 27 E7 [14:20:13]Write i2c OK [14:20:13]MH_I2C_Read... [14:20:13]Read from MH i2c: F0 [14:20:13]MH_I2C_Read... [14:20:13]Read from MH i2c: F0 09 00 [14:20:13]MH_I2C_Read... [14:20:13]Read from MH i2c: F0 09 00 D1 27 00 A1 6E 12 67 5A BE F6 66 EC [14:20:13]GetLastDocTimeStamp 1729261195 [14:20:13]current date 1729261217 [14:20:13]FM_GetShiftState [14:20:13]SAM_PROTO_GetShiftState [14:20:13]wFMCommunicate request_size=4 [14:20:13]MH_SAM_APDU [14:20:13]CAPDU: 80 13 01 00 [14:20:13]Write to MH i2c: E2 08 00 D2 27 80 13 01 00 00 00 00 00 76 [14:20:13]Write i2c OK [14:20:13]MH_I2C_Read... [14:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:13]Read from MH i2c: E2 [14:20:13]MH_I2C_Read... [14:20:13]Read from MH i2c: E2 0E 00 [14:20:13]MH_I2C_Read... [14:20:13]Read from MH i2c: E2 0E 00 D2 27 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 14 [14:20:13]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:20:13]wFMCommunicate OK [14:20:13]SAM_PROTO_GetShiftState done [14:20:13]FM_GetShiftState done [14:20:13]opened in 1729209717 [14:20:13]opened+sec_in_day 1729296117 [14:20:13]quantity*price = 11500 [14:20:13]sum+1 = 11501 [14:20:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 ÐСП 1% : 1.02 ÐДС 12% : 12.21 Ðаличными: 115.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 91 18.10.2024 14:20 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2466 ФПД: 170981675133322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142017&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2466&fm=170981675133322&tin=02508201610067®Number=0000000000207295&sum=11500 0 [14:20:14]StoreToDocumentArchive [14:20:14]shift 22 fd 2466 [14:20:14]save to /storage/0022/doc_00002466 [14:20:14]save last doc name /storage/0022/doc_00002466 to /storage/kkm_last_doc_name [14:20:14]save OK [14:20:14]Clear old archive folders... [14:20:14]ProcessDocumentItem done err = 0, tmpTLVsize=274 [14:20:14]tlvbuf is 013DB0B0 [14:20:14]SAM_PROTO_ClearQueue [14:20:14]wFMCommunicate request_size=4 [14:20:14]MH_SAM_APDU [14:20:14]CAPDU: 80 09 00 00 [14:20:14]Write to MH i2c: E2 08 00 DF 27 80 09 00 00 00 00 00 00 78 [14:20:14]Write i2c OK [14:20:14]MH_I2C_Read... [14:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:14]Read from MH i2c: E2 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 03 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 03 00 DF 27 00 90 00 7A [14:20:14]RAPDU: 90 00 [14:20:14]wFMCommunicate OK [14:20:14]SAM_PROTO_ClearQueue done [14:20:14]KKMCreateOFDPacket [14:20:14]OFDProtocolAddRootSTLVToBuf [14:20:14]FM_MakeSignedData [14:20:14]FM_MakeSignedData [14:20:14]SAM_PROTO_SignData [14:20:14]wFMCommunicate request_size=4 [14:20:14]MH_SAM_APDU [14:20:14]CAPDU: 80 0D 01 02 [14:20:14]Write to MH i2c: E2 08 00 E0 27 80 0D 01 02 00 00 00 00 80 [14:20:14]Write i2c OK [14:20:14]MH_I2C_Read... [14:20:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:14]Read from MH i2c: E2 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 03 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 03 00 E0 27 00 90 00 7B [14:20:14]RAPDU: 90 00 [14:20:14]wFMCommunicate OK [14:20:14]wFMCommunicate request_size=255 [14:20:14]MH_SAM_APDU [14:20:14]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A1 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 [14:20:14]Write to MH i2c: E2 02 01 E1 27 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A1 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 00 00 15 [14:20:14]Write i2c OK [14:20:14]MH_I2C_Read... [14:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:14]Read from MH i2c: E2 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 03 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 03 00 E1 27 00 90 00 7C [14:20:14]RAPDU: 90 00 [14:20:14]wFMCommunicate OK [14:20:14]wFMCommunicate request_size=33 [14:20:14]MH_SAM_APDU [14:20:14]CAPDU: 80 0D 02 02 1C 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A2 09 00 00 35 04 06 00 9B 81 C6 02 69 8A [14:20:14]Write to MH i2c: E2 24 00 E2 27 80 0D 02 02 1C 00 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A2 09 00 00 35 04 06 00 9B 81 C6 02 69 8A 00 00 89 [14:20:14]Write i2c OK [14:20:14]MH_I2C_Read... [14:20:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:14]Read from MH i2c: E2 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 03 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 03 00 E2 27 00 90 00 7D [14:20:14]RAPDU: 90 00 [14:20:14]wFMCommunicate OK [14:20:14]wFMCommunicate request_size=4 [14:20:14]MH_SAM_APDU [14:20:14]CAPDU: 80 0D 03 02 [14:20:14]Write to MH i2c: E2 08 00 E3 27 80 0D 03 02 00 00 00 00 85 [14:20:14]Write i2c OK [14:20:14]MH_I2C_Read... [14:20:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:14]Read from MH i2c: E2 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 0B 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 0B 00 E3 27 00 DB 5F BE 29 E7 30 EE 25 90 00 D1 [14:20:14]RAPDU: DB 5F BE 29 E7 30 EE 25 90 00 [14:20:14]wFMCommunicate OK [14:20:14]SAM_PROTO_SignData done [14:20:14]FM_MakeSignedData done [14:20:14]CreateOFDProtocolMessage [14:20:14]wFMCommunicate request_size=4 [14:20:14]MH_SAM_APDU [14:20:14]CAPDU: 80 11 00 00 [14:20:14]Write to MH i2c: E2 08 00 E4 27 80 11 00 00 00 00 00 00 85 [14:20:14]Write i2c OK [14:20:14]MH_I2C_Read... [14:20:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:14]Read from MH i2c: E2 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 17 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: E2 17 00 E4 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CD [14:20:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:20:14]wFMCommunicate OK [14:20:14]CreateOFDProtocolMessage done [14:20:14]OFDSenderStorePacket 2466 [14:20:14]StoreOFDPacket docnum=2466 [14:20:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 26 01 00 00 DF 40 1E 01 B1 9A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A1 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A2 09 00 00 35 04 06 00 9B 81 C6 02 69 8A DB 5F BE 29 E7 30 EE 25 [14:20:14]CheckFolder [14:20:14]dirname=/storage/ofd_packets [14:20:14]CheckFolder done [14:20:14]ProducePacketName [14:20:14]name=ofd_packets/00002466 [14:20:14]NVStorageSaveData ofd_packets/00002466 [14:20:14]File name is /storage/ofd_packets/00002466 [14:20:14]Write 324 bytes [14:20:14]NVStorageSaveData done [14:20:14]OFDSenderStorePacket done [14:20:14]KKMCreateOFDPacket done [14:20:14]NVStorageSaveData kkm_last_timestamp [14:20:14]File name is /storage/kkm_last_timestamp [14:20:14]Write 4 bytes [14:20:14]NVStorageSaveData done [14:20:14]ExternCall_PrintAddStr [14:20:14]wPrintStart [14:20:14]Write to MH i2c: 01 00 00 E5 27 0C [14:20:14]Write i2c OK [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: 01 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: 01 07 00 [14:20:14]MH_I2C_Read... [14:20:14]Read from MH i2c: 01 07 00 E5 27 00 00 00 00 00 FF 0F 21 [14:20:14]RasterBufferAndPrint [14:20:14]line Счет N : (3)99861 [14:20:14]line ИÐÐ: 02508201610067 [14:20:14]line Контрольно-КаÑÑовый Чек [14:20:14]line ПРОДÐЖР[14:20:14]line Товар: 2000036240010 [14:20:14]line Кофе Латте (GABB TRADE) [14:20:14]line 1.000 * 115.00 [14:20:14]line = 115.00 [14:20:14]line ÐДС 12% ÐСП 1% [14:20:14]line > о реализуемом товаре [14:20:14]line ИТОГО: 115.00 [14:20:14]line ÐСП 1% : 1.02 [14:20:14]line ÐДС 12% : 12.21 [14:20:14]line Ðаличными: 115.00 [14:20:14]line Безнал.: 0.00 [14:20:14]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:20:14]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:20:14]line СÐО: Общий режим [14:20:14]line Чек 91 18.10.2024 14:20 [14:20:14]line Смена: 22 ФФД: 1.0 [14:20:14]line ЗÐМ: 0300000191 [14:20:14]line РÐМ: 0000000000207295 [14:20:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:20:14]line ФМ: 0000000002342820 [14:20:14]line ФД: 2466 [14:20:15]line ФПД: 170981675133322 [14:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142017&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2466&fm=170981675133322&tin=02508201610067®Number=0000000000207295&sum=11500 [14:20:15]line 0 [14:20:15]OFD Sender: Processing packet 2466 [packets to send 1, broken 0] [14:20:15]ProducePacketName [14:20:15]name=ofd_packets/00002466 [14:20:15]OFD Sender: To server: ‡•öpG, [14:20:15]CommunicateWithHost lk.salyk.kg:30040 [14:20:15]ConnectInit lk.salyk.kg [14:20:15]written 0, free lines is 4095 [14:20:15]Connected sock=10 [14:20:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 26 01 00 00 DF 40 1E 01 B1 9A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5B 00 00 00 F4 03 04 00 A1 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A2 09 00 00 35 04 06 00 9B 81 C6 02 69 8A DB 5F BE 29 E7 30 EE 25 [14:20:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 03 3E 47 00 47 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 32 33 34 32 38 32 30 10 04 04 00 A2 09 00 00 F4 03 04 00 05 1A 12 67 B6 04 01 00 00 17 C6 F5 4B 49 08 DB 37 [14:20:15]CommunicateWithHost err = 0 [14:20:15]CheckOFDResponse [14:20:15]1017 (14) - 77093643461234 [14:20:15]1041 (16) - 0000000002342820 [14:20:15]1040 (4) - 2466 [14:20:15]1012 (4) - 18.10.2024 08:19 [14:20:15]1206 (1) - 0 [14:20:15]OFD Sender: Remove packet 2466 [14:20:15]ProducePacketName [14:20:15]name=ofd_packets/00002466 [14:20:15]NVStorageDeleteData [14:20:15]Write to MH i2c: 01 00 00 0D 28 35 [14:20:15]Write i2c OK [14:20:15]MH_I2C_Read... [14:20:15]Read from MH i2c: 01 [14:20:15]MH_I2C_Read... [14:20:15]Read from MH i2c: 01 07 00 [14:20:15]MH_I2C_Read... [14:20:15]Read from MH i2c: 01 07 00 0D 28 00 00 00 00 00 E1 0C 29 [14:20:15]RasterBufferAndPrint [14:20:15]line [14:20:15]line [14:20:15]line [14:20:15]line [14:20:15]line [14:20:15]written 0, free lines is 3302 [14:20:15]MH_Cut [14:20:15]Write to MH i2c: D1 01 00 14 28 01 0E [14:20:15]Write i2c OK [14:20:15]MH_I2C_Read... [14:20:15]Read from MH i2c: D1 [14:20:15]MH_I2C_Read... [14:20:15]Read from MH i2c: D1 01 00 [14:20:15]MH_I2C_Read... [14:20:15]Read from MH i2c: D1 01 00 14 28 00 0D [14:20:15]Write to MH i2c: 01 00 00 15 28 3D [14:20:15]Write i2c OK [14:20:15]MH_I2C_Read... [14:20:15]OFD Sender: No OFD packet to send [14:20:16]*** Cut start [14:20:16]*** Partial cut [14:20:16]*** CUTSNS_PIN = 1 [14:20:16]*** CUTSNS_PIN = 0 [14:20:16]*** Brake cut motor [14:20:16]Read from MH i2c: 01 [14:20:16]*** Stop cut motor [14:20:16]*** Cut end [14:20:16]MH_I2C_Read... [14:20:16]Read from MH i2c: 01 07 00 [14:20:16]MH_I2C_Read... [14:20:16]Read from MH i2c: 01 07 00 15 28 00 00 00 00 00 FF 0F 52 [14:20:16]process_action close_receipt done [14:20:16]requested_data is exist [14:20:16]produce_requested_data [14:20:16]requested_item fm.sn is exist - process it [14:20:16]wFMCommunicate request_size=4 [14:20:16]MH_SAM_APDU [14:20:16]CAPDU: 80 11 00 00 [14:20:16]Write to MH i2c: E2 08 00 16 28 80 11 00 00 00 00 00 00 B8 [14:20:16]Write i2c OK [14:20:16]MH_I2C_Read... [14:20:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:16]Read from MH i2c: E2 [14:20:16]MH_I2C_Read... [14:20:16]Read from MH i2c: E2 17 00 [14:20:16]MH_I2C_Read... [14:20:16]Read from MH i2c: E2 17 00 16 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 00 [14:20:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:20:16]wFMCommunicate OK [14:20:16]requested_item fd.num is exist - process it [14:20:16]SAM_PROTO_GetFieldsCounters [14:20:16]wFMCommunicate request_size=4 [14:20:16]MH_SAM_APDU [14:20:16]CAPDU: 80 13 00 00 [14:20:16]Write to MH i2c: E2 08 00 17 28 80 13 00 00 00 00 00 00 BB [14:20:16]Write i2c OK [14:20:16]MH_I2C_Read... [14:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:17]Read from MH i2c: E2 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: E2 62 00 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: E2 62 00 17 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A2 09 00 00 0E 04 04 00 16 00 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 A3 [14:20:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A2 09 00 00 0E 04 04 00 16 00 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 [14:20:17]wFMCommunicate OK [14:20:17]SAM_PROTO_GetFieldsCounters done [14:20:17]requested_item shift.num is exist - process it [14:20:17]requested_item shift.opened is exist - process it [14:20:17]req_shift_opened [14:20:17]FM_GetShiftState [14:20:17]SAM_PROTO_GetShiftState [14:20:17]wFMCommunicate request_size=4 [14:20:17]MH_SAM_APDU [14:20:17]CAPDU: 80 13 01 00 [14:20:17]Write to MH i2c: E2 08 00 18 28 80 13 01 00 00 00 00 00 BD [14:20:17]Write i2c OK [14:20:17]MH_I2C_Read... [14:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:17]Read from MH i2c: E2 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: E2 0E 00 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: E2 0E 00 18 28 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5B [14:20:17]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:20:17]wFMCommunicate OK [14:20:17]SAM_PROTO_GetShiftState done [14:20:17]FM_GetShiftState done [14:20:17]req_shift_opened done [14:20:17]requested_item shift.open_date is exist - process it [14:20:17]req_shift_open_date [14:20:17]req_shift_open_date done [14:20:17]produce_requested_data done [14:20:17]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2466,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:20:17]process_action_free close_receipt [14:20:17]json_value_free [14:20:17]json_value_free done [14:20:17]process_json_proto returns [14:20:17]Send response to host [14:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2466,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:20:17]free response buf [14:20:17]execute_script done [14:20:17]execute_script returns [14:20:17]free content buf [14:20:17]Sock 9.Close socket [14:20:17]Sock 9.Thread stoped [14:20:17]accept exits with 7 [14:20:17]New connection [14:20:17]New thread 3066707300 created [14:20:17]Thread 3066850660 joined [14:20:17]Waiting for new connection... [14:20:17] Sock 7.Parse request [14:20:17]Sock 7.Check first char [14:20:17]Sock 7.First char is OK [14:20:17]request: POST /json_proto HTTP/1.0 [14:20:17]Method: POST [14:20:17]URL: /json_proto [14:20:17]Method is POST - this is cgi request [14:20:17]url: /json_proto [14:20:17]query_string will be loaded in cgi processing [14:20:17]execute_cgi json_proto POST (null) [14:20:17]execute_cgi path=json_proto method=POST [14:20:17]POST find Content-Length [14:20:17]Host: 172.17.52.132:8080 [14:20:17]Content-Length: 674 [14:20:17]Content-Type: application/json [14:20:17] [14:20:17]POST finish read [14:20:17]Found Content-Length = 674 [14:20:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:20:17]execute_script... [14:20: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)475454", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 3.940, "sum" : 300.23, "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:20:17]POST & json_proto [14:20:17]process_json_proto [14:20:17]json parsed OK: [14:20:17]protocol is kg_v1.0 [14:20:17]action value=close_receipt [14:20:17]process_action close_receipt [14:20:17]cmd_close_receipt [14:20:17]MH_GetDate [14:20:17]Write to MH i2c: F0 00 00 19 28 30 [14:20:17]Write i2c OK [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: F0 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: F0 09 00 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: F0 09 00 19 28 00 A6 6E 12 67 5A BE F6 66 3A [14:20:17]GetLastDocTimeStamp 1729261217 [14:20:17]current date 1729261222 [14:20:17]FM_GetShiftState [14:20:17]SAM_PROTO_GetShiftState [14:20:17]wFMCommunicate request_size=4 [14:20:17]MH_SAM_APDU [14:20:17]CAPDU: 80 13 01 00 [14:20:17]Write to MH i2c: E2 08 00 1A 28 80 13 01 00 00 00 00 00 BF [14:20:17]Write i2c OK [14:20:17]MH_I2C_Read... [14:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:17]Read from MH i2c: E2 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: E2 0E 00 [14:20:17]MH_I2C_Read... [14:20:17]Read from MH i2c: E2 0E 00 1A 28 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5D [14:20:17]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:20:17]wFMCommunicate OK [14:20:17]SAM_PROTO_GetShiftState done [14:20:17]FM_GetShiftState done [14:20:17]opened in 1729209717 [14:20:17]opened+sec_in_day 1729296117 [14:20:17]quantity*price = 30022 [14:20:17]sum+1 = 30024 [14:20:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.23 ИТОГО: 300.00 ВнеÑено: 300.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.66 ÐДС 12% : 31.88 Ðаличными: 300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 92 18.10.2024 14:20 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2467 ФПД: 61710277683717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142022&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2467&fm=61710277683717&tin=02508201610067®Number=0000000000207295&sum=30000 [14:20:18]StoreToDocumentArchive [14:20:18]shift 22 fd 2467 [14:20:18]save to /storage/0022/doc_00002467 [14:20:18]save last doc name /storage/0022/doc_00002467 to /storage/kkm_last_doc_name [14:20:18]save OK [14:20:18]Clear old archive folders... [14:20:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:20:18]tlvbuf is 013BA180 [14:20:18]SAM_PROTO_ClearQueue [14:20:18]wFMCommunicate request_size=4 [14:20:18]MH_SAM_APDU [14:20:18]CAPDU: 80 09 00 00 [14:20:18]Write to MH i2c: E2 08 00 27 28 80 09 00 00 00 00 00 00 C1 [14:20:18]Write i2c OK [14:20:18]MH_I2C_Read... [14:20:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 27 28 00 90 00 C3 [14:20:19]RAPDU: 90 00 [14:20:19]wFMCommunicate OK [14:20:19]SAM_PROTO_ClearQueue done [14:20:19]KKMCreateOFDPacket [14:20:19]OFDProtocolAddRootSTLVToBuf [14:20:19]FM_MakeSignedData [14:20:19]FM_MakeSignedData [14:20:19]SAM_PROTO_SignData [14:20:19]wFMCommunicate request_size=4 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 0D 01 02 [14:20:19]Write to MH i2c: E2 08 00 28 28 80 0D 01 02 00 00 00 00 C9 [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 28 28 00 90 00 C4 [14:20:19]RAPDU: 90 00 [14:20:19]wFMCommunicate OK [14:20:19]wFMCommunicate request_size=255 [14:20:19]MH_SAM_APDU [14:20: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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 5C 00 00 00 F4 03 04 00 A6 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A3 09 00 00 35 04 06 00 38 20 0B 2E [14:20:19]Write to MH i2c: E2 02 01 29 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 5C 00 00 00 F4 03 04 00 A6 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A3 09 00 00 35 04 06 00 38 20 0B 2E 00 00 3C [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 29 28 00 90 00 C5 [14:20:19]RAPDU: 90 00 [14:20:19]wFMCommunicate OK [14:20:19]wFMCommunicate request_size=7 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 0D 02 02 02 2A 05 [14:20:19]Write to MH i2c: E2 0A 00 2A 28 80 0D 02 02 02 00 2A 05 00 00 FF [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 03 00 2A 28 00 90 00 C6 [14:20:19]RAPDU: 90 00 [14:20:19]wFMCommunicate OK [14:20:19]wFMCommunicate request_size=4 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 0D 03 02 [14:20:19]Write to MH i2c: E2 08 00 2B 28 80 0D 03 02 00 00 00 00 CE [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 0B 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 0B 00 2B 28 00 53 85 E8 B1 56 BE 1E 01 90 00 73 [14:20:19]RAPDU: 53 85 E8 B1 56 BE 1E 01 90 00 [14:20:19]wFMCommunicate OK [14:20:19]SAM_PROTO_SignData done [14:20:19]FM_MakeSignedData done [14:20:19]CreateOFDProtocolMessage [14:20:19]wFMCommunicate request_size=4 [14:20:19]MH_SAM_APDU [14:20:19]CAPDU: 80 11 00 00 [14:20:19]Write to MH i2c: E2 08 00 2C 28 80 11 00 00 00 00 00 00 CE [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:19]Read from MH i2c: E2 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 17 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: E2 17 00 2C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 16 [14:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:20:19]wFMCommunicate OK [14:20:19]CreateOFDProtocolMessage done [14:20:19]OFDSenderStorePacket 2467 [14:20:19]StoreOFDPacket docnum=2467 [14:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 7B C7 04 01 79 4D 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 5C 00 00 00 F4 03 04 00 A6 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A3 09 00 00 35 04 06 00 38 20 0B 2E 2A 05 53 85 E8 B1 56 BE 1E 01 [14:20:19]CheckFolder [14:20:19]dirname=/storage/ofd_packets [14:20:19]CheckFolder done [14:20:19]ProducePacketName [14:20:19]name=ofd_packets/00002467 [14:20:19]NVStorageSaveData ofd_packets/00002467 [14:20:19]File name is /storage/ofd_packets/00002467 [14:20:19]Write 298 bytes [14:20:19]NVStorageSaveData done [14:20:19]OFDSenderStorePacket done [14:20:19]KKMCreateOFDPacket done [14:20:19]NVStorageSaveData kkm_last_timestamp [14:20:19]File name is /storage/kkm_last_timestamp [14:20:19]Write 4 bytes [14:20:19]NVStorageSaveData done [14:20:19]ExternCall_PrintAddStr [14:20:19]wPrintStart [14:20:19]Write to MH i2c: 01 00 00 2D 28 55 [14:20:19]Write i2c OK [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 07 00 [14:20:19]MH_I2C_Read... [14:20:19]Read from MH i2c: 01 07 00 2D 28 00 00 00 00 00 FF 0F 6A [14:20:19]RasterBufferAndPrint [14:20:19]line Счет N : (1)475454 [14:20:19]line ИÐÐ: 02508201610067 [14:20:19]line Контрольно-КаÑÑовый Чек [14:20:19]line ПРОДÐЖР[14:20:19]line ТРК (МРК, ГÐК) : 24 [14:20:19]line Товар: 2710194210 [14:20:19]line ДТ-К-5 [14:20:19]line 3.940 * 76.20 [14:20:19]line = 300.23 [14:20:19]line ÐДС 12% ÐСП 1% [14:20:19]line > о реализуемом товаре [14:20:19]line ОКРУГЛЕÐИЕ: -0.23 [14:20:19]line ИТОГО: 300.00 [14:20:19]line ВнеÑено: 300.00 [14:20:19]line СДÐЧÐ: 0.00 [14:20:19]line ÐСП 1% : 2.66 [14:20:19]line ÐДС 12% : 31.88 [14:20:19]line Ðаличными: 300.00 [14:20:19]line Безнал.: 0.00 [14:20:19]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:20:19]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:20:19]line СÐО: Общий режим [14:20:19]line Чек 92 18.10.2024 14:20 [14:20:19]line Смена: 22 ФФД: 1.0 [14:20:19]line ЗÐМ: 0300000191 [14:20:19]line РÐМ: 0000000000207295 [14:20:19]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:20:19]line ФМ: 0000000002342820 [14:20:19]line ФД: 2467 [14:20:19]line ФПД: 61710277683717 [14:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142022&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2467&fm=61710277683717&tin=02508201610067®Number=0000000000207295&sum=30000 [14:20:19]written 0, free lines is 4095 [14:20:19]OFD Sender: Processing packet 2467 [packets to send 1, broken 0] [14:20:19]ProducePacketName [14:20:19]name=ofd_packets/00002467 [14:20:19]OFD Sender: To server: ‡•öpG, [14:20:19]CommunicateWithHost lk.salyk.kg:30040 [14:20:19]ConnectInit lk.salyk.kg [14:20:19]Connected sock=10 [14:20:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 7B C7 04 01 79 4D 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 64 0F 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 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 5C 00 00 00 F4 03 04 00 A6 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A3 09 00 00 35 04 06 00 38 20 0B 2E 2A 05 53 85 E8 B1 56 BE 1E 01 [14:20:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 4A E1 47 00 30 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 32 33 34 32 38 32 30 10 04 04 00 A3 09 00 00 F4 03 04 00 09 1A 12 67 B6 04 01 00 00 17 E4 3D 7C 5D E7 48 D1 [14:20:19]CommunicateWithHost err = 0 [14:20:19]CheckOFDResponse [14:20:19]1017 (14) - 77093643461234 [14:20:19]1041 (16) - 0000000002342820 [14:20:19]1040 (4) - 2467 [14:20:19]1012 (4) - 18.10.2024 08:19 [14:20:19]1206 (1) - 0 [14:20:19]OFD Sender: Remove packet 2467 [14:20:19]ProducePacketName [14:20:19]name=ofd_packets/00002467 [14:20:19]NVStorageDeleteData [14:20:20]Write to MH i2c: 01 00 00 58 28 80 [14:20:20]Write i2c OK [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: 01 [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: 01 07 00 [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: 01 07 00 58 28 00 00 00 00 00 CB 0C 5E [14:20:20]RasterBufferAndPrint [14:20:20]line [14:20:20]line [14:20:20]line [14:20:20]line [14:20:20]line [14:20:20]written 0, free lines is 3285 [14:20:20]MH_Cut [14:20:20]Write to MH i2c: D1 01 00 5F 28 01 59 [14:20:20]Write i2c OK [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: D1 [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: D1 01 00 [14:20:20]MH_I2C_Read... [14:20:20]Read from MH i2c: D1 01 00 5F 28 00 58 [14:20:20]Write to MH i2c: 01 00 00 60 28 88 [14:20:20]Write i2c OK [14:20:20]MH_I2C_Read... [14:20:20]OFD Sender: No OFD packet to send [14:20:20]*** Cut start [14:20:20]*** Partial cut [14:20:20]*** CUTSNS_PIN = 1 [14:20:20]*** CUTSNS_PIN = 0 [14:20:21]*** Brake cut motor [14:20:21]Read from MH i2c: 01 [14:20:21]MH_I2C_Read... [14:20:21]*** Stop cut motor [14:20:21]*** Cut end [14:20:21]Read from MH i2c: 01 07 00 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: 01 07 00 60 28 00 00 00 00 00 FF 0F 9D [14:20:21]process_action close_receipt done [14:20:21]requested_data is exist [14:20:21]produce_requested_data [14:20:21]requested_item fm.sn is exist - process it [14:20:21]wFMCommunicate request_size=4 [14:20:21]MH_SAM_APDU [14:20:21]CAPDU: 80 11 00 00 [14:20:21]Write to MH i2c: E2 08 00 61 28 80 11 00 00 00 00 00 00 03 [14:20:21]Write i2c OK [14:20:21]MH_I2C_Read... [14:20:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:20:21]Read from MH i2c: E2 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 17 00 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 17 00 61 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 4B [14:20:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:20:21]wFMCommunicate OK [14:20:21]requested_item fd.num is exist - process it [14:20:21]SAM_PROTO_GetFieldsCounters [14:20:21]wFMCommunicate request_size=4 [14:20:21]MH_SAM_APDU [14:20:21]CAPDU: 80 13 00 00 [14:20:21]Write to MH i2c: E2 08 00 62 28 80 13 00 00 00 00 00 00 06 [14:20:21]Write i2c OK [14:20:21]MH_I2C_Read... [14:20:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:20:21]Read from MH i2c: E2 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 62 00 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 62 00 62 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A3 09 00 00 0E 04 04 00 16 00 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 F2 [14:20:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A3 09 00 00 0E 04 04 00 16 00 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 [14:20:21]wFMCommunicate OK [14:20:21]SAM_PROTO_GetFieldsCounters done [14:20:21]requested_item shift.num is exist - process it [14:20:21]requested_item shift.opened is exist - process it [14:20:21]req_shift_opened [14:20:21]FM_GetShiftState [14:20:21]SAM_PROTO_GetShiftState [14:20:21]wFMCommunicate request_size=4 [14:20:21]MH_SAM_APDU [14:20:21]CAPDU: 80 13 01 00 [14:20:21]Write to MH i2c: E2 08 00 63 28 80 13 01 00 00 00 00 00 08 [14:20:21]Write i2c OK [14:20:21]MH_I2C_Read... [14:20:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:20:21]Read from MH i2c: E2 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 0E 00 [14:20:21]MH_I2C_Read... [14:20:21]Read from MH i2c: E2 0E 00 63 28 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A6 [14:20:21]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:20:21]wFMCommunicate OK [14:20:21]SAM_PROTO_GetShiftState done [14:20:21]FM_GetShiftState done [14:20:21]req_shift_opened done [14:20:21]requested_item shift.open_date is exist - process it [14:20:21]req_shift_open_date [14:20:21]req_shift_open_date done [14:20:21]produce_requested_data done [14:20:21]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2467,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:20:21]process_action_free close_receipt [14:20:21]json_value_free [14:20:21]json_value_free done [14:20:21]process_json_proto returns [14:20:21]Send response to host [14:20:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2467,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:20:21]free response buf [14:20:21]execute_script done [14:20:21]execute_script returns [14:20:21]free content buf [14:20:21]Sock 7.Close socket [14:20:21]Sock 7.Thread stoped [14:20:25]OFD Sender: No OFD packet to send [14:20:30]OFD Sender: No OFD packet to send [14:20:35]OFD Sender: No OFD packet to send [14:20:40]OFD Sender: No OFD packet to send [14:20:45]OFD Sender: No OFD packet to send [14:20:50]OFD Sender: No OFD packet to send [14:20:55]OFD Sender: No OFD packet to send [14:21:00]OFD Sender: No OFD packet to send [14:21:05]OFD Sender: No OFD packet to send [14:21:10]OFD Sender: No OFD packet to send [14:21:15]OFD Sender: No OFD packet to send [14:21:20]OFD Sender: No OFD packet to send [14:21:25]OFD Sender: No OFD packet to send [14:21:30]OFD Sender: No OFD packet to send [14:21:30]accept exits with 9 [14:21:30]New connection [14:21:30]New thread 3066850660 created [14:21:30]Thread 3066707300 joined [14:21:30]Waiting for new connection... [14:21:30] Sock 9.Parse request [14:21:30]Sock 9.Check first char [14:21:30]Sock 9.First char is OK [14:21:30]request: POST /json_proto HTTP/1.0 [14:21:30]Method: POST [14:21:30]URL: /json_proto [14:21:30]Method is POST - this is cgi request [14:21:30]url: /json_proto [14:21:30]query_string will be loaded in cgi processing [14:21:30]execute_cgi json_proto POST (null) [14:21:30]execute_cgi path=json_proto method=POST [14:21:30]POST find Content-Length [14:21:30]Host: 172.17.52.132:8080 [14:21:30]Content-Length: 674 [14:21:30]Content-Type: application/json [14:21:30] [14:21:30]POST finish read [14:21:30]Found Content-Length = 674 [14:21:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:30]execute_script... [14:21: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)475455", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:21:30]POST & json_proto [14:21:30]process_json_proto [14:21:30]json parsed OK: [14:21:30]protocol is kg_v1.0 [14:21:30]action value=close_receipt [14:21:30]process_action close_receipt [14:21:30]cmd_close_receipt [14:21:30]MH_GetDate [14:21:30]Write to MH i2c: F0 00 00 64 28 7B [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: F0 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: F0 09 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: F0 09 00 64 28 00 EF 6E 12 67 5A BE F6 66 CE [14:21:30]GetLastDocTimeStamp 1729261222 [14:21:30]current date 1729261295 [14:21:30]FM_GetShiftState [14:21:30]SAM_PROTO_GetShiftState [14:21:30]wFMCommunicate request_size=4 [14:21:30]MH_SAM_APDU [14:21:30]CAPDU: 80 13 01 00 [14:21:30]Write to MH i2c: E2 08 00 65 28 80 13 01 00 00 00 00 00 0A [14:21:30]Write i2c OK [14:21:30]MH_I2C_Read... [14:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:30]Read from MH i2c: E2 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 0E 00 [14:21:30]MH_I2C_Read... [14:21:30]Read from MH i2c: E2 0E 00 65 28 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 A8 [14:21:30]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:21:30]wFMCommunicate OK [14:21:30]SAM_PROTO_GetShiftState done [14:21:30]FM_GetShiftState done [14:21:30]opened in 1729209717 [14:21:30]opened+sec_in_day 1729296117 [14:21:30]quantity*price = 70027 [14:21:30]sum+1 = 70029 [14:21:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.28 ИТОГО: 700.00 ВнеÑено: 700.00 СДÐЧÐ: 0.00 ÐСП 1% : 6.20 ÐДС 12% : 74.37 Ðаличными: 700.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 93 18.10.2024 14:21 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2468 ФПД: 188672412648288 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142135&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2468&fm=188672412648288&tin=02508201610067®Number=0000000000207295&sum=70000 [14:21:31]StoreToDocumentArchive [14:21:31]shift 22 fd 2468 [14:21:31]save to /storage/0022/doc_00002468 [14:21:31]save last doc name /storage/0022/doc_00002468 to /storage/kkm_last_doc_name [14:21:31]save OK [14:21:31]Clear old archive folders... [14:21:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:31]tlvbuf is 01415E10 [14:21:31]SAM_PROTO_ClearQueue [14:21:31]wFMCommunicate request_size=4 [14:21:31]MH_SAM_APDU [14:21:31]CAPDU: 80 09 00 00 [14:21:31]Write to MH i2c: E2 08 00 72 28 80 09 00 00 00 00 00 00 0C [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:31]Read from MH i2c: E2 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 72 28 00 90 00 0E [14:21:31]RAPDU: 90 00 [14:21:31]wFMCommunicate OK [14:21:31]SAM_PROTO_ClearQueue done [14:21:31]KKMCreateOFDPacket [14:21:31]OFDProtocolAddRootSTLVToBuf [14:21:31]FM_MakeSignedData [14:21:31]FM_MakeSignedData [14:21:31]SAM_PROTO_SignData [14:21:31]wFMCommunicate request_size=4 [14:21:31]MH_SAM_APDU [14:21:31]CAPDU: 80 0D 01 02 [14:21:31]Write to MH i2c: E2 08 00 73 28 80 0D 01 02 00 00 00 00 14 [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:31]Read from MH i2c: E2 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 [14:21:31]MH_I2C_Read... [14:21:31]Read from MH i2c: E2 03 00 73 28 00 90 00 0F [14:21:31]RAPDU: 90 00 [14:21:31]wFMCommunicate OK [14:21:31]wFMCommunicate request_size=255 [14:21:31]MH_SAM_APDU [14:21: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 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 5D 00 00 00 F4 03 04 00 EF 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A4 09 00 00 35 04 06 00 AB 98 B8 22 [14:21:31]Write to MH i2c: E2 02 01 74 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 5D 00 00 00 F4 03 04 00 EF 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A4 09 00 00 35 04 06 00 AB 98 B8 22 00 00 9D [14:21:31]Write i2c OK [14:21:31]MH_I2C_Read... [14:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:32]Read from MH i2c: E2 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 03 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 03 00 74 28 00 90 00 10 [14:21:32]RAPDU: 90 00 [14:21:32]wFMCommunicate OK [14:21:32]wFMCommunicate request_size=7 [14:21:32]MH_SAM_APDU [14:21:32]CAPDU: 80 0D 02 02 02 83 60 [14:21:32]Write to MH i2c: E2 0A 00 75 28 80 0D 02 02 02 00 83 60 00 00 FE [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:32]Read from MH i2c: E2 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 03 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 03 00 75 28 00 90 00 11 [14:21:32]RAPDU: 90 00 [14:21:32]wFMCommunicate OK [14:21:32]wFMCommunicate request_size=4 [14:21:32]MH_SAM_APDU [14:21:32]CAPDU: 80 0D 03 02 [14:21:32]Write to MH i2c: E2 08 00 76 28 80 0D 03 02 00 00 00 00 19 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:32]Read from MH i2c: E2 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 0B 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 0B 00 76 28 00 A9 46 1F 25 9D D6 32 0D 90 00 FF [14:21:32]RAPDU: A9 46 1F 25 9D D6 32 0D 90 00 [14:21:32]wFMCommunicate OK [14:21:32]SAM_PROTO_SignData done [14:21:32]FM_MakeSignedData done [14:21:32]CreateOFDProtocolMessage [14:21:32]wFMCommunicate request_size=4 [14:21:32]MH_SAM_APDU [14:21:32]CAPDU: 80 11 00 00 [14:21:32]Write to MH i2c: E2 08 00 77 28 80 11 00 00 00 00 00 00 19 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:32]Read from MH i2c: E2 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 17 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: E2 17 00 77 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 61 [14:21:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:21:32]wFMCommunicate OK [14:21:32]CreateOFDProtocolMessage done [14:21:32]OFDSenderStorePacket 2468 [14:21:32]StoreOFDPacket docnum=2468 [14:21:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 2B 2C 04 01 A0 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 5D 00 00 00 F4 03 04 00 EF 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A4 09 00 00 35 04 06 00 AB 98 B8 22 83 60 A9 46 1F 25 9D D6 32 0D [14:21:32]CheckFolder [14:21:32]dirname=/storage/ofd_packets [14:21:32]CheckFolder done [14:21:32]ProducePacketName [14:21:32]name=ofd_packets/00002468 [14:21:32]NVStorageSaveData ofd_packets/00002468 [14:21:32]File name is /storage/ofd_packets/00002468 [14:21:32]Write 298 bytes [14:21:32]NVStorageSaveData done [14:21:32]OFDSenderStorePacket done [14:21:32]KKMCreateOFDPacket done [14:21:32]NVStorageSaveData kkm_last_timestamp [14:21:32]File name is /storage/kkm_last_timestamp [14:21:32]Write 4 bytes [14:21:32]NVStorageSaveData done [14:21:32]ExternCall_PrintAddStr [14:21:32]wPrintStart [14:21:32]Write to MH i2c: 01 00 00 78 28 A0 [14:21:32]Write i2c OK [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: 01 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: 01 07 00 [14:21:32]MH_I2C_Read... [14:21:32]Read from MH i2c: 01 07 00 78 28 00 00 00 00 00 FF 0F B5 [14:21:32]RasterBufferAndPrint [14:21:32]line Счет N : (1)475455 [14:21:32]line ИÐÐ: 02508201610067 [14:21:32]line Контрольно-КаÑÑовый Чек [14:21:32]line ПРОДÐЖР[14:21:32]line ТРК (МРК, ГÐК) : 44 [14:21:32]line Товар: 2710194210 [14:21:32]line ДТ-К-5 [14:21:32]line 9.190 * 76.20 [14:21:32]line = 700.28 [14:21:32]line ÐДС 12% ÐСП 1% [14:21:32]line > о реализуемом товаре [14:21:32]line ОКРУГЛЕÐИЕ: -0.28 [14:21:32]line ИТОГО: 700.00 [14:21:32]line ВнеÑено: 700.00 [14:21:32]line СДÐЧÐ: 0.00 [14:21:32]line ÐСП 1% : 6.20 [14:21:32]line ÐДС 12% : 74.37 [14:21:32]line Ðаличными: 700.00 [14:21:32]line Безнал.: 0.00 [14:21:32]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:21:32]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:21:32]line СÐО: Общий режим [14:21:32]line Чек 93 18.10.2024 14:21 [14:21:32]line Смена: 22 ФФД: 1.0 [14:21:32]line ЗÐМ: 0300000191 [14:21:32]line РÐМ: 0000000000207295 [14:21:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:21:32]line ФМ: 0000000002342820 [14:21:32]line ФД: 2468 [14:21:32]line ФПД: 188672412648288 [14:21:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142135&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2468&fm=188672412648288&tin=02508201610067®Number=0000000000207295&sum=70000 [14:21:32]OFD Sender: Processing packet 2468 [packets to send 1, broken 0] [14:21:32]ProducePacketName [14:21:32]name=ofd_packets/00002468 [14:21:32]OFD Sender: To server: ‡•öpG, [14:21:32]CommunicateWithHost lk.salyk.kg:30040 [14:21:32]ConnectInit lk.salyk.kg [14:21:32]written 0, free lines is 4095 [14:21:32]Connected sock=10 [14:21:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 2B 2C 04 01 A0 C1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 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 5D 00 00 00 F4 03 04 00 EF 6E 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A4 09 00 00 35 04 06 00 AB 98 B8 22 83 60 A9 46 1F 25 9D D6 32 0D [14:21:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 5E 1D 47 00 EA 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A4 09 00 00 F4 03 04 00 53 1A 12 67 B6 04 01 00 00 CA 98 EE 07 98 3E 99 E0 [14:21:33]CommunicateWithHost err = 0 [14:21:33]CheckOFDResponse [14:21:33]1017 (14) - 77093643461234 [14:21:33]1041 (16) - 0000000002342820 [14:21:33]1040 (4) - 2468 [14:21:33]1012 (4) - 18.10.2024 08:20 [14:21:33]1206 (1) - 0 [14:21:33]OFD Sender: Remove packet 2468 [14:21:33]ProducePacketName [14:21:33]name=ofd_packets/00002468 [14:21:33]NVStorageDeleteData [14:21:33]Write to MH i2c: 01 00 00 A3 28 CB [14:21:33]Write i2c OK [14:21:33]MH_I2C_Read... [14:21:33]Read from MH i2c: 01 [14:21:33]MH_I2C_Read... [14:21:33]Read from MH i2c: 01 07 00 [14:21:33]MH_I2C_Read... [14:21:33]Read from MH i2c: 01 07 00 A3 28 00 00 00 00 00 B0 0C 8E [14:21:33]RasterBufferAndPrint [14:21:33]line [14:21:33]line [14:21:33]line [14:21:33]line [14:21:33]line [14:21:33]written 0, free lines is 3253 [14:21:33]MH_Cut [14:21:33]Write to MH i2c: D1 01 00 AA 28 01 A4 [14:21:33]Write i2c OK [14:21:33]MH_I2C_Read... [14:21:33]Read from MH i2c: D1 [14:21:33]MH_I2C_Read... [14:21:33]Read from MH i2c: D1 01 00 [14:21:33]MH_I2C_Read... [14:21:33]Read from MH i2c: D1 01 00 AA 28 00 A3 [14:21:33]Write to MH i2c: 01 00 00 AB 28 D3 [14:21:33]Write i2c OK [14:21:33]MH_I2C_Read... [14:21:33]OFD Sender: No OFD packet to send [14:21:34]*** Cut start [14:21:34]*** Partial cut [14:21:34]*** CUTSNS_PIN = 1 [14:21:34]*** CUTSNS_PIN = 0 [14:21:34]*** Brake cut motor [14:21:34]Read from MH i2c: 01 [14:21:34]MH_I2C_Read... [14:21:34]*** Stop cut motor [14:21:34]*** Cut end [14:21:34]Read from MH i2c: 01 07 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: 01 07 00 AB 28 00 00 00 00 00 FF 0F E8 [14:21:34]process_action close_receipt done [14:21:34]requested_data is exist [14:21:34]produce_requested_data [14:21:34]requested_item fm.sn is exist - process it [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 11 00 00 [14:21:34]Write to MH i2c: E2 08 00 AC 28 80 11 00 00 00 00 00 00 4E [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 17 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 17 00 AC 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 96 [14:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:21:34]wFMCommunicate OK [14:21:34]requested_item fd.num is exist - process it [14:21:34]SAM_PROTO_GetFieldsCounters [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 13 00 00 [14:21:34]Write to MH i2c: E2 08 00 AD 28 80 13 00 00 00 00 00 00 51 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 62 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 62 00 AD 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A4 09 00 00 0E 04 04 00 16 00 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 41 [14:21:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A4 09 00 00 0E 04 04 00 16 00 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:21:34]wFMCommunicate OK [14:21:34]SAM_PROTO_GetFieldsCounters done [14:21:34]requested_item shift.num is exist - process it [14:21:34]requested_item shift.opened is exist - process it [14:21:34]req_shift_opened [14:21:34]FM_GetShiftState [14:21:34]SAM_PROTO_GetShiftState [14:21:34]wFMCommunicate request_size=4 [14:21:34]MH_SAM_APDU [14:21:34]CAPDU: 80 13 01 00 [14:21:34]Write to MH i2c: E2 08 00 AE 28 80 13 01 00 00 00 00 00 53 [14:21:34]Write i2c OK [14:21:34]MH_I2C_Read... [14:21:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:34]Read from MH i2c: E2 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 0E 00 [14:21:34]MH_I2C_Read... [14:21:34]Read from MH i2c: E2 0E 00 AE 28 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 F1 [14:21:34]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:21:34]wFMCommunicate OK [14:21:34]SAM_PROTO_GetShiftState done [14:21:34]FM_GetShiftState done [14:21:34]req_shift_opened done [14:21:34]requested_item shift.open_date is exist - process it [14:21:34]req_shift_open_date [14:21:34]req_shift_open_date done [14:21:34]produce_requested_data done [14:21:34]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2468,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:21:34]process_action_free close_receipt [14:21:34]json_value_free [14:21:34]json_value_free done [14:21:34]process_json_proto returns [14:21:34]Send response to host [14:21:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2468,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:21:34]free response buf [14:21:34]execute_script done [14:21:34]execute_script returns [14:21:34]free content buf [14:21:34]Sock 9.Close socket [14:21:34]Sock 9.Thread stoped [14:21:38]OFD Sender: No OFD packet to send [14:21:43]OFD Sender: No OFD packet to send [14:21:48]OFD Sender: No OFD packet to send [14:21:53]OFD Sender: No OFD packet to send [14:21:58]OFD Sender: No OFD packet to send [14:22:03]OFD Sender: No OFD packet to send [14:22:08]OFD Sender: No OFD packet to send [14:22:13]OFD Sender: No OFD packet to send [14:22:18]OFD Sender: No OFD packet to send [14:22:23]OFD Sender: No OFD packet to send [14:22:28]OFD Sender: No OFD packet to send [14:22:33]OFD Sender: No OFD packet to send [14:22:38]OFD Sender: No OFD packet to send [14:22:43]OFD Sender: No OFD packet to send [14:22:48]OFD Sender: No OFD packet to send [14:22:53]OFD Sender: No OFD packet to send [14:22:58]OFD Sender: No OFD packet to send [14:23:03]OFD Sender: No OFD packet to send [14:23:08]OFD Sender: No OFD packet to send [14:23:13]OFD Sender: No OFD packet to send [14:23:18]OFD Sender: No OFD packet to send [14:23:23]OFD Sender: No OFD packet to send [14:23:25]accept exits with 7 [14:23:25]New connection [14:23:25]New thread 3066707300 created [14:23:25]Thread 3066850660 joined [14:23:25]Waiting for new connection... [14:23:25] Sock 7.Parse request [14:23:25]Sock 7.Check first char [14:23:25]Sock 7.First char is OK [14:23:25]request: POST /json_proto HTTP/1.0 [14:23:25]Method: POST [14:23:25]URL: /json_proto [14:23:25]Method is POST - this is cgi request [14:23:25]url: /json_proto [14:23:25]query_string will be loaded in cgi processing [14:23:25]execute_cgi json_proto POST (null) [14:23:25]execute_cgi path=json_proto method=POST [14:23:25]POST find Content-Length [14:23:25]Host: 172.17.52.132:8080 [14:23:25]Content-Length: 677 [14:23:25]Content-Type: application/json [14:23:25] [14:23:25]POST finish read [14:23:25]Found Content-Length = 677 [14:23:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475457", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:25]execute_script... [14:23: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)475457", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:25]POST & json_proto [14:23:25]process_json_proto [14:23:25]json parsed OK: [14:23:25]protocol is kg_v1.0 [14:23:25]action value=close_receipt [14:23:25]process_action close_receipt [14:23:25]cmd_close_receipt [14:23:25]MH_GetDate [14:23:25]Write to MH i2c: F0 00 00 AF 28 C6 [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: F0 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: F0 09 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: F0 09 00 AF 28 00 62 6F 12 67 5A BE F6 66 8D [14:23:25]GetLastDocTimeStamp 1729261295 [14:23:25]current date 1729261410 [14:23:25]FM_GetShiftState [14:23:25]SAM_PROTO_GetShiftState [14:23:25]wFMCommunicate request_size=4 [14:23:25]MH_SAM_APDU [14:23:25]CAPDU: 80 13 01 00 [14:23:25]Write to MH i2c: E2 08 00 B0 28 80 13 01 00 00 00 00 00 55 [14:23:25]Write i2c OK [14:23:25]MH_I2C_Read... [14:23:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:25]Read from MH i2c: E2 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: E2 0E 00 [14:23:25]MH_I2C_Read... [14:23:25]Read from MH i2c: E2 0E 00 B0 28 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 F3 [14:23:25]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:23:25]wFMCommunicate OK [14:23:25]SAM_PROTO_GetShiftState done [14:23:25]FM_GetShiftState done [14:23:25]opened in 1729209717 [14:23:25]opened+sec_in_day 1729296117 [14:23:25]quantity*price = 30038 [14:23:25]sum+1 = 30039 [14:23:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.38 ИТОГО: 300.00 ВнеÑено: 300.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.66 ÐДС 12% : 31.90 Ðаличными: 300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 94 18.10.2024 14:23 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2469 ФПД: 73531729467515 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142330&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2469&fm=73531729467515&tin=02508201610067®Number=0000000000207295&sum=30000 [14:23:26]StoreToDocumentArchive [14:23:26]shift 22 fd 2469 [14:23:26]save to /storage/0022/doc_00002469 [14:23:26]save last doc name /storage/0022/doc_00002469 to /storage/kkm_last_doc_name [14:23:26]save OK [14:23:26]Clear old archive folders... [14:23:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:26]tlvbuf is 01399890 [14:23:26]SAM_PROTO_ClearQueue [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 09 00 00 [14:23:26]Write to MH i2c: E2 08 00 BD 28 80 09 00 00 00 00 00 00 57 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 BD 28 00 90 00 59 [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]SAM_PROTO_ClearQueue done [14:23:26]KKMCreateOFDPacket [14:23:26]OFDProtocolAddRootSTLVToBuf [14:23:26]FM_MakeSignedData [14:23:26]FM_MakeSignedData [14:23:26]SAM_PROTO_SignData [14:23:26]wFMCommunicate request_size=4 [14:23:26]MH_SAM_APDU [14:23:26]CAPDU: 80 0D 01 02 [14:23:26]Write to MH i2c: E2 08 00 BE 28 80 0D 01 02 00 00 00 00 5F [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:26]Read from MH i2c: E2 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 [14:23:26]MH_I2C_Read... [14:23:26]Read from MH i2c: E2 03 00 BE 28 00 90 00 5A [14:23:26]RAPDU: 90 00 [14:23:26]wFMCommunicate OK [14:23:26]wFMCommunicate request_size=255 [14:23:26]MH_SAM_APDU [14:23: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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 62 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A5 09 00 00 35 04 06 00 42 [14:23:26]Write to MH i2c: E2 02 01 BF 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 62 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A5 09 00 00 35 04 06 00 42 00 00 85 [14:23:26]Write i2c OK [14:23:26]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 03 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 03 00 BF 28 00 90 00 5B [14:23:27]RAPDU: 90 00 [14:23:27]wFMCommunicate OK [14:23:27]wFMCommunicate request_size=10 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 0D 02 02 05 E0 70 9D 58 7B [14:23:27]Write to MH i2c: E2 0D 00 C0 28 80 0D 02 02 05 00 E0 70 9D 58 7B 00 00 2C [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 03 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 03 00 C0 28 00 90 00 5C [14:23:27]RAPDU: 90 00 [14:23:27]wFMCommunicate OK [14:23:27]wFMCommunicate request_size=4 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 0D 03 02 [14:23:27]Write to MH i2c: E2 08 00 C1 28 80 0D 03 02 00 00 00 00 64 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 0B 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 0B 00 C1 28 00 73 AF 64 7D 49 DE 1E 2E 90 00 DB [14:23:27]RAPDU: 73 AF 64 7D 49 DE 1E 2E 90 00 [14:23:27]wFMCommunicate OK [14:23:27]SAM_PROTO_SignData done [14:23:27]FM_MakeSignedData done [14:23:27]CreateOFDProtocolMessage [14:23:27]wFMCommunicate request_size=4 [14:23:27]MH_SAM_APDU [14:23:27]CAPDU: 80 11 00 00 [14:23:27]Write to MH i2c: E2 08 00 C2 28 80 11 00 00 00 00 00 00 64 [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:27]Read from MH i2c: E2 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 17 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: E2 17 00 C2 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 AC [14:23:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:23:27]wFMCommunicate OK [14:23:27]CreateOFDProtocolMessage done [14:23:27]OFDSenderStorePacket 2469 [14:23:27]StoreOFDPacket docnum=2469 [14:23:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 A5 CB 07 01 5B A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 62 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A5 09 00 00 35 04 06 00 42 E0 70 9D 58 7B 73 AF 64 7D 49 DE 1E 2E [14:23:27]CheckFolder [14:23:27]dirname=/storage/ofd_packets [14:23:27]CheckFolder done [14:23:27]ProducePacketName [14:23:27]name=ofd_packets/00002469 [14:23:27]NVStorageSaveData ofd_packets/00002469 [14:23:27]File name is /storage/ofd_packets/00002469 [14:23:27]Write 301 bytes [14:23:27]NVStorageSaveData done [14:23:27]OFDSenderStorePacket done [14:23:27]KKMCreateOFDPacket done [14:23:27]NVStorageSaveData kkm_last_timestamp [14:23:27]File name is /storage/kkm_last_timestamp [14:23:27]Write 4 bytes [14:23:27]NVStorageSaveData done [14:23:27]ExternCall_PrintAddStr [14:23:27]wPrintStart [14:23:27]Write to MH i2c: 01 00 00 C3 28 EB [14:23:27]OFD Sender: Processing packet 2469 [packets to send 1, broken 0] [14:23:27]ProducePacketName [14:23:27]name=ofd_packets/00002469 [14:23:27]OFD Sender: To server: ‡•öpG, [14:23:27]CommunicateWithHost lk.salyk.kg:30040 [14:23:27]ConnectInit lk.salyk.kg [14:23:27]Write i2c OK [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 07 00 [14:23:27]MH_I2C_Read... [14:23:27]Read from MH i2c: 01 07 00 C3 28 00 00 00 00 00 FF 0F 00 [14:23:27]RasterBufferAndPrint [14:23:27]line Счет N : (1)475457 [14:23:27]line ИÐÐ: 02508201610067 [14:23:27]line Контрольно-КаÑÑовый Чек [14:23:27]line ПРОДÐЖР[14:23:27]line ТРК (МРК, ГÐК) : 12 [14:23:27]line Товар: 2710124130 [14:23:27]line Ðи-92-К-5 [14:23:27]line 4.490 * 66.90 [14:23:27]line = 300.38 [14:23:27]line ÐДС 12% ÐСП 1% [14:23:27]line > о реализуемом товаре [14:23:27]line ОКРУГЛЕÐИЕ: -0.38 [14:23:27]line ИТОГО: 300.00 [14:23:27]line ВнеÑено: 300.00 [14:23:27]line СДÐЧÐ: 0.00 [14:23:27]line ÐСП 1% : 2.66 [14:23:27]line ÐДС 12% : 31.90 [14:23:27]line Ðаличными: 300.00 [14:23:27]line Безнал.: 0.00 [14:23:27]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:23:27]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:23:27]line СÐО: Общий режим [14:23:27]line Чек 94 18.10.2024 14:23 [14:23:27]line Смена: 22 ФФД: 1.0 [14:23:27]line ЗÐМ: 0300000191 [14:23:27]line РÐМ: 0000000000207295 [14:23:27]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:23:27]line ФМ: 0000000002342820 [14:23:27]line ФД: 2469 [14:23:27]line ФПД: 73531729467515 [14:23:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142330&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2469&fm=73531729467515&tin=02508201610067®Number=0000000000207295&sum=30000 [14:23:27]Connected sock=10 [14:23:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 A5 CB 07 01 5B A7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 62 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A5 09 00 00 35 04 06 00 42 E0 70 9D 58 7B 73 AF 64 7D 49 DE 1E 2E [14:23:27]written 0, free lines is 4095 [14:23:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 3E A9 47 00 31 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A5 09 00 00 F4 03 04 00 C5 1A 12 67 B6 04 01 00 00 2B F5 AD 90 59 8F 14 29 [14:23:27]CommunicateWithHost err = 0 [14:23:27]CheckOFDResponse [14:23:27]1017 (14) - 77093643461234 [14:23:27]1041 (16) - 0000000002342820 [14:23:27]1040 (4) - 2469 [14:23:27]1012 (4) - 18.10.2024 08:22 [14:23:27]1206 (1) - 0 [14:23:27]OFD Sender: Remove packet 2469 [14:23:27]ProducePacketName [14:23:27]name=ofd_packets/00002469 [14:23:27]NVStorageDeleteData [14:23:28]Write to MH i2c: 01 00 00 EE 28 16 [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: 01 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: 01 07 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: 01 07 00 EE 28 00 00 00 00 00 AD 0C D6 [14:23:28]RasterBufferAndPrint [14:23:28]line [14:23:28]line [14:23:28]line [14:23:28]line [14:23:28]line [14:23:28]written 0, free lines is 3251 [14:23:28]MH_Cut [14:23:28]Write to MH i2c: D1 01 00 F5 28 01 EF [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: D1 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: D1 01 00 [14:23:28]MH_I2C_Read... [14:23:28]Read from MH i2c: D1 01 00 F5 28 00 EE [14:23:28]Write to MH i2c: 01 00 00 F6 28 1E [14:23:28]Write i2c OK [14:23:28]MH_I2C_Read... [14:23:28]OFD Sender: No OFD packet to send [14:23:29]*** Cut start [14:23:29]*** Partial cut [14:23:29]*** CUTSNS_PIN = 1 [14:23:29]*** CUTSNS_PIN = 0 [14:23:29]*** Brake cut motor [14:23:29]Read from MH i2c: 01 [14:23:29]MH_I2C_Read... [14:23:29]*** Stop cut motor [14:23:29]*** Cut end [14:23:29]Read from MH i2c: 01 07 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: 01 07 00 F6 28 00 00 00 00 00 FF 0F 33 [14:23:29]process_action close_receipt done [14:23:29]requested_data is exist [14:23:29]produce_requested_data [14:23:29]requested_item fm.sn is exist - process it [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 11 00 00 [14:23:29]Write to MH i2c: E2 08 00 F7 28 80 11 00 00 00 00 00 00 99 [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 17 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 17 00 F7 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E1 [14:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:23:29]wFMCommunicate OK [14:23:29]requested_item fd.num is exist - process it [14:23:29]SAM_PROTO_GetFieldsCounters [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 13 00 00 [14:23:29]Write to MH i2c: E2 08 00 F8 28 80 13 00 00 00 00 00 00 9C [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 62 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 62 00 F8 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A5 09 00 00 0E 04 04 00 16 00 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 90 [14:23:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A5 09 00 00 0E 04 04 00 16 00 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:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_GetFieldsCounters done [14:23:29]requested_item shift.num is exist - process it [14:23:29]requested_item shift.opened is exist - process it [14:23:29]req_shift_opened [14:23:29]FM_GetShiftState [14:23:29]SAM_PROTO_GetShiftState [14:23:29]wFMCommunicate request_size=4 [14:23:29]MH_SAM_APDU [14:23:29]CAPDU: 80 13 01 00 [14:23:29]Write to MH i2c: E2 08 00 F9 28 80 13 01 00 00 00 00 00 9E [14:23:29]Write i2c OK [14:23:29]MH_I2C_Read... [14:23:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:29]Read from MH i2c: E2 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0E 00 [14:23:29]MH_I2C_Read... [14:23:29]Read from MH i2c: E2 0E 00 F9 28 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 3C [14:23:29]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:23:29]wFMCommunicate OK [14:23:29]SAM_PROTO_GetShiftState done [14:23:29]FM_GetShiftState done [14:23:29]req_shift_opened done [14:23:29]requested_item shift.open_date is exist - process it [14:23:29]req_shift_open_date [14:23:29]req_shift_open_date done [14:23:29]produce_requested_data done [14:23:29]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2469,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:23:29]process_action_free close_receipt [14:23:29]json_value_free [14:23:29]json_value_free done [14:23:29]process_json_proto returns [14:23:29]Send response to host [14:23:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2469,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:23:29]free response buf [14:23:29]execute_script done [14:23:29]execute_script returns [14:23:29]free content buf [14:23:29]Sock 7.Close socket [14:23:29]Sock 7.Thread stoped [14:23:33]OFD Sender: No OFD packet to send [14:23:38]OFD Sender: No OFD packet to send [14:23:43]OFD Sender: No OFD packet to send [14:23:48]OFD Sender: No OFD packet to send [14:23:53]OFD Sender: No OFD packet to send [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:05]accept exits with 9 [14:24:05]New connection [14:24:05]New thread 3066850660 created [14:24:05]Thread 3066707300 joined [14:24:05]Waiting for new connection... [14:24:05] Sock 9.Parse request [14:24:05]Sock 9.Check first char [14:24:05]Sock 9.First char is OK [14:24:05]request: POST /json_proto HTTP/1.0 [14:24:05]Method: POST [14:24:05]URL: /json_proto [14:24:05]Method is POST - this is cgi request [14:24:05]url: /json_proto [14:24:05]query_string will be loaded in cgi processing [14:24:05]execute_cgi json_proto POST (null) [14:24:05]execute_cgi path=json_proto method=POST [14:24:05]POST find Content-Length [14:24:05]Host: 172.17.52.132:8080 [14:24:05]Content-Length: 769 [14:24:05]Content-Type: application/json [14:24:05] [14:24:05]POST finish read [14:24:05]Found Content-Length = 769 [14:24:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475458", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:05]execute_script... [14:24: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)475458", "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" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:05]POST & json_proto [14:24:05]process_json_proto [14:24:05]json parsed OK: [14:24:05]protocol is kg_v1.0 [14:24:05]action value=close_receipt [14:24:05]process_action close_receipt [14:24:05]cmd_close_receipt [14:24:05]MH_GetDate [14:24:05]Write to MH i2c: F0 00 00 FA 28 11 [14:24:05]Write i2c OK [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: F0 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: F0 09 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: F0 09 00 FA 28 00 8A 6F 12 67 5A BE F6 66 00 [14:24:05]GetLastDocTimeStamp 1729261410 [14:24:05]current date 1729261450 [14:24:05]FM_GetShiftState [14:24:05]SAM_PROTO_GetShiftState [14:24:05]wFMCommunicate request_size=4 [14:24:05]MH_SAM_APDU [14:24:05]CAPDU: 80 13 01 00 [14:24:05]Write to MH i2c: E2 08 00 FB 28 80 13 01 00 00 00 00 00 A0 [14:24:05]Write i2c OK [14:24:05]MH_I2C_Read... [14:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:05]Read from MH i2c: E2 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 0E 00 [14:24:05]MH_I2C_Read... [14:24:05]Read from MH i2c: E2 0E 00 FB 28 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 3E [14:24:05]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:24:05]wFMCommunicate OK [14:24:05]SAM_PROTO_GetShiftState done [14:24:05]FM_GetShiftState done [14:24:05]opened in 1729209717 [14:24:05]opened+sec_in_day 1729296117 [14:24:05]quantity*price = 150032 [14:24:05]sum+1 = 150033 [14:24:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 ÐСП 1% : 13.28 ÐДС 12% : 159.33 Ðаличными: 0.00 Безнал.: 1500.32 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 95 18.10.2024 14:24 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2470 ФПД: 92718971255695 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142410&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2470&fm=92718971255695&tin=02508201610067®Number=0000000000207295&sum=150032 [14:24:06]StoreToDocumentArchive [14:24:06]shift 22 fd 2470 [14:24:06]save to /storage/0022/doc_00002470 [14:24:06]save last doc name /storage/0022/doc_00002470 to /storage/kkm_last_doc_name [14:24:06]save OK [14:24:06]Clear old archive folders... [14:24:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:24:06]tlvbuf is 0139A050 [14:24:06]SAM_PROTO_ClearQueue [14:24:06]wFMCommunicate request_size=4 [14:24:06]MH_SAM_APDU [14:24:06]CAPDU: 80 09 00 00 [14:24:06]Write to MH i2c: E2 08 00 08 29 80 09 00 00 00 00 00 00 A3 [14:24:06]Write i2c OK [14:24:06]MH_I2C_Read... [14:24:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:06]Read from MH i2c: E2 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 03 00 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 03 00 08 29 00 90 00 A5 [14:24:06]RAPDU: 90 00 [14:24:06]wFMCommunicate OK [14:24:06]SAM_PROTO_ClearQueue done [14:24:06]KKMCreateOFDPacket [14:24:06]OFDProtocolAddRootSTLVToBuf [14:24:06]FM_MakeSignedData [14:24:06]FM_MakeSignedData [14:24:06]SAM_PROTO_SignData [14:24:06]wFMCommunicate request_size=4 [14:24:06]MH_SAM_APDU [14:24:06]CAPDU: 80 0D 01 02 [14:24:06]Write to MH i2c: E2 08 00 09 29 80 0D 01 02 00 00 00 00 AB [14:24:06]Write i2c OK [14:24:06]MH_I2C_Read... [14:24:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:06]Read from MH i2c: E2 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 03 00 [14:24:06]MH_I2C_Read... [14:24:06]Read from MH i2c: E2 03 00 09 29 00 90 00 A6 [14:24:06]RAPDU: 90 00 [14:24:06]wFMCommunicate OK [14:24:06]wFMCommunicate request_size=255 [14:24:06]MH_SAM_APDU [14:24: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8A 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A6 09 00 00 35 04 06 00 54 [14:24:06]Write to MH i2c: E2 02 01 0A 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8A 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A6 09 00 00 35 04 06 00 54 00 00 BE [14:24:06]Write i2c OK [14:24:06]MH_I2C_Read... [14:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:07]Read from MH i2c: E2 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: E2 03 00 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: E2 03 00 0A 29 00 90 00 A7 [14:24:07]RAPDU: 90 00 [14:24:07]wFMCommunicate OK [14:24:07]wFMCommunicate request_size=10 [14:24:07]MH_SAM_APDU [14:24:07]CAPDU: 80 0D 02 02 05 53 D1 58 7B 8F [14:24:07]Write to MH i2c: E2 0D 00 0B 29 80 0D 02 02 05 00 53 D1 58 7B 8F 00 00 3E [14:24:07]Write i2c OK [14:24:07]MH_I2C_Read... [14:24:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:07]Read from MH i2c: E2 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: E2 03 00 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: E2 03 00 0B 29 00 90 00 A8 [14:24:07]RAPDU: 90 00 [14:24:07]wFMCommunicate OK [14:24:07]wFMCommunicate request_size=4 [14:24:07]MH_SAM_APDU [14:24:07]CAPDU: 80 0D 03 02 [14:24:07]Write to MH i2c: E2 08 00 0C 29 80 0D 03 02 00 00 00 00 B0 [14:24:07]Write i2c OK [14:24:07]MH_I2C_Read... [14:24:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:07]Read from MH i2c: E2 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: E2 0B 00 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: E2 0B 00 0C 29 00 B9 DF 3D 7B F5 AD 5F D3 90 00 D5 [14:24:07]RAPDU: B9 DF 3D 7B F5 AD 5F D3 90 00 [14:24:07]wFMCommunicate OK [14:24:07]SAM_PROTO_SignData done [14:24:07]FM_MakeSignedData done [14:24:07]CreateOFDProtocolMessage [14:24:07]wFMCommunicate request_size=4 [14:24:07]MH_SAM_APDU [14:24:07]CAPDU: 80 11 00 00 [14:24:07]Write to MH i2c: E2 08 00 0D 29 80 11 00 00 00 00 00 00 B0 [14:24:07]Write i2c OK [14:24:07]MH_I2C_Read... [14:24:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:07]Read from MH i2c: E2 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: E2 17 00 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: E2 17 00 0D 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F8 [14:24:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:24:07]wFMCommunicate OK [14:24:07]CreateOFDProtocolMessage done [14:24:07]OFDSenderStorePacket 2470 [14:24:07]StoreOFDPacket docnum=2470 [14:24:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 24 2A 07 01 F7 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8A 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A6 09 00 00 35 04 06 00 54 53 D1 58 7B 8F B9 DF 3D 7B F5 AD 5F D3 [14:24:07]CheckFolder [14:24:07]dirname=/storage/ofd_packets [14:24:07]CheckFolder done [14:24:07]ProducePacketName [14:24:07]name=ofd_packets/00002470 [14:24:07]NVStorageSaveData ofd_packets/00002470 [14:24:07]File name is /storage/ofd_packets/00002470 [14:24:07]Write 301 bytes [14:24:07]NVStorageSaveData done [14:24:07]OFDSenderStorePacket done [14:24:07]KKMCreateOFDPacket done [14:24:07]NVStorageSaveData kkm_last_timestamp [14:24:07]File name is /storage/kkm_last_timestamp [14:24:07]Write 4 bytes [14:24:07]NVStorageSaveData done [14:24:07]ExternCall_PrintAddStr [14:24:07]wPrintStart [14:24:07]Write to MH i2c: 01 00 00 0E 29 37 [14:24:07]Write i2c OK [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 07 00 [14:24:07]MH_I2C_Read... [14:24:07]Read from MH i2c: 01 07 00 0E 29 00 00 00 00 00 FF 0F 4C [14:24:07]RasterBufferAndPrint [14:24:07]line Счет N : (1)475458 [14:24:07]line ИÐÐ: 02508201610067 [14:24:07]line Контрольно-КаÑÑовый Чек [14:24:07]line ПРОДÐЖР[14:24:07]line ТРК (МРК, ГÐК) : 31 [14:24:07]line Товар: 2710124500 [14:24:07]line Ðи-95-К-5 [14:24:07]line 20.220 * 74.20 [14:24:07]line = 1500.32 [14:24:07]line ÐДС 12% ÐСП 1% [14:24:07]line > о реализуемом товаре [14:24:07]line ИТОГО: 1500.32 [14:24:07]line ÐСП 1% : 13.28 [14:24:07]line ÐДС 12% : 159.33 [14:24:07]line Ðаличными: 0.00 [14:24:07]line Безнал.: 1500.32 [14:24:07]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:24:07]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:24:07]line СÐО: Общий режим [14:24:07]line Чек 95 18.10.2024 14:24 [14:24:07]line Смена: 22 ФФД: 1.0 [14:24:07]line ЗÐМ: 0300000191 [14:24:07]line РÐМ: 0000000000207295 [14:24:07]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:24:07]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [14:24:07]line ФМ: 0000000002342820 [14:24:07]line ФД: 2470 [14:24:07]line ФПД: 92718971255695 [14:24:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142410&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2470&fm=92718971255695&tin=02508201610067®Number=0000000000207295&sum=150032 [14:24:07]OFD Sender: Processing packet 2470 [packets to send 1, broken 0] [14:24:07]ProducePacketName [14:24:07]name=ofd_packets/00002470 [14:24:07]OFD Sender: To server: ‡•öpG, [14:24:07]CommunicateWithHost lk.salyk.kg:30040 [14:24:07]ConnectInit lk.salyk.kg [14:24:07]written 0, free lines is 4095 [14:24:07]Connected sock=10 [14:24:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 24 2A 07 01 F7 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 35 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 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 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 00 00 00 F4 03 04 00 8A 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A6 09 00 00 35 04 06 00 54 53 D1 58 7B 8F B9 DF 3D 7B F5 AD 5F D3 [14:24:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B0 4E 47 00 2E 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 32 33 34 32 38 32 30 10 04 04 00 A6 09 00 00 F4 03 04 00 ED 1A 12 67 B6 04 01 00 00 E4 D4 25 A3 4A FF 1E 7F [14:24:07]CommunicateWithHost err = 0 [14:24:07]CheckOFDResponse [14:24:07]1017 (14) - 77093643461234 [14:24:07]1041 (16) - 0000000002342820 [14:24:07]1040 (4) - 2470 [14:24:07]1012 (4) - 18.10.2024 08:23 [14:24:07]1206 (1) - 0 [14:24:07]OFD Sender: Remove packet 2470 [14:24:07]ProducePacketName [14:24:07]name=ofd_packets/00002470 [14:24:07]NVStorageDeleteData [14:24:08]Write to MH i2c: 01 00 00 37 29 60 [14:24:08]Write i2c OK [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: 01 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: 01 07 00 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: 01 07 00 37 29 00 00 00 00 00 D7 0C 4A [14:24:08]RasterBufferAndPrint [14:24:08]line [14:24:08]line [14:24:08]line [14:24:08]line [14:24:08]line [14:24:08]written 0, free lines is 3293 [14:24:08]MH_Cut [14:24:08]Write to MH i2c: D1 01 00 3E 29 01 39 [14:24:08]Write i2c OK [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: D1 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: D1 01 00 [14:24:08]MH_I2C_Read... [14:24:08]Read from MH i2c: D1 01 00 3E 29 00 38 [14:24:08]Write to MH i2c: 01 00 00 3F 29 68 [14:24:08]Write i2c OK [14:24:08]MH_I2C_Read... [14:24:08]OFD Sender: No OFD packet to send [14:24:08]*** Cut start [14:24:08]*** Partial cut [14:24:08]*** CUTSNS_PIN = 1 [14:24:08]*** CUTSNS_PIN = 0 [14:24:09]*** Brake cut motor [14:24:09]Read from MH i2c: 01 [14:24:09]MH_I2C_Read... [14:24:09]*** Stop cut motor [14:24:09]*** Cut end [14:24:09]Read from MH i2c: 01 07 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: 01 07 00 3F 29 00 00 00 00 00 FF 0F 7D [14:24:09]process_action close_receipt done [14:24:09]requested_data is exist [14:24:09]produce_requested_data [14:24:09]requested_item fm.sn is exist - process it [14:24:09]wFMCommunicate request_size=4 [14:24:09]MH_SAM_APDU [14:24:09]CAPDU: 80 11 00 00 [14:24:09]Write to MH i2c: E2 08 00 40 29 80 11 00 00 00 00 00 00 E3 [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:09]Read from MH i2c: E2 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 17 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 17 00 40 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 2B [14:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:24:09]wFMCommunicate OK [14:24:09]requested_item fd.num is exist - process it [14:24:09]SAM_PROTO_GetFieldsCounters [14:24:09]wFMCommunicate request_size=4 [14:24:09]MH_SAM_APDU [14:24:09]CAPDU: 80 13 00 00 [14:24:09]Write to MH i2c: E2 08 00 41 29 80 13 00 00 00 00 00 00 E6 [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:09]Read from MH i2c: E2 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 62 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 62 00 41 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A6 09 00 00 0E 04 04 00 16 00 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 DE [14:24:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A6 09 00 00 0E 04 04 00 16 00 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:24:09]wFMCommunicate OK [14:24:09]SAM_PROTO_GetFieldsCounters done [14:24:09]requested_item shift.num is exist - process it [14:24:09]requested_item shift.opened is exist - process it [14:24:09]req_shift_opened [14:24:09]FM_GetShiftState [14:24:09]SAM_PROTO_GetShiftState [14:24:09]wFMCommunicate request_size=4 [14:24:09]MH_SAM_APDU [14:24:09]CAPDU: 80 13 01 00 [14:24:09]Write to MH i2c: E2 08 00 42 29 80 13 01 00 00 00 00 00 E8 [14:24:09]Write i2c OK [14:24:09]MH_I2C_Read... [14:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:09]Read from MH i2c: E2 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 0E 00 [14:24:09]MH_I2C_Read... [14:24:09]Read from MH i2c: E2 0E 00 42 29 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 86 [14:24:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:24:09]wFMCommunicate OK [14:24:09]SAM_PROTO_GetShiftState done [14:24:09]FM_GetShiftState done [14:24:09]req_shift_opened done [14:24:09]requested_item shift.open_date is exist - process it [14:24:09]req_shift_open_date [14:24:09]req_shift_open_date done [14:24:09]produce_requested_data done [14:24:09]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2470,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:24:09]process_action_free close_receipt [14:24:09]json_value_free [14:24:09]json_value_free done [14:24:09]process_json_proto returns [14:24:09]Send response to host [14:24:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2470,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:24:09]free response buf [14:24:09]execute_script done [14:24:09]execute_script returns [14:24:09]free content buf [14:24:09]Sock 9.Close socket [14:24:09]Sock 9.Thread stoped [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:28]OFD Sender: No OFD packet to send [14:24:33]OFD Sender: No OFD packet to send [14:24:38]OFD Sender: No OFD packet to send [14:24:43]OFD Sender: No OFD packet to send [14:24:48]OFD Sender: No OFD packet to send [14:24:53]OFD Sender: No OFD packet to send [14:24:58]OFD Sender: No OFD packet to send [14:25:03]OFD Sender: No OFD packet to send [14:25:08]OFD Sender: No OFD packet to send [14:25:13]OFD Sender: No OFD packet to send [14:25:18]OFD Sender: No OFD packet to send [14:25:21]accept exits with 7 [14:25:21]New connection [14:25:21]New thread 3066707300 created [14:25:21]Thread 3066850660 joined [14:25:21]Waiting for new connection... [14:25:21] Sock 7.Parse request [14:25:21]Sock 7.Check first char [14:25:21]Sock 7.First char is OK [14:25:21]request: POST /json_proto HTTP/1.0 [14:25:21]Method: POST [14:25:21]URL: /json_proto [14:25:21]Method is POST - this is cgi request [14:25:21]url: /json_proto [14:25:21]query_string will be loaded in cgi processing [14:25:21]execute_cgi json_proto POST (null) [14:25:21]execute_cgi path=json_proto method=POST [14:25:21]POST find Content-Length [14:25:21]Host: 172.17.52.132:8080 [14:25:21]Content-Length: 679 [14:25:21]Content-Type: application/json [14:25:21] [14:25:21]POST finish read [14:25:21]Found Content-Length = 679 [14:25:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:21]execute_script... [14:25:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 24", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 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:25:21]POST & json_proto [14:25:21]process_json_proto [14:25:21]json parsed OK: [14:25:21]protocol is kg_v1.0 [14:25:21]action value=close_receipt [14:25:21]process_action close_receipt [14:25:21]cmd_close_receipt [14:25:21]MH_GetDate [14:25:21]Write to MH i2c: F0 00 00 43 29 5B [14:25:21]Write i2c OK [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: F0 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: F0 09 00 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: F0 09 00 43 29 00 D5 6F 12 67 5A BE F6 66 95 [14:25:21]GetLastDocTimeStamp 1729261450 [14:25:21]current date 1729261525 [14:25:21]FM_GetShiftState [14:25:21]SAM_PROTO_GetShiftState [14:25:21]wFMCommunicate request_size=4 [14:25:21]MH_SAM_APDU [14:25:21]CAPDU: 80 13 01 00 [14:25:21]Write to MH i2c: E2 08 00 44 29 80 13 01 00 00 00 00 00 EA [14:25:21]Write i2c OK [14:25:21]MH_I2C_Read... [14:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:21]Read from MH i2c: E2 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: E2 0E 00 [14:25:21]MH_I2C_Read... [14:25:21]Read from MH i2c: E2 0E 00 44 29 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 88 [14:25:21]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:25:21]wFMCommunicate OK [14:25:21]SAM_PROTO_GetShiftState done [14:25:21]FM_GetShiftState done [14:25:21]opened in 1729209717 [14:25:21]opened+sec_in_day 1729296117 [14:25:21]quantity*price = 100050 [14:25:21]sum+1 = 100052 [14:25:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.51 ИТОГО: 1000.00 ВнеÑено: 1000.00 СДÐЧÐ: 0.00 ÐСП 1% : 8.85 ÐДС 12% : 106.25 Ðаличными: 1000.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 96 18.10.2024 14:25 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2471 ФПД: 278459942149872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142525&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2471&fm=278459942149872&tin=02508201610067®Number=0000000000207295&sum=100000 [14:25:22]StoreToDocumentArchive [14:25:22]shift 22 fd 2471 [14:25:22]save to /storage/0022/doc_00002471 [14:25:22]save last doc name /storage/0022/doc_00002471 to /storage/kkm_last_doc_name [14:25:22]save OK [14:25:22]Clear old archive folders... [14:25:22]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:25:22]tlvbuf is 013E89F0 [14:25:22]SAM_PROTO_ClearQueue [14:25:22]wFMCommunicate request_size=4 [14:25:22]MH_SAM_APDU [14:25:22]CAPDU: 80 09 00 00 [14:25:22]Write to MH i2c: E2 08 00 51 29 80 09 00 00 00 00 00 00 EC [14:25:22]Write i2c OK [14:25:22]MH_I2C_Read... [14:25:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:22]Read from MH i2c: E2 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 03 00 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 03 00 51 29 00 90 00 EE [14:25:22]RAPDU: 90 00 [14:25:22]wFMCommunicate OK [14:25:22]SAM_PROTO_ClearQueue done [14:25:22]KKMCreateOFDPacket [14:25:22]OFDProtocolAddRootSTLVToBuf [14:25:22]FM_MakeSignedData [14:25:22]FM_MakeSignedData [14:25:22]SAM_PROTO_SignData [14:25:22]wFMCommunicate request_size=4 [14:25:22]MH_SAM_APDU [14:25:22]CAPDU: 80 0D 01 02 [14:25:22]Write to MH i2c: E2 08 00 52 29 80 0D 01 02 00 00 00 00 F4 [14:25:22]Write i2c OK [14:25:22]MH_I2C_Read... [14:25:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:22]Read from MH i2c: E2 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 03 00 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 03 00 52 29 00 90 00 EF [14:25:22]RAPDU: 90 00 [14:25:22]wFMCommunicate OK [14:25:22]wFMCommunicate request_size=255 [14:25:22]MH_SAM_APDU [14:25:22]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D5 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A7 09 00 00 35 04 06 00 FD 42 01 EF [14:25:22]Write to MH i2c: E2 02 01 53 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 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D5 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A7 09 00 00 35 04 06 00 FD 42 01 EF 00 00 80 [14:25:22]Write i2c OK [14:25:22]MH_I2C_Read... [14:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:22]Read from MH i2c: E2 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 03 00 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 03 00 53 29 00 90 00 F0 [14:25:22]RAPDU: 90 00 [14:25:22]wFMCommunicate OK [14:25:22]wFMCommunicate request_size=7 [14:25:22]MH_SAM_APDU [14:25:22]CAPDU: 80 0D 02 02 02 9E F0 [14:25:22]Write to MH i2c: E2 0A 00 54 29 80 0D 02 02 02 00 9E F0 00 00 89 [14:25:22]Write i2c OK [14:25:22]MH_I2C_Read... [14:25:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:22]Read from MH i2c: E2 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 03 00 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 03 00 54 29 00 90 00 F1 [14:25:22]RAPDU: 90 00 [14:25:22]wFMCommunicate OK [14:25:22]wFMCommunicate request_size=4 [14:25:22]MH_SAM_APDU [14:25:22]CAPDU: 80 0D 03 02 [14:25:22]Write to MH i2c: E2 08 00 55 29 80 0D 03 02 00 00 00 00 F9 [14:25:22]Write i2c OK [14:25:22]MH_I2C_Read... [14:25:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:22]Read from MH i2c: E2 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 0B 00 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 0B 00 55 29 00 F9 C3 83 17 62 50 8C 8F 90 00 1D [14:25:22]RAPDU: F9 C3 83 17 62 50 8C 8F 90 00 [14:25:22]wFMCommunicate OK [14:25:22]SAM_PROTO_SignData done [14:25:22]FM_MakeSignedData done [14:25:22]CreateOFDProtocolMessage [14:25:22]wFMCommunicate request_size=4 [14:25:22]MH_SAM_APDU [14:25:22]CAPDU: 80 11 00 00 [14:25:22]Write to MH i2c: E2 08 00 56 29 80 11 00 00 00 00 00 00 F9 [14:25:22]Write i2c OK [14:25:22]MH_I2C_Read... [14:25:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:22]Read from MH i2c: E2 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 17 00 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: E2 17 00 56 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 41 [14:25:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:25:22]wFMCommunicate OK [14:25:22]CreateOFDProtocolMessage done [14:25:22]OFDSenderStorePacket 2471 [14:25:22]StoreOFDPacket docnum=2471 [14:25:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 6A 6E 04 01 C5 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D5 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A7 09 00 00 35 04 06 00 FD 42 01 EF 9E F0 F9 C3 83 17 62 50 8C 8F [14:25:22]CheckFolder [14:25:22]dirname=/storage/ofd_packets [14:25:22]CheckFolder done [14:25:22]ProducePacketName [14:25:22]name=ofd_packets/00002471 [14:25:22]NVStorageSaveData ofd_packets/00002471 [14:25:22]File name is /storage/ofd_packets/00002471 [14:25:22]Write 298 bytes [14:25:22]NVStorageSaveData done [14:25:22]OFDSenderStorePacket done [14:25:22]KKMCreateOFDPacket done [14:25:22]NVStorageSaveData kkm_last_timestamp [14:25:22]File name is /storage/kkm_last_timestamp [14:25:22]Write 4 bytes [14:25:22]NVStorageSaveData done [14:25:22]ExternCall_PrintAddStr [14:25:22]wPrintStart [14:25:22]Write to MH i2c: 01 00 00 57 29 80 [14:25:22]Write i2c OK [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: 01 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: 01 07 00 [14:25:22]MH_I2C_Read... [14:25:22]Read from MH i2c: 01 07 00 57 29 00 00 00 00 00 FF 0F 95 [14:25:22]RasterBufferAndPrint [14:25:22]line Счет N : (1)475459 [14:25:22]line ИÐÐ: 02508201610067 [14:25:22]line Контрольно-КаÑÑовый Чек [14:25:22]line ПРОДÐЖР[14:25:22]line ТРК (МРК, ГÐК) : 24 [14:25:22]line Товар: 2710194210 [14:25:22]line ДТ-К-5 [14:25:22]line 13.130 * 76.20 [14:25:22]line = 1000.51 [14:25:22]line ÐДС 12% ÐСП 1% [14:25:22]line > о реализуемом товаре [14:25:22]line ОКРУГЛЕÐИЕ: -0.51 [14:25:22]line ИТОГО: 1000.00 [14:25:22]line ВнеÑено: 1000.00 [14:25:22]line СДÐЧÐ: 0.00 [14:25:22]line ÐСП 1% : 8.85 [14:25:22]line ÐДС 12% : 106.25 [14:25:22]line Ðаличными: 1000.00 [14:25:22]line Безнал.: 0.00 [14:25:22]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:25:22]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:25:22]line СÐО: Общий режим [14:25:22]line Чек 96 18.10.2024 14:25 [14:25:22]line Смена: 22 ФФД: 1.0 [14:25:22]line ЗÐМ: 0300000191 [14:25:22]line РÐМ: 0000000000207295 [14:25:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:25:22]line ФМ: 0000000002342820 [14:25:22]line ФД: 2471 [14:25:22]line ФПД: 278459942149872 [14:25:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T142525&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2471&fm=278459942149872&tin=02508201610067®Number=0000000000207295&sum=100000 [14:25:23]OFD Sender: Processing packet 2471 [packets to send 1, broken 0] [14:25:23]ProducePacketName [14:25:23]name=ofd_packets/00002471 [14:25:23]OFD Sender: To server: ‡•öpG, [14:25:23]CommunicateWithHost lk.salyk.kg:30040 [14:25:23]ConnectInit lk.salyk.kg [14:25:23]written 0, free lines is 4095 [14:25:23]Connected sock=10 [14:25:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0C 01 00 00 6A 6E 04 01 C5 19 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 D5 6F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A7 09 00 00 35 04 06 00 FD 42 01 EF 9E F0 F9 C3 83 17 62 50 8C 8F [14:25:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 9D 36 47 00 FE 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 32 33 34 32 38 32 30 10 04 04 00 A7 09 00 00 F4 03 04 00 39 1B 12 67 B6 04 01 00 00 F6 ED A5 81 8A 21 06 57 [14:25:23]CommunicateWithHost err = 0 [14:25:23]CheckOFDResponse [14:25:23]1017 (14) - 77093643461234 [14:25:23]1041 (16) - 0000000002342820 [14:25:23]1040 (4) - 2471 [14:25:23]1012 (4) - 18.10.2024 08:24 [14:25:23]1206 (1) - 0 [14:25:23]OFD Sender: Remove packet 2471 [14:25:23]ProducePacketName [14:25:23]name=ofd_packets/00002471 [14:25:23]NVStorageDeleteData [14:25:23]Write to MH i2c: 01 00 00 82 29 AB [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: 01 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: 01 07 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: 01 07 00 82 29 00 00 00 00 00 A5 0C 63 [14:25:23]RasterBufferAndPrint [14:25:23]line [14:25:23]line [14:25:23]line [14:25:23]line [14:25:23]line [14:25:23]written 0, free lines is 3242 [14:25:23]MH_Cut [14:25:23]Write to MH i2c: D1 01 00 89 29 01 84 [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: D1 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: D1 01 00 [14:25:23]MH_I2C_Read... [14:25:23]Read from MH i2c: D1 01 00 89 29 00 83 [14:25:23]Write to MH i2c: 01 00 00 8A 29 B3 [14:25:23]Write i2c OK [14:25:23]MH_I2C_Read... [14:25:23]OFD Sender: No OFD packet to send [14:25:24]*** Cut start [14:25:24]*** Partial cut [14:25:24]*** CUTSNS_PIN = 1 [14:25:24]*** CUTSNS_PIN = 0 [14:25:24]*** Brake cut motor [14:25:25]Read from MH i2c: 01 [14:25:25]MH_I2C_Read... [14:25:25]*** Stop cut motor [14:25:25]*** Cut end [14:25:25]Read from MH i2c: 01 07 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: 01 07 00 8A 29 00 00 00 00 00 FF 0F C8 [14:25:25]process_action close_receipt done [14:25:25]requested_data is exist [14:25:25]produce_requested_data [14:25:25]requested_item fm.sn is exist - process it [14:25:25]wFMCommunicate request_size=4 [14:25:25]MH_SAM_APDU [14:25:25]CAPDU: 80 11 00 00 [14:25:25]Write to MH i2c: E2 08 00 8B 29 80 11 00 00 00 00 00 00 2E [14:25:25]Write i2c OK [14:25:25]MH_I2C_Read... [14:25:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:25]Read from MH i2c: E2 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 17 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 17 00 8B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 76 [14:25:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:25:25]wFMCommunicate OK [14:25:25]requested_item fd.num is exist - process it [14:25:25]SAM_PROTO_GetFieldsCounters [14:25:25]wFMCommunicate request_size=4 [14:25:25]MH_SAM_APDU [14:25:25]CAPDU: 80 13 00 00 [14:25:25]Write to MH i2c: E2 08 00 8C 29 80 13 00 00 00 00 00 00 31 [14:25:25]Write i2c OK [14:25:25]MH_I2C_Read... [14:25:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:25]Read from MH i2c: E2 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 62 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 62 00 8C 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A7 09 00 00 0E 04 04 00 16 00 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 2D [14:25:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A7 09 00 00 0E 04 04 00 16 00 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:25:25]wFMCommunicate OK [14:25:25]SAM_PROTO_GetFieldsCounters done [14:25:25]requested_item shift.num is exist - process it [14:25:25]requested_item shift.opened is exist - process it [14:25:25]req_shift_opened [14:25:25]FM_GetShiftState [14:25:25]SAM_PROTO_GetShiftState [14:25:25]wFMCommunicate request_size=4 [14:25:25]MH_SAM_APDU [14:25:25]CAPDU: 80 13 01 00 [14:25:25]Write to MH i2c: E2 08 00 8D 29 80 13 01 00 00 00 00 00 33 [14:25:25]Write i2c OK [14:25:25]MH_I2C_Read... [14:25:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:25]Read from MH i2c: E2 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 0E 00 [14:25:25]MH_I2C_Read... [14:25:25]Read from MH i2c: E2 0E 00 8D 29 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D1 [14:25:25]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:25:25]wFMCommunicate OK [14:25:25]SAM_PROTO_GetShiftState done [14:25:25]FM_GetShiftState done [14:25:25]req_shift_opened done [14:25:25]requested_item shift.open_date is exist - process it [14:25:25]req_shift_open_date [14:25:25]req_shift_open_date done [14:25:25]produce_requested_data done [14:25:25]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2471,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:25:25]process_action_free close_receipt [14:25:25]json_value_free [14:25:25]json_value_free done [14:25:25]process_json_proto returns [14:25:25]Send response to host [14:25:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2471,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:25:25]free response buf [14:25:25]execute_script done [14:25:25]execute_script returns [14:25:25]free content buf [14:25:25]Sock 7.Close socket [14:25:25]Sock 7.Thread stoped [14:25:28]OFD Sender: No OFD packet to send [14:25:33]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:16]int [14:26:16]Write to MH i2c: 01 00 00 8E 29 B7 [14:26:16]*** FLAG_PRN_PAP1 set [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 8E 29 00 01 00 00 00 FF 0F CD [14:26:16]state=0 [14:26:16]No paper [14:26:16]int [14:26:16]Write to MH i2c: 01 00 00 8F 29 B8 [14:26:16]*** FLAG_PRN_PAP2 set [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 8F 29 00 03 00 00 00 FF 0F D0 [14:26:16]state=0 [14:26:16]No paper [14:26:16]Cover opened [14:26:16]int [14:26:16]Write to MH i2c: 01 00 00 90 29 B9 [14:26:16]*** FLAG_PRN_PAP2 reset [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 90 29 00 01 00 00 00 FF 0F CF [14:26:16]state=3 [14:26:16]No paper [14:26:16]Cover closed [14:26:16]int [14:26:16]Write to MH i2c: 01 00 00 91 29 BA [14:26:16]*** FLAG_PRN_PAP2 set [14:26:16]Write i2c OK [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 [14:26:16]MH_I2C_Read... [14:26:16]Read from MH i2c: 01 07 00 91 29 00 03 00 00 00 FF 0F D2 [14:26:16]state=0 [14:26:16]No paper [14:26:16]Cover opened [14:26:18]int [14:26:18]Write to MH i2c: 01 00 00 92 29 BB [14:26:18]*** FLAG_PRN_PAP2 reset [14:26:18]Write i2c OK [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: 01 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: 01 07 00 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: 01 07 00 92 29 00 01 00 00 00 FF 0F D1 [14:26:18]state=3 [14:26:18]No paper [14:26:18]Cover closed [14:26:18]int [14:26:18]Write to MH i2c: 01 00 00 93 29 BC [14:26:18]*** FLAG_PRN_PAP2 set [14:26:18]Write i2c OK [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: 01 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: 01 07 00 [14:26:18]MH_I2C_Read... [14:26:18]Read from MH i2c: 01 07 00 93 29 00 03 00 00 00 FF 0F D4 [14:26:18]state=0 [14:26:18]No paper [14:26:18]Cover opened [14:26:19]OFD Sender: No OFD packet to send [14:26:21]int [14:26:21]Write to MH i2c: 01 00 00 94 29 BD [14:26:21]*** FLAG_PRN_PAP2 reset [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 94 29 00 01 00 00 00 FF 0F D3 [14:26:21]state=3 [14:26:21]No paper [14:26:21]Cover closed [14:26:21]int [14:26:21]Write to MH i2c: 01 00 00 95 29 BE [14:26:21]*** FLAG_PRN_PAP1 reset [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 95 29 00 00 00 00 00 FF 0F D3 [14:26:21]state=0 [14:26:21]int [14:26:21]Write to MH i2c: 01 00 00 96 29 BF [14:26:21]*** FLAG_PRN_KEY set [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: 01 07 00 96 29 00 08 00 00 00 FF 0F DC [14:26:21]state=0 [14:26:21]Key pressed [14:26:21]Feed [14:26:21]Write to MH i2c: D8 00 00 97 29 97 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: D8 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: D8 01 00 [14:26:21]MH_I2C_Read... [14:26:21]Read from MH i2c: D8 01 00 97 29 00 98 [14:26:21]int [14:26:21]Write to MH i2c: 01 00 00 98 29 C1 [14:26:21]Write i2c OK [14:26:21]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 07 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 07 00 98 29 00 48 00 00 00 3C 00 4C [14:26:22]state=2 [14:26:22]Key pressed [14:26:22]int [14:26:22]Write to MH i2c: 01 00 00 99 29 C2 [14:26:22]*** FLAG_PRN_KEY reset [14:26:22]Write i2c OK [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 07 00 [14:26:22]MH_I2C_Read... [14:26:22]Read from MH i2c: 01 07 00 99 29 00 00 00 00 00 FF 0F D7 [14:26:22]state=2 [14:26:22]Stop feed [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [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:19]OFD Sender: No OFD packet to send [14:27:24]OFD Sender: No OFD packet to send [14:27:29]OFD Sender: No OFD packet to send [14:27:34]OFD Sender: No OFD packet to send [14:27:39]OFD Sender: No OFD packet to send [14:27:44]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:29]OFD Sender: No OFD packet to send [14:28:34]OFD Sender: No OFD packet to send [14:28:39]OFD Sender: No OFD packet to send [14:28:44]OFD Sender: No OFD packet to send [14:28:49]OFD Sender: No OFD packet to send [14:28:54]OFD Sender: No OFD packet to send [14:28:59]OFD Sender: No OFD packet to send [14:29:04]OFD Sender: No OFD packet to send [14:29:09]OFD Sender: No OFD packet to send [14:29:14]OFD Sender: No OFD packet to send [14:29:19]OFD Sender: No OFD packet to send [14:29:24]OFD Sender: No OFD packet to send [14:29:29]OFD Sender: No OFD packet to send [14:29:34]OFD Sender: No OFD packet to send [14:29:39]OFD Sender: No OFD packet to send [14:29:44]OFD Sender: No OFD packet to send [14:29:49]OFD Sender: No OFD packet to send [14:29:54]OFD Sender: No OFD packet to send [14:29:59]OFD Sender: No OFD packet to send [14:30:04]OFD Sender: No OFD packet to send [14:30:09]OFD Sender: No OFD packet to send [14:30:14]OFD Sender: No OFD packet to send [14:30:19]OFD Sender: No OFD packet to send [14:30:24]OFD Sender: No OFD packet to send [14:30:29]OFD Sender: No OFD packet to send [14:30:34]OFD Sender: No OFD packet to send [14:30:39]OFD Sender: No OFD packet to send [14:30:44]OFD Sender: No OFD packet to send [14:30:49]OFD Sender: No OFD packet to send [14:30:54]OFD Sender: No OFD packet to send [14:30:59]OFD Sender: No OFD packet to send [14:31:01]accept exits with 9 [14:31:01]New connection [14:31:01]New thread 3066850660 created [14:31:01]Thread 3066707300 joined [14:31:01]Waiting for new connection... [14:31:01] Sock 9.Parse request [14:31:01]Sock 9.Check first char [14:31:01]Sock 9.First char is OK [14:31:01]request: POST /json_proto HTTP/1.0 [14:31:01]Method: POST [14:31:01]URL: /json_proto [14:31:01]Method is POST - this is cgi request [14:31:01]url: /json_proto [14:31:01]query_string will be loaded in cgi processing [14:31:01]execute_cgi json_proto POST (null) [14:31:01]execute_cgi path=json_proto method=POST [14:31:01]POST find Content-Length [14:31:01]Host: 172.17.52.132:8080 [14:31:01]Content-Length: 643 [14:31:01]Content-Type: application/json [14:31:01] [14:31:01]POST finish read [14:31:01]Found Content-Length = 643 [14:31:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99862", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:01]execute_script... [14:31:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99862", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:01]POST & json_proto [14:31:01]process_json_proto [14:31:01]json parsed OK: [14:31:01]protocol is kg_v1.0 [14:31:01]action value=close_receipt [14:31:01]process_action close_receipt [14:31:01]cmd_close_receipt [14:31:01]MH_GetDate [14:31:01]Write to MH i2c: F0 00 00 9A 29 B2 [14:31:01]Write i2c OK [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: F0 [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: F0 09 00 [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: F0 09 00 9A 29 00 2A 71 12 67 5A BE F6 66 43 [14:31:01]GetLastDocTimeStamp 1729261525 [14:31:01]current date 1729261866 [14:31:01]FM_GetShiftState [14:31:01]SAM_PROTO_GetShiftState [14:31:01]wFMCommunicate request_size=4 [14:31:01]MH_SAM_APDU [14:31:01]CAPDU: 80 13 01 00 [14:31:01]Write to MH i2c: E2 08 00 9B 29 80 13 01 00 00 00 00 00 41 [14:31:01]Write i2c OK [14:31:01]MH_I2C_Read... [14:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:01]Read from MH i2c: E2 [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: E2 0E 00 [14:31:01]MH_I2C_Read... [14:31:01]Read from MH i2c: E2 0E 00 9B 29 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 DF [14:31:01]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:31:01]wFMCommunicate OK [14:31:01]SAM_PROTO_GetShiftState done [14:31:01]FM_GetShiftState done [14:31:01]opened in 1729209717 [14:31:01]opened+sec_in_day 1729296117 [14:31:01]quantity*price = 11500 [14:31:01]sum+1 = 11501 [14:31:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 ÐСП 1% : 1.02 ÐДС 12% : 12.21 Ðаличными: 115.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 97 18.10.2024 14:31 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2472 ФПД: 11480123510046 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143106&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2472&fm=11480123510046&tin=02508201610067®Number=0000000000207295&sum=11500 0 [14:31:03]StoreToDocumentArchive [14:31:03]shift 22 fd 2472 [14:31:03]save to /storage/0022/doc_00002472 [14:31:03]save last doc name /storage/0022/doc_00002472 to /storage/kkm_last_doc_name [14:31:03]save OK [14:31:03]Clear old archive folders... [14:31:03]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:31:03]tlvbuf is 01399AF0 [14:31:03]SAM_PROTO_ClearQueue [14:31:03]wFMCommunicate request_size=4 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 09 00 00 [14:31:03]Write to MH i2c: E2 08 00 A8 29 80 09 00 00 00 00 00 00 43 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 A8 29 00 90 00 45 [14:31:03]RAPDU: 90 00 [14:31:03]wFMCommunicate OK [14:31:03]SAM_PROTO_ClearQueue done [14:31:03]KKMCreateOFDPacket [14:31:03]OFDProtocolAddRootSTLVToBuf [14:31:03]FM_MakeSignedData [14:31:03]FM_MakeSignedData [14:31:03]SAM_PROTO_SignData [14:31:03]wFMCommunicate request_size=4 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 0D 01 02 [14:31:03]Write to MH i2c: E2 08 00 A9 29 80 0D 01 02 00 00 00 00 4B [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 A9 29 00 90 00 46 [14:31:03]RAPDU: 90 00 [14:31:03]wFMCommunicate OK [14:31:03]wFMCommunicate request_size=255 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2A 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 [14:31:03]Write to MH i2c: E2 02 01 AA 29 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2A 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 00 00 16 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 AA 29 00 90 00 47 [14:31:03]RAPDU: 90 00 [14:31:03]wFMCommunicate OK [14:31:03]wFMCommunicate request_size=39 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A8 09 00 00 35 04 06 00 0A 70 EC AF 0D 1E [14:31:03]Write to MH i2c: E2 2A 00 AB 29 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A8 09 00 00 35 04 06 00 0A 70 EC AF 0D 1E 00 00 EF [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 03 00 AB 29 00 90 00 48 [14:31:03]RAPDU: 90 00 [14:31:03]wFMCommunicate OK [14:31:03]wFMCommunicate request_size=4 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 0D 03 02 [14:31:03]Write to MH i2c: E2 08 00 AC 29 80 0D 03 02 00 00 00 00 50 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 0B 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 0B 00 AC 29 00 EF D1 5F B5 6F 10 30 E0 90 00 B4 [14:31:03]RAPDU: EF D1 5F B5 6F 10 30 E0 90 00 [14:31:03]wFMCommunicate OK [14:31:03]SAM_PROTO_SignData done [14:31:03]FM_MakeSignedData done [14:31:03]CreateOFDProtocolMessage [14:31:03]wFMCommunicate request_size=4 [14:31:03]MH_SAM_APDU [14:31:03]CAPDU: 80 11 00 00 [14:31:03]Write to MH i2c: E2 08 00 AD 29 80 11 00 00 00 00 00 00 50 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:03]Read from MH i2c: E2 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 17 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: E2 17 00 AD 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 98 [14:31:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:31:03]wFMCommunicate OK [14:31:03]CreateOFDProtocolMessage done [14:31:03]OFDSenderStorePacket 2472 [14:31:03]StoreOFDPacket docnum=2472 [14:31:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 1E 27 24 01 0C D0 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2A 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A8 09 00 00 35 04 06 00 0A 70 EC AF 0D 1E EF D1 5F B5 6F 10 30 E0 [14:31:03]CheckFolder [14:31:03]dirname=/storage/ofd_packets [14:31:03]CheckFolder done [14:31:03]ProducePacketName [14:31:03]name=ofd_packets/00002472 [14:31:03]NVStorageSaveData ofd_packets/00002472 [14:31:03]File name is /storage/ofd_packets/00002472 [14:31:03]Write 330 bytes [14:31:03]NVStorageSaveData done [14:31:03]OFDSenderStorePacket done [14:31:03]KKMCreateOFDPacket done [14:31:03]NVStorageSaveData kkm_last_timestamp [14:31:03]File name is /storage/kkm_last_timestamp [14:31:03]Write 4 bytes [14:31:03]NVStorageSaveData done [14:31:03]ExternCall_PrintAddStr [14:31:03]wPrintStart [14:31:03]Write to MH i2c: 01 00 00 AE 29 D7 [14:31:03]Write i2c OK [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 07 00 [14:31:03]MH_I2C_Read... [14:31:03]Read from MH i2c: 01 07 00 AE 29 00 00 00 00 00 FF 0F EC [14:31:03]RasterBufferAndPrint [14:31:03]line Счет N : (3)99862 [14:31:03]line ИÐÐ: 02508201610067 [14:31:03]line Контрольно-КаÑÑовый Чек [14:31:03]line ПРОДÐЖР[14:31:03]line Товар: 2000036210013 [14:31:03]line Кофе Капучино (GABB TRADE) [14:31:03]line 1.000 * 115.00 [14:31:03]line = 115.00 [14:31:03]line ÐДС 12% ÐСП 1% [14:31:03]line > о реализуемом товаре [14:31:03]line ИТОГО: 115.00 [14:31:03]line ÐСП 1% : 1.02 [14:31:03]line ÐДС 12% : 12.21 [14:31:03]line Ðаличными: 115.00 [14:31:03]line Безнал.: 0.00 [14:31:03]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:31:03]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:31:03]line СÐО: Общий режим [14:31:03]line Чек 97 18.10.2024 14:31 [14:31:03]line Смена: 22 ФФД: 1.0 [14:31:03]line ЗÐМ: 0300000191 [14:31:03]line РÐМ: 0000000000207295 [14:31:03]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:31:03]line ФМ: 0000000002342820 [14:31:03]line ФД: 2472 [14:31:03]line ФПД: 11480123510046 [14:31:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143106&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2472&fm=11480123510046&tin=02508201610067®Number=0000000000207295&sum=11500 [14:31:04]line 0 [14:31:04]OFD Sender: Processing packet 2472 [packets to send 1, broken 0] [14:31:04]ProducePacketName [14:31:04]name=ofd_packets/00002472 [14:31:04]OFD Sender: To server: ‡•öpG, [14:31:04]CommunicateWithHost lk.salyk.kg:30040 [14:31:04]ConnectInit lk.salyk.kg [14:31:04]written 0, free lines is 4095 [14:31:04]Connected sock=10 [14:31:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 1E 27 24 01 0C D0 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 2A 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A8 09 00 00 35 04 06 00 0A 70 EC AF 0D 1E EF D1 5F B5 6F 10 30 E0 [14:31:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 29 11 47 00 90 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 32 33 34 32 38 32 30 10 04 04 00 A8 09 00 00 F4 03 04 00 8E 1C 12 67 B6 04 01 00 00 91 F5 1D 71 78 BA 26 C0 [14:31:04]CommunicateWithHost err = 0 [14:31:04]CheckOFDResponse [14:31:04]1017 (14) - 77093643461234 [14:31:04]1041 (16) - 0000000002342820 [14:31:04]1040 (4) - 2472 [14:31:04]1012 (4) - 18.10.2024 08:30 [14:31:04]1206 (1) - 0 [14:31:04]OFD Sender: Remove packet 2472 [14:31:04]ProducePacketName [14:31:04]name=ofd_packets/00002472 [14:31:04]NVStorageDeleteData [14:31:04]Write to MH i2c: 01 00 00 D6 29 FF [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: 01 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: 01 07 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: 01 07 00 D6 29 00 00 00 00 00 CD 0C DF [14:31:04]RasterBufferAndPrint [14:31:04]line [14:31:04]line [14:31:04]line [14:31:04]line [14:31:04]line [14:31:04]written 0, free lines is 3282 [14:31:04]MH_Cut [14:31:04]Write to MH i2c: D1 01 00 DD 29 01 D8 [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: D1 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: D1 01 00 [14:31:04]MH_I2C_Read... [14:31:04]Read from MH i2c: D1 01 00 DD 29 00 D7 [14:31:04]Write to MH i2c: 01 00 00 DE 29 07 [14:31:04]Write i2c OK [14:31:04]MH_I2C_Read... [14:31:04]OFD Sender: No OFD packet to send [14:31:05]*** Cut start [14:31:05]*** Partial cut [14:31:05]*** CUTSNS_PIN = 1 [14:31:05]*** CUTSNS_PIN = 0 [14:31:05]*** Brake cut motor [14:31:05]Read from MH i2c: 01 [14:31:05]MH_I2C_Read... [14:31:05]*** Stop cut motor [14:31:05]*** Cut end [14:31:05]Read from MH i2c: 01 07 00 [14:31:05]MH_I2C_Read... [14:31:05]Read from MH i2c: 01 07 00 DE 29 00 00 00 00 00 FF 0F 1C [14:31:05]process_action close_receipt done [14:31:05]requested_data is exist [14:31:05]produce_requested_data [14:31:05]requested_item fm.sn is exist - process it [14:31:05]wFMCommunicate request_size=4 [14:31:05]MH_SAM_APDU [14:31:05]CAPDU: 80 11 00 00 [14:31:05]Write to MH i2c: E2 08 00 DF 29 80 11 00 00 00 00 00 00 82 [14:31:05]Write i2c OK [14:31:05]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 17 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 17 00 DF 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CA [14:31:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:31:06]wFMCommunicate OK [14:31:06]requested_item fd.num is exist - process it [14:31:06]SAM_PROTO_GetFieldsCounters [14:31:06]wFMCommunicate request_size=4 [14:31:06]MH_SAM_APDU [14:31:06]CAPDU: 80 13 00 00 [14:31:06]Write to MH i2c: E2 08 00 E0 29 80 13 00 00 00 00 00 00 85 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 62 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 62 00 E0 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A8 09 00 00 0E 04 04 00 16 00 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 85 [14:31:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A8 09 00 00 0E 04 04 00 16 00 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:31:06]wFMCommunicate OK [14:31:06]SAM_PROTO_GetFieldsCounters done [14:31:06]requested_item shift.num is exist - process it [14:31:06]requested_item shift.opened is exist - process it [14:31:06]req_shift_opened [14:31:06]FM_GetShiftState [14:31:06]SAM_PROTO_GetShiftState [14:31:06]wFMCommunicate request_size=4 [14:31:06]MH_SAM_APDU [14:31:06]CAPDU: 80 13 01 00 [14:31:06]Write to MH i2c: E2 08 00 E1 29 80 13 01 00 00 00 00 00 87 [14:31:06]Write i2c OK [14:31:06]MH_I2C_Read... [14:31:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:06]Read from MH i2c: E2 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 0E 00 [14:31:06]MH_I2C_Read... [14:31:06]Read from MH i2c: E2 0E 00 E1 29 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 25 [14:31:06]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:31:06]wFMCommunicate OK [14:31:06]SAM_PROTO_GetShiftState done [14:31:06]FM_GetShiftState done [14:31:06]req_shift_opened done [14:31:06]requested_item shift.open_date is exist - process it [14:31:06]req_shift_open_date [14:31:06]req_shift_open_date done [14:31:06]produce_requested_data done [14:31:06]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2472,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:31:06]process_action_free close_receipt [14:31:06]json_value_free [14:31:06]json_value_free done [14:31:06]process_json_proto returns [14:31:06]Send response to host [14:31:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2472,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:31:06]free response buf [14:31:06]execute_script done [14:31:06]execute_script returns [14:31:06]free content buf [14:31:06]Sock 9.Close socket [14:31:06]Sock 9.Thread stoped [14:31:09]OFD Sender: No OFD packet to send [14:31:14]OFD Sender: No OFD packet to send [14:31:19]OFD Sender: No OFD packet to send [14:31:24]OFD Sender: No OFD packet to send [14:31:29]OFD Sender: No OFD packet to send [14:31:34]OFD Sender: No OFD packet to send [14:31:39]OFD Sender: No OFD packet to send [14:31:44]OFD Sender: No OFD packet to send [14:31:49]OFD Sender: No OFD packet to send [14:31:54]OFD Sender: No OFD packet to send [14:31:59]OFD Sender: No OFD packet to send [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:33]accept exits with 7 [14:32:33]New connection [14:32:33]New thread 3066707300 created [14:32:33]Thread 3066850660 joined [14:32:33]Waiting for new connection... [14:32:33] Sock 7.Parse request [14:32:33]Sock 7.Check first char [14:32:33]Sock 7.First char is OK [14:32:33]request: POST /json_proto HTTP/1.0 [14:32:33]Method: POST [14:32:33]URL: /json_proto [14:32:33]Method is POST - this is cgi request [14:32:33]url: /json_proto [14:32:33]query_string will be loaded in cgi processing [14:32:33]execute_cgi json_proto POST (null) [14:32:33]execute_cgi path=json_proto method=POST [14:32:33]POST find Content-Length [14:32:33]Host: 172.17.52.132:8080 [14:32:33]Content-Length: 820 [14:32:33]Content-Type: application/json [14:32:33] [14:32:33]POST finish read [14:32:33]Found Content-Length = 820 [14:32:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99863", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:33]execute_script... [14:32: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 : (3)99863", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:33]POST & json_proto [14:32:33]process_json_proto [14:32:33]json parsed OK: [14:32:33]protocol is kg_v1.0 [14:32:33]action value=close_receipt [14:32:33]process_action close_receipt [14:32:33]cmd_close_receipt [14:32:33]MH_GetDate [14:32:33]Write to MH i2c: F0 00 00 E2 29 FA [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: F0 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: F0 09 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: F0 09 00 E2 29 00 86 71 12 67 5A BE F6 66 E7 [14:32:33]GetLastDocTimeStamp 1729261866 [14:32:33]current date 1729261958 [14:32:33]FM_GetShiftState [14:32:33]SAM_PROTO_GetShiftState [14:32:33]wFMCommunicate request_size=4 [14:32:33]MH_SAM_APDU [14:32:33]CAPDU: 80 13 01 00 [14:32:33]Write to MH i2c: E2 08 00 E3 29 80 13 01 00 00 00 00 00 89 [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:34]Read from MH i2c: E2 [14:32:34]MH_I2C_Read... [14:32:34]Read from MH i2c: E2 0E 00 [14:32:34]MH_I2C_Read... [14:32:34]Read from MH i2c: E2 0E 00 E3 29 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 27 [14:32:34]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:32:34]wFMCommunicate OK [14:32:34]SAM_PROTO_GetShiftState done [14:32:34]FM_GetShiftState done [14:32:34]opened in 1729209717 [14:32:34]opened+sec_in_day 1729296117 [14:32:34]quantity*price = 11500 [14:32:34]sum+1 = 11501 [14:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 ÐСП 1% : 1.02 ÐДС 12% : 12.21 Ðаличными: 0.00 Безнал.: 115.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 98 18.10.2024 14:32 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000002342820 ФД: 2473 ФПД: 114707771459652 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143238&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2473&fm=114707771459652&tin=02508201610067®Number=0000000000207295&sum=11500 0 [14:32:35]StoreToDocumentArchive [14:32:35]shift 22 fd 2473 [14:32:35]save to /storage/0022/doc_00002473 [14:32:35]save last doc name /storage/0022/doc_00002473 to /storage/kkm_last_doc_name [14:32:35]save OK [14:32:35]Clear old archive folders... [14:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=280 [14:32:35]tlvbuf is 0140E970 [14:32:35]SAM_PROTO_ClearQueue [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 09 00 00 [14:32:35]Write to MH i2c: E2 08 00 F0 29 80 09 00 00 00 00 00 00 8B [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 F0 29 00 90 00 8D [14:32:35]RAPDU: 90 00 [14:32:35]wFMCommunicate OK [14:32:35]SAM_PROTO_ClearQueue done [14:32:35]KKMCreateOFDPacket [14:32:35]OFDProtocolAddRootSTLVToBuf [14:32:35]FM_MakeSignedData [14:32:35]FM_MakeSignedData [14:32:35]SAM_PROTO_SignData [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 0D 01 02 [14:32:35]Write to MH i2c: E2 08 00 F1 29 80 0D 01 02 00 00 00 00 93 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:35]Read from MH i2c: E2 03 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 F1 29 00 90 00 8E [14:32:35]RAPDU: 90 00 [14:32:35]wFMCommunicate OK [14:32:35]wFMCommunicate request_size=255 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 86 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 [14:32:35]Write to MH i2c: E2 02 01 F2 29 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 86 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 00 00 BB [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 F2 29 00 90 00 8F [14:32:35]RAPDU: 90 00 [14:32:35]wFMCommunicate OK [14:32:35]wFMCommunicate request_size=39 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A9 09 00 00 35 04 06 00 68 53 7B F8 88 44 [14:32:35]Write to MH i2c: E2 2A 00 F3 29 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A9 09 00 00 35 04 06 00 68 53 7B F8 88 44 00 00 F2 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 03 00 F3 29 00 90 00 90 [14:32:35]RAPDU: 90 00 [14:32:35]wFMCommunicate OK [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 0D 03 02 [14:32:35]Write to MH i2c: E2 08 00 F4 29 80 0D 03 02 00 00 00 00 98 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 0B 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 0B 00 F4 29 00 A5 B3 69 46 B1 6B 4F 9B 90 00 A6 [14:32:35]RAPDU: A5 B3 69 46 B1 6B 4F 9B 90 00 [14:32:35]wFMCommunicate OK [14:32:35]SAM_PROTO_SignData done [14:32:35]FM_MakeSignedData done [14:32:35]CreateOFDProtocolMessage [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 11 00 00 [14:32:35]Write to MH i2c: E2 08 00 F5 29 80 11 00 00 00 00 00 00 98 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 17 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 17 00 F5 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E0 [14:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:32:35]wFMCommunicate OK [14:32:35]CreateOFDProtocolMessage done [14:32:35]OFDSenderStorePacket 2473 [14:32:35]StoreOFDPacket docnum=2473 [14:32:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 C6 8B 24 01 D1 8E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 86 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A9 09 00 00 35 04 06 00 68 53 7B F8 88 44 A5 B3 69 46 B1 6B 4F 9B [14:32:35]CheckFolder [14:32:35]dirname=/storage/ofd_packets [14:32:35]CheckFolder done [14:32:35]ProducePacketName [14:32:35]name=ofd_packets/00002473 [14:32:35]NVStorageSaveData ofd_packets/00002473 [14:32:35]File name is /storage/ofd_packets/00002473 [14:32:35]Write 330 bytes [14:32:35]NVStorageSaveData done [14:32:35]OFDSenderStorePacket done [14:32:35]KKMCreateOFDPacket done [14:32:35]NVStorageSaveData kkm_last_timestamp [14:32:35]File name is /storage/kkm_last_timestamp [14:32:35]Write 4 bytes [14:32:35]NVStorageSaveData done [14:32:35]ExternCall_PrintAddStr [14:32:35]wPrintStart [14:32:35]Write to MH i2c: 01 00 00 F6 29 1F [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: 01 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: 01 07 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: 01 07 00 F6 29 00 00 00 00 00 FF 0F 34 [14:32:35]RasterBufferAndPrint [14:32:35]line Счет N : (3)99863 [14:32:35]line ИÐÐ: 02508201610067 [14:32:35]line Контрольно-КаÑÑовый Чек [14:32:35]line ПРОДÐЖР[14:32:35]line Товар: 2000036210013 [14:32:35]line Кофе Капучино (GABB TRADE) [14:32:35]line 1.000 * 115.00 [14:32:35]line = 115.00 [14:32:35]line ÐДС 12% ÐСП 1% [14:32:35]line > о реализуемом товаре [14:32:35]line ИТОГО: 115.00 [14:32:35]line ÐСП 1% : 1.02 [14:32:35]line ÐДС 12% : 12.21 [14:32:35]line Ðаличными: 0.00 [14:32:35]line Безнал.: 115.00 [14:32:35]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:32:35]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:32:35]line СÐО: Общий режим [14:32:35]line Чек 98 18.10.2024 14:32 [14:32:35]line Смена: 22 ФФД: 1.0 [14:32:35]line ЗÐМ: 0300000191 [14:32:35]line РÐМ: 0000000000207295 [14:32:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:32:35]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [14:32:35]line ФМ: 0000000002342820 [14:32:35]line ФД: 2473 [14:32:35]line ФПД: 114707771459652 [14:32:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143238&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2473&fm=114707771459652&tin=02508201610067®Number=0000000000207295&sum=11500 [14:32:35]line 0 [14:32:35]OFD Sender: Processing packet 2473 [packets to send 1, broken 0] [14:32:35]ProducePacketName [14:32:35]name=ofd_packets/00002473 [14:32:35]OFD Sender: To server: ‡•öpG, [14:32:35]CommunicateWithHost lk.salyk.kg:30040 [14:32:35]ConnectInit lk.salyk.kg [14:32:35]written 0, free lines is 4095 [14:32:36]Connected sock=10 [14:32:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 C6 8B 24 01 D1 8E 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 86 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 A9 09 00 00 35 04 06 00 68 53 7B F8 88 44 A5 B3 69 46 B1 6B 4F 9B [14:32:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 71 1C 47 00 40 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 32 33 34 32 38 32 30 10 04 04 00 A9 09 00 00 F4 03 04 00 EA 1C 12 67 B6 04 01 00 00 D4 C3 AD 17 8D 5C 85 01 [14:32:36]CommunicateWithHost err = 0 [14:32:36]CheckOFDResponse [14:32:36]1017 (14) - 77093643461234 [14:32:36]1041 (16) - 0000000002342820 [14:32:36]1040 (4) - 2473 [14:32:36]1012 (4) - 18.10.2024 08:31 [14:32:36]1206 (1) - 0 [14:32:36]OFD Sender: Remove packet 2473 [14:32:36]ProducePacketName [14:32:36]name=ofd_packets/00002473 [14:32:36]NVStorageDeleteData [14:32:36]Write to MH i2c: 01 00 00 20 2A 4A [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: 01 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: 01 07 00 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: 01 07 00 20 2A 00 00 00 00 00 B5 0C 12 [14:32:36]RasterBufferAndPrint [14:32:36]line [14:32:36]line [14:32:36]line [14:32:36]line [14:32:36]line [14:32:36]written 0, free lines is 3259 [14:32:36]MH_Cut [14:32:36]Write to MH i2c: D1 01 00 27 2A 01 23 [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: D1 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: D1 01 00 [14:32:36]MH_I2C_Read... [14:32:36]Read from MH i2c: D1 01 00 27 2A 00 22 [14:32:36]Write to MH i2c: 01 00 00 28 2A 52 [14:32:36]Write i2c OK [14:32:36]MH_I2C_Read... [14:32:36]OFD Sender: No OFD packet to send [14:32:37]*** Cut start [14:32:37]*** Partial cut [14:32:37]*** CUTSNS_PIN = 1 [14:32:37]*** CUTSNS_PIN = 0 [14:32:37]*** Brake cut motor [14:32:37]Read from MH i2c: 01 [14:32:37]MH_I2C_Read... [14:32:37]*** Stop cut motor [14:32:37]*** Cut end [14:32:37]Read from MH i2c: 01 07 00 [14:32:37]MH_I2C_Read... [14:32:37]Read from MH i2c: 01 07 00 28 2A 00 00 00 00 00 FF 0F 67 [14:32:37]process_action close_receipt done [14:32:37]requested_data is exist [14:32:37]produce_requested_data [14:32:37]requested_item fm.sn is exist - process it [14:32:37]wFMCommunicate request_size=4 [14:32:37]MH_SAM_APDU [14:32:37]CAPDU: 80 11 00 00 [14:32:37]Write to MH i2c: E2 08 00 29 2A 80 11 00 00 00 00 00 00 CD [14:32:37]Write i2c OK [14:32:37]MH_I2C_Read... [14:32:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:38]Read from MH i2c: E2 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 17 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 17 00 29 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 15 [14:32:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:32:38]wFMCommunicate OK [14:32:38]requested_item fd.num is exist - process it [14:32:38]SAM_PROTO_GetFieldsCounters [14:32:38]wFMCommunicate request_size=4 [14:32:38]MH_SAM_APDU [14:32:38]CAPDU: 80 13 00 00 [14:32:38]Write to MH i2c: E2 08 00 2A 2A 80 13 00 00 00 00 00 00 D0 [14:32:38]Write i2c OK [14:32:38]MH_I2C_Read... [14:32:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:38]Read from MH i2c: E2 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 62 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 62 00 2A 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A9 09 00 00 0E 04 04 00 16 00 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 D4 [14:32:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 A9 09 00 00 0E 04 04 00 16 00 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:32:38]wFMCommunicate OK [14:32:38]SAM_PROTO_GetFieldsCounters done [14:32:38]requested_item shift.num is exist - process it [14:32:38]requested_item shift.opened is exist - process it [14:32:38]req_shift_opened [14:32:38]FM_GetShiftState [14:32:38]SAM_PROTO_GetShiftState [14:32:38]wFMCommunicate request_size=4 [14:32:38]MH_SAM_APDU [14:32:38]CAPDU: 80 13 01 00 [14:32:38]Write to MH i2c: E2 08 00 2B 2A 80 13 01 00 00 00 00 00 D2 [14:32:38]Write i2c OK [14:32:38]MH_I2C_Read... [14:32:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:38]Read from MH i2c: E2 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 0E 00 [14:32:38]MH_I2C_Read... [14:32:38]Read from MH i2c: E2 0E 00 2B 2A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 70 [14:32:38]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:32:38]wFMCommunicate OK [14:32:38]SAM_PROTO_GetShiftState done [14:32:38]FM_GetShiftState done [14:32:38]req_shift_opened done [14:32:38]requested_item shift.open_date is exist - process it [14:32:38]req_shift_open_date [14:32:38]req_shift_open_date done [14:32:38]produce_requested_data done [14:32:38]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2473,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:32:38]process_action_free close_receipt [14:32:38]json_value_free [14:32:38]json_value_free done [14:32:38]process_json_proto returns [14:32:38]Send response to host [14:32:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2473,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:32:38]free response buf [14:32:38]execute_script done [14:32:38]execute_script returns [14:32:38]free content buf [14:32:38]Sock 7.Close socket [14:32:38]Sock 7.Thread stoped [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:22]accept exits with 9 [14:33:22]New connection [14:33:22]New thread 3066850660 created [14:33:22]Thread 3066707300 joined [14:33:22]Waiting for new connection... [14:33:22] Sock 9.Parse request [14:33:22]Sock 9.Check first char [14:33:22]Sock 9.First char is OK [14:33:22]request: POST /json_proto HTTP/1.0 [14:33:22]Method: POST [14:33:22]URL: /json_proto [14:33:22]Method is POST - this is cgi request [14:33:22]url: /json_proto [14:33:22]query_string will be loaded in cgi processing [14:33:22]execute_cgi json_proto POST (null) [14:33:22]execute_cgi path=json_proto method=POST [14:33:22]POST find Content-Length [14:33:22]Host: 172.17.52.132:8080 [14:33:22]Content-Length: 707 [14:33:22]Content-Type: application/json [14:33:22] [14:33:22]POST finish read [14:33:22]Found Content-Length = 707 [14:33:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99864", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:22]execute_script... [14: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 : (3)99864", "tax_sys" : 0, "items" : [ { "code": "5449000273680", "name": "\u0421\u043E\u043A Piko Pulpy \u043A\u0440\u0430\u0441\u043D\u044B\u0439 \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u041F\u042D\u0422 0,5\u043B", "price" : 100.00, "quantity" : 2.000, "sum" : 200.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 200.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:33:22]POST & json_proto [14:33:22]process_json_proto [14:33:22]json parsed OK: [14:33:22]protocol is kg_v1.0 [14:33:22]action value=close_receipt [14:33:22]process_action close_receipt [14:33:22]cmd_close_receipt [14:33:22]MH_GetDate [14:33:22]Write to MH i2c: F0 00 00 2C 2A 45 [14:33:22]Write i2c OK [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: F0 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: F0 09 00 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: F0 09 00 2C 2A 00 B6 71 12 67 5A BE F6 66 62 [14:33:22]GetLastDocTimeStamp 1729261958 [14:33:22]current date 1729262006 [14:33:22]FM_GetShiftState [14:33:22]SAM_PROTO_GetShiftState [14:33:22]wFMCommunicate request_size=4 [14:33:22]MH_SAM_APDU [14:33:22]CAPDU: 80 13 01 00 [14:33:22]Write to MH i2c: E2 08 00 2D 2A 80 13 01 00 00 00 00 00 D4 [14:33:22]Write i2c OK [14:33:22]MH_I2C_Read... [14:33:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:22]Read from MH i2c: E2 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: E2 0E 00 [14:33:22]MH_I2C_Read... [14:33:22]Read from MH i2c: E2 0E 00 2D 2A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 72 [14:33:22]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:33:22]wFMCommunicate OK [14:33:22]SAM_PROTO_GetShiftState done [14:33:22]FM_GetShiftState done [14:33:22]opened in 1729209717 [14:33:22]opened+sec_in_day 1729296117 [14:33:22]quantity*price = 20000 [14:33:22]sum+1 = 20001 [14:33:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.00 ÐСП 1% : 1.77 ÐДС 12% : 21.24 Ðаличными: 200.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 99 18.10.2024 14:33 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2474 ФПД: 154602084025344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143326&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2474&fm=154602084025344&tin=02508201610067®Number=0000000000207295&sum=20000 0 [14:33:23]StoreToDocumentArchive [14:33:23]shift 22 fd 2474 [14:33:23]save to /storage/0022/doc_00002474 [14:33:23]save last doc name /storage/0022/doc_00002474 to /storage/kkm_last_doc_name [14:33:23]save OK [14:33:23]Clear old archive folders... [14:33:23]ProcessDocumentItem done err = 0, tmpTLVsize=304 [14:33:23]tlvbuf is 013FA2B0 [14:33:23]SAM_PROTO_ClearQueue [14:33:23]wFMCommunicate request_size=4 [14:33:23]MH_SAM_APDU [14:33:23]CAPDU: 80 09 00 00 [14:33:23]Write to MH i2c: E2 08 00 3A 2A 80 09 00 00 00 00 00 00 D6 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 03 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 03 00 3A 2A 00 90 00 D8 [14:33:23]RAPDU: 90 00 [14:33:23]wFMCommunicate OK [14:33:23]SAM_PROTO_ClearQueue done [14:33:23]KKMCreateOFDPacket [14:33:23]OFDProtocolAddRootSTLVToBuf [14:33:23]FM_MakeSignedData [14:33:23]FM_MakeSignedData [14:33:23]SAM_PROTO_SignData [14:33:23]wFMCommunicate request_size=4 [14:33:23]MH_SAM_APDU [14:33:23]CAPDU: 80 0D 01 02 [14:33:23]Write to MH i2c: E2 08 00 3B 2A 80 0D 01 02 00 00 00 00 DE [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 03 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 03 00 3B 2A 00 90 00 D9 [14:33:23]RAPDU: 90 00 [14:33:23]wFMCommunicate OK [14:33:23]wFMCommunicate request_size=255 [14:33:23]MH_SAM_APDU [14:33:23]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B6 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 [14:33:23]Write to MH i2c: E2 02 01 3C 2A 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B6 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 00 00 E6 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 03 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 03 00 3C 2A 00 90 00 DA [14:33:23]RAPDU: 90 00 [14:33:23]wFMCommunicate OK [14:33:23]wFMCommunicate request_size=63 [14:33:23]MH_SAM_APDU [14:33:23]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AA 09 00 00 35 04 06 00 8C 9C 1A 4C C4 00 [14:33:23]Write to MH i2c: E2 42 00 3D 2A 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AA 09 00 00 35 04 06 00 8C 9C 1A 4C C4 00 00 00 25 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 03 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 03 00 3D 2A 00 90 00 DB [14:33:23]RAPDU: 90 00 [14:33:23]wFMCommunicate OK [14:33:23]wFMCommunicate request_size=4 [14:33:23]MH_SAM_APDU [14:33:23]CAPDU: 80 0D 03 02 [14:33:23]Write to MH i2c: E2 08 00 3E 2A 80 0D 03 02 00 00 00 00 E3 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 0B 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 0B 00 3E 2A 00 1C E3 85 5B D0 11 5E 36 90 00 38 [14:33:23]RAPDU: 1C E3 85 5B D0 11 5E 36 90 00 [14:33:23]wFMCommunicate OK [14:33:23]SAM_PROTO_SignData done [14:33:23]FM_MakeSignedData done [14:33:23]CreateOFDProtocolMessage [14:33:23]wFMCommunicate request_size=4 [14:33:23]MH_SAM_APDU [14:33:23]CAPDU: 80 11 00 00 [14:33:23]Write to MH i2c: E2 08 00 3F 2A 80 11 00 00 00 00 00 00 E3 [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:23]Read from MH i2c: E2 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 17 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: E2 17 00 3F 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 2B [14:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:33:23]wFMCommunicate OK [14:33:23]CreateOFDProtocolMessage done [14:33:23]OFDSenderStorePacket 2474 [14:33:23]StoreOFDPacket docnum=2474 [14:33:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 44 01 00 00 7B D9 3C 01 45 DC 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B6 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AA 09 00 00 35 04 06 00 8C 9C 1A 4C C4 00 1C E3 85 5B D0 11 5E 36 [14:33:23]CheckFolder [14:33:23]dirname=/storage/ofd_packets [14:33:23]CheckFolder done [14:33:23]ProducePacketName [14:33:23]name=ofd_packets/00002474 [14:33:23]NVStorageSaveData ofd_packets/00002474 [14:33:23]File name is /storage/ofd_packets/00002474 [14:33:23]Write 354 bytes [14:33:23]NVStorageSaveData done [14:33:23]OFDSenderStorePacket done [14:33:23]KKMCreateOFDPacket done [14:33:23]NVStorageSaveData kkm_last_timestamp [14:33:23]File name is /storage/kkm_last_timestamp [14:33:23]Write 4 bytes [14:33:23]NVStorageSaveData done [14:33:23]ExternCall_PrintAddStr [14:33:23]wPrintStart [14:33:23]Write to MH i2c: 01 00 00 40 2A 6A [14:33:23]Write i2c OK [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: 01 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: 01 07 00 [14:33:23]MH_I2C_Read... [14:33:23]Read from MH i2c: 01 07 00 40 2A 00 00 00 00 00 FF 0F 7F [14:33:23]RasterBufferAndPrint [14:33:23]line Счет N : (3)99864 [14:33:23]line ИÐÐ: 02508201610067 [14:33:23]line Контрольно-КаÑÑовый Чек [14:33:23]line ПРОДÐЖР[14:33:23]line Товар: 5449000273680 [14:33:23]line Сок Piko Pulpy краÑный виноград ПЭТ 0,5л [14:33:23]line 2.000 * 100.00 [14:33:23]line = 200.00 [14:33:23]line ÐДС 12% ÐСП 1% [14:33:23]line > о реализуемом товаре [14:33:23]line ИТОГО: 200.00 [14:33:23]line ÐСП 1% : 1.77 [14:33:23]line ÐДС 12% : 21.24 [14:33:23]line Ðаличными: 200.00 [14:33:23]line Безнал.: 0.00 [14:33:23]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:33:23]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:33:23]line СÐО: Общий режим [14:33:23]line Чек 99 18.10.2024 14:33 [14:33:23]line Смена: 22 ФФД: 1.0 [14:33:23]line ЗÐМ: 0300000191 [14:33:23]line РÐМ: 0000000000207295 [14:33:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:33:24]line ФМ: 0000000002342820 [14:33:24]line ФД: 2474 [14:33:24]line ФПД: 154602084025344 [14:33:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143326&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2474&fm=154602084025344&tin=02508201610067®Number=0000000000207295&sum=20000 [14:33:24]line 0 [14:33:24]OFD Sender: Processing packet 2474 [packets to send 1, broken 0] [14:33:24]ProducePacketName [14:33:24]name=ofd_packets/00002474 [14:33:24]OFD Sender: To server: ‡•öpG, [14:33:24]CommunicateWithHost lk.salyk.kg:30040 [14:33:24]ConnectInit lk.salyk.kg [14:33:24]written 0, free lines is 4095 [14:33:24]Connected sock=10 [14:33:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 44 01 00 00 7B D9 3C 01 45 DC 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 35 34 34 39 30 30 30 32 37 33 36 38 30 06 04 3E 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 BA D1 80 D0 B0 D1 81 D0 BD D1 8B D0 B9 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D0 9F D0 AD D0 A2 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 10 27 00 00 00 00 13 04 06 00 20 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 B6 71 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AA 09 00 00 35 04 06 00 8C 9C 1A 4C C4 00 1C E3 85 5B D0 11 5E 36 [14:33:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 88 A7 47 00 F4 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 32 33 34 32 38 32 30 10 04 04 00 AA 09 00 00 F4 03 04 00 1A 1D 12 67 B6 04 01 00 00 A9 12 D3 4C 67 DF 11 FC [14:33:24]CommunicateWithHost err = 0 [14:33:24]CheckOFDResponse [14:33:24]1017 (14) - 77093643461234 [14:33:24]1041 (16) - 0000000002342820 [14:33:24]1040 (4) - 2474 [14:33:24]1012 (4) - 18.10.2024 08:32 [14:33:24]1206 (1) - 0 [14:33:24]OFD Sender: Remove packet 2474 [14:33:24]ProducePacketName [14:33:24]name=ofd_packets/00002474 [14:33:24]NVStorageDeleteData [14:33:24]Write to MH i2c: 01 00 00 69 2A 93 [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: 01 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: 01 07 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: 01 07 00 69 2A 00 00 00 00 00 D4 0C 7A [14:33:24]RasterBufferAndPrint [14:33:24]line [14:33:24]line [14:33:24]line [14:33:24]line [14:33:24]line [14:33:24]written 0, free lines is 3289 [14:33:24]MH_Cut [14:33:24]Write to MH i2c: D1 01 00 70 2A 01 6C [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: D1 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: D1 01 00 [14:33:24]MH_I2C_Read... [14:33:24]Read from MH i2c: D1 01 00 70 2A 00 6B [14:33:24]Write to MH i2c: 01 00 00 71 2A 9B [14:33:24]Write i2c OK [14:33:24]MH_I2C_Read... [14:33:24]OFD Sender: No OFD packet to send [14:33:25]*** Cut start [14:33:25]*** Partial cut [14:33:25]*** CUTSNS_PIN = 1 [14:33:25]*** CUTSNS_PIN = 0 [14:33:25]*** Brake cut motor [14:33:26]Read from MH i2c: 01 [14:33:26]MH_I2C_Read... [14:33:26]*** Stop cut motor [14:33:26]*** Cut end [14:33:26]Read from MH i2c: 01 07 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: 01 07 00 71 2A 00 00 00 00 00 FF 0F B0 [14:33:26]process_action close_receipt done [14:33:26]requested_data is exist [14:33:26]produce_requested_data [14:33:26]requested_item fm.sn is exist - process it [14:33:26]wFMCommunicate request_size=4 [14:33:26]MH_SAM_APDU [14:33:26]CAPDU: 80 11 00 00 [14:33:26]Write to MH i2c: E2 08 00 72 2A 80 11 00 00 00 00 00 00 16 [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:33:26]Read from MH i2c: E2 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 17 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 17 00 72 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 5E [14:33:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:33:26]wFMCommunicate OK [14:33:26]requested_item fd.num is exist - process it [14:33:26]SAM_PROTO_GetFieldsCounters [14:33:26]wFMCommunicate request_size=4 [14:33:26]MH_SAM_APDU [14:33:26]CAPDU: 80 13 00 00 [14:33:26]Write to MH i2c: E2 08 00 73 2A 80 13 00 00 00 00 00 00 19 [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:33:26]Read from MH i2c: E2 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 62 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 62 00 73 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AA 09 00 00 0E 04 04 00 16 00 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 21 [14:33:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AA 09 00 00 0E 04 04 00 16 00 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:33:26]wFMCommunicate OK [14:33:26]SAM_PROTO_GetFieldsCounters done [14:33:26]requested_item shift.num is exist - process it [14:33:26]requested_item shift.opened is exist - process it [14:33:26]req_shift_opened [14:33:26]FM_GetShiftState [14:33:26]SAM_PROTO_GetShiftState [14:33:26]wFMCommunicate request_size=4 [14:33:26]MH_SAM_APDU [14:33:26]CAPDU: 80 13 01 00 [14:33:26]Write to MH i2c: E2 08 00 74 2A 80 13 01 00 00 00 00 00 1B [14:33:26]Write i2c OK [14:33:26]MH_I2C_Read... [14:33:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:33:26]Read from MH i2c: E2 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 0E 00 [14:33:26]MH_I2C_Read... [14:33:26]Read from MH i2c: E2 0E 00 74 2A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B9 [14:33:26]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:33:26]wFMCommunicate OK [14:33:26]SAM_PROTO_GetShiftState done [14:33:26]FM_GetShiftState done [14:33:26]req_shift_opened done [14:33:26]requested_item shift.open_date is exist - process it [14:33:26]req_shift_open_date [14:33:26]req_shift_open_date done [14:33:26]produce_requested_data done [14:33:26]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2474,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:33:26]process_action_free close_receipt [14:33:26]json_value_free [14:33:26]json_value_free done [14:33:26]process_json_proto returns [14:33:26]Send response to host [14:33:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2474,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:33:26]free response buf [14:33:26]execute_script done [14:33:26]execute_script returns [14:33:26]free content buf [14:33:26]Sock 9.Close socket [14:33:26]Sock 9.Thread stoped [14:33:29]OFD Sender: No OFD packet to send [14:33:34]OFD Sender: No OFD packet to send [14:33:39]OFD Sender: No OFD packet to send [14:33:44]OFD Sender: No OFD packet to send [14:33:49]OFD Sender: No OFD packet to send [14:33:54]OFD Sender: No OFD packet to send [14:33:59]OFD Sender: No OFD packet to send [14:34:04]OFD Sender: No OFD packet to send [14:34:09]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:35]accept exits with 7 [14:34:35]New connection [14:34:35]New thread 3066707300 created [14:34:35]Thread 3066850660 joined [14:34:35]Waiting for new connection... [14:34:35] Sock 7.Parse request [14:34:35]Sock 7.Check first char [14:34:35]Sock 7.First char is OK [14:34:35]request: POST /json_proto HTTP/1.0 [14:34:35]Method: POST [14:34:35]URL: /json_proto [14:34:35]Method is POST - this is cgi request [14:34:35]url: /json_proto [14:34:35]query_string will be loaded in cgi processing [14:34:35]execute_cgi json_proto POST (null) [14:34:35]execute_cgi path=json_proto method=POST [14:34:35]POST find Content-Length [14:34:35]Host: 172.17.52.132:8080 [14:34:35]Content-Length: 671 [14:34:35]Content-Type: application/json [14:34:35] [14:34:35]POST finish read [14:34:35]Found Content-Length = 671 [14:34:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99865", "tax_sys" : 0, "items" : [ { "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:35]execute_script... [14:34: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 : (3)99865", "tax_sys" : 0, "items" : [ { "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:34:35]POST & json_proto [14:34:35]process_json_proto [14:34:35]json parsed OK: [14:34:35]protocol is kg_v1.0 [14:34:35]action value=close_receipt [14:34:35]process_action close_receipt [14:34:35]cmd_close_receipt [14:34:35]MH_GetDate [14:34:35]Write to MH i2c: F0 00 00 75 2A 8E [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: F0 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: F0 09 00 [14:34:35]MH_I2C_Read... [14:34:35]Read from MH i2c: F0 09 00 75 2A 00 00 72 12 67 5A BE F6 66 F6 [14:34:35]GetLastDocTimeStamp 1729262006 [14:34:35]current date 1729262080 [14:34:35]FM_GetShiftState [14:34:35]SAM_PROTO_GetShiftState [14:34:35]wFMCommunicate request_size=4 [14:34:35]MH_SAM_APDU [14:34:35]CAPDU: 80 13 01 00 [14:34:35]Write to MH i2c: E2 08 00 76 2A 80 13 01 00 00 00 00 00 1D [14:34:35]Write i2c OK [14:34:35]MH_I2C_Read... [14:34:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:36]Read from MH i2c: E2 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0E 00 [14:34:36]MH_I2C_Read... [14:34:36]Read from MH i2c: E2 0E 00 76 2A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 BB [14:34:36]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:34:36]wFMCommunicate OK [14:34:36]SAM_PROTO_GetShiftState done [14:34:36]FM_GetShiftState done [14:34:36]opened in 1729209717 [14:34:36]opened+sec_in_day 1729296117 [14:34:36]quantity*price = 19000 [14:34:36]sum+1 = 19001 [14:34:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 ÐСП 1% : 1.68 ÐДС 12% : 20.18 Ðаличными: 190.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 100 18.10.2024 14:34 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2475 ФПД: 266618985009838 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143440&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2475&fm=266618985009838&tin=02508201610067®Number=0000000000207295&sum=19000 0 [14:34:37]StoreToDocumentArchive [14:34:37]shift 22 fd 2475 [14:34:37]save to /storage/0022/doc_00002475 [14:34:37]save last doc name /storage/0022/doc_00002475 to /storage/kkm_last_doc_name [14:34:37]save OK [14:34:37]Clear old archive folders... [14:34:37]ProcessDocumentItem done err = 0, tmpTLVsize=281 [14:34:37]tlvbuf is 013FA360 [14:34:37]SAM_PROTO_ClearQueue [14:34:37]wFMCommunicate request_size=4 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 09 00 00 [14:34:37]Write to MH i2c: E2 08 00 83 2A 80 09 00 00 00 00 00 00 1F [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 83 2A 00 90 00 21 [14:34:37]RAPDU: 90 00 [14:34:37]wFMCommunicate OK [14:34:37]SAM_PROTO_ClearQueue done [14:34:37]KKMCreateOFDPacket [14:34:37]OFDProtocolAddRootSTLVToBuf [14:34:37]FM_MakeSignedData [14:34:37]FM_MakeSignedData [14:34:37]SAM_PROTO_SignData [14:34:37]wFMCommunicate request_size=4 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 0D 01 02 [14:34:37]Write to MH i2c: E2 08 00 84 2A 80 0D 01 02 00 00 00 00 27 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 84 2A 00 90 00 22 [14:34:37]RAPDU: 90 00 [14:34:37]wFMCommunicate OK [14:34:37]wFMCommunicate request_size=255 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 00 72 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 [14:34:37]Write to MH i2c: E2 02 01 85 2A 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 00 72 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 00 41 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 85 2A 00 90 00 23 [14:34:37]RAPDU: 90 00 [14:34:37]wFMCommunicate OK [14:34:37]wFMCommunicate request_size=40 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AB 09 00 00 35 04 06 00 F2 7D 11 E4 52 AE [14:34:37]Write to MH i2c: E2 2B 00 86 2A 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AB 09 00 00 35 04 06 00 F2 7D 11 E4 52 AE 00 00 F4 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 03 00 86 2A 00 90 00 24 [14:34:37]RAPDU: 90 00 [14:34:37]wFMCommunicate OK [14:34:37]wFMCommunicate request_size=4 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 0D 03 02 [14:34:37]Write to MH i2c: E2 08 00 87 2A 80 0D 03 02 00 00 00 00 2C [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 0B 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 0B 00 87 2A 00 58 65 AD 67 87 93 BF FA 90 00 D1 [14:34:37]RAPDU: 58 65 AD 67 87 93 BF FA 90 00 [14:34:37]wFMCommunicate OK [14:34:37]SAM_PROTO_SignData done [14:34:37]FM_MakeSignedData done [14:34:37]CreateOFDProtocolMessage [14:34:37]wFMCommunicate request_size=4 [14:34:37]MH_SAM_APDU [14:34:37]CAPDU: 80 11 00 00 [14:34:37]Write to MH i2c: E2 08 00 88 2A 80 11 00 00 00 00 00 00 2C [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:37]Read from MH i2c: E2 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 17 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: E2 17 00 88 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 74 [14:34:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:34:37]wFMCommunicate OK [14:34:37]CreateOFDProtocolMessage done [14:34:37]OFDSenderStorePacket 2475 [14:34:37]StoreOFDPacket docnum=2475 [14:34:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2D 01 00 00 CF 7F 25 01 58 34 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 00 72 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AB 09 00 00 35 04 06 00 F2 7D 11 E4 52 AE 58 65 AD 67 87 93 BF FA [14:34:37]CheckFolder [14:34:37]dirname=/storage/ofd_packets [14:34:37]CheckFolder done [14:34:37]ProducePacketName [14:34:37]name=ofd_packets/00002475 [14:34:37]NVStorageSaveData ofd_packets/00002475 [14:34:37]File name is /storage/ofd_packets/00002475 [14:34:37]Write 331 bytes [14:34:37]NVStorageSaveData done [14:34:37]OFDSenderStorePacket done [14:34:37]KKMCreateOFDPacket done [14:34:37]NVStorageSaveData kkm_last_timestamp [14:34:37]File name is /storage/kkm_last_timestamp [14:34:37]Write 4 bytes [14:34:37]NVStorageSaveData done [14:34:37]ExternCall_PrintAddStr [14:34:37]wPrintStart [14:34:37]Write to MH i2c: 01 00 00 89 2A B3 [14:34:37]Write i2c OK [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 [14:34:37]MH_I2C_Read... [14:34:37]Read from MH i2c: 01 07 00 89 2A 00 00 00 00 00 FF 0F C8 [14:34:37]RasterBufferAndPrint [14:34:37]line Счет N : (3)99865 [14:34:37]line ИÐÐ: 02508201610067 [14:34:37]line Контрольно-КаÑÑовый Чек [14:34:37]line ПРОДÐЖР[14:34:37]line Товар: 4660013331421 [14:34:37]line ЭÑкимо ЛенинградÑкое [14:34:37]line 2.000 * 95.00 [14:34:37]line = 190.00 [14:34:37]line ÐДС 12% ÐСП 1% [14:34:37]line > о реализуемом товаре [14:34:37]line ИТОГО: 190.00 [14:34:37]line ÐСП 1% : 1.68 [14:34:37]line ÐДС 12% : 20.18 [14:34:37]line Ðаличными: 190.00 [14:34:37]line Безнал.: 0.00 [14:34:37]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:34:37]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:34:37]line СÐО: Общий режим [14:34:37]line Чек 100 18.10.2024 14:34 [14:34:37]line Смена: 22 ФФД: 1.0 [14:34:37]line ЗÐМ: 0300000191 [14:34:37]line РÐМ: 0000000000207295 [14:34:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:34:37]line ФМ: 0000000002342820 [14:34:37]line ФД: 2475 [14:34:37]line ФПД: 266618985009838 [14:34:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143440&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2475&fm=266618985009838&tin=02508201610067®Number=0000000000207295&sum=19000 [14:34:38]line 0 [14:34:38]OFD Sender: Processing packet 2475 [packets to send 1, broken 0] [14:34:38]ProducePacketName [14:34:38]name=ofd_packets/00002475 [14:34:38]OFD Sender: To server: ‡•öpG, [14:34:38]CommunicateWithHost lk.salyk.kg:30040 [14:34:38]ConnectInit lk.salyk.kg [14:34:38]written 0, free lines is 4095 [14:34:38]Connected sock=10 [14:34:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2D 01 00 00 CF 7F 25 01 58 34 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 00 00 00 F4 03 04 00 00 72 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AB 09 00 00 35 04 06 00 F2 7D 11 E4 52 AE 58 65 AD 67 87 93 BF FA [14:34:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 74 C7 47 00 98 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AB 09 00 00 F4 03 04 00 64 1D 12 67 B6 04 01 00 00 E8 39 C2 EE 3B 8D F5 D5 [14:34:38]CommunicateWithHost err = 0 [14:34:38]CheckOFDResponse [14:34:38]1017 (14) - 77093643461234 [14:34:38]1041 (16) - 0000000002342820 [14:34:38]1040 (4) - 2475 [14:34:38]1012 (4) - 18.10.2024 08:33 [14:34:38]1206 (1) - 0 [14:34:38]OFD Sender: Remove packet 2475 [14:34:38]ProducePacketName [14:34:38]name=ofd_packets/00002475 [14:34:38]NVStorageDeleteData [14:34:38]Write to MH i2c: 01 00 00 B1 2A DB [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 07 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: 01 07 00 B1 2A 00 00 00 00 00 E0 0C CE [14:34:38]RasterBufferAndPrint [14:34:38]line [14:34:38]line [14:34:38]line [14:34:38]line [14:34:38]line [14:34:38]written 0, free lines is 3302 [14:34:38]MH_Cut [14:34:38]Write to MH i2c: D1 01 00 B8 2A 01 B4 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: D1 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: D1 01 00 [14:34:38]MH_I2C_Read... [14:34:38]Read from MH i2c: D1 01 00 B8 2A 00 B3 [14:34:38]Write to MH i2c: 01 00 00 B9 2A E3 [14:34:38]Write i2c OK [14:34:38]MH_I2C_Read... [14:34:38]OFD Sender: No OFD packet to send [14:34:39]*** Cut start [14:34:39]*** Partial cut [14:34:39]*** CUTSNS_PIN = 1 [14:34:39]*** CUTSNS_PIN = 0 [14:34:39]*** Brake cut motor [14:34:39]Read from MH i2c: 01 [14:34:39]MH_I2C_Read... [14:34:39]*** Stop cut motor [14:34:39]*** Cut end [14:34:39]Read from MH i2c: 01 07 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: 01 07 00 B9 2A 00 00 00 00 00 FF 0F F8 [14:34:39]process_action close_receipt done [14:34:39]requested_data is exist [14:34:39]produce_requested_data [14:34:39]requested_item fm.sn is exist - process it [14:34:39]wFMCommunicate request_size=4 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 11 00 00 [14:34:39]Write to MH i2c: E2 08 00 BA 2A 80 11 00 00 00 00 00 00 5E [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:34:39]Read from MH i2c: E2 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 17 00 [14:34:39]MH_I2C_Read... [14:34:39]Read from MH i2c: E2 17 00 BA 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 A6 [14:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:34:39]wFMCommunicate OK [14:34:39]requested_item fd.num is exist - process it [14:34:39]SAM_PROTO_GetFieldsCounters [14:34:39]wFMCommunicate request_size=4 [14:34:39]MH_SAM_APDU [14:34:39]CAPDU: 80 13 00 00 [14:34:39]Write to MH i2c: E2 08 00 BB 2A 80 13 00 00 00 00 00 00 61 [14:34:39]Write i2c OK [14:34:39]MH_I2C_Read... [14:34:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:34:40]Read from MH i2c: E2 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: E2 62 00 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: E2 62 00 BB 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AB 09 00 00 0E 04 04 00 16 00 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 6D [14:34:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AB 09 00 00 0E 04 04 00 16 00 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:34:40]wFMCommunicate OK [14:34:40]SAM_PROTO_GetFieldsCounters done [14:34:40]requested_item shift.num is exist - process it [14:34:40]requested_item shift.opened is exist - process it [14:34:40]req_shift_opened [14:34:40]FM_GetShiftState [14:34:40]SAM_PROTO_GetShiftState [14:34:40]wFMCommunicate request_size=4 [14:34:40]MH_SAM_APDU [14:34:40]CAPDU: 80 13 01 00 [14:34:40]Write to MH i2c: E2 08 00 BC 2A 80 13 01 00 00 00 00 00 63 [14:34:40]Write i2c OK [14:34:40]MH_I2C_Read... [14:34:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:34:40]Read from MH i2c: E2 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: E2 0E 00 [14:34:40]MH_I2C_Read... [14:34:40]Read from MH i2c: E2 0E 00 BC 2A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 01 [14:34:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:34:40]wFMCommunicate OK [14:34:40]SAM_PROTO_GetShiftState done [14:34:40]FM_GetShiftState done [14:34:40]req_shift_opened done [14:34:40]requested_item shift.open_date is exist - process it [14:34:40]req_shift_open_date [14:34:40]req_shift_open_date done [14:34:40]produce_requested_data done [14:34:40]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2475,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:34:40]process_action_free close_receipt [14:34:40]json_value_free [14:34:40]json_value_free done [14:34:40]process_json_proto returns [14:34:40]Send response to host [14:34:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2475,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:34:40]free response buf [14:34:40]execute_script done [14:34:40]execute_script returns [14:34:40]free content buf [14:34:40]Sock 7.Close socket [14:34:40]Sock 7.Thread stoped [14:34:43]OFD Sender: No OFD packet to send [14:34:48]OFD Sender: No OFD packet to send [14:34:53]OFD Sender: No OFD packet to send [14:34:58]OFD Sender: No OFD packet to send [14:35:03]OFD Sender: No OFD packet to send [14:35:08]OFD Sender: No OFD packet to send [14:35:13]OFD Sender: No OFD packet to send [14:35:18]OFD Sender: No OFD packet to send [14:35:23]OFD Sender: No OFD packet to send [14:35:28]OFD Sender: No OFD packet to send [14:35:33]OFD Sender: No OFD packet to send [14:35:38]OFD Sender: No OFD packet to send [14:35:43]OFD Sender: No OFD packet to send [14:35:48]accept exits with 9 [14:35:48]New connection [14:35:48]New thread 3066850660 created [14:35:48]Thread 3066707300 joined [14:35:48]Waiting for new connection... [14:35:48] Sock 9.Parse request [14:35:48]Sock 9.Check first char [14:35:48]Sock 9.First char is OK [14:35:48]request: POST /json_proto HTTP/1.0 [14:35:48]Method: POST [14:35:48]URL: /json_proto [14:35:48]Method is POST - this is cgi request [14:35:48]url: /json_proto [14:35:48]query_string will be loaded in cgi processing [14:35:48]execute_cgi json_proto POST (null) [14:35:48]execute_cgi path=json_proto method=POST [14:35:48]POST find Content-Length [14:35:48]Host: 172.17.52.132:8080 [14:35:48]Content-Length: 866 [14:35:48]Content-Type: application/json [14:35:48] [14:35:48]POST finish read [14:35:48]Found Content-Length = 866 [14:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99866", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:48]execute_script... [14:35: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 : (3)99866", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 283.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:35:48]POST & json_proto [14:35:48]process_json_proto [14:35:48]json parsed OK: [14:35:48]protocol is kg_v1.0 [14:35:48]action value=close_receipt [14:35:48]process_action close_receipt [14:35:48]cmd_close_receipt [14:35:48]MH_GetDate [14:35:48]Write to MH i2c: F0 00 00 BD 2A D6 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: F0 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: F0 09 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: F0 09 00 BD 2A 00 48 72 12 67 5A BE F6 66 86 [14:35:48]GetLastDocTimeStamp 1729262080 [14:35:48]current date 1729262152 [14:35:48]FM_GetShiftState [14:35:48]SAM_PROTO_GetShiftState [14:35:48]wFMCommunicate request_size=4 [14:35:48]MH_SAM_APDU [14:35:48]CAPDU: 80 13 01 00 [14:35:48]Write to MH i2c: E2 08 00 BE 2A 80 13 01 00 00 00 00 00 65 [14:35:48]Write i2c OK [14:35:48]MH_I2C_Read... [14:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:48]Read from MH i2c: E2 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 0E 00 [14:35:48]MH_I2C_Read... [14:35:48]Read from MH i2c: E2 0E 00 BE 2A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 03 [14:35:48]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:35:48]wFMCommunicate OK [14:35:48]SAM_PROTO_GetShiftState done [14:35:48]FM_GetShiftState done [14:35:48]opened in 1729209717 [14:35:48]opened+sec_in_day 1729296117 [14:35:48]quantity*price = 13900 [14:35:48]sum+1 = 13901 [14:35:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743587 Сигареты Winston XStyle Silver 1.000 * 144.00 = 144.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 283.00 ÐСП 1% : 2.50 ÐДС 12% : 30.05 Ðаличными: 283.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 101 18.10.2024 14:35 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2476 ФПД: 89471563143397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143552&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2476&fm=89471563143397&tin=02508201610067®Number=0000000000207295&sum=28300 0 [14:35:49]StoreToDocumentArchive [14:35:49]shift 22 fd 2476 [14:35:49]save to /storage/0022/doc_00002476 [14:35:49]save last doc name /storage/0022/doc_00002476 to /storage/kkm_last_doc_name [14:35:49]save OK [14:35:49]Clear old archive folders... [14:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=385 [14:35:49]tlvbuf is 013BA050 [14:35:49]SAM_PROTO_ClearQueue [14:35:49]wFMCommunicate request_size=4 [14:35:49]MH_SAM_APDU [14:35:49]CAPDU: 80 09 00 00 [14:35:49]Write to MH i2c: E2 08 00 CB 2A 80 09 00 00 00 00 00 00 67 [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:35:49]Read from MH i2c: E2 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 03 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 03 00 CB 2A 00 90 00 69 [14:35:49]RAPDU: 90 00 [14:35:49]wFMCommunicate OK [14:35:49]SAM_PROTO_ClearQueue done [14:35:49]KKMCreateOFDPacket [14:35:49]OFDProtocolAddRootSTLVToBuf [14:35:49]FM_MakeSignedData [14:35:49]FM_MakeSignedData [14:35:49]SAM_PROTO_SignData [14:35:49]wFMCommunicate request_size=4 [14:35:49]MH_SAM_APDU [14:35:49]CAPDU: 80 0D 01 02 [14:35:49]Write to MH i2c: E2 08 00 CC 2A 80 0D 01 02 00 00 00 00 6F [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:35:49]Read from MH i2c: E2 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 03 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 03 00 CC 2A 00 90 00 6A [14:35:49]RAPDU: 90 00 [14:35:49]wFMCommunicate OK [14:35:49]wFMCommunicate request_size=255 [14:35:49]MH_SAM_APDU [14:35:49]CAPDU: 80 0D 02 02 FA 03 00 81 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 [14:35:49]Write to MH i2c: E2 02 01 CD 2A 80 0D 02 02 FA 00 03 00 81 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 50 [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:49]Read from MH i2c: E2 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 03 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 03 00 CD 2A 00 90 00 6B [14:35:49]RAPDU: 90 00 [14:35:49]wFMCommunicate OK [14:35:49]wFMCommunicate request_size=144 [14:35:49]MH_SAM_APDU [14:35:49]CAPDU: 80 0D 02 02 8B 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 8C 6E 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 48 72 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AC 09 00 00 35 04 06 00 51 5F B8 BD 18 E5 [14:35:49]Write to MH i2c: E2 93 00 CE 2A 80 0D 02 02 8B 00 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 8C 6E 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 48 72 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AC 09 00 00 35 04 06 00 51 5F B8 BD 18 E5 00 00 EB [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:35:49]Read from MH i2c: E2 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 03 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 03 00 CE 2A 00 90 00 6C [14:35:49]RAPDU: 90 00 [14:35:49]wFMCommunicate OK [14:35:49]wFMCommunicate request_size=4 [14:35:49]MH_SAM_APDU [14:35:49]CAPDU: 80 0D 03 02 [14:35:49]Write to MH i2c: E2 08 00 CF 2A 80 0D 03 02 00 00 00 00 74 [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:35:49]Read from MH i2c: E2 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 0B 00 [14:35:49]MH_I2C_Read... [14:35:49]Read from MH i2c: E2 0B 00 CF 2A 00 9C E0 2A 53 2E ED 0F 5D 90 00 F5 [14:35:49]RAPDU: 9C E0 2A 53 2E ED 0F 5D 90 00 [14:35:49]wFMCommunicate OK [14:35:49]SAM_PROTO_SignData done [14:35:49]FM_MakeSignedData done [14:35:49]CreateOFDProtocolMessage [14:35:49]wFMCommunicate request_size=4 [14:35:49]MH_SAM_APDU [14:35:49]CAPDU: 80 11 00 00 [14:35:49]Write to MH i2c: E2 08 00 D0 2A 80 11 00 00 00 00 00 00 74 [14:35:49]Write i2c OK [14:35:49]MH_I2C_Read... [14:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:50]Read from MH i2c: E2 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 17 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: E2 17 00 D0 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 BC [14:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:35:50]wFMCommunicate OK [14:35:50]CreateOFDProtocolMessage done [14:35:50]OFDSenderStorePacket 2476 [14:35:50]StoreOFDPacket docnum=2476 [14:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 95 01 00 00 A1 A5 8D 01 5D 6B 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 8C 6E 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 48 72 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AC 09 00 00 35 04 06 00 51 5F B8 BD 18 E5 9C E0 2A 53 2E ED 0F 5D [14:35:50]CheckFolder [14:35:50]dirname=/storage/ofd_packets [14:35:50]CheckFolder done [14:35:50]ProducePacketName [14:35:50]name=ofd_packets/00002476 [14:35:50]NVStorageSaveData ofd_packets/00002476 [14:35:50]File name is /storage/ofd_packets/00002476 [14:35:50]Write 435 bytes [14:35:50]NVStorageSaveData done [14:35:50]OFDSenderStorePacket done [14:35:50]KKMCreateOFDPacket done [14:35:50]NVStorageSaveData kkm_last_timestamp [14:35:50]File name is /storage/kkm_last_timestamp [14:35:50]Write 4 bytes [14:35:50]NVStorageSaveData done [14:35:50]ExternCall_PrintAddStr [14:35:50]wPrintStart [14:35:50]Write to MH i2c: 01 00 00 D1 2A FB [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: 01 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: 01 07 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: 01 07 00 D1 2A 00 00 00 00 00 FF 0F 10 [14:35:50]RasterBufferAndPrint [14:35:50]line Счет N : (3)99866 [14:35:50]line ИÐÐ: 02508201610067 [14:35:50]line Контрольно-КаÑÑовый Чек [14:35:50]line ПРОДÐЖР[14:35:50]line Товар: 48741231 [14:35:50]line Сигареты Winston Super Slims Silver [14:35:50]line 1.000 * 139.00 [14:35:50]line = 139.00 [14:35:50]line ÐДС 12% ÐСП 1% [14:35:50]line > о реализуемом товаре [14:35:50]line Товар: 48743587 [14:35:50]line Сигареты Winston XStyle Silver [14:35:50]line 1.000 * 144.00 [14:35:50]line = 144.00 [14:35:50]line ÐДС 12% ÐСП 1% [14:35:50]line > о реализуемом товаре [14:35:50]line ИТОГО: 283.00 [14:35:50]line ÐСП 1% : 2.50 [14:35:50]line ÐДС 12% : 30.05 [14:35:50]line Ðаличными: 283.00 [14:35:50]line Безнал.: 0.00 [14:35:50]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:35:50]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:35:50]line СÐО: Общий режим [14:35:50]line Чек 101 18.10.2024 14:35 [14:35:50]line Смена: 22 ФФД: 1.0 [14:35:50]line ЗÐМ: 0300000191 [14:35:50]line РÐМ: 0000000000207295 [14:35:50]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:35:50]line ФМ: 0000000002342820 [14:35:50]line ФД: 2476 [14:35:50]line ФПД: 89471563143397 [14:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T143552&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2476&fm=89471563143397&tin=02508201610067®Number=0000000000207295&sum=28300 [14:35:50]OFD Sender: Processing packet 2476 [packets to send 1, broken 0] [14:35:50]ProducePacketName [14:35:50]name=ofd_packets/00002476 [14:35:50]OFD Sender: To server: ‡•öpG, [14:35:50]CommunicateWithHost lk.salyk.kg:30040 [14:35:50]ConnectInit lk.salyk.kg [14:35:50]line 0 [14:35:50]written 0, free lines is 4095 [14:35:50]Connected sock=10 [14:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 95 01 00 00 A1 A5 8D 01 5D 6B 5A 03 01 00 03 00 81 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 8C 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BD 0B 00 00 00 00 07 04 06 00 8C 6E 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 48 72 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AC 09 00 00 35 04 06 00 51 5F B8 BD 18 E5 9C E0 2A 53 2E ED 0F 5D [14:35:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 99 F8 47 00 5E A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AC 09 00 00 F4 03 04 00 AC 1D 12 67 B6 04 01 00 00 20 AF 05 EA 62 A4 86 C9 [14:35:50]CommunicateWithHost err = 0 [14:35:50]CheckOFDResponse [14:35:50]1017 (14) - 77093643461234 [14:35:50]1041 (16) - 0000000002342820 [14:35:50]1040 (4) - 2476 [14:35:50]1012 (4) - 18.10.2024 08:34 [14:35:50]1206 (1) - 0 [14:35:50]OFD Sender: Remove packet 2476 [14:35:50]ProducePacketName [14:35:50]name=ofd_packets/00002476 [14:35:50]NVStorageDeleteData [14:35:50]Write to MH i2c: 01 00 00 01 2B 2C [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: 01 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: 01 07 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: 01 07 00 01 2B 00 00 00 00 00 47 0C 86 [14:35:50]RasterBufferAndPrint [14:35:50]line [14:35:50]line [14:35:50]line [14:35:50]line [14:35:50]line [14:35:50]written 0, free lines is 3149 [14:35:50]MH_Cut [14:35:50]Write to MH i2c: D1 01 00 08 2B 01 05 [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: D1 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: D1 01 00 [14:35:50]MH_I2C_Read... [14:35:50]Read from MH i2c: D1 01 00 08 2B 00 04 [14:35:50]Write to MH i2c: 01 00 00 09 2B 34 [14:35:50]Write i2c OK [14:35:50]MH_I2C_Read... [14:35:51]OFD Sender: No OFD packet to send [14:35:51]*** Cut start [14:35:51]*** Partial cut [14:35:51]*** CUTSNS_PIN = 1 [14:35:51]*** CUTSNS_PIN = 0 [14:35:52]*** Brake cut motor [14:35:52]Read from MH i2c: 01 [14:35:52]MH_I2C_Read... [14:35:52]*** Stop cut motor [14:35:52]*** Cut end [14:35:52]Read from MH i2c: 01 07 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: 01 07 00 09 2B 00 00 00 00 00 FF 0F 49 [14:35:52]process_action close_receipt done [14:35:52]requested_data is exist [14:35:52]produce_requested_data [14:35:52]requested_item fm.sn is exist - process it [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 11 00 00 [14:35:52]Write to MH i2c: E2 08 00 0A 2B 80 11 00 00 00 00 00 00 AF [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 17 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 17 00 0A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F7 [14:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:35:52]wFMCommunicate OK [14:35:52]requested_item fd.num is exist - process it [14:35:52]SAM_PROTO_GetFieldsCounters [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 13 00 00 [14:35:52]Write to MH i2c: E2 08 00 0B 2B 80 13 00 00 00 00 00 00 B2 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 62 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 62 00 0B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AC 09 00 00 0E 04 04 00 16 00 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 C2 [14:35:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AC 09 00 00 0E 04 04 00 16 00 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:35:52]wFMCommunicate OK [14:35:52]SAM_PROTO_GetFieldsCounters done [14:35:52]requested_item shift.num is exist - process it [14:35:52]requested_item shift.opened is exist - process it [14:35:52]req_shift_opened [14:35:52]FM_GetShiftState [14:35:52]SAM_PROTO_GetShiftState [14:35:52]wFMCommunicate request_size=4 [14:35:52]MH_SAM_APDU [14:35:52]CAPDU: 80 13 01 00 [14:35:52]Write to MH i2c: E2 08 00 0C 2B 80 13 01 00 00 00 00 00 B4 [14:35:52]Write i2c OK [14:35:52]MH_I2C_Read... [14:35:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:35:52]Read from MH i2c: E2 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 0E 00 [14:35:52]MH_I2C_Read... [14:35:52]Read from MH i2c: E2 0E 00 0C 2B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 52 [14:35:52]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:35:52]wFMCommunicate OK [14:35:52]SAM_PROTO_GetShiftState done [14:35:52]FM_GetShiftState done [14:35:52]req_shift_opened done [14:35:52]requested_item shift.open_date is exist - process it [14:35:52]req_shift_open_date [14:35:52]req_shift_open_date done [14:35:52]produce_requested_data done [14:35:52]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2476,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:35:52]process_action_free close_receipt [14:35:52]json_value_free [14:35:52]json_value_free done [14:35:52]process_json_proto returns [14:35:52]Send response to host [14:35:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2476,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:35:52]free response buf [14:35:52]execute_script done [14:35:52]execute_script returns [14:35:52]free content buf [14:35:52]Sock 9.Close socket [14:35:52]Sock 9.Thread stoped [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [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: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:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:06]OFD Sender: No OFD packet to send [14:47:11]OFD Sender: No OFD packet to send [14:47:16]OFD Sender: No OFD packet to send [14:47:21]OFD Sender: No OFD packet to send [14:47:26]OFD Sender: No OFD packet to send [14:47:31]OFD Sender: No OFD packet to send [14:47:36]OFD Sender: No OFD packet to send [14:47:41]OFD Sender: No OFD packet to send [14:47:46]OFD Sender: No OFD packet to send [14:47:51]OFD Sender: No OFD packet to send [14:47:56]OFD Sender: No OFD packet to send [14:48:01]OFD Sender: No OFD packet to send [14:48:06]OFD Sender: No OFD packet to send [14:48:11]OFD Sender: No OFD packet to send [14:48:16]OFD Sender: No OFD packet to send [14:48:21]OFD Sender: No OFD packet to send [14:48:26]OFD Sender: No OFD packet to send [14:48:31]OFD Sender: No OFD packet to send [14:48:36]OFD Sender: No OFD packet to send [14:48:41]OFD Sender: No OFD packet to send [14:48:46]OFD Sender: No OFD packet to send [14:48:51]OFD Sender: No OFD packet to send [14:48:56]OFD Sender: No OFD packet to send [14:48:59]accept exits with 7 [14:48:59]New connection [14:48:59]New thread 3066707300 created [14:48:59]Thread 3066850660 joined [14:48:59]Waiting for new connection... [14:48:59] Sock 7.Parse request [14:48:59]Sock 7.Check first char [14:48:59]Sock 7.First char is OK [14:48:59]request: POST /json_proto HTTP/1.0 [14:48:59]Method: POST [14:48:59]URL: /json_proto [14:48:59]Method is POST - this is cgi request [14:48:59]url: /json_proto [14:48:59]query_string will be loaded in cgi processing [14:48:59]execute_cgi json_proto POST (null) [14:48:59]execute_cgi path=json_proto method=POST [14:48:59]POST find Content-Length [14:48:59]Host: 172.17.52.132:8080 [14:48:59]Content-Length: 629 [14:48:59]Content-Type: application/json [14:48:59] [14:48:59]POST finish read [14:48:59]Found Content-Length = 629 [14:48:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99867", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:59]execute_script... [14:48: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 : (3)99867", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:48:59]POST & json_proto [14:48:59]process_json_proto [14:48:59]json parsed OK: [14:48:59]protocol is kg_v1.0 [14:48:59]action value=close_receipt [14:48:59]process_action close_receipt [14:48:59]cmd_close_receipt [14:48:59]MH_GetDate [14:48:59]Write to MH i2c: F0 00 00 0D 2B 27 [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: F0 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: F0 09 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: F0 09 00 0D 2B 00 60 75 12 67 5A BE F6 66 F2 [14:48:59]GetLastDocTimeStamp 1729262152 [14:48:59]current date 1729262944 [14:48:59]FM_GetShiftState [14:48:59]SAM_PROTO_GetShiftState [14:48:59]wFMCommunicate request_size=4 [14:48:59]MH_SAM_APDU [14:48:59]CAPDU: 80 13 01 00 [14:48:59]Write to MH i2c: E2 08 00 0E 2B 80 13 01 00 00 00 00 00 B6 [14:48:59]Write i2c OK [14:48:59]MH_I2C_Read... [14:48:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:48:59]Read from MH i2c: E2 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 0E 00 [14:48:59]MH_I2C_Read... [14:48:59]Read from MH i2c: E2 0E 00 0E 2B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 54 [14:48:59]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:48:59]wFMCommunicate OK [14:48:59]SAM_PROTO_GetShiftState done [14:48:59]FM_GetShiftState done [14:48:59]opened in 1729209717 [14:48:59]opened+sec_in_day 1729296117 [14:48:59]quantity*price = 5000 [14:48:59]sum+1 = 5001 [14:48:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 ÐСП 1% : 0.44 ÐДС 12% : 5.31 Ðаличными: 50.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 102 18.10.2024 14:49 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2477 ФПД: 139632742052260 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144904&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2477&fm=139632742052260&tin=02508201610067®Number=0000000000207295&sum=5000 0 [14:49:01]StoreToDocumentArchive [14:49:01]shift 22 fd 2477 [14:49:01]save to /storage/0022/doc_00002477 [14:49:01]save last doc name /storage/0022/doc_00002477 to /storage/kkm_last_doc_name [14:49:01]save OK [14:49:01]Clear old archive folders... [14:49:01]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:49:01]tlvbuf is 013CE7E0 [14:49:01]SAM_PROTO_ClearQueue [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 09 00 00 [14:49:01]Write to MH i2c: E2 08 00 1B 2B 80 09 00 00 00 00 00 00 B8 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 03 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 03 00 1B 2B 00 90 00 BA [14:49:01]RAPDU: 90 00 [14:49:01]wFMCommunicate OK [14:49:01]SAM_PROTO_ClearQueue done [14:49:01]KKMCreateOFDPacket [14:49:01]OFDProtocolAddRootSTLVToBuf [14:49:01]FM_MakeSignedData [14:49:01]FM_MakeSignedData [14:49:01]SAM_PROTO_SignData [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 0D 01 02 [14:49:01]Write to MH i2c: E2 08 00 1C 2B 80 0D 01 02 00 00 00 00 C0 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 03 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 03 00 1C 2B 00 90 00 BB [14:49:01]RAPDU: 90 00 [14:49:01]wFMCommunicate OK [14:49:01]wFMCommunicate request_size=255 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 60 75 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 [14:49:01]Write to MH i2c: E2 02 01 1D 2B 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 60 75 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 00 00 9E [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 03 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 03 00 1D 2B 00 90 00 BC [14:49:01]RAPDU: 90 00 [14:49:01]wFMCommunicate OK [14:49:01]wFMCommunicate request_size=28 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 0D 02 02 17 34 32 38 32 30 10 04 04 00 AD 09 00 00 35 04 06 00 7E FE C7 FD 31 A4 [14:49:01]Write to MH i2c: E2 1F 00 1E 2B 80 0D 02 02 17 00 34 32 38 32 30 10 04 04 00 AD 09 00 00 35 04 06 00 7E FE C7 FD 31 A4 00 00 13 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 03 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 03 00 1E 2B 00 90 00 BD [14:49:01]RAPDU: 90 00 [14:49:01]wFMCommunicate OK [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 0D 03 02 [14:49:01]Write to MH i2c: E2 08 00 1F 2B 80 0D 03 02 00 00 00 00 C5 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 0B 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 0B 00 1F 2B 00 79 B6 64 2D 3D D6 30 9B 90 00 64 [14:49:01]RAPDU: 79 B6 64 2D 3D D6 30 9B 90 00 [14:49:01]wFMCommunicate OK [14:49:01]SAM_PROTO_SignData done [14:49:01]FM_MakeSignedData done [14:49:01]CreateOFDProtocolMessage [14:49:01]wFMCommunicate request_size=4 [14:49:01]MH_SAM_APDU [14:49:01]CAPDU: 80 11 00 00 [14:49:01]Write to MH i2c: E2 08 00 20 2B 80 11 00 00 00 00 00 00 C5 [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:01]Read from MH i2c: E2 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 17 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: E2 17 00 20 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 0D [14:49:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:49:01]wFMCommunicate OK [14:49:01]CreateOFDProtocolMessage done [14:49:01]OFDSenderStorePacket 2477 [14:49:01]StoreOFDPacket docnum=2477 [14:49:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 21 01 00 00 65 79 19 01 76 E2 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 60 75 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AD 09 00 00 35 04 06 00 7E FE C7 FD 31 A4 79 B6 64 2D 3D D6 30 9B [14:49:01]CheckFolder [14:49:01]dirname=/storage/ofd_packets [14:49:01]CheckFolder done [14:49:01]ProducePacketName [14:49:01]name=ofd_packets/00002477 [14:49:01]NVStorageSaveData ofd_packets/00002477 [14:49:01]File name is /storage/ofd_packets/00002477 [14:49:01]Write 319 bytes [14:49:01]NVStorageSaveData done [14:49:01]OFDSenderStorePacket done [14:49:01]KKMCreateOFDPacket done [14:49:01]NVStorageSaveData kkm_last_timestamp [14:49:01]File name is /storage/kkm_last_timestamp [14:49:01]Write 4 bytes [14:49:01]OFD Sender: Processing packet 2477 [packets to send 1, broken 0] [14:49:01]ProducePacketName [14:49:01]name=ofd_packets/00002477 [14:49:01]OFD Sender: To server: ‡•öpG, [14:49:01]CommunicateWithHost lk.salyk.kg:30040 [14:49:01]ConnectInit lk.salyk.kg [14:49:01]NVStorageSaveData done [14:49:01]ExternCall_PrintAddStr [14:49:01]wPrintStart [14:49:01]Write to MH i2c: 01 00 00 21 2B 4C [14:49:01]Write i2c OK [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: 01 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: 01 07 00 [14:49:01]MH_I2C_Read... [14:49:01]Read from MH i2c: 01 07 00 21 2B 00 00 00 00 00 FF 0F 61 [14:49:01]RasterBufferAndPrint [14:49:01]line Счет N : (3)99867 [14:49:01]line ИÐÐ: 02508201610067 [14:49:01]line Контрольно-КаÑÑовый Чек [14:49:01]line ПРОДÐЖР[14:49:01]line Товар: 4700000160358 [14:49:01]line Вода Легенда 1л [14:49:01]line 1.000 * 50.00 [14:49:01]line = 50.00 [14:49:01]line ÐДС 12% ÐСП 1% [14:49:01]line > о реализуемом товаре [14:49:01]line ИТОГО: 50.00 [14:49:01]line ÐСП 1% : 0.44 [14:49:01]line ÐДС 12% : 5.31 [14:49:01]line Ðаличными: 50.00 [14:49:01]line Безнал.: 0.00 [14:49:01]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:49:01]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:49:01]line СÐО: Общий режим [14:49:01]line Чек 102 18.10.2024 14:49 [14:49:01]line Смена: 22 ФФД: 1.0 [14:49:01]line ЗÐМ: 0300000191 [14:49:01]line РÐМ: 0000000000207295 [14:49:01]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:49:01]line ФМ: 0000000002342820 [14:49:01]line ФД: 2477 [14:49:01]line ФПД: 139632742052260 [14:49:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144904&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2477&fm=139632742052260&tin=02508201610067®Number=0000000000207295&sum=5000 [14:49:01]line 0 [14:49:01]Connected sock=11 [14:49:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 21 01 00 00 65 79 19 01 76 E2 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 60 75 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AD 09 00 00 35 04 06 00 7E FE C7 FD 31 A4 79 B6 64 2D 3D D6 30 9B [14:49:02]written 0, free lines is 4095 [14:49:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 E7 3D 47 00 CD 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AD 09 00 00 F4 03 04 00 C4 20 12 67 B6 04 01 00 00 DC 8E C0 59 3F 03 90 85 [14:49:02]CommunicateWithHost err = 0 [14:49:02]CheckOFDResponse [14:49:02]1017 (14) - 77093643461234 [14:49:02]1041 (16) - 0000000002342820 [14:49:02]1040 (4) - 2477 [14:49:02]1012 (4) - 18.10.2024 08:48 [14:49:02]1206 (1) - 0 [14:49:02]OFD Sender: Remove packet 2477 [14:49:02]ProducePacketName [14:49:02]name=ofd_packets/00002477 [14:49:02]NVStorageDeleteData [14:49:02]Write to MH i2c: 01 00 00 49 2B 74 [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: 01 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: 01 07 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: 01 07 00 49 2B 00 00 00 00 00 C8 0C 4F [14:49:02]RasterBufferAndPrint [14:49:02]line [14:49:02]line [14:49:02]line [14:49:02]line [14:49:02]line [14:49:02]written 0, free lines is 3277 [14:49:02]MH_Cut [14:49:02]Write to MH i2c: D1 01 00 50 2B 01 4D [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: D1 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: D1 01 00 [14:49:02]MH_I2C_Read... [14:49:02]Read from MH i2c: D1 01 00 50 2B 00 4C [14:49:02]Write to MH i2c: 01 00 00 51 2B 7C [14:49:02]Write i2c OK [14:49:02]MH_I2C_Read... [14:49:02]OFD Sender: No OFD packet to send [14:49:03]*** Cut start [14:49:03]*** Partial cut [14:49:03]*** CUTSNS_PIN = 1 [14:49:03]*** CUTSNS_PIN = 0 [14:49:03]*** Brake cut motor [14:49:03]Read from MH i2c: 01 [14:49:03]MH_I2C_Read... [14:49:03]*** Stop cut motor [14:49:03]*** Cut end [14:49:03]Read from MH i2c: 01 07 00 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: 01 07 00 51 2B 00 00 00 00 00 FF 0F 91 [14:49:03]process_action close_receipt done [14:49:03]requested_data is exist [14:49:03]produce_requested_data [14:49:03]requested_item fm.sn is exist - process it [14:49:03]wFMCommunicate request_size=4 [14:49:03]MH_SAM_APDU [14:49:03]CAPDU: 80 11 00 00 [14:49:03]Write to MH i2c: E2 08 00 52 2B 80 11 00 00 00 00 00 00 F7 [14:49:03]Write i2c OK [14:49:03]MH_I2C_Read... [14:49:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:03]Read from MH i2c: E2 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: E2 17 00 [14:49:03]MH_I2C_Read... [14:49:03]Read from MH i2c: E2 17 00 52 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 3F [14:49:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:49:03]wFMCommunicate OK [14:49:03]requested_item fd.num is exist - process it [14:49:03]SAM_PROTO_GetFieldsCounters [14:49:03]wFMCommunicate request_size=4 [14:49:03]MH_SAM_APDU [14:49:03]CAPDU: 80 13 00 00 [14:49:04]Write to MH i2c: E2 08 00 53 2B 80 13 00 00 00 00 00 00 FA [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 62 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 62 00 53 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AD 09 00 00 0E 04 04 00 16 00 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 0E [14:49:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AD 09 00 00 0E 04 04 00 16 00 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:49:04]wFMCommunicate OK [14:49:04]SAM_PROTO_GetFieldsCounters done [14:49:04]requested_item shift.num is exist - process it [14:49:04]requested_item shift.opened is exist - process it [14:49:04]req_shift_opened [14:49:04]FM_GetShiftState [14:49:04]SAM_PROTO_GetShiftState [14:49:04]wFMCommunicate request_size=4 [14:49:04]MH_SAM_APDU [14:49:04]CAPDU: 80 13 01 00 [14:49:04]Write to MH i2c: E2 08 00 54 2B 80 13 01 00 00 00 00 00 FC [14:49:04]Write i2c OK [14:49:04]MH_I2C_Read... [14:49:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:04]Read from MH i2c: E2 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 0E 00 [14:49:04]MH_I2C_Read... [14:49:04]Read from MH i2c: E2 0E 00 54 2B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 9A [14:49:04]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:49:04]wFMCommunicate OK [14:49:04]SAM_PROTO_GetShiftState done [14:49:04]FM_GetShiftState done [14:49:04]req_shift_opened done [14:49:04]requested_item shift.open_date is exist - process it [14:49:04]req_shift_open_date [14:49:04]req_shift_open_date done [14:49:04]produce_requested_data done [14:49:04]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2477,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:49:04]process_action_free close_receipt [14:49:04]json_value_free [14:49:04]json_value_free done [14:49:04]process_json_proto returns [14:49:04]Send response to host [14:49:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2477,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:49:04]free response buf [14:49:04]execute_script done [14:49:04]execute_script returns [14:49:04]free content buf [14:49:04]Sock 7.Close socket [14:49:04]Sock 7.Thread stoped [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:13]accept exits with 9 [14:49:13]New connection [14:49:13]New thread 3066850660 created [14:49:13]Thread 3066707300 joined [14:49:13]Waiting for new connection... [14:49:13] Sock 9.Parse request [14:49:13]Sock 9.Check first char [14:49:13]Sock 9.First char is OK [14:49:13]request: POST /json_proto HTTP/1.0 [14:49:13]Method: POST [14:49:13]URL: /json_proto [14:49:13]Method is POST - this is cgi request [14:49:13]url: /json_proto [14:49:13]query_string will be loaded in cgi processing [14:49:13]execute_cgi json_proto POST (null) [14:49:13]execute_cgi path=json_proto method=POST [14:49:13]POST find Content-Length [14:49:13]Host: 172.17.52.132:8080 [14:49:13]Content-Length: 600 [14:49:13]Content-Type: application/json [14:49:13] [14:49:13]POST finish read [14:49:13]Found Content-Length = 600 [14:49:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99868", "tax_sys" : 0, "items" : [ { "code": "46153715", "name": "\u0420/\u0436 Orbit XXL white bubblemint 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:13]execute_script... [14:49:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99868", "tax_sys" : 0, "items" : [ { "code": "46153715", "name": "\u0420/\u0436 Orbit XXL white bubblemint 20,4\u0433", "price" : 51.00, "quantity" : 1.000, "sum" : 51.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 51.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:13]POST & json_proto [14:49:13]process_json_proto [14:49:13]json parsed OK: [14:49:13]protocol is kg_v1.0 [14:49:13]action value=close_receipt [14:49:13]process_action close_receipt [14:49:13]cmd_close_receipt [14:49:13]MH_GetDate [14:49:13]Write to MH i2c: F0 00 00 55 2B 6F [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: F0 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: F0 09 00 [14:49:13]MH_I2C_Read... [14:49:13]Read from MH i2c: F0 09 00 55 2B 00 6E 75 12 67 5A BE F6 66 48 [14:49:13]GetLastDocTimeStamp 1729262944 [14:49:13]current date 1729262958 [14:49:13]FM_GetShiftState [14:49:13]SAM_PROTO_GetShiftState [14:49:13]wFMCommunicate request_size=4 [14:49:13]MH_SAM_APDU [14:49:13]CAPDU: 80 13 01 00 [14:49:13]Write to MH i2c: E2 08 00 56 2B 80 13 01 00 00 00 00 00 FE [14:49:13]Write i2c OK [14:49:13]MH_I2C_Read... [14:49:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:14]Read from MH i2c: E2 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 0E 00 [14:49:14]MH_I2C_Read... [14:49:14]Read from MH i2c: E2 0E 00 56 2B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 9C [14:49:14]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:49:14]wFMCommunicate OK [14:49:14]SAM_PROTO_GetShiftState done [14:49:14]FM_GetShiftState done [14:49:14]opened in 1729209717 [14:49:14]opened+sec_in_day 1729296117 [14:49:14]quantity*price = 5100 [14:49:14]sum+1 = 5101 [14:49:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 51.00 ÐСП 1% : 0.45 ÐДС 12% : 5.42 Ðаличными: 51.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 103 18.10.2024 14:49 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2478 ФПД: 51027227840894 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144918&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2478&fm=51027227840894&tin=02508201610067®Number=0000000000207295&sum=5100 0 [14:49:15]StoreToDocumentArchive [14:49:15]shift 22 fd 2478 [14:49:15]save to /storage/0022/doc_00002478 [14:49:15]save last doc name /storage/0022/doc_00002478 to /storage/kkm_last_doc_name [14:49:15]save OK [14:49:15]Clear old archive folders... [14:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=276 [14:49:15]tlvbuf is B6F3C8D0 [14:49:15]SAM_PROTO_ClearQueue [14:49:15]wFMCommunicate request_size=4 [14:49:15]MH_SAM_APDU [14:49:15]CAPDU: 80 09 00 00 [14:49:15]Write to MH i2c: E2 08 00 63 2B 80 09 00 00 00 00 00 00 00 [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:15]Read from MH i2c: E2 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 03 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 03 00 63 2B 00 90 00 02 [14:49:15]RAPDU: 90 00 [14:49:15]wFMCommunicate OK [14:49:15]SAM_PROTO_ClearQueue done [14:49:15]KKMCreateOFDPacket [14:49:15]OFDProtocolAddRootSTLVToBuf [14:49:15]FM_MakeSignedData [14:49:15]FM_MakeSignedData [14:49:15]SAM_PROTO_SignData [14:49:15]wFMCommunicate request_size=4 [14:49:15]MH_SAM_APDU [14:49:15]CAPDU: 80 0D 01 02 [14:49:15]Write to MH i2c: E2 08 00 64 2B 80 0D 01 02 00 00 00 00 08 [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:15]Read from MH i2c: E2 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 03 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 03 00 64 2B 00 90 00 03 [14:49:15]RAPDU: 90 00 [14:49:15]wFMCommunicate OK [14:49:15]wFMCommunicate request_size=255 [14:49:15]MH_SAM_APDU [14:49:15]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 6E 75 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 [14:49:15]Write to MH i2c: E2 02 01 65 2B 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 6E 75 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 00 00 31 [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:15]Read from MH i2c: E2 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 03 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 03 00 65 2B 00 90 00 04 [14:49:15]RAPDU: 90 00 [14:49:15]wFMCommunicate OK [14:49:15]wFMCommunicate request_size=35 [14:49:15]MH_SAM_APDU [14:49:15]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AE 09 00 00 35 04 06 00 2E 68 B3 CA 11 7E [14:49:15]Write to MH i2c: E2 26 00 66 2B 80 0D 02 02 1E 00 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AE 09 00 00 35 04 06 00 2E 68 B3 CA 11 7E 00 00 4C [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:15]Read from MH i2c: E2 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 03 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 03 00 66 2B 00 90 00 05 [14:49:15]RAPDU: 90 00 [14:49:15]wFMCommunicate OK [14:49:15]wFMCommunicate request_size=4 [14:49:15]MH_SAM_APDU [14:49:15]CAPDU: 80 0D 03 02 [14:49:15]Write to MH i2c: E2 08 00 67 2B 80 0D 03 02 00 00 00 00 0D [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:15]Read from MH i2c: E2 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 0B 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 0B 00 67 2B 00 AE 6C 17 AD 29 75 E5 9C 90 00 0B [14:49:15]RAPDU: AE 6C 17 AD 29 75 E5 9C 90 00 [14:49:15]wFMCommunicate OK [14:49:15]SAM_PROTO_SignData done [14:49:15]FM_MakeSignedData done [14:49:15]CreateOFDProtocolMessage [14:49:15]wFMCommunicate request_size=4 [14:49:15]MH_SAM_APDU [14:49:15]CAPDU: 80 11 00 00 [14:49:15]Write to MH i2c: E2 08 00 68 2B 80 11 00 00 00 00 00 00 0D [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:15]Read from MH i2c: E2 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 17 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: E2 17 00 68 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 55 [14:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:49:15]wFMCommunicate OK [14:49:15]CreateOFDProtocolMessage done [14:49:15]OFDSenderStorePacket 2478 [14:49:15]StoreOFDPacket docnum=2478 [14:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 4E EF 20 01 D8 78 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 6E 75 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AE 09 00 00 35 04 06 00 2E 68 B3 CA 11 7E AE 6C 17 AD 29 75 E5 9C [14:49:15]CheckFolder [14:49:15]dirname=/storage/ofd_packets [14:49:15]CheckFolder done [14:49:15]ProducePacketName [14:49:15]name=ofd_packets/00002478 [14:49:15]NVStorageSaveData ofd_packets/00002478 [14:49:15]File name is /storage/ofd_packets/00002478 [14:49:15]Write 326 bytes [14:49:15]NVStorageSaveData done [14:49:15]OFDSenderStorePacket done [14:49:15]KKMCreateOFDPacket done [14:49:15]NVStorageSaveData kkm_last_timestamp [14:49:15]File name is /storage/kkm_last_timestamp [14:49:15]Write 4 bytes [14:49:15]NVStorageSaveData done [14:49:15]ExternCall_PrintAddStr [14:49:15]wPrintStart [14:49:15]Write to MH i2c: 01 00 00 69 2B 94 [14:49:15]Write i2c OK [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 07 00 [14:49:15]MH_I2C_Read... [14:49:15]Read from MH i2c: 01 07 00 69 2B 00 00 00 00 00 FF 0F A9 [14:49:15]RasterBufferAndPrint [14:49:15]line Счет N : (3)99868 [14:49:15]line ИÐÐ: 02508201610067 [14:49:15]line Контрольно-КаÑÑовый Чек [14:49:15]line ПРОДÐЖР[14:49:15]line Товар: 46153715 [14:49:15]line Р/ж Orbit XXL white bubblemint 20,4г [14:49:15]line 1.000 * 51.00 [14:49:15]line = 51.00 [14:49:15]line ÐДС 12% ÐСП 1% [14:49:15]line > о реализуемом товаре [14:49:15]line ИТОГО: 51.00 [14:49:15]line ÐСП 1% : 0.45 [14:49:15]line ÐДС 12% : 5.42 [14:49:15]line Ðаличными: 51.00 [14:49:15]line Безнал.: 0.00 [14:49:15]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:49:15]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:49:15]line СÐО: Общий режим [14:49:15]line Чек 103 18.10.2024 14:49 [14:49:15]line Смена: 22 ФФД: 1.0 [14:49:15]line ЗÐМ: 0300000191 [14:49:15]line РÐМ: 0000000000207295 [14:49:15]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:49:15]line ФМ: 0000000002342820 [14:49:15]line ФД: 2478 [14:49:15]line ФПД: 51027227840894 [14:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T144918&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2478&fm=51027227840894&tin=02508201610067®Number=0000000000207295&sum=5100 [14:49:16]line 0 [14:49:16]OFD Sender: Processing packet 2478 [packets to send 1, broken 0] [14:49:16]ProducePacketName [14:49:16]name=ofd_packets/00002478 [14:49:16]OFD Sender: To server: ‡•öpG, [14:49:16]CommunicateWithHost lk.salyk.kg:30040 [14:49:16]ConnectInit lk.salyk.kg [14:49:16]written 0, free lines is 4095 [14:49:16]Connected sock=10 [14:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 4E EF 20 01 D8 78 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 36 31 35 33 37 31 35 06 04 27 00 D0 A0 2F D0 B6 20 4F 72 62 69 74 20 58 58 4C 20 77 68 69 74 65 20 62 75 62 62 6C 65 6D 69 6E 74 20 32 30 2C 34 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 13 00 00 00 00 13 04 06 00 EC 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 02 00 00 00 00 07 04 06 00 EC 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 6E 75 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AE 09 00 00 35 04 06 00 2E 68 B3 CA 11 7E AE 6C 17 AD 29 75 E5 9C [14:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CF E9 47 00 E7 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 32 33 34 32 38 32 30 10 04 04 00 AE 09 00 00 F4 03 04 00 D2 20 12 67 B6 04 01 00 00 63 30 99 71 31 6A 5F DD [14:49:16]CommunicateWithHost err = 0 [14:49:16]CheckOFDResponse [14:49:16]1017 (14) - 77093643461234 [14:49:16]1041 (16) - 0000000002342820 [14:49:16]1040 (4) - 2478 [14:49:16]1012 (4) - 18.10.2024 08:48 [14:49:16]1206 (1) - 0 [14:49:16]OFD Sender: Remove packet 2478 [14:49:16]ProducePacketName [14:49:16]name=ofd_packets/00002478 [14:49:16]NVStorageDeleteData [14:49:16]Write to MH i2c: 01 00 00 92 2B BD [14:49:16]Write i2c OK [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: 01 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: 01 07 00 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: 01 07 00 92 2B 00 00 00 00 00 C3 0C 93 [14:49:16]RasterBufferAndPrint [14:49:16]line [14:49:16]line [14:49:16]line [14:49:16]line [14:49:16]line [14:49:16]written 0, free lines is 3272 [14:49:16]MH_Cut [14:49:16]Write to MH i2c: D1 01 00 99 2B 01 96 [14:49:16]Write i2c OK [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: D1 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: D1 01 00 [14:49:16]MH_I2C_Read... [14:49:16]Read from MH i2c: D1 01 00 99 2B 00 95 [14:49:16]Write to MH i2c: 01 00 00 9A 2B C5 [14:49:16]Write i2c OK [14:49:16]MH_I2C_Read... [14:49:16]OFD Sender: No OFD packet to send [14:49:17]*** Cut start [14:49:17]*** Partial cut [14:49:17]*** CUTSNS_PIN = 1 [14:49:17]*** CUTSNS_PIN = 0 [14:49:17]*** Brake cut motor [14:49:17]Read from MH i2c: 01 [14:49:17]MH_I2C_Read... [14:49:17]*** Stop cut motor [14:49:17]*** Cut end [14:49:17]Read from MH i2c: 01 07 00 [14:49:17]MH_I2C_Read... [14:49:17]Read from MH i2c: 01 07 00 9A 2B 00 00 00 00 00 FF 0F DA [14:49:18]process_action close_receipt done [14:49:18]requested_data is exist [14:49:18]produce_requested_data [14:49:18]requested_item fm.sn is exist - process it [14:49:18]wFMCommunicate request_size=4 [14:49:18]MH_SAM_APDU [14:49:18]CAPDU: 80 11 00 00 [14:49:18]Write to MH i2c: E2 08 00 9B 2B 80 11 00 00 00 00 00 00 40 [14:49:18]Write i2c OK [14:49:18]MH_I2C_Read... [14:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:18]Read from MH i2c: E2 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 17 00 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 17 00 9B 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 88 [14:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:49:18]wFMCommunicate OK [14:49:18]requested_item fd.num is exist - process it [14:49:18]SAM_PROTO_GetFieldsCounters [14:49:18]wFMCommunicate request_size=4 [14:49:18]MH_SAM_APDU [14:49:18]CAPDU: 80 13 00 00 [14:49:18]Write to MH i2c: E2 08 00 9C 2B 80 13 00 00 00 00 00 00 43 [14:49:18]Write i2c OK [14:49:18]MH_I2C_Read... [14:49:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:18]Read from MH i2c: E2 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 62 00 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 62 00 9C 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AE 09 00 00 0E 04 04 00 16 00 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 5B [14:49:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AE 09 00 00 0E 04 04 00 16 00 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:49:18]wFMCommunicate OK [14:49:18]SAM_PROTO_GetFieldsCounters done [14:49:18]requested_item shift.num is exist - process it [14:49:18]requested_item shift.opened is exist - process it [14:49:18]req_shift_opened [14:49:18]FM_GetShiftState [14:49:18]SAM_PROTO_GetShiftState [14:49:18]wFMCommunicate request_size=4 [14:49:18]MH_SAM_APDU [14:49:18]CAPDU: 80 13 01 00 [14:49:18]Write to MH i2c: E2 08 00 9D 2B 80 13 01 00 00 00 00 00 45 [14:49:18]Write i2c OK [14:49:18]MH_I2C_Read... [14:49:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:18]Read from MH i2c: E2 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 0E 00 [14:49:18]MH_I2C_Read... [14:49:18]Read from MH i2c: E2 0E 00 9D 2B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E3 [14:49:18]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:49:18]wFMCommunicate OK [14:49:18]SAM_PROTO_GetShiftState done [14:49:18]FM_GetShiftState done [14:49:18]req_shift_opened done [14:49:18]requested_item shift.open_date is exist - process it [14:49:18]req_shift_open_date [14:49:18]req_shift_open_date done [14:49:18]produce_requested_data done [14:49:18]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2478,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:49:18]process_action_free close_receipt [14:49:18]json_value_free [14:49:18]json_value_free done [14:49:18]process_json_proto returns [14:49:18]Send response to host [14:49:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2478,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:49:18]free response buf [14:49:18]execute_script done [14:49:18]execute_script returns [14:49:18]free content buf [14:49:18]Sock 9.Close socket [14:49:18]Sock 9.Thread stoped [14:49:21]OFD Sender: No OFD packet to send [14:49:26]OFD Sender: No OFD packet to send [14:49:31]OFD Sender: No OFD packet to send [14:49:36]OFD Sender: No OFD packet to send [14:49:41]OFD Sender: No OFD packet to send [14:49:46]OFD Sender: No OFD packet to send [14:49:51]OFD Sender: No OFD packet to send [14:49:56]OFD Sender: No OFD packet to send [14:50:01]OFD Sender: No OFD packet to send [14:50:06]OFD Sender: No OFD packet to send [14:50:11]OFD Sender: No OFD packet to send [14:50:16]OFD Sender: No OFD packet to send [14:50:21]OFD Sender: No OFD packet to send [14:50:26]OFD Sender: No OFD packet to send [14:50:31]OFD Sender: No OFD packet to send [14:50:36]OFD Sender: No OFD packet to send [14:50:41]OFD Sender: No OFD packet to send [14:50:46]OFD Sender: No OFD packet to send [14:50:51]OFD Sender: No OFD packet to send [14:50:56]OFD Sender: No OFD packet to send [14:51:01]OFD Sender: No OFD packet to send [14:51:06]OFD Sender: No OFD packet to send [14:51:11]OFD Sender: No OFD packet to send [14:51:16]OFD Sender: No OFD packet to send [14:51:21]OFD Sender: No OFD packet to send [14:51:26]OFD Sender: No OFD packet to send [14:51:31]OFD Sender: No OFD packet to send [14:51:36]OFD Sender: No OFD packet to send [14:51:41]OFD Sender: No OFD packet to send [14:51:46]OFD Sender: No OFD packet to send [14:51:51]OFD Sender: No OFD packet to send [14:51:56]OFD Sender: No OFD packet to send [14:52: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:17]OFD Sender: No OFD packet to send [14:58:22]OFD Sender: No OFD packet to send [14:58:27]OFD Sender: No OFD packet to send [14:58:32]accept exits with 7 [14:58:32]New connection [14:58:32]New thread 3066707300 created [14:58:32]Thread 3066850660 joined [14:58:32]Waiting for new connection... [14:58:32] Sock 7.Parse request [14:58:32]Sock 7.Check first char [14:58:32]Sock 7.First char is OK [14:58:32]request: POST /json_proto HTTP/1.0 [14:58:32]Method: POST [14:58:32]URL: /json_proto [14:58:32]Method is POST - this is cgi request [14:58:32]url: /json_proto [14:58:32]query_string will be loaded in cgi processing [14:58:32]execute_cgi json_proto POST (null) [14:58:32]execute_cgi path=json_proto method=POST [14:58:32]POST find Content-Length [14:58:32]Host: 172.17.52.132:8080 [14:58:32]Content-Length: 893 [14:58:32]Content-Type: application/json [14:58:32] [14:58:32]POST finish read [14:58:32]Found Content-Length = 893 [14:58:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99869", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:32]execute_script... [14:58:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99869", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:58:32]POST & json_proto [14:58:32]process_json_proto [14:58:32]json parsed OK: [14:58:32]protocol is kg_v1.0 [14:58:32]action value=close_receipt [14:58:32]process_action close_receipt [14:58:32]cmd_close_receipt [14:58:32]MH_GetDate [14:58:32]Write to MH i2c: F0 00 00 9E 2B B8 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: F0 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: F0 09 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: F0 09 00 9E 2B 00 9C 77 12 67 5A BE F6 66 C1 [14:58:32]GetLastDocTimeStamp 1729262958 [14:58:32]current date 1729263516 [14:58:32]FM_GetShiftState [14:58:32]SAM_PROTO_GetShiftState [14:58:32]wFMCommunicate request_size=4 [14:58:32]MH_SAM_APDU [14:58:32]CAPDU: 80 13 01 00 [14:58:32]Write to MH i2c: E2 08 00 9F 2B 80 13 01 00 00 00 00 00 47 [14:58:32]Write i2c OK [14:58:32]MH_I2C_Read... [14:58:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:32]Read from MH i2c: E2 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 0E 00 [14:58:32]MH_I2C_Read... [14:58:32]Read from MH i2c: E2 0E 00 9F 2B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E5 [14:58:32]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:58:32]wFMCommunicate OK [14:58:32]SAM_PROTO_GetShiftState done [14:58:32]FM_GetShiftState done [14:58:32]opened in 1729209717 [14:58:32]opened+sec_in_day 1729296117 [14:58:32]quantity*price = 5000 [14:58:32]sum+1 = 5001 [14:58:32]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 2.000 * 40.00 = 80.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 130.00 ÐСП 1% : 1.15 ÐДС 12% : 13.81 Ðаличными: 130.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 104 18.10.2024 14:58 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2479 ФПД: 646651501263 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T145836&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2479&fm=646651501263&tin=02508201610067®Number=0000000000207295&sum=13000 0 [14:58:33]StoreToDocumentArchive [14:58:33]shift 22 fd 2479 [14:58:33]save to /storage/0022/doc_00002479 [14:58:33]save last doc name /storage/0022/doc_00002479 to /storage/kkm_last_doc_name [14:58:33]save OK [14:58:33]Clear old archive folders... [14:58:33]ProcessDocumentItem done err = 0, tmpTLVsize=376 [14:58:33]tlvbuf is 014572D0 [14:58:33]SAM_PROTO_ClearQueue [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 09 00 00 [14:58:33]Write to MH i2c: E2 08 00 AC 2B 80 09 00 00 00 00 00 00 49 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 AC 2B 00 90 00 4B [14:58:33]RAPDU: 90 00 [14:58:33]wFMCommunicate OK [14:58:33]SAM_PROTO_ClearQueue done [14:58:33]KKMCreateOFDPacket [14:58:33]OFDProtocolAddRootSTLVToBuf [14:58:33]FM_MakeSignedData [14:58:33]FM_MakeSignedData [14:58:33]SAM_PROTO_SignData [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 0D 01 02 [14:58:33]Write to MH i2c: E2 08 00 AD 2B 80 0D 01 02 00 00 00 00 51 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 AD 2B 00 90 00 4C [14:58:33]RAPDU: 90 00 [14:58:33]wFMCommunicate OK [14:58:33]wFMCommunicate request_size=255 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 [14:58:33]Write to MH i2c: E2 02 01 AE 2B 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 00 00 05 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 AE 2B 00 90 00 4D [14:58:33]RAPDU: 90 00 [14:58:33]wFMCommunicate OK [14:58:33]wFMCommunicate request_size=135 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 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 68 00 00 00 F4 03 04 00 9C 77 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AF 09 00 00 35 04 06 00 00 96 8F 6E DA CF [14:58:33]Write to MH i2c: E2 8A 00 AF 2B 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 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 68 00 00 00 F4 03 04 00 9C 77 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AF 09 00 00 35 04 06 00 00 96 8F 6E DA CF 00 00 EB [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 03 00 AF 2B 00 90 00 4E [14:58:33]RAPDU: 90 00 [14:58:33]wFMCommunicate OK [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 0D 03 02 [14:58:33]Write to MH i2c: E2 08 00 B0 2B 80 0D 03 02 00 00 00 00 56 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0B 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 0B 00 B0 2B 00 5B CC 59 AA 62 E3 0D 04 90 00 D7 [14:58:33]RAPDU: 5B CC 59 AA 62 E3 0D 04 90 00 [14:58:33]wFMCommunicate OK [14:58:33]SAM_PROTO_SignData done [14:58:33]FM_MakeSignedData done [14:58:33]CreateOFDProtocolMessage [14:58:33]wFMCommunicate request_size=4 [14:58:33]MH_SAM_APDU [14:58:33]CAPDU: 80 11 00 00 [14:58:33]Write to MH i2c: E2 08 00 B1 2B 80 11 00 00 00 00 00 00 56 [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:33]Read from MH i2c: E2 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 17 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: E2 17 00 B1 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 9E [14:58:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:58:33]wFMCommunicate OK [14:58:33]CreateOFDProtocolMessage done [14:58:33]OFDSenderStorePacket 2479 [14:58:33]StoreOFDPacket docnum=2479 [14:58:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 8C 01 00 00 15 89 84 01 69 39 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 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 68 00 00 00 F4 03 04 00 9C 77 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AF 09 00 00 35 04 06 00 00 96 8F 6E DA CF 5B CC 59 AA 62 E3 0D 04 [14:58:33]CheckFolder [14:58:33]dirname=/storage/ofd_packets [14:58:33]CheckFolder done [14:58:33]ProducePacketName [14:58:33]name=ofd_packets/00002479 [14:58:33]NVStorageSaveData ofd_packets/00002479 [14:58:33]File name is /storage/ofd_packets/00002479 [14:58:33]Write 426 bytes [14:58:33]NVStorageSaveData done [14:58:33]OFDSenderStorePacket done [14:58:33]KKMCreateOFDPacket done [14:58:33]NVStorageSaveData kkm_last_timestamp [14:58:33]File name is /storage/kkm_last_timestamp [14:58:33]Write 4 bytes [14:58:33]NVStorageSaveData done [14:58:33]ExternCall_PrintAddStr [14:58:33]wPrintStart [14:58:33]Write to MH i2c: 01 00 00 B2 2B DD [14:58:33]Write i2c OK [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: 01 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: 01 07 00 [14:58:33]MH_I2C_Read... [14:58:33]Read from MH i2c: 01 07 00 B2 2B 00 00 00 00 00 FF 0F F2 [14:58:33]RasterBufferAndPrint [14:58:33]line Счет N : (3)99869 [14:58:33]line ИÐÐ: 02508201610067 [14:58:34]line Контрольно-КаÑÑовый Чек [14:58:34]line ПРОДÐЖР[14:58:34]line Товар: 5449000005489 [14:58:34]line Вода Бонаква 1л б/г [14:58:34]line 1.000 * 50.00 [14:58:34]line = 50.00 [14:58:34]line ÐДС 12% ÐСП 1% [14:58:34]line > о реализуемом товаре [14:58:34]line Товар: 4700000160211 [14:58:34]line Вода Легенда 0,5л [14:58:34]line 2.000 * 40.00 [14:58:34]line = 80.00 [14:58:34]line ÐДС 12% ÐСП 1% [14:58:34]line > о реализуемом товаре [14:58:34]line ИТОГО: 130.00 [14:58:34]line ÐСП 1% : 1.15 [14:58:34]line ÐДС 12% : 13.81 [14:58:34]line Ðаличными: 130.00 [14:58:34]line Безнал.: 0.00 [14:58:34]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [14:58:34]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [14:58:34]line СÐО: Общий режим [14:58:34]line Чек 104 18.10.2024 14:58 [14:58:34]line Смена: 22 ФФД: 1.0 [14:58:34]line ЗÐМ: 0300000191 [14:58:34]line РÐМ: 0000000000207295 [14:58:34]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [14:58:34]line ФМ: 0000000002342820 [14:58:34]line ФД: 2479 [14:58:34]line ФПД: 646651501263 [14:58:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T145836&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2479&fm=646651501263&tin=02508201610067®Number=0000000000207295&sum=13000 [14:58:34]line 0 [14:58:34]OFD Sender: Processing packet 2479 [packets to send 1, broken 0] [14:58:34]ProducePacketName [14:58:34]name=ofd_packets/00002479 [14:58:34]OFD Sender: To server: ‡•öpG, [14:58:34]CommunicateWithHost lk.salyk.kg:30040 [14:58:34]ConnectInit lk.salyk.kg [14:58:34]written 0, free lines is 4095 [14:58:34]Connected sock=10 [14:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 8C 01 00 00 15 89 84 01 69 39 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 05 00 00 00 00 07 04 06 00 C8 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 68 00 00 00 F4 03 04 00 9C 77 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 AF 09 00 00 35 04 06 00 00 96 8F 6E DA CF 5B CC 59 AA 62 E3 0D 04 [14:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 97 F3 47 00 CD 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 32 33 34 32 38 32 30 10 04 04 00 AF 09 00 00 F4 03 04 00 00 23 12 67 B6 04 01 00 00 B2 D9 0F BF 06 C6 3C 06 [14:58:34]CommunicateWithHost err = 0 [14:58:34]CheckOFDResponse [14:58:34]1017 (14) - 77093643461234 [14:58:34]1041 (16) - 0000000002342820 [14:58:34]1040 (4) - 2479 [14:58:34]1012 (4) - 18.10.2024 08:57 [14:58:34]1206 (1) - 0 [14:58:34]OFD Sender: Remove packet 2479 [14:58:34]ProducePacketName [14:58:34]name=ofd_packets/00002479 [14:58:34]NVStorageDeleteData [14:58:34]Write to MH i2c: 01 00 00 E0 2B 0B [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: 01 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: 01 07 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: 01 07 00 E0 2B 00 00 00 00 00 6D 0C 8B [14:58:34]RasterBufferAndPrint [14:58:34]line [14:58:34]line [14:58:34]line [14:58:34]line [14:58:34]line [14:58:34]written 0, free lines is 3189 [14:58:34]MH_Cut [14:58:34]Write to MH i2c: D1 01 00 E7 2B 01 E4 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: D1 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: D1 01 00 [14:58:34]MH_I2C_Read... [14:58:34]Read from MH i2c: D1 01 00 E7 2B 00 E3 [14:58:34]Write to MH i2c: 01 00 00 E8 2B 13 [14:58:34]Write i2c OK [14:58:34]MH_I2C_Read... [14:58:35]OFD Sender: No OFD packet to send [14:58:35]*** Cut start [14:58:35]*** Partial cut [14:58:35]*** CUTSNS_PIN = 1 [14:58:35]*** CUTSNS_PIN = 0 [14:58:35]*** Brake cut motor [14:58:36]Read from MH i2c: 01 [14:58:36]MH_I2C_Read... [14:58:36]*** Stop cut motor [14:58:36]*** Cut end [14:58:36]Read from MH i2c: 01 07 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: 01 07 00 E8 2B 00 00 00 00 00 FF 0F 28 [14:58:36]process_action close_receipt done [14:58:36]requested_data is exist [14:58:36]produce_requested_data [14:58:36]requested_item fm.sn is exist - process it [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 11 00 00 [14:58:36]Write to MH i2c: E2 08 00 E9 2B 80 11 00 00 00 00 00 00 8E [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 17 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 17 00 E9 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D6 [14:58:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [14:58:36]wFMCommunicate OK [14:58:36]requested_item fd.num is exist - process it [14:58:36]SAM_PROTO_GetFieldsCounters [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 13 00 00 [14:58:36]Write to MH i2c: E2 08 00 EA 2B 80 13 00 00 00 00 00 00 91 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 62 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 62 00 EA 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AF 09 00 00 0E 04 04 00 16 00 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 AD [14:58:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 AF 09 00 00 0E 04 04 00 16 00 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:58:36]wFMCommunicate OK [14:58:36]SAM_PROTO_GetFieldsCounters done [14:58:36]requested_item shift.num is exist - process it [14:58:36]requested_item shift.opened is exist - process it [14:58:36]req_shift_opened [14:58:36]FM_GetShiftState [14:58:36]SAM_PROTO_GetShiftState [14:58:36]wFMCommunicate request_size=4 [14:58:36]MH_SAM_APDU [14:58:36]CAPDU: 80 13 01 00 [14:58:36]Write to MH i2c: E2 08 00 EB 2B 80 13 01 00 00 00 00 00 93 [14:58:36]Write i2c OK [14:58:36]MH_I2C_Read... [14:58:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:58:36]Read from MH i2c: E2 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 0E 00 [14:58:36]MH_I2C_Read... [14:58:36]Read from MH i2c: E2 0E 00 EB 2B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 31 [14:58:36]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [14:58:36]wFMCommunicate OK [14:58:36]SAM_PROTO_GetShiftState done [14:58:36]FM_GetShiftState done [14:58:36]req_shift_opened done [14:58:36]requested_item shift.open_date is exist - process it [14:58:36]req_shift_open_date [14:58:36]req_shift_open_date done [14:58:36]produce_requested_data done [14:58:36]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2479,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [14:58:36]process_action_free close_receipt [14:58:36]json_value_free [14:58:36]json_value_free done [14:58:36]process_json_proto returns [14:58:36]Send response to host [14:58:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2479,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [14:58:36]free response buf [14:58:36]execute_script done [14:58:36]execute_script returns [14:58:36]free content buf [14:58:36]Sock 7.Close socket [14:58:36]Sock 7.Thread stoped [14:58:40]OFD Sender: No OFD packet to send [14:58:45]OFD Sender: No OFD packet to send [14:58:50]OFD Sender: No OFD packet to send [14:58:55]OFD Sender: No OFD packet to send [14:59:00]OFD Sender: No OFD packet to send [14:59:05]OFD Sender: No OFD packet to send [14:59:10]OFD Sender: No OFD packet to send [14:59:15]OFD Sender: No OFD packet to send [14:59:20]OFD Sender: No OFD packet to send [14:59:25]OFD Sender: No OFD packet to send [14:59:30]OFD Sender: No OFD packet to send [14:59:35]OFD Sender: No OFD packet to send [14:59:40]OFD Sender: No OFD packet to send [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:45]OFD Sender: No OFD packet to send [15:01:50]OFD Sender: No OFD packet to send [15:01:55]OFD Sender: No OFD packet to send [15:02:00]OFD Sender: No OFD packet to send [15:02:05]OFD Sender: No OFD packet to send [15:02:10]OFD Sender: No OFD packet to send [15:02:15]OFD Sender: No OFD packet to send [15:02:20]OFD Sender: No OFD packet to send [15:02:25]OFD Sender: No OFD packet to send [15:02:30]OFD Sender: No OFD packet to send [15:02:35]OFD Sender: No OFD packet to send [15:02:40]OFD Sender: No OFD packet to send [15:02:45]OFD Sender: No OFD packet to send [15:02:50]OFD Sender: No OFD packet to send [15:02:55]OFD Sender: No OFD packet to send [15:03:00]OFD Sender: No OFD packet to send [15:03:05]OFD Sender: No OFD packet to send [15:03:10]OFD Sender: No OFD packet to send [15:03:15]OFD Sender: No OFD packet to send [15:03:20]OFD Sender: No OFD packet to send [15:03:25]OFD Sender: No OFD packet to send [15:03:30]OFD Sender: No OFD packet to send [15:03:35]OFD Sender: No OFD packet to send [15:03:40]OFD Sender: No OFD packet to send [15:03:45]OFD Sender: No OFD packet to send [15:03:50]OFD Sender: No OFD packet to send [15:03:55]OFD Sender: No OFD packet to send [15:04:00]OFD Sender: No OFD packet to send [15:04:05]OFD Sender: No OFD packet to send [15:04:10]OFD Sender: No OFD packet to send [15:04:15]OFD Sender: No OFD packet to send [15:04:20]OFD Sender: No OFD packet to send [15:04:25]OFD Sender: No OFD packet to send [15:04:30]OFD Sender: No OFD packet to send [15:04:35]OFD Sender: No OFD packet to send [15:04:40]OFD Sender: No OFD packet to send [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:44]accept exits with 9 [15:06:44]New connection [15:06:44]New thread 3066850660 created [15:06:44]Thread 3066707300 joined [15:06:44]Waiting for new connection... [15:06:44] Sock 9.Parse request [15:06:44]Sock 9.Check first char [15:06:44]Sock 9.First char is OK [15:06:44]request: POST /json_proto HTTP/1.0 [15:06:44]Method: POST [15:06:44]URL: /json_proto [15:06:44]Method is POST - this is cgi request [15:06:44]url: /json_proto [15:06:44]query_string will be loaded in cgi processing [15:06:44]execute_cgi json_proto POST (null) [15:06:44]execute_cgi path=json_proto method=POST [15:06:44]POST find Content-Length [15:06:44]Host: 172.17.52.132:8080 [15:06:44]Content-Length: 979 [15:06:44]Content-Type: application/json [15:06:44] [15:06:44]POST finish read [15:06:44]Found Content-Length = 979 [15:06:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99870", "tax_sys" : 0, "items" : [ { "code": "4650243871224", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B (\u041F\u0418\u0422\u0410\u0419\u042F \u0410\u041D\u0410\u041D\u0410\u0421", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:44]execute_script... [15:06:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99870", "tax_sys" : 0, "items" : [ { "code": "4650243871224", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u0436/\u0431 0,45\u043B (\u041F\u0418\u0422\u0410\u0419\u042F \u0410\u041D\u0410\u041D\u0410\u0421", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 194.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:06:44]POST & json_proto [15:06:44]process_json_proto [15:06:44]json parsed OK: [15:06:44]protocol is kg_v1.0 [15:06:44]action value=close_receipt [15:06:44]process_action close_receipt [15:06:44]cmd_close_receipt [15:06:44]MH_GetDate [15:06:44]Write to MH i2c: F0 00 00 EC 2B 06 [15:06:44]Write i2c OK [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: F0 [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: F0 09 00 [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: F0 09 00 EC 2B 00 88 79 12 67 5A BE F6 66 FD [15:06:44]GetLastDocTimeStamp 1729263516 [15:06:44]current date 1729264008 [15:06:44]FM_GetShiftState [15:06:44]SAM_PROTO_GetShiftState [15:06:44]wFMCommunicate request_size=4 [15:06:44]MH_SAM_APDU [15:06:44]CAPDU: 80 13 01 00 [15:06:44]Write to MH i2c: E2 08 00 ED 2B 80 13 01 00 00 00 00 00 95 [15:06:44]Write i2c OK [15:06:44]MH_I2C_Read... [15:06:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:44]Read from MH i2c: E2 [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: E2 0E 00 [15:06:44]MH_I2C_Read... [15:06:44]Read from MH i2c: E2 0E 00 ED 2B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 33 [15:06:44]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:06:44]wFMCommunicate OK [15:06:44]SAM_PROTO_GetShiftState done [15:06:44]FM_GetShiftState done [15:06:44]opened in 1729209717 [15:06:44]opened+sec_in_day 1729296117 [15:06:44]quantity*price = 9900 [15:06:44]sum+1 = 9901 [15:06:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Ðапиток Ñнерг Nitro Max 0,45 ж/б 1.000 * 95.00 = 95.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 194.00 ÐСП 1% : 1.72 ÐДС 12% : 20.60 Ðаличными: 194.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 105 18.10.2024 15:06 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2480 ФПД: 185104446327238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T150648&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2480&fm=185104446327238&tin=02508201610067®Number=0000000000207295&sum=19400 0 [15:06:45]StoreToDocumentArchive [15:06:45]shift 22 fd 2480 [15:06:45]save to /storage/0022/doc_00002480 [15:06:45]save last doc name /storage/0022/doc_00002480 to /storage/kkm_last_doc_name [15:06:45]save OK [15:06:45]Clear old archive folders... [15:06:45]ProcessDocumentItem done err = 0, tmpTLVsize=422 [15:06:45]tlvbuf is 0140F1F0 [15:06:45]SAM_PROTO_ClearQueue [15:06:45]wFMCommunicate request_size=4 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 09 00 00 [15:06:45]Write to MH i2c: E2 08 00 FA 2B 80 09 00 00 00 00 00 00 97 [15:06:45]Write i2c OK [15:06:45]MH_I2C_Read... [15:06:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:06:45]Read from MH i2c: E2 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 FA 2B 00 90 00 99 [15:06:45]RAPDU: 90 00 [15:06:45]wFMCommunicate OK [15:06:45]SAM_PROTO_ClearQueue done [15:06:45]KKMCreateOFDPacket [15:06:45]OFDProtocolAddRootSTLVToBuf [15:06:45]FM_MakeSignedData [15:06:45]FM_MakeSignedData [15:06:45]SAM_PROTO_SignData [15:06:45]wFMCommunicate request_size=4 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 0D 01 02 [15:06:45]Write to MH i2c: E2 08 00 FB 2B 80 0D 01 02 00 00 00 00 9F [15:06:45]Write i2c OK [15:06:45]MH_I2C_Read... [15:06:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:06:45]Read from MH i2c: E2 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 FB 2B 00 90 00 9A [15:06:45]RAPDU: 90 00 [15:06:45]wFMCommunicate OK [15:06:45]wFMCommunicate request_size=255 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 0D 02 02 FA 03 00 A6 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 32 34 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 28 D0 9F D0 98 D0 A2 D0 90 D0 99 D0 AF 20 D0 90 D0 9D D0 90 D0 9D D0 90 D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 [15:06:45]Write to MH i2c: E2 02 01 FC 2B 80 0D 02 02 FA 00 03 00 A6 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 32 34 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 28 D0 9F D0 98 D0 A2 D0 90 D0 99 D0 AF 20 D0 90 D0 9D D0 90 D0 9D D0 90 D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 00 00 0F [15:06:45]Write i2c OK [15:06:45]MH_I2C_Read... [15:06:45]OFD Sender: No OFD packet to send [15:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:45]Read from MH i2c: E2 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 FC 2B 00 90 00 9B [15:06:45]RAPDU: 90 00 [15:06:45]wFMCommunicate OK [15:06:45]wFMCommunicate request_size=181 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 0D 02 02 B0 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 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 88 79 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B0 09 00 00 35 04 06 00 A8 59 FC C5 09 C6 [15:06:45]Write to MH i2c: E2 B8 00 FD 2B 80 0D 02 02 B0 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 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 88 79 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B0 09 00 00 35 04 06 00 A8 59 FC C5 09 C6 00 00 20 [15:06:45]Write i2c OK [15:06:45]MH_I2C_Read... [15:06:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:06:45]Read from MH i2c: E2 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 03 00 FD 2B 00 90 00 9C [15:06:45]RAPDU: 90 00 [15:06:45]wFMCommunicate OK [15:06:45]wFMCommunicate request_size=4 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 0D 03 02 [15:06:45]Write to MH i2c: E2 08 00 FE 2B 80 0D 03 02 00 00 00 00 A4 [15:06:45]Write i2c OK [15:06:45]MH_I2C_Read... [15:06:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:06:45]Read from MH i2c: E2 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 0B 00 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 0B 00 FE 2B 00 6B 17 7F 44 A0 9B 7B C3 90 00 63 [15:06:45]RAPDU: 6B 17 7F 44 A0 9B 7B C3 90 00 [15:06:45]wFMCommunicate OK [15:06:45]SAM_PROTO_SignData done [15:06:45]FM_MakeSignedData done [15:06:45]CreateOFDProtocolMessage [15:06:45]wFMCommunicate request_size=4 [15:06:45]MH_SAM_APDU [15:06:45]CAPDU: 80 11 00 00 [15:06:45]Write to MH i2c: E2 08 00 FF 2B 80 11 00 00 00 00 00 00 A4 [15:06:45]Write i2c OK [15:06:45]MH_I2C_Read... [15:06:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:45]Read from MH i2c: E2 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 17 00 [15:06:45]MH_I2C_Read... [15:06:45]Read from MH i2c: E2 17 00 FF 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EC [15:06:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:06:45]wFMCommunicate OK [15:06:45]CreateOFDProtocolMessage done [15:06:45]OFDSenderStorePacket 2480 [15:06:45]StoreOFDPacket docnum=2480 [15:06:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 BA 01 00 00 5B 54 B2 01 00 FA 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 32 34 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 28 D0 9F D0 98 D0 A2 D0 90 D0 99 D0 AF 20 D0 90 D0 9D D0 90 D0 9D D0 90 D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 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 88 79 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B0 09 00 00 35 04 06 00 A8 59 FC C5 09 C6 6B 17 7F 44 A0 9B 7B C3 [15:06:45]CheckFolder [15:06:45]dirname=/storage/ofd_packets [15:06:45]CheckFolder done [15:06:45]ProducePacketName [15:06:45]name=ofd_packets/00002480 [15:06:45]NVStorageSaveData ofd_packets/00002480 [15:06:45]File name is /storage/ofd_packets/00002480 [15:06:45]Write 472 bytes [15:06:45]NVStorageSaveData done [15:06:45]OFDSenderStorePacket done [15:06:45]KKMCreateOFDPacket done [15:06:45]NVStorageSaveData kkm_last_timestamp [15:06:45]File name is /storage/kkm_last_timestamp [15:06:45]Write 4 bytes [15:06:45]NVStorageSaveData done [15:06:45]ExternCall_PrintAddStr [15:06:46]wPrintStart [15:06:46]Write to MH i2c: 01 00 00 00 2C 2C [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 07 00 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 07 00 00 2C 00 00 00 00 00 FF 0F 41 [15:06:46]RasterBufferAndPrint [15:06:46]line Счет N : (3)99870 [15:06:46]line ИÐÐ: 02508201610067 [15:06:46]line Контрольно-КаÑÑовый Чек [15:06:46]line ПРОДÐЖР[15:06:46]line Товар: 4650243871224 [15:06:46]line Ðапиток Gorilla ж/б 0,45л (ПИТÐЙЯ ÐÐÐÐÐС [15:06:46]line 1.000 * 99.00 [15:06:46]line = 99.00 [15:06:46]line ÐДС 12% ÐСП 1% [15:06:46]line > о реализуемом товаре [15:06:46]line Товар: 4700000481453 [15:06:46]line Ðапиток Ñнерг Nitro Max 0,45 ж/б [15:06:46]line 1.000 * 95.00 [15:06:46]line = 95.00 [15:06:46]line ÐДС 12% ÐСП 1% [15:06:46]line > о реализуемом товаре [15:06:46]line ИТОГО: 194.00 [15:06:46]line ÐСП 1% : 1.72 [15:06:46]line ÐДС 12% : 20.60 [15:06:46]line Ðаличными: 194.00 [15:06:46]line Безнал.: 0.00 [15:06:46]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:06:46]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:06:46]line СÐО: Общий режим [15:06:46]line Чек 105 18.10.2024 15:06 [15:06:46]line Смена: 22 ФФД: 1.0 [15:06:46]line ЗÐМ: 0300000191 [15:06:46]line РÐМ: 0000000000207295 [15:06:46]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:06:46]line ФМ: 0000000002342820 [15:06:46]line ФД: 2480 [15:06:46]line ФПД: 185104446327238 [15:06:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T150648&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2480&fm=185104446327238&tin=02508201610067®Number=0000000000207295&sum=19400 [15:06:46]OFD Sender: Processing packet 2480 [packets to send 1, broken 0] [15:06:46]ProducePacketName [15:06:46]name=ofd_packets/00002480 [15:06:46]OFD Sender: To server: ‡•öpG, [15:06:46]CommunicateWithHost lk.salyk.kg:30040 [15:06:46]ConnectInit lk.salyk.kg [15:06:46]line 0 [15:06:46]written 0, free lines is 4095 [15:06:46]Connected sock=10 [15:06:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 BA 01 00 00 5B 54 B2 01 00 FA 5A 03 01 00 03 00 A6 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 32 32 34 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB 20 28 D0 9F D0 98 D0 A2 D0 90 D0 99 D0 AF 20 D0 90 D0 9D D0 90 D0 9D D0 90 D0 A1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 4B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 08 00 00 00 00 07 04 06 00 C8 4B 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 88 79 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B0 09 00 00 35 04 06 00 A8 59 FC C5 09 C6 6B 17 7F 44 A0 9B 7B C3 [15:06:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 6A 40 47 00 81 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 32 33 34 32 38 32 30 10 04 04 00 B0 09 00 00 F4 03 04 00 EC 24 12 67 B6 04 01 00 00 CC D7 4C 6C 3E 8F FA 18 [15:06:46]CommunicateWithHost err = 0 [15:06:46]CheckOFDResponse [15:06:46]1017 (14) - 77093643461234 [15:06:46]1041 (16) - 0000000002342820 [15:06:46]1040 (4) - 2480 [15:06:46]1012 (4) - 18.10.2024 09:05 [15:06:46]1206 (1) - 0 [15:06:46]OFD Sender: Remove packet 2480 [15:06:46]ProducePacketName [15:06:46]name=ofd_packets/00002480 [15:06:46]NVStorageDeleteData [15:06:46]Write to MH i2c: 01 00 00 30 2C 5C [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 07 00 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: 01 07 00 30 2C 00 00 00 00 00 3E 0C AD [15:06:46]RasterBufferAndPrint [15:06:46]line [15:06:46]line [15:06:46]line [15:06:46]line [15:06:46]line [15:06:46]written 0, free lines is 3142 [15:06:46]MH_Cut [15:06:46]Write to MH i2c: D1 01 00 37 2C 01 35 [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: D1 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: D1 01 00 [15:06:46]MH_I2C_Read... [15:06:46]Read from MH i2c: D1 01 00 37 2C 00 34 [15:06:46]Write to MH i2c: 01 00 00 38 2C 64 [15:06:46]Write i2c OK [15:06:46]MH_I2C_Read... [15:06:47]OFD Sender: No OFD packet to send [15:06:47]*** Cut start [15:06:47]*** Partial cut [15:06:47]*** CUTSNS_PIN = 1 [15:06:47]*** CUTSNS_PIN = 0 [15:06:48]*** Brake cut motor [15:06:48]Read from MH i2c: 01 [15:06:48]MH_I2C_Read... [15:06:48]*** Stop cut motor [15:06:48]*** Cut end [15:06:48]Read from MH i2c: 01 07 00 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: 01 07 00 38 2C 00 00 00 00 00 FF 0F 79 [15:06:48]process_action close_receipt done [15:06:48]requested_data is exist [15:06:48]produce_requested_data [15:06:48]requested_item fm.sn is exist - process it [15:06:48]wFMCommunicate request_size=4 [15:06:48]MH_SAM_APDU [15:06:48]CAPDU: 80 11 00 00 [15:06:48]Write to MH i2c: E2 08 00 39 2C 80 11 00 00 00 00 00 00 DF [15:06:48]Write i2c OK [15:06:48]MH_I2C_Read... [15:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:06:48]Read from MH i2c: E2 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 17 00 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 17 00 39 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 27 [15:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:06:48]wFMCommunicate OK [15:06:48]requested_item fd.num is exist - process it [15:06:48]SAM_PROTO_GetFieldsCounters [15:06:48]wFMCommunicate request_size=4 [15:06:48]MH_SAM_APDU [15:06:48]CAPDU: 80 13 00 00 [15:06:48]Write to MH i2c: E2 08 00 3A 2C 80 13 00 00 00 00 00 00 E2 [15:06:48]Write i2c OK [15:06:48]MH_I2C_Read... [15:06:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:06:48]Read from MH i2c: E2 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 62 00 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 62 00 3A 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B0 09 00 00 0E 04 04 00 16 00 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 02 [15:06:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B0 09 00 00 0E 04 04 00 16 00 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 [15:06:48]wFMCommunicate OK [15:06:48]SAM_PROTO_GetFieldsCounters done [15:06:48]requested_item shift.num is exist - process it [15:06:48]requested_item shift.opened is exist - process it [15:06:48]req_shift_opened [15:06:48]FM_GetShiftState [15:06:48]SAM_PROTO_GetShiftState [15:06:48]wFMCommunicate request_size=4 [15:06:48]MH_SAM_APDU [15:06:48]CAPDU: 80 13 01 00 [15:06:48]Write to MH i2c: E2 08 00 3B 2C 80 13 01 00 00 00 00 00 E4 [15:06:48]Write i2c OK [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 [15:06:48]MH_I2C_Read... [15:06:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:06:48]Read from MH i2c: E2 0E 00 [15:06:48]MH_I2C_Read... [15:06:48]Read from MH i2c: E2 0E 00 3B 2C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 82 [15:06:48]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:06:48]wFMCommunicate OK [15:06:48]SAM_PROTO_GetShiftState done [15:06:48]FM_GetShiftState done [15:06:48]req_shift_opened done [15:06:48]requested_item shift.open_date is exist - process it [15:06:48]req_shift_open_date [15:06:48]req_shift_open_date done [15:06:48]produce_requested_data done [15:06:48]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2480,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:06:48]process_action_free close_receipt [15:06:48]json_value_free [15:06:48]json_value_free done [15:06:48]process_json_proto returns [15:06:48]Send response to host [15:06:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2480,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:06:48]free response buf [15:06:48]execute_script done [15:06:48]execute_script returns [15:06:48]free content buf [15:06:48]Sock 9.Close socket [15:06:48]Sock 9.Thread stoped [15:06:52]OFD Sender: No OFD packet to send [15:06:57]OFD Sender: No OFD packet to send [15:07:02]OFD Sender: No OFD packet to send [15:07:07]OFD Sender: No OFD packet to send [15:07:12]OFD Sender: No OFD packet to send [15:07:17]OFD Sender: No OFD packet to send [15:07:22]OFD Sender: No OFD packet to send [15:07:27]OFD Sender: No OFD packet to send [15:07:32]OFD Sender: No OFD packet to send [15:07:37]OFD Sender: No OFD packet to send [15:07:42]OFD Sender: No OFD packet to send [15:07:47]OFD Sender: No OFD packet to send [15:07:52]OFD Sender: No OFD packet to send [15:07:57]OFD Sender: No OFD packet to send [15:08:02]OFD Sender: No OFD packet to send [15:08:07]OFD Sender: No OFD packet to send [15:08:12]OFD Sender: No OFD packet to send [15:08:17]OFD Sender: No OFD packet to send [15:08:22]OFD Sender: No OFD packet to send [15:08:27]OFD Sender: No OFD packet to send [15:08:32]OFD Sender: No OFD packet to send [15:08:37]OFD Sender: No OFD packet to send [15:08:42]OFD Sender: No OFD packet to send [15:08:47]OFD Sender: No OFD packet to send [15:08:52]OFD Sender: No OFD packet to send [15:08:57]OFD Sender: No OFD packet to send [15:09:02]OFD Sender: No OFD packet to send [15:09:07]OFD Sender: No OFD packet to send [15:09:09]accept exits with 7 [15:09:09]New connection [15:09:09]New thread 3066707300 created [15:09:09]Thread 3066850660 joined [15:09:09]Waiting for new connection... [15:09:09] Sock 7.Parse request [15:09:09]Sock 7.Check first char [15:09:09]Sock 7.First char is OK [15:09:09]request: POST /json_proto HTTP/1.0 [15:09:09]Method: POST [15:09:09]URL: /json_proto [15:09:09]Method is POST - this is cgi request [15:09:09]url: /json_proto [15:09:09]query_string will be loaded in cgi processing [15:09:09]execute_cgi json_proto POST (null) [15:09:09]execute_cgi path=json_proto method=POST [15:09:09]POST find Content-Length [15:09:09]Host: 172.17.52.132:8080 [15:09:09]Content-Length: 694 [15:09:09]Content-Type: application/json [15:09:09] [15:09:09]POST finish read [15:09:09]Found Content-Length = 694 [15:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99871", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:09]execute_script... [15:09: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 : (3)99871", "tax_sys" : 0, "items" : [ { "code": "4631162227163", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0433\u0430\u0437\u0438\u0440\u043E\u0432\u0430\u043D\u043D\u044B\u0439 Mojito LEMON LIME \u0436", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:09:09]POST & json_proto [15:09:09]process_json_proto [15:09:09]json parsed OK: [15:09:09]protocol is kg_v1.0 [15:09:09]action value=close_receipt [15:09:09]process_action close_receipt [15:09:09]cmd_close_receipt [15:09:09]MH_GetDate [15:09:09]Write to MH i2c: F0 00 00 3C 2C 57 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: F0 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: F0 09 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: F0 09 00 3C 2C 00 1A 7A 12 67 5A BE F6 66 E1 [15:09:09]GetLastDocTimeStamp 1729264008 [15:09:09]current date 1729264154 [15:09:09]FM_GetShiftState [15:09:09]SAM_PROTO_GetShiftState [15:09:09]wFMCommunicate request_size=4 [15:09:09]MH_SAM_APDU [15:09:09]CAPDU: 80 13 01 00 [15:09:09]Write to MH i2c: E2 08 00 3D 2C 80 13 01 00 00 00 00 00 E6 [15:09:09]Write i2c OK [15:09:09]MH_I2C_Read... [15:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:09]Read from MH i2c: E2 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 0E 00 [15:09:09]MH_I2C_Read... [15:09:09]Read from MH i2c: E2 0E 00 3D 2C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 84 [15:09:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:09:09]wFMCommunicate OK [15:09:09]SAM_PROTO_GetShiftState done [15:09:09]FM_GetShiftState done [15:09:09]opened in 1729209717 [15:09:09]opened+sec_in_day 1729296117 [15:09:09]quantity*price = 9500 [15:09:09]sum+1 = 9501 [15:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 106 18.10.2024 15:09 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2481 ФПД: 12339022704356 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T150914&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2481&fm=12339022704356&tin=02508201610067®Number=0000000000207295&sum=9500 0 [15:09:11]StoreToDocumentArchive [15:09:11]shift 22 fd 2481 [15:09:11]save to /storage/0022/doc_00002481 [15:09:11]save last doc name /storage/0022/doc_00002481 to /storage/kkm_last_doc_name [15:09:11]save OK [15:09:11]Clear old archive folders... [15:09:11]ProcessDocumentItem done err = 0, tmpTLVsize=302 [15:09:11]tlvbuf is 0140EEE0 [15:09:11]SAM_PROTO_ClearQueue [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 09 00 00 [15:09:11]Write to MH i2c: E2 08 00 4A 2C 80 09 00 00 00 00 00 00 E8 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 4A 2C 00 90 00 EA [15:09:11]RAPDU: 90 00 [15:09:11]wFMCommunicate OK [15:09:11]SAM_PROTO_ClearQueue done [15:09:11]KKMCreateOFDPacket [15:09:11]OFDProtocolAddRootSTLVToBuf [15:09:11]FM_MakeSignedData [15:09:11]FM_MakeSignedData [15:09:11]SAM_PROTO_SignData [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 0D 01 02 [15:09:11]Write to MH i2c: E2 08 00 4B 2C 80 0D 01 02 00 00 00 00 F0 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 4B 2C 00 90 00 EB [15:09:11]RAPDU: 90 00 [15:09:11]wFMCommunicate OK [15:09:11]wFMCommunicate request_size=255 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1A 7A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 [15:09:11]Write to MH i2c: E2 02 01 4C 2C 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1A 7A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 00 00 5C [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:11]Read from MH i2c: E2 03 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 4C 2C 00 90 00 EC [15:09:11]RAPDU: 90 00 [15:09:11]wFMCommunicate OK [15:09:11]wFMCommunicate request_size=61 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B1 09 00 00 35 04 06 00 0B 38 E7 10 AE E4 [15:09:11]Write to MH i2c: E2 40 00 4D 2C 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B1 09 00 00 35 04 06 00 0B 38 E7 10 AE E4 00 00 A3 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 03 00 4D 2C 00 90 00 ED [15:09:11]RAPDU: 90 00 [15:09:11]wFMCommunicate OK [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 0D 03 02 [15:09:11]Write to MH i2c: E2 08 00 4E 2C 80 0D 03 02 00 00 00 00 F5 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 0B 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 0B 00 4E 2C 00 E9 1C F0 EA 9E B3 25 7C 90 00 C7 [15:09:11]RAPDU: E9 1C F0 EA 9E B3 25 7C 90 00 [15:09:11]wFMCommunicate OK [15:09:11]SAM_PROTO_SignData done [15:09:11]FM_MakeSignedData done [15:09:11]CreateOFDProtocolMessage [15:09:11]wFMCommunicate request_size=4 [15:09:11]MH_SAM_APDU [15:09:11]CAPDU: 80 11 00 00 [15:09:11]Write to MH i2c: E2 08 00 4F 2C 80 11 00 00 00 00 00 00 F5 [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:11]Read from MH i2c: E2 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 17 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: E2 17 00 4F 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 3D [15:09:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:09:11]wFMCommunicate OK [15:09:11]CreateOFDProtocolMessage done [15:09:11]OFDSenderStorePacket 2481 [15:09:11]StoreOFDPacket docnum=2481 [15:09:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 42 01 00 00 8B 37 3A 01 1C F3 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1A 7A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B1 09 00 00 35 04 06 00 0B 38 E7 10 AE E4 E9 1C F0 EA 9E B3 25 7C [15:09:11]CheckFolder [15:09:11]dirname=/storage/ofd_packets [15:09:11]CheckFolder done [15:09:11]ProducePacketName [15:09:11]name=ofd_packets/00002481 [15:09:11]NVStorageSaveData ofd_packets/00002481 [15:09:11]File name is /storage/ofd_packets/00002481 [15:09:11]Write 352 bytes [15:09:11]NVStorageSaveData done [15:09:11]OFDSenderStorePacket done [15:09:11]KKMCreateOFDPacket done [15:09:11]NVStorageSaveData kkm_last_timestamp [15:09:11]File name is /storage/kkm_last_timestamp [15:09:11]Write 4 bytes [15:09:11]NVStorageSaveData done [15:09:11]ExternCall_PrintAddStr [15:09:11]wPrintStart [15:09:11]Write to MH i2c: 01 00 00 50 2C 7C [15:09:11]Write i2c OK [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 07 00 [15:09:11]MH_I2C_Read... [15:09:11]Read from MH i2c: 01 07 00 50 2C 00 00 00 00 00 FF 0F 91 [15:09:11]RasterBufferAndPrint [15:09:11]line Счет N : (3)99871 [15:09:11]line ИÐÐ: 02508201610067 [15:09:11]line Контрольно-КаÑÑовый Чек [15:09:11]line ПРОДÐЖР[15:09:11]line Товар: 4631162227163 [15:09:11]line Ðапиток газированный Mojito LEMON LIME ж [15:09:11]line 1.000 * 95.00 [15:09:11]line = 95.00 [15:09:11]line ÐДС 12% ÐСП 1% [15:09:11]line > о реализуемом товаре [15:09:11]line ИТОГО: 95.00 [15:09:11]line ÐСП 1% : 0.84 [15:09:11]line ÐДС 12% : 10.09 [15:09:11]line Ðаличными: 95.00 [15:09:11]line Безнал.: 0.00 [15:09:11]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:09:11]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:09:11]line СÐО: Общий режим [15:09:11]line Чек 106 18.10.2024 15:09 [15:09:11]line Смена: 22 ФФД: 1.0 [15:09:11]line ЗÐМ: 0300000191 [15:09:11]line РÐМ: 0000000000207295 [15:09:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:09:11]line ФМ: 0000000002342820 [15:09:11]line ФД: 2481 [15:09:11]line ФПД: 12339022704356 [15:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T150914&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2481&fm=12339022704356&tin=02508201610067®Number=0000000000207295&sum=9500 [15:09:11]line 0 [15:09:11]OFD Sender: Processing packet 2481 [packets to send 1, broken 0] [15:09:11]ProducePacketName [15:09:11]name=ofd_packets/00002481 [15:09:11]OFD Sender: To server: ‡•öpG, [15:09:11]CommunicateWithHost lk.salyk.kg:30040 [15:09:11]ConnectInit lk.salyk.kg [15:09:11]written 0, free lines is 4095 [15:09:12]Connected sock=10 [15:09:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 42 01 00 00 8B 37 3A 01 1C F3 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 33 31 31 36 32 32 32 37 31 36 33 06 04 3C 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B3 D0 B0 D0 B7 D0 B8 D1 80 D0 BE D0 B2 D0 B0 D0 BD D0 BD D1 8B D0 B9 20 4D 6F 6A 69 74 6F 20 4C 45 4D 4F 4E 20 4C 49 4D 45 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1A 7A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B1 09 00 00 35 04 06 00 0B 38 E7 10 AE E4 E9 1C F0 EA 9E B3 25 7C [15:09:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 60 C1 47 00 4E 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 32 33 34 32 38 32 30 10 04 04 00 B1 09 00 00 F4 03 04 00 7E 25 12 67 B6 04 01 00 00 C6 75 EB CD 5D E8 35 F7 [15:09:12]CommunicateWithHost err = 0 [15:09:12]CheckOFDResponse [15:09:12]1017 (14) - 77093643461234 [15:09:12]1041 (16) - 0000000002342820 [15:09:12]1040 (4) - 2481 [15:09:12]1012 (4) - 18.10.2024 09:08 [15:09:12]1206 (1) - 0 [15:09:12]OFD Sender: Remove packet 2481 [15:09:12]ProducePacketName [15:09:12]name=ofd_packets/00002481 [15:09:12]NVStorageDeleteData [15:09:12]Write to MH i2c: 01 00 00 79 2C A5 [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: 01 07 00 79 2C 00 00 00 00 00 B5 0C 6D [15:09:12]RasterBufferAndPrint [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]line [15:09:12]written 0, free lines is 3257 [15:09:12]MH_Cut [15:09:12]Write to MH i2c: D1 01 00 80 2C 01 7E [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 01 00 [15:09:12]MH_I2C_Read... [15:09:12]Read from MH i2c: D1 01 00 80 2C 00 7D [15:09:12]Write to MH i2c: 01 00 00 81 2C AD [15:09:12]Write i2c OK [15:09:12]MH_I2C_Read... [15:09:12]OFD Sender: No OFD packet to send [15:09:13]*** Cut start [15:09:13]*** Partial cut [15:09:13]*** CUTSNS_PIN = 1 [15:09:13]*** CUTSNS_PIN = 0 [15:09:13]*** Brake cut motor [15:09:13]Read from MH i2c: 01 [15:09:13]MH_I2C_Read... [15:09:13]*** Stop cut motor [15:09:13]*** Cut end [15:09:13]Read from MH i2c: 01 07 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: 01 07 00 81 2C 00 00 00 00 00 FF 0F C2 [15:09:13]process_action close_receipt done [15:09:13]requested_data is exist [15:09:13]produce_requested_data [15:09:13]requested_item fm.sn is exist - process it [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 11 00 00 [15:09:13]Write to MH i2c: E2 08 00 82 2C 80 11 00 00 00 00 00 00 28 [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:13]Read from MH i2c: E2 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 17 00 [15:09:13]MH_I2C_Read... [15:09:13]Read from MH i2c: E2 17 00 82 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 70 [15:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:09:13]wFMCommunicate OK [15:09:13]requested_item fd.num is exist - process it [15:09:13]SAM_PROTO_GetFieldsCounters [15:09:13]wFMCommunicate request_size=4 [15:09:13]MH_SAM_APDU [15:09:13]CAPDU: 80 13 00 00 [15:09:13]Write to MH i2c: E2 08 00 83 2C 80 13 00 00 00 00 00 00 2B [15:09:13]Write i2c OK [15:09:13]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 62 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 62 00 83 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B1 09 00 00 0E 04 04 00 16 00 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 4F [15:09:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B1 09 00 00 0E 04 04 00 16 00 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 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_GetFieldsCounters done [15:09:14]requested_item shift.num is exist - process it [15:09:14]requested_item shift.opened is exist - process it [15:09:14]req_shift_opened [15:09:14]FM_GetShiftState [15:09:14]SAM_PROTO_GetShiftState [15:09:14]wFMCommunicate request_size=4 [15:09:14]MH_SAM_APDU [15:09:14]CAPDU: 80 13 01 00 [15:09:14]Write to MH i2c: E2 08 00 84 2C 80 13 01 00 00 00 00 00 2D [15:09:14]Write i2c OK [15:09:14]MH_I2C_Read... [15:09:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:14]Read from MH i2c: E2 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0E 00 [15:09:14]MH_I2C_Read... [15:09:14]Read from MH i2c: E2 0E 00 84 2C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 CB [15:09:14]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:09:14]wFMCommunicate OK [15:09:14]SAM_PROTO_GetShiftState done [15:09:14]FM_GetShiftState done [15:09:14]req_shift_opened done [15:09:14]requested_item shift.open_date is exist - process it [15:09:14]req_shift_open_date [15:09:14]req_shift_open_date done [15:09:14]produce_requested_data done [15:09:14]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2481,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:09:14]process_action_free close_receipt [15:09:14]json_value_free [15:09:14]json_value_free done [15:09:14]process_json_proto returns [15:09:14]Send response to host [15:09:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2481,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:09:14]free response buf [15:09:14]execute_script done [15:09:14]execute_script returns [15:09:14]free content buf [15:09:14]Sock 7.Close socket [15:09:14]Sock 7.Thread stoped [15:09:17]OFD Sender: No OFD packet to send [15:09:22]OFD Sender: No OFD packet to send [15:09:27]OFD Sender: No OFD packet to send [15:09:32]OFD Sender: No OFD packet to send [15:09:37]OFD Sender: No OFD packet to send [15:09:42]OFD Sender: No OFD packet to send [15:09:47]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [15:12:37]OFD Sender: No OFD packet to send [15:12:42]OFD Sender: No OFD packet to send [15:12:47]OFD Sender: No OFD packet to send [15:12:52]OFD Sender: No OFD packet to send [15:12:57]OFD Sender: No OFD packet to send [15:13:02]OFD Sender: No OFD packet to send [15:13:07]OFD Sender: No OFD packet to send [15:13:12]OFD Sender: No OFD packet to send [15:13:17]OFD Sender: No OFD packet to send [15:13:22]OFD Sender: No OFD packet to send [15:13:27]OFD Sender: No OFD packet to send [15:13:32]OFD Sender: No OFD packet to send [15:13:37]OFD Sender: No OFD packet to send [15:13:42]OFD Sender: No OFD packet to send [15:13:47]OFD Sender: No OFD packet to send [15:13:52]OFD Sender: No OFD packet to send [15:13:57]OFD Sender: No OFD packet to send [15:14:02]OFD Sender: No OFD packet to send [15:14:07]OFD Sender: No OFD packet to send [15:14:12]OFD Sender: No OFD packet to send [15:14:18]OFD Sender: No OFD packet to send [15:14:23]OFD Sender: No OFD packet to send [15:14:28]OFD Sender: No OFD packet to send [15:14:33]OFD Sender: No OFD packet to send [15:14:38]OFD Sender: No OFD packet to send [15:14:43]OFD Sender: No OFD packet to send [15:14:48]OFD Sender: No OFD packet to send [15:14:53]OFD Sender: No OFD packet to send [15:14:58]OFD Sender: No OFD packet to send [15:15:03]OFD Sender: No OFD packet to send [15:15:08]OFD Sender: No OFD packet to send [15:15:13]OFD Sender: No OFD packet to send [15:15:18]OFD Sender: No OFD packet to send [15:15:23]OFD Sender: No OFD packet to send [15:15:28]OFD Sender: No OFD packet to send [15:15:33]OFD Sender: No OFD packet to send [15:15:38]OFD Sender: No OFD packet to send [15:15:43]OFD Sender: No OFD packet to send [15:15:48]OFD Sender: No OFD packet to send [15:15:53]OFD Sender: No OFD packet to send [15:15:58]OFD Sender: No OFD packet to send [15:16:03]OFD Sender: No OFD packet to send [15:16:08]OFD Sender: No OFD packet to send [15:16:13]OFD Sender: No OFD packet to send [15:16:18]OFD Sender: No OFD packet to send [15:16:23]OFD Sender: No OFD packet to send [15:16:28]OFD Sender: No OFD packet to send [15:16:33]OFD Sender: No OFD packet to send [15:16:38]OFD Sender: No OFD packet to send [15:16:43]OFD Sender: No OFD packet to send [15:16:48]OFD Sender: No OFD packet to send [15:16:53]OFD Sender: No OFD packet to send [15:16:58]OFD Sender: No OFD packet to send [15:17:03]OFD Sender: No OFD packet to send [15:17:08]OFD Sender: No OFD packet to send [15:17:13]OFD Sender: No OFD packet to send [15:17:18]OFD Sender: No OFD packet to send [15:17:23]OFD Sender: No OFD packet to send [15:17:28]OFD Sender: No OFD packet to send [15:17:33]OFD Sender: No OFD packet to send [15:17:38]OFD Sender: No OFD packet to send [15:17:43]OFD Sender: No OFD packet to send [15:17:48]OFD Sender: No OFD packet to send [15:17:53]OFD Sender: No OFD packet to send [15:17:58]OFD Sender: No OFD packet to send [15:18:03]OFD Sender: No OFD packet to send [15:18:08]OFD Sender: No OFD packet to send [15:18:13]OFD Sender: No OFD packet to send [15:18:18]OFD Sender: No OFD packet to send [15:18:23]OFD Sender: No OFD packet to send [15:18:28]OFD Sender: No OFD packet to send [15:18:33]OFD Sender: No OFD packet to send [15:18:38]OFD Sender: No OFD packet to send [15:18:43]OFD Sender: No OFD packet to send [15:18:48]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:38]OFD Sender: No OFD packet to send [15:20:43]OFD Sender: No OFD packet to send [15:20:48]OFD Sender: No OFD packet to send [15:20:53]OFD Sender: No OFD packet to send [15:20:58]OFD Sender: No OFD packet to send [15:21:03]OFD Sender: No OFD packet to send [15:21:08]OFD Sender: No OFD packet to send [15:21:13]OFD Sender: No OFD packet to send [15:21:18]OFD Sender: No OFD packet to send [15:21:22]accept exits with 9 [15:21:22]New connection [15:21:22]New thread 3066850660 created [15:21:22]Thread 3066707300 joined [15:21:22]Waiting for new connection... [15:21:22] Sock 9.Parse request [15:21:22]Sock 9.Check first char [15:21:22]Sock 9.First char is OK [15:21:22]request: POST /json_proto HTTP/1.0 [15:21:22]Method: POST [15:21:22]URL: /json_proto [15:21:22]Method is POST - this is cgi request [15:21:22]url: /json_proto [15:21:22]query_string will be loaded in cgi processing [15:21:22]execute_cgi json_proto POST (null) [15:21:22]execute_cgi path=json_proto method=POST [15:21:22]POST find Content-Length [15:21:22]Host: 172.17.52.132:8080 [15:21:22]Content-Length: 689 [15:21:22]Content-Type: application/json [15:21:22] [15:21:22]POST finish read [15:21:22]Found Content-Length = 689 [15:21:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99872", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:22]execute_script... [15:21: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)99872", "tax_sys" : 0, "items" : [ { "code": "4870202521247", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0447\u0435\u0440\u043D.\u043F\u0435\u0440\u0441\u0438\u043A", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:22]POST & json_proto [15:21:22]process_json_proto [15:21:22]json parsed OK: [15:21:22]protocol is kg_v1.0 [15:21:22]action value=close_receipt [15:21:22]process_action close_receipt [15:21:22]cmd_close_receipt [15:21:22]MH_GetDate [15:21:22]Write to MH i2c: F0 00 00 85 2C A0 [15:21:22]Write i2c OK [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: F0 [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: F0 09 00 [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: F0 09 00 85 2C 00 F7 7C 12 67 5A BE F6 66 09 [15:21:22]GetLastDocTimeStamp 1729264154 [15:21:22]current date 1729264887 [15:21:22]FM_GetShiftState [15:21:22]SAM_PROTO_GetShiftState [15:21:22]wFMCommunicate request_size=4 [15:21:22]MH_SAM_APDU [15:21:22]CAPDU: 80 13 01 00 [15:21:22]Write to MH i2c: E2 08 00 86 2C 80 13 01 00 00 00 00 00 2F [15:21:22]Write i2c OK [15:21:22]MH_I2C_Read... [15:21:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:22]Read from MH i2c: E2 [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: E2 0E 00 [15:21:22]MH_I2C_Read... [15:21:22]Read from MH i2c: E2 0E 00 86 2C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 CD [15:21:22]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:21:22]wFMCommunicate OK [15:21:22]SAM_PROTO_GetShiftState done [15:21:22]FM_GetShiftState done [15:21:22]opened in 1729209717 [15:21:22]opened+sec_in_day 1729296117 [15:21:22]quantity*price = 10400 [15:21:22]sum+1 = 10401 [15:21:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 ÐСП 1% : 0.92 ÐДС 12% : 11.04 Ðаличными: 104.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 107 18.10.2024 15:21 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2482 ФПД: 124749775692520 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T152127&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2482&fm=124749775692520&tin=02508201610067®Number=0000000000207295&sum=10400 0 [15:21:23]StoreToDocumentArchive [15:21:23]shift 22 fd 2482 [15:21:23]save to /storage/0022/doc_00002482 [15:21:23]save last doc name /storage/0022/doc_00002482 to /storage/kkm_last_doc_name [15:21:23]save OK [15:21:23]Clear old archive folders... [15:21:23]ProcessDocumentItem done err = 0, tmpTLVsize=294 [15:21:23]tlvbuf is 01416490 [15:21:23]SAM_PROTO_ClearQueue [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 09 00 00 [15:21:23]Write to MH i2c: E2 08 00 93 2C 80 09 00 00 00 00 00 00 31 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 03 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 03 00 93 2C 00 90 00 33 [15:21:23]RAPDU: 90 00 [15:21:23]wFMCommunicate OK [15:21:23]SAM_PROTO_ClearQueue done [15:21:23]KKMCreateOFDPacket [15:21:23]OFDProtocolAddRootSTLVToBuf [15:21:23]FM_MakeSignedData [15:21:23]FM_MakeSignedData [15:21:23]SAM_PROTO_SignData [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 0D 01 02 [15:21:23]Write to MH i2c: E2 08 00 94 2C 80 0D 01 02 00 00 00 00 39 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 94 2C 00 90 00 34 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=255 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 F7 7C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [15:21:24]Write to MH i2c: E2 02 01 95 2C 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 F7 7C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 46 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 95 2C 00 90 00 35 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=53 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 02 02 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B2 09 00 00 35 04 06 00 71 75 92 10 E2 E8 [15:21:24]Write to MH i2c: E2 38 00 96 2C 80 0D 02 02 30 00 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B2 09 00 00 35 04 06 00 71 75 92 10 E2 E8 00 00 33 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 03 00 96 2C 00 90 00 36 [15:21:24]RAPDU: 90 00 [15:21:24]wFMCommunicate OK [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 0D 03 02 [15:21:24]Write to MH i2c: E2 08 00 97 2C 80 0D 03 02 00 00 00 00 3E [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 0B 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 0B 00 97 2C 00 FD 7D A9 4A 10 0B E5 CB 90 00 77 [15:21:24]RAPDU: FD 7D A9 4A 10 0B E5 CB 90 00 [15:21:24]wFMCommunicate OK [15:21:24]SAM_PROTO_SignData done [15:21:24]FM_MakeSignedData done [15:21:24]CreateOFDProtocolMessage [15:21:24]wFMCommunicate request_size=4 [15:21:24]MH_SAM_APDU [15:21:24]CAPDU: 80 11 00 00 [15:21:24]Write to MH i2c: E2 08 00 98 2C 80 11 00 00 00 00 00 00 3E [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:24]Read from MH i2c: E2 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 17 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: E2 17 00 98 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 86 [15:21:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:21:24]wFMCommunicate OK [15:21:24]CreateOFDProtocolMessage done [15:21:24]OFDSenderStorePacket 2482 [15:21:24]StoreOFDPacket docnum=2482 [15:21:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3A 01 00 00 5D B8 32 01 A1 6B 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 F7 7C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B2 09 00 00 35 04 06 00 71 75 92 10 E2 E8 FD 7D A9 4A 10 0B E5 CB [15:21:24]CheckFolder [15:21:24]dirname=/storage/ofd_packets [15:21:24]CheckFolder done [15:21:24]ProducePacketName [15:21:24]name=ofd_packets/00002482 [15:21:24]NVStorageSaveData ofd_packets/00002482 [15:21:24]File name is /storage/ofd_packets/00002482 [15:21:24]Write 344 bytes [15:21:24]NVStorageSaveData done [15:21:24]OFDSenderStorePacket done [15:21:24]KKMCreateOFDPacket done [15:21:24]NVStorageSaveData kkm_last_timestamp [15:21:24]File name is /storage/kkm_last_timestamp [15:21:24]Write 4 bytes [15:21:24]NVStorageSaveData done [15:21:24]ExternCall_PrintAddStr [15:21:24]wPrintStart [15:21:24]Write to MH i2c: 01 00 00 99 2C C5 [15:21:24]Write i2c OK [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 07 00 [15:21:24]MH_I2C_Read... [15:21:24]Read from MH i2c: 01 07 00 99 2C 00 00 00 00 00 FF 0F DA [15:21:24]RasterBufferAndPrint [15:21:24]line Счет N : (3)99872 [15:21:24]line ИÐÐ: 02508201610067 [15:21:24]line Контрольно-КаÑÑовый Чек [15:21:24]line ПРОДÐЖР[15:21:24]line Товар: 4870202521247 [15:21:24]line Ðапиток MAXI чай 1,2 черн.перÑик [15:21:24]line 1.000 * 104.00 [15:21:24]line = 104.00 [15:21:24]line ÐДС 12% ÐСП 1% [15:21:24]line > о реализуемом товаре [15:21:24]line ИТОГО: 104.00 [15:21:24]line ÐСП 1% : 0.92 [15:21:24]line ÐДС 12% : 11.04 [15:21:24]line Ðаличными: 104.00 [15:21:24]line Безнал.: 0.00 [15:21:24]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:21:24]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:21:24]line СÐО: Общий режим [15:21:24]line Чек 107 18.10.2024 15:21 [15:21:24]line Смена: 22 ФФД: 1.0 [15:21:24]line ЗÐМ: 0300000191 [15:21:24]line РÐМ: 0000000000207295 [15:21:24]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:21:24]line ФМ: 0000000002342820 [15:21:24]line ФД: 2482 [15:21:24]line ФПД: 124749775692520 [15:21:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T152127&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2482&fm=124749775692520&tin=02508201610067®Number=0000000000207295&sum=10400 [15:21:24]line 0 [15:21:24]OFD Sender: Processing packet 2482 [packets to send 1, broken 0] [15:21:24]ProducePacketName [15:21:24]name=ofd_packets/00002482 [15:21:24]OFD Sender: To server: ‡•öpG, [15:21:24]CommunicateWithHost lk.salyk.kg:30040 [15:21:24]ConnectInit lk.salyk.kg [15:21:24]written 0, free lines is 4095 [15:21:24]Connected sock=10 [15:21:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3A 01 00 00 5D B8 32 01 A1 6B 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 34 37 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D1 87 D0 B5 D1 80 D0 BD 2E D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 F7 7C 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B2 09 00 00 35 04 06 00 71 75 92 10 E2 E8 FD 7D A9 4A 10 0B E5 CB [15:21:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 1E D5 47 00 7F 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B2 09 00 00 F4 03 04 00 5B 28 12 67 B6 04 01 00 00 49 48 C2 25 38 1A D7 FB [15:21:25]CommunicateWithHost err = 0 [15:21:25]CheckOFDResponse [15:21:25]1017 (14) - 77093643461234 [15:21:25]1041 (16) - 0000000002342820 [15:21:25]1040 (4) - 2482 [15:21:25]1012 (4) - 18.10.2024 09:20 [15:21:25]1206 (1) - 0 [15:21:25]OFD Sender: Remove packet 2482 [15:21:25]ProducePacketName [15:21:25]name=ofd_packets/00002482 [15:21:25]NVStorageDeleteData [15:21:25]Write to MH i2c: 01 00 00 C2 2C EE [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 07 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: 01 07 00 C2 2C 00 00 00 00 00 B8 0C B9 [15:21:25]RasterBufferAndPrint [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]line [15:21:25]written 0, free lines is 3261 [15:21:25]MH_Cut [15:21:25]Write to MH i2c: D1 01 00 C9 2C 01 C7 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 01 00 [15:21:25]MH_I2C_Read... [15:21:25]Read from MH i2c: D1 01 00 C9 2C 00 C6 [15:21:25]Write to MH i2c: 01 00 00 CA 2C F6 [15:21:25]Write i2c OK [15:21:25]MH_I2C_Read... [15:21:25]OFD Sender: No OFD packet to send [15:21:26]*** Cut start [15:21:26]*** Partial cut [15:21:26]*** CUTSNS_PIN = 1 [15:21:26]*** CUTSNS_PIN = 0 [15:21:26]*** Brake cut motor [15:21:26]Read from MH i2c: 01 [15:21:26]MH_I2C_Read... [15:21:26]*** Stop cut motor [15:21:26]*** Cut end [15:21:26]Read from MH i2c: 01 07 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: 01 07 00 CA 2C 00 00 00 00 00 FF 0F 0B [15:21:26]process_action close_receipt done [15:21:26]requested_data is exist [15:21:26]produce_requested_data [15:21:26]requested_item fm.sn is exist - process it [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 11 00 00 [15:21:26]Write to MH i2c: E2 08 00 CB 2C 80 11 00 00 00 00 00 00 71 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:26]Read from MH i2c: E2 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 17 00 [15:21:26]MH_I2C_Read... [15:21:26]Read from MH i2c: E2 17 00 CB 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B9 [15:21:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:21:26]wFMCommunicate OK [15:21:26]requested_item fd.num is exist - process it [15:21:26]SAM_PROTO_GetFieldsCounters [15:21:26]wFMCommunicate request_size=4 [15:21:26]MH_SAM_APDU [15:21:26]CAPDU: 80 13 00 00 [15:21:26]Write to MH i2c: E2 08 00 CC 2C 80 13 00 00 00 00 00 00 74 [15:21:26]Write i2c OK [15:21:26]MH_I2C_Read... [15:21:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:27]Read from MH i2c: E2 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 62 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 62 00 CC 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B2 09 00 00 0E 04 04 00 16 00 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 9C [15:21:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B2 09 00 00 0E 04 04 00 16 00 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 [15:21:27]wFMCommunicate OK [15:21:27]SAM_PROTO_GetFieldsCounters done [15:21:27]requested_item shift.num is exist - process it [15:21:27]requested_item shift.opened is exist - process it [15:21:27]req_shift_opened [15:21:27]FM_GetShiftState [15:21:27]SAM_PROTO_GetShiftState [15:21:27]wFMCommunicate request_size=4 [15:21:27]MH_SAM_APDU [15:21:27]CAPDU: 80 13 01 00 [15:21:27]Write to MH i2c: E2 08 00 CD 2C 80 13 01 00 00 00 00 00 76 [15:21:27]Write i2c OK [15:21:27]MH_I2C_Read... [15:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:27]Read from MH i2c: E2 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 0E 00 [15:21:27]MH_I2C_Read... [15:21:27]Read from MH i2c: E2 0E 00 CD 2C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 14 [15:21:27]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:21:27]wFMCommunicate OK [15:21:27]SAM_PROTO_GetShiftState done [15:21:27]FM_GetShiftState done [15:21:27]req_shift_opened done [15:21:27]requested_item shift.open_date is exist - process it [15:21:27]req_shift_open_date [15:21:27]req_shift_open_date done [15:21:27]produce_requested_data done [15:21:27]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2482,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:21:27]process_action_free close_receipt [15:21:27]json_value_free [15:21:27]json_value_free done [15:21:27]process_json_proto returns [15:21:27]Send response to host [15:21:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2482,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:21:27]free response buf [15:21:27]execute_script done [15:21:27]execute_script returns [15:21:27]free content buf [15:21:27]Sock 9.Close socket [15:21:27]Sock 9.Thread stoped [15:21:30]OFD Sender: No OFD packet to send [15:21:35]OFD Sender: No OFD packet to send [15:21:40]OFD Sender: No OFD packet to send [15:21:45]OFD Sender: No OFD packet to send [15:21:50]OFD Sender: No OFD packet to send [15:21:55]OFD Sender: No OFD packet to send [15:22:00]OFD Sender: No OFD packet to send [15:22:05]OFD Sender: No OFD packet to send [15:22:10]OFD Sender: No OFD packet to send [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:33]accept exits with 7 [15:25:33]New connection [15:25:33]New thread 3066707300 created [15:25:33]Thread 3066850660 joined [15:25:33]Waiting for new connection... [15:25:33] Sock 7.Parse request [15:25:33]Sock 7.Check first char [15:25:33]Sock 7.First char is OK [15:25:33]request: POST /json_proto HTTP/1.0 [15:25:33]Method: POST [15:25:33]URL: /json_proto [15:25:33]Method is POST - this is cgi request [15:25:33]url: /json_proto [15:25:33]query_string will be loaded in cgi processing [15:25:33]execute_cgi json_proto POST (null) [15:25:33]execute_cgi path=json_proto method=POST [15:25:33]POST find Content-Length [15:25:33]Host: 172.17.52.132:8080 [15:25:33]Content-Length: 664 [15:25:33]Content-Type: application/json [15:25:33] [15:25:33]POST finish read [15:25:33]Found Content-Length = 664 [15:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99873", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:33]execute_script... [15:25: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 : (3)99873", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:25:33]POST & json_proto [15:25:33]process_json_proto [15:25:33]json parsed OK: [15:25:33]protocol is kg_v1.0 [15:25:33]action value=close_receipt [15:25:33]process_action close_receipt [15:25:33]cmd_close_receipt [15:25:33]MH_GetDate [15:25:33]Write to MH i2c: F0 00 00 CE 2C E9 [15:25:33]Write i2c OK [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: F0 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: F0 09 00 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: F0 09 00 CE 2C 00 F2 7D 12 67 5A BE F6 66 4E [15:25:33]GetLastDocTimeStamp 1729264887 [15:25:33]current date 1729265138 [15:25:33]FM_GetShiftState [15:25:33]SAM_PROTO_GetShiftState [15:25:33]wFMCommunicate request_size=4 [15:25:33]MH_SAM_APDU [15:25:33]CAPDU: 80 13 01 00 [15:25:33]Write to MH i2c: E2 08 00 CF 2C 80 13 01 00 00 00 00 00 78 [15:25:33]Write i2c OK [15:25:33]MH_I2C_Read... [15:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:33]Read from MH i2c: E2 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: E2 0E 00 [15:25:33]MH_I2C_Read... [15:25:33]Read from MH i2c: E2 0E 00 CF 2C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 16 [15:25:33]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:25:33]wFMCommunicate OK [15:25:33]SAM_PROTO_GetShiftState done [15:25:33]FM_GetShiftState done [15:25:33]opened in 1729209717 [15:25:33]opened+sec_in_day 1729296117 [15:25:33]quantity*price = 9500 [15:25:33]sum+1 = 9501 [15:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 108 18.10.2024 15:25 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2483 ФПД: 136801495861915 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T152538&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2483&fm=136801495861915&tin=02508201610067®Number=0000000000207295&sum=9500 0 [15:25:34]StoreToDocumentArchive [15:25:34]shift 22 fd 2483 [15:25:34]save to /storage/0022/doc_00002483 [15:25:34]save last doc name /storage/0022/doc_00002483 to /storage/kkm_last_doc_name [15:25:34]save OK [15:25:34]Clear old archive folders... [15:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=296 [15:25:34]tlvbuf is 013E0B10 [15:25:34]SAM_PROTO_ClearQueue [15:25:34]wFMCommunicate request_size=4 [15:25:34]MH_SAM_APDU [15:25:34]CAPDU: 80 09 00 00 [15:25:34]Write to MH i2c: E2 08 00 DC 2C 80 09 00 00 00 00 00 00 7A [15:25:34]Write i2c OK [15:25:34]MH_I2C_Read... [15:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:34]Read from MH i2c: E2 [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: E2 03 00 [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: E2 03 00 DC 2C 00 90 00 7C [15:25:34]RAPDU: 90 00 [15:25:34]wFMCommunicate OK [15:25:34]SAM_PROTO_ClearQueue done [15:25:34]KKMCreateOFDPacket [15:25:34]OFDProtocolAddRootSTLVToBuf [15:25:34]FM_MakeSignedData [15:25:34]FM_MakeSignedData [15:25:34]SAM_PROTO_SignData [15:25:34]wFMCommunicate request_size=4 [15:25:34]MH_SAM_APDU [15:25:34]CAPDU: 80 0D 01 02 [15:25:34]Write to MH i2c: E2 08 00 DD 2C 80 0D 01 02 00 00 00 00 82 [15:25:34]Write i2c OK [15:25:34]MH_I2C_Read... [15:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:34]Read from MH i2c: E2 [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: E2 03 00 [15:25:34]MH_I2C_Read... [15:25:34]Read from MH i2c: E2 03 00 DD 2C 00 90 00 7D [15:25:34]RAPDU: 90 00 [15:25:34]wFMCommunicate OK [15:25:34]wFMCommunicate request_size=255 [15:25:34]MH_SAM_APDU [15:25:34]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 F2 7D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [15:25:34]Write to MH i2c: E2 02 01 DE 2C 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 F2 7D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 6C [15:25:34]Write i2c OK [15:25:34]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 DE 2C 00 90 00 7E [15:25:35]RAPDU: 90 00 [15:25:35]wFMCommunicate OK [15:25:35]wFMCommunicate request_size=55 [15:25:35]MH_SAM_APDU [15:25:35]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B3 09 00 00 35 04 06 00 7C 6B 94 90 CA 9B [15:25:35]Write to MH i2c: E2 3A 00 DF 2C 80 0D 02 02 32 00 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B3 09 00 00 35 04 06 00 7C 6B 94 90 CA 9B 00 00 FF [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 03 00 DF 2C 00 90 00 7F [15:25:35]RAPDU: 90 00 [15:25:35]wFMCommunicate OK [15:25:35]wFMCommunicate request_size=4 [15:25:35]MH_SAM_APDU [15:25:35]CAPDU: 80 0D 03 02 [15:25:35]Write to MH i2c: E2 08 00 E0 2C 80 0D 03 02 00 00 00 00 87 [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 0B 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 0B 00 E0 2C 00 B2 97 E1 C6 35 2A 84 A3 90 00 FE [15:25:35]RAPDU: B2 97 E1 C6 35 2A 84 A3 90 00 [15:25:35]wFMCommunicate OK [15:25:35]SAM_PROTO_SignData done [15:25:35]FM_MakeSignedData done [15:25:35]CreateOFDProtocolMessage [15:25:35]wFMCommunicate request_size=4 [15:25:35]MH_SAM_APDU [15:25:35]CAPDU: 80 11 00 00 [15:25:35]Write to MH i2c: E2 08 00 E1 2C 80 11 00 00 00 00 00 00 87 [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:35]Read from MH i2c: E2 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 17 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: E2 17 00 E1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CF [15:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:25:35]wFMCommunicate OK [15:25:35]CreateOFDProtocolMessage done [15:25:35]OFDSenderStorePacket 2483 [15:25:35]StoreOFDPacket docnum=2483 [15:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3C 01 00 00 01 5C 34 01 A0 15 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 F2 7D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B3 09 00 00 35 04 06 00 7C 6B 94 90 CA 9B B2 97 E1 C6 35 2A 84 A3 [15:25:35]CheckFolder [15:25:35]dirname=/storage/ofd_packets [15:25:35]CheckFolder done [15:25:35]ProducePacketName [15:25:35]name=ofd_packets/00002483 [15:25:35]NVStorageSaveData ofd_packets/00002483 [15:25:35]File name is /storage/ofd_packets/00002483 [15:25:35]Write 346 bytes [15:25:35]NVStorageSaveData done [15:25:35]OFDSenderStorePacket done [15:25:35]KKMCreateOFDPacket done [15:25:35]NVStorageSaveData kkm_last_timestamp [15:25:35]File name is /storage/kkm_last_timestamp [15:25:35]Write 4 bytes [15:25:35]NVStorageSaveData done [15:25:35]ExternCall_PrintAddStr [15:25:35]wPrintStart [15:25:35]Write to MH i2c: 01 00 00 E2 2C 0E [15:25:35]Write i2c OK [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: 01 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: 01 07 00 [15:25:35]MH_I2C_Read... [15:25:35]Read from MH i2c: 01 07 00 E2 2C 00 00 00 00 00 FF 0F 23 [15:25:35]RasterBufferAndPrint [15:25:35]line Счет N : (3)99873 [15:25:35]line ИÐÐ: 02508201610067 [15:25:35]line Контрольно-КаÑÑовый Чек [15:25:35]line ПРОДÐЖР[15:25:35]line Товар: 4631150682851 [15:25:35]line Ðап En Dragon Mojito лайм,клуб ж/б 0,45л [15:25:35]line 1.000 * 95.00 [15:25:35]line = 95.00 [15:25:35]line ÐДС 12% ÐСП 1% [15:25:35]line > о реализуемом товаре [15:25:35]line ИТОГО: 95.00 [15:25:35]line ÐСП 1% : 0.84 [15:25:35]line ÐДС 12% : 10.09 [15:25:35]line Ðаличными: 95.00 [15:25:35]line Безнал.: 0.00 [15:25:35]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:25:35]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:25:35]line СÐО: Общий режим [15:25:35]line Чек 108 18.10.2024 15:25 [15:25:35]line Смена: 22 ФФД: 1.0 [15:25:35]line ЗÐМ: 0300000191 [15:25:35]line РÐМ: 0000000000207295 [15:25:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:25:35]line ФМ: 0000000002342820 [15:25:35]line ФД: 2483 [15:25:35]line ФПД: 136801495861915 [15:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T152538&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2483&fm=136801495861915&tin=02508201610067®Number=0000000000207295&sum=9500 [15:25:35]line 0 [15:25:35]OFD Sender: Processing packet 2483 [packets to send 1, broken 0] [15:25:35]ProducePacketName [15:25:35]name=ofd_packets/00002483 [15:25:35]OFD Sender: To server: ‡•öpG, [15:25:35]CommunicateWithHost lk.salyk.kg:30040 [15:25:35]ConnectInit lk.salyk.kg [15:25:35]written 0, free lines is 4095 [15:25:35]Connected sock=10 [15:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3C 01 00 00 01 5C 34 01 A0 15 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 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 F2 7D 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B3 09 00 00 35 04 06 00 7C 6B 94 90 CA 9B B2 97 E1 C6 35 2A 84 A3 [15:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 E5 9A 47 00 9F 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B3 09 00 00 F4 03 04 00 56 29 12 67 B6 04 01 00 00 D2 A1 65 B6 06 F6 E2 5C [15:25:36]CommunicateWithHost err = 0 [15:25:36]CheckOFDResponse [15:25:36]1017 (14) - 77093643461234 [15:25:36]1041 (16) - 0000000002342820 [15:25:36]1040 (4) - 2483 [15:25:36]1012 (4) - 18.10.2024 09:24 [15:25:36]1206 (1) - 0 [15:25:36]OFD Sender: Remove packet 2483 [15:25:36]ProducePacketName [15:25:36]name=ofd_packets/00002483 [15:25:36]NVStorageDeleteData [15:25:36]Write to MH i2c: 01 00 00 0B 2D 38 [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 07 00 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: 01 07 00 0B 2D 00 00 00 00 00 AE 0C F9 [15:25:36]RasterBufferAndPrint [15:25:36]line [15:25:36]line [15:25:36]line [15:25:36]line [15:25:36]line [15:25:36]written 0, free lines is 3249 [15:25:36]MH_Cut [15:25:36]Write to MH i2c: D1 01 00 12 2D 01 11 [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: D1 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: D1 01 00 [15:25:36]MH_I2C_Read... [15:25:36]Read from MH i2c: D1 01 00 12 2D 00 10 [15:25:36]Write to MH i2c: 01 00 00 13 2D 40 [15:25:36]Write i2c OK [15:25:36]MH_I2C_Read... [15:25:36]OFD Sender: No OFD packet to send [15:25:37]*** Cut start [15:25:37]*** Partial cut [15:25:37]*** CUTSNS_PIN = 1 [15:25:37]*** CUTSNS_PIN = 0 [15:25:37]*** Brake cut motor [15:25:37]Read from MH i2c: 01 [15:25:37]MH_I2C_Read... [15:25:37]*** Stop cut motor [15:25:37]*** Cut end [15:25:37]Read from MH i2c: 01 07 00 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: 01 07 00 13 2D 00 00 00 00 00 FF 0F 55 [15:25:37]process_action close_receipt done [15:25:37]requested_data is exist [15:25:37]produce_requested_data [15:25:37]requested_item fm.sn is exist - process it [15:25:37]wFMCommunicate request_size=4 [15:25:37]MH_SAM_APDU [15:25:37]CAPDU: 80 11 00 00 [15:25:37]Write to MH i2c: E2 08 00 14 2D 80 11 00 00 00 00 00 00 BB [15:25:37]Write i2c OK [15:25:37]MH_I2C_Read... [15:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:37]Read from MH i2c: E2 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 17 00 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 17 00 14 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 03 [15:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:25:37]wFMCommunicate OK [15:25:37]requested_item fd.num is exist - process it [15:25:37]SAM_PROTO_GetFieldsCounters [15:25:37]wFMCommunicate request_size=4 [15:25:37]MH_SAM_APDU [15:25:37]CAPDU: 80 13 00 00 [15:25:37]Write to MH i2c: E2 08 00 15 2D 80 13 00 00 00 00 00 00 BE [15:25:37]Write i2c OK [15:25:37]MH_I2C_Read... [15:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:37]Read from MH i2c: E2 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 62 00 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 62 00 15 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B3 09 00 00 0E 04 04 00 16 00 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 EA [15:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B3 09 00 00 0E 04 04 00 16 00 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 [15:25:37]wFMCommunicate OK [15:25:37]SAM_PROTO_GetFieldsCounters done [15:25:37]requested_item shift.num is exist - process it [15:25:37]requested_item shift.opened is exist - process it [15:25:37]req_shift_opened [15:25:37]FM_GetShiftState [15:25:37]SAM_PROTO_GetShiftState [15:25:37]wFMCommunicate request_size=4 [15:25:37]MH_SAM_APDU [15:25:37]CAPDU: 80 13 01 00 [15:25:37]Write to MH i2c: E2 08 00 16 2D 80 13 01 00 00 00 00 00 C0 [15:25:37]Write i2c OK [15:25:37]MH_I2C_Read... [15:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:37]Read from MH i2c: E2 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 0E 00 [15:25:37]MH_I2C_Read... [15:25:37]Read from MH i2c: E2 0E 00 16 2D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5E [15:25:37]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:25:37]wFMCommunicate OK [15:25:37]SAM_PROTO_GetShiftState done [15:25:37]FM_GetShiftState done [15:25:37]req_shift_opened done [15:25:37]requested_item shift.open_date is exist - process it [15:25:37]req_shift_open_date [15:25:37]req_shift_open_date done [15:25:37]produce_requested_data done [15:25:37]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2483,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:25:37]process_action_free close_receipt [15:25:37]json_value_free [15:25:37]json_value_free done [15:25:37]process_json_proto returns [15:25:37]Send response to host [15:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2483,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:25:37]free response buf [15:25:37]execute_script done [15:25:37]execute_script returns [15:25:37]free content buf [15:25:37]Sock 7.Close socket [15:25:37]Sock 7.Thread stoped [15:25:41]OFD Sender: No OFD packet to send [15:25:46]OFD Sender: No OFD packet to send [15:25:51]OFD Sender: No OFD packet to send [15:25:56]OFD Sender: No OFD packet to send [15:26:01]OFD Sender: No OFD packet to send [15:26:06]OFD Sender: No OFD packet to send [15:26:11]OFD Sender: No OFD packet to send [15:26:16]OFD Sender: No OFD packet to send [15:26:21]OFD Sender: No OFD packet to send [15:26:26]OFD Sender: No OFD packet to send [15:26:31]OFD Sender: No OFD packet to send [15:26:36]OFD Sender: No OFD packet to send [15:26:41]OFD Sender: No OFD packet to send [15:26:46]OFD Sender: No OFD packet to send [15:26:51]OFD Sender: No OFD packet to send [15:26:56]OFD Sender: No OFD packet to send [15:27:01]OFD Sender: No OFD packet to send [15:27:06]OFD Sender: No OFD packet to send [15:27:11]OFD Sender: No OFD packet to send [15:27:16]OFD Sender: No OFD packet to send [15:27:21]OFD Sender: No OFD packet to send [15:27:26]OFD Sender: No OFD packet to send [15:27:31]OFD Sender: No OFD packet to send [15:27:36]OFD Sender: No OFD packet to send [15:27:41]OFD Sender: No OFD packet to send [15:27:46]OFD Sender: No OFD packet to send [15:27:51]OFD Sender: No OFD packet to send [15:27:56]OFD Sender: No OFD packet to send [15:28:01]OFD Sender: No OFD packet to send [15:28:06]OFD Sender: No OFD packet to send [15:28:11]OFD Sender: No OFD packet to send [15:28:16]OFD Sender: No OFD packet to send [15:28:21]OFD Sender: No OFD packet to send [15:28:26]OFD Sender: No OFD packet to send [15:28:31]OFD Sender: No OFD packet to send [15:28:36]OFD Sender: No OFD packet to send [15:28:41]OFD Sender: No OFD packet to send [15:28:46]OFD Sender: No OFD packet to send [15:28:51]OFD Sender: No OFD packet to send [15:28:56]OFD Sender: No OFD packet to send [15:29:01]OFD Sender: No OFD packet to send [15:29:06]OFD Sender: No OFD packet to send [15:29:11]OFD Sender: No OFD packet to send [15:29:16]OFD Sender: No OFD packet to send [15:29:21]OFD Sender: No OFD packet to send [15:29:26]OFD Sender: No OFD packet to send [15:29:31]OFD Sender: No OFD packet to send [15:29:36]OFD Sender: No OFD packet to send [15:29:41]OFD Sender: No OFD packet to send [15:29:46]OFD Sender: No OFD packet to send [15:29:51]OFD Sender: No OFD packet to send [15:29:56]OFD Sender: No OFD packet to send [15:30:01]OFD Sender: No OFD packet to send [15:30:06]OFD Sender: No OFD packet to send [15:30:11]OFD Sender: No OFD packet to send [15:30:16]OFD Sender: No OFD packet to send [15:30:21]OFD Sender: No OFD packet to send [15:30:26]OFD Sender: No OFD packet to send [15:30:31]OFD Sender: No OFD packet to send [15:30:36]OFD Sender: No OFD packet to send [15:30:41]OFD Sender: No OFD packet to send [15:30:46]OFD Sender: No OFD packet to send [15:30:51]OFD Sender: No OFD packet to send [15:30:56]OFD Sender: No OFD packet to send [15:31:01]OFD Sender: No OFD packet to send [15:31:06]OFD Sender: No OFD packet to send [15:31:11]OFD Sender: No OFD packet to send [15:31:16]OFD Sender: No OFD packet to send [15:31:21]OFD Sender: No OFD packet to send [15:31:26]OFD Sender: No OFD packet to send [15:31:31]OFD Sender: No OFD packet to send [15:31:36]OFD Sender: No OFD packet to send [15:31:41]OFD Sender: No OFD packet to send [15:31:46]OFD Sender: No OFD packet to send [15:31:51]OFD Sender: No OFD packet to send [15:31:56]OFD Sender: No OFD packet to send [15:32:01]OFD Sender: No OFD packet to send [15:32:06]OFD Sender: No OFD packet to send [15:32:11]OFD Sender: No OFD packet to send [15:32:16]OFD Sender: No OFD packet to send [15:32:21]OFD Sender: No OFD packet to send [15:32:26]OFD Sender: No OFD packet to send [15:32:31]OFD Sender: No OFD packet to send [15:32:36]OFD Sender: No OFD packet to send [15:32:41]OFD Sender: No OFD packet to send [15:32:46]OFD Sender: No OFD packet to send [15:32:51]OFD Sender: No OFD packet to send [15:32:56]OFD Sender: No OFD packet to send [15:33:01]OFD Sender: No OFD packet to send [15:33:06]OFD Sender: No OFD packet to send [15:33:11]OFD Sender: No OFD packet to send [15:33:16]OFD Sender: No OFD packet to send [15:33:21]OFD Sender: No OFD packet to send [15:33:26]OFD Sender: No OFD packet to send [15:33:31]OFD Sender: No OFD packet to send [15:33:36]OFD Sender: No OFD packet to send [15:33:41]OFD Sender: No OFD packet to send [15:33:46]OFD Sender: No OFD packet to send [15:33:51]OFD Sender: No OFD packet to send [15:33:56]OFD Sender: No OFD packet to send [15:34:01]OFD Sender: No OFD packet to send [15:34:06]OFD Sender: No OFD packet to send [15:34:08]accept exits with 9 [15:34:08]New connection [15:34:08]New thread 3066850660 created [15:34:08]Thread 3066707300 joined [15:34:08]Waiting for new connection... [15:34:08] Sock 9.Parse request [15:34:08]Sock 9.Check first char [15:34:08]Sock 9.First char is OK [15:34:08]request: POST /json_proto HTTP/1.0 [15:34:08]Method: POST [15:34:08]URL: /json_proto [15:34:08]Method is POST - this is cgi request [15:34:08]url: /json_proto [15:34:08]query_string will be loaded in cgi processing [15:34:08]execute_cgi json_proto POST (null) [15:34:08]execute_cgi path=json_proto method=POST [15:34:08]POST find Content-Length [15:34:08]Host: 172.17.52.132:8080 [15:34:08]Content-Length: 945 [15:34:08]Content-Type: application/json [15:34:08] [15:34:08]POST finish read [15:34:08]Found Content-Length = 945 [15:34:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99874", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:08]execute_script... [15:34: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 : (3)99874", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:34:08]POST & json_proto [15:34:08]process_json_proto [15:34:08]json parsed OK: [15:34:08]protocol is kg_v1.0 [15:34:08]action value=close_receipt [15:34:08]process_action close_receipt [15:34:08]cmd_close_receipt [15:34:08]MH_GetDate [15:34:08]Write to MH i2c: F0 00 00 17 2D 33 [15:34:08]Write i2c OK [15:34:08]MH_I2C_Read... [15:34:08]Read from MH i2c: F0 [15:34:08]MH_I2C_Read... [15:34:08]Read from MH i2c: F0 09 00 [15:34:08]MH_I2C_Read... [15:34:08]Read from MH i2c: F0 09 00 17 2D 00 F5 7F 12 67 5A BE F6 66 9D [15:34:08]GetLastDocTimeStamp 1729265138 [15:34:08]current date 1729265653 [15:34:08]FM_GetShiftState [15:34:08]SAM_PROTO_GetShiftState [15:34:08]wFMCommunicate request_size=4 [15:34:08]MH_SAM_APDU [15:34:08]CAPDU: 80 13 01 00 [15:34:08]Write to MH i2c: E2 08 00 18 2D 80 13 01 00 00 00 00 00 C2 [15:34:08]Write i2c OK [15:34:08]MH_I2C_Read... [15:34:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:08]Read from MH i2c: E2 [15:34:08]MH_I2C_Read... [15:34:08]Read from MH i2c: E2 0E 00 [15:34:08]MH_I2C_Read... [15:34:08]Read from MH i2c: E2 0E 00 18 2D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 60 [15:34:08]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:34:08]wFMCommunicate OK [15:34:08]SAM_PROTO_GetShiftState done [15:34:08]FM_GetShiftState done [15:34:08]opened in 1729209717 [15:34:08]opened+sec_in_day 1729296117 [15:34:08]quantity*price = 4000 [15:34:08]sum+1 = 4001 [15:34:08]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065001445 Шок батончик Snickers 50,5г 1.000 * 59.00 = 59.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 99.00 ÐСП 1% : 0.87 ÐДС 12% : 10.51 Ðаличными: 99.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 109 18.10.2024 15:34 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2484 ФПД: 122855147361301 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T153413&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2484&fm=122855147361301&tin=02508201610067®Number=0000000000207295&sum=9900 0 [15:34:10]StoreToDocumentArchive [15:34:10]shift 22 fd 2484 [15:34:10]save to /storage/0022/doc_00002484 [15:34:10]save last doc name /storage/0022/doc_00002484 to /storage/kkm_last_doc_name [15:34:10]save OK [15:34:10]Clear old archive folders... [15:34:10]ProcessDocumentItem done err = 0, tmpTLVsize=409 [15:34:10]tlvbuf is 013BA500 [15:34:10]SAM_PROTO_ClearQueue [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 09 00 00 [15:34:10]Write to MH i2c: E2 08 00 25 2D 80 09 00 00 00 00 00 00 C4 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 25 2D 00 90 00 C6 [15:34:10]RAPDU: 90 00 [15:34:10]wFMCommunicate OK [15:34:10]SAM_PROTO_ClearQueue done [15:34:10]KKMCreateOFDPacket [15:34:10]OFDProtocolAddRootSTLVToBuf [15:34:10]FM_MakeSignedData [15:34:10]FM_MakeSignedData [15:34:10]SAM_PROTO_SignData [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 0D 01 02 [15:34:10]Write to MH i2c: E2 08 00 26 2D 80 0D 01 02 00 00 00 00 CC [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 26 2D 00 90 00 C7 [15:34:10]RAPDU: 90 00 [15:34:10]wFMCommunicate OK [15:34:10]wFMCommunicate request_size=255 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [15:34:10]Write to MH i2c: E2 02 01 27 2D 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 F2 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 27 2D 00 90 00 C8 [15:34:10]RAPDU: 90 00 [15:34:10]wFMCommunicate OK [15:34:10]wFMCommunicate request_size=168 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 0D 02 02 A3 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F5 7F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B4 09 00 00 35 04 06 00 6F BC 71 6A D4 15 [15:34:10]Write to MH i2c: E2 AB 00 28 2D 80 0D 02 02 A3 00 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F5 7F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B4 09 00 00 35 04 06 00 6F BC 71 6A D4 15 00 00 83 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 03 00 28 2D 00 90 00 C9 [15:34:10]RAPDU: 90 00 [15:34:10]wFMCommunicate OK [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 0D 03 02 [15:34:10]Write to MH i2c: E2 08 00 29 2D 80 0D 03 02 00 00 00 00 D1 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 0B 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 0B 00 29 2D 00 8B D1 E5 75 8C 59 FD 54 90 00 BE [15:34:10]RAPDU: 8B D1 E5 75 8C 59 FD 54 90 00 [15:34:10]wFMCommunicate OK [15:34:10]SAM_PROTO_SignData done [15:34:10]FM_MakeSignedData done [15:34:10]CreateOFDProtocolMessage [15:34:10]wFMCommunicate request_size=4 [15:34:10]MH_SAM_APDU [15:34:10]CAPDU: 80 11 00 00 [15:34:10]Write to MH i2c: E2 08 00 2A 2D 80 11 00 00 00 00 00 00 D1 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:10]Read from MH i2c: E2 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 17 00 [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: E2 17 00 2A 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 19 [15:34:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:34:10]wFMCommunicate OK [15:34:10]CreateOFDProtocolMessage done [15:34:10]OFDSenderStorePacket 2484 [15:34:10]StoreOFDPacket docnum=2484 [15:34:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 AD 01 00 00 40 FB A5 01 C8 7F 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F5 7F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B4 09 00 00 35 04 06 00 6F BC 71 6A D4 15 8B D1 E5 75 8C 59 FD 54 [15:34:10]CheckFolder [15:34:10]dirname=/storage/ofd_packets [15:34:10]CheckFolder done [15:34:10]ProducePacketName [15:34:10]name=ofd_packets/00002484 [15:34:10]NVStorageSaveData ofd_packets/00002484 [15:34:10]File name is /storage/ofd_packets/00002484 [15:34:10]Write 459 bytes [15:34:10]NVStorageSaveData done [15:34:10]OFDSenderStorePacket done [15:34:10]KKMCreateOFDPacket done [15:34:10]NVStorageSaveData kkm_last_timestamp [15:34:10]File name is /storage/kkm_last_timestamp [15:34:10]Write 4 bytes [15:34:10]NVStorageSaveData done [15:34:10]ExternCall_PrintAddStr [15:34:10]wPrintStart [15:34:10]Write to MH i2c: 01 00 00 2B 2D 58 [15:34:10]Write i2c OK [15:34:10]MH_I2C_Read... [15:34:10]Read from MH i2c: 01 [15:34:11]MH_I2C_Read... [15:34:11]OFD Sender: Processing packet 2484 [packets to send 1, broken 0] [15:34:11]Read from MH i2c: ProducePacketName [15:34:11]01 name=ofd_packets/00002484 [15:34:11]07 00 OFD Sender: To server: ‡•öpG, [15:34:11] [15:34:11]CommunicateWithHost lk.salyk.kg:30040 [15:34:11]MH_I2C_Read... [15:34:11]ConnectInit lk.salyk.kg [15:34:11]Read from MH i2c: 01 07 00 2B 2D 00 00 00 00 00 FF 0F 6D [15:34:11]RasterBufferAndPrint [15:34:11]line Счет N : (3)99874 [15:34:11]line ИÐÐ: 02508201610067 [15:34:11]line Контрольно-КаÑÑовый Чек [15:34:11]line ПРОДÐЖР[15:34:11]line Товар: 4700003010483 [15:34:11]line Ðапиток Let`s Go! Ñ/Ñ Ñблоко ПЭТ 0,5л [15:34:11]line 1.000 * 40.00 [15:34:11]line = 40.00 [15:34:11]line ÐДС 12% ÐСП 1% [15:34:11]line > о реализуемом товаре [15:34:11]line Товар: 4607065001445 [15:34:11]line Шок батончик Snickers 50,5г [15:34:11]line 1.000 * 59.00 [15:34:11]line = 59.00 [15:34:11]line ÐДС 12% ÐСП 1% [15:34:11]line > о реализуемом товаре [15:34:11]line ИТОГО: 99.00 [15:34:11]line ÐСП 1% : 0.87 [15:34:11]line ÐДС 12% : 10.51 [15:34:11]line Ðаличными: 99.00 [15:34:11]line Безнал.: 0.00 [15:34:11]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:34:11]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:34:11]line СÐО: Общий режим [15:34:11]line Чек 109 18.10.2024 15:34 [15:34:11]line Смена: 22 ФФД: 1.0 [15:34:11]line ЗÐМ: 0300000191 [15:34:11]line РÐМ: 0000000000207295 [15:34:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:34:11]line ФМ: 0000000002342820 [15:34:11]line ФД: 2484 [15:34:11]line ФПД: 122855147361301 [15:34:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T153413&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2484&fm=122855147361301&tin=02508201610067®Number=0000000000207295&sum=9900 [15:34:11]line 0 [15:34:11]written 0, free lines is 4095 [15:34:11]Connected sock=7 [15:34:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 AD 01 00 00 40 FB A5 01 C8 7F 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 F5 7F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B4 09 00 00 35 04 06 00 6F BC 71 6A D4 15 8B D1 E5 75 8C 59 FD 54 [15:34:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 2D E3 47 00 64 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B4 09 00 00 F4 03 04 00 59 2B 12 67 B6 04 01 00 00 85 F0 29 50 FA 1A 61 E2 [15:34:11]CommunicateWithHost err = 0 [15:34:11]CheckOFDResponse [15:34:11]1017 (14) - 77093643461234 [15:34:11]1041 (16) - 0000000002342820 [15:34:11]1040 (4) - 2484 [15:34:11]1012 (4) - 18.10.2024 09:33 [15:34:11]1206 (1) - 0 [15:34:11]OFD Sender: Remove packet 2484 [15:34:11]ProducePacketName [15:34:11]name=ofd_packets/00002484 [15:34:11]NVStorageDeleteData [15:34:11]Write to MH i2c: 01 00 00 5A 2D 87 [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: 01 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: 01 07 00 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: 01 07 00 5A 2D 00 00 00 00 00 59 0C F3 [15:34:11]RasterBufferAndPrint [15:34:11]line [15:34:11]line [15:34:11]line [15:34:11]line [15:34:11]line [15:34:11]written 0, free lines is 3167 [15:34:11]MH_Cut [15:34:11]Write to MH i2c: D1 01 00 61 2D 01 60 [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: D1 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: D1 01 00 [15:34:11]MH_I2C_Read... [15:34:11]Read from MH i2c: D1 01 00 61 2D 00 5F [15:34:11]Write to MH i2c: 01 00 00 62 2D 8F [15:34:11]Write i2c OK [15:34:11]MH_I2C_Read... [15:34:11]OFD Sender: No OFD packet to send [15:34:12]*** Cut start [15:34:12]*** Partial cut [15:34:12]*** CUTSNS_PIN = 1 [15:34:12]*** CUTSNS_PIN = 0 [15:34:12]*** Brake cut motor [15:34:13]Read from MH i2c: 01 [15:34:13]MH_I2C_Read... [15:34:13]*** Stop cut motor [15:34:13]*** Cut end [15:34:13]Read from MH i2c: 01 07 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: 01 07 00 62 2D 00 00 00 00 00 FF 0F A4 [15:34:13]process_action close_receipt done [15:34:13]requested_data is exist [15:34:13]produce_requested_data [15:34:13]requested_item fm.sn is exist - process it [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 11 00 00 [15:34:13]Write to MH i2c: E2 08 00 63 2D 80 11 00 00 00 00 00 00 0A [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 17 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 17 00 63 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 52 [15:34:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:34:13]wFMCommunicate OK [15:34:13]requested_item fd.num is exist - process it [15:34:13]SAM_PROTO_GetFieldsCounters [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 13 00 00 [15:34:13]Write to MH i2c: E2 08 00 64 2D 80 13 00 00 00 00 00 00 0D [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 62 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 62 00 64 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B4 09 00 00 0E 04 04 00 16 00 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 3D [15:34:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B4 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 6D 00 00 00 5E 04 04 00 6D 00 00 00 57 04 04 00 6E 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:13]wFMCommunicate OK [15:34:13]SAM_PROTO_GetFieldsCounters done [15:34:13]requested_item shift.num is exist - process it [15:34:13]requested_item shift.opened is exist - process it [15:34:13]req_shift_opened [15:34:13]FM_GetShiftState [15:34:13]SAM_PROTO_GetShiftState [15:34:13]wFMCommunicate request_size=4 [15:34:13]MH_SAM_APDU [15:34:13]CAPDU: 80 13 01 00 [15:34:13]Write to MH i2c: E2 08 00 65 2D 80 13 01 00 00 00 00 00 0F [15:34:13]Write i2c OK [15:34:13]MH_I2C_Read... [15:34:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:13]Read from MH i2c: E2 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 0E 00 [15:34:13]MH_I2C_Read... [15:34:13]Read from MH i2c: E2 0E 00 65 2D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 AD [15:34:13]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:34:13]wFMCommunicate OK [15:34:13]SAM_PROTO_GetShiftState done [15:34:13]FM_GetShiftState done [15:34:13]req_shift_opened done [15:34:13]requested_item shift.open_date is exist - process it [15:34:13]req_shift_open_date [15:34:13]req_shift_open_date done [15:34:13]produce_requested_data done [15:34:13]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2484,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:34:13]process_action_free close_receipt [15:34:13]json_value_free [15:34:13]json_value_free done [15:34:13]process_json_proto returns [15:34:13]Send response to host [15:34:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2484,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:34:13]free response buf [15:34:13]execute_script done [15:34:13]execute_script returns [15:34:13]free content buf [15:34:13]Sock 9.Close socket [15:34:13]Sock 9.Thread stoped [15:34:16]OFD Sender: No OFD packet to send [15:34:21]OFD Sender: No OFD packet to send [15:34:26]OFD Sender: No OFD packet to send [15:34:31]OFD Sender: No OFD packet to send [15:34:36]OFD Sender: No OFD packet to send [15:34:41]OFD Sender: No OFD packet to send [15:34:46]OFD Sender: No OFD packet to send [15:34:51]OFD Sender: No OFD packet to send [15:34:56]OFD Sender: No OFD packet to send [15:35:01]OFD Sender: No OFD packet to send [15:35:06]OFD Sender: No OFD packet to send [15:35:11]OFD Sender: No OFD packet to send [15:35:16]OFD Sender: No OFD packet to send [15:35:21]OFD Sender: No OFD packet to send [15:35:26]OFD Sender: No OFD packet to send [15:35:32]OFD Sender: No OFD packet to send [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:48]accept exits with 10 [15:35:48]New connection [15:35:48]New thread 3066707300 created [15:35:48]Thread 3066850660 joined [15:35:48]Waiting for new connection... [15:35:48] Sock 10.Parse request [15:35:48]Sock 10.Check first char [15:35:48]Sock 10.First char is OK [15:35:48]request: POST /json_proto HTTP/1.0 [15:35:48]Method: POST [15:35:48]URL: /json_proto [15:35:48]Method is POST - this is cgi request [15:35:48]url: /json_proto [15:35:48]query_string will be loaded in cgi processing [15:35:48]execute_cgi json_proto POST (null) [15:35:48]execute_cgi path=json_proto method=POST [15:35:48]POST find Content-Length [15:35:48]Host: 172.17.52.132:8080 [15:35:48]Content-Length: 830 [15:35:48]Content-Type: application/json [15:35:48] [15:35:48]POST finish read [15:35:48]Found Content-Length = 830 [15:35:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99876", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:48]execute_script... [15:35: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 : (3)99876", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:48]POST & json_proto [15:35:48]process_json_proto [15:35:48]json parsed OK: [15:35:48]protocol is kg_v1.0 [15:35:48]action value=close_receipt [15:35:48]process_action close_receipt [15:35:48]cmd_close_receipt [15:35:48]MH_GetDate [15:35:48]Write to MH i2c: F0 00 00 66 2D 82 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: F0 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: F0 09 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: F0 09 00 66 2D 00 59 80 12 67 5A BE F6 66 51 [15:35:48]GetLastDocTimeStamp 1729265653 [15:35:48]current date 1729265753 [15:35:48]FM_GetShiftState [15:35:48]SAM_PROTO_GetShiftState [15:35:48]wFMCommunicate request_size=4 [15:35:48]MH_SAM_APDU [15:35:48]CAPDU: 80 13 01 00 [15:35:48]Write to MH i2c: E2 08 00 67 2D 80 13 01 00 00 00 00 00 11 [15:35:48]Write i2c OK [15:35:48]MH_I2C_Read... [15:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:48]Read from MH i2c: E2 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 0E 00 [15:35:48]MH_I2C_Read... [15:35:48]Read from MH i2c: E2 0E 00 67 2D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 AF [15:35:48]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:35:48]wFMCommunicate OK [15:35:48]SAM_PROTO_GetShiftState done [15:35:48]FM_GetShiftState done [15:35:48]opened in 1729209717 [15:35:48]opened+sec_in_day 1729296117 [15:35:48]quantity*price = 9500 [15:35:48]sum+1 = 9501 [15:35:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 0.00 Безнал.: 95.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 110 18.10.2024 15:35 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000002342820 ФД: 2485 ФПД: 58601411807984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T153553&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2485&fm=58601411807984&tin=02508201610067®Number=0000000000207295&sum=9500 0 [15:35:49]StoreToDocumentArchive [15:35:49]shift 22 fd 2485 [15:35:49]save to /storage/0022/doc_00002485 [15:35:49]save last doc name /storage/0022/doc_00002485 to /storage/kkm_last_doc_name [15:35:49]save OK [15:35:49]Clear old archive folders... [15:35:49]ProcessDocumentItem done err = 0, tmpTLVsize=293 [15:35:49]tlvbuf is 013B17D0 [15:35:49]SAM_PROTO_ClearQueue [15:35:49]wFMCommunicate request_size=4 [15:35:49]MH_SAM_APDU [15:35:49]CAPDU: 80 09 00 00 [15:35:49]Write to MH i2c: E2 08 00 74 2D 80 09 00 00 00 00 00 00 13 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:49]Read from MH i2c: E2 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 74 2D 00 90 00 15 [15:35:49]RAPDU: 90 00 [15:35:49]wFMCommunicate OK [15:35:49]SAM_PROTO_ClearQueue done [15:35:49]KKMCreateOFDPacket [15:35:49]OFDProtocolAddRootSTLVToBuf [15:35:49]FM_MakeSignedData [15:35:49]FM_MakeSignedData [15:35:49]SAM_PROTO_SignData [15:35:49]wFMCommunicate request_size=4 [15:35:49]MH_SAM_APDU [15:35:49]CAPDU: 80 0D 01 02 [15:35:49]Write to MH i2c: E2 08 00 75 2D 80 0D 01 02 00 00 00 00 1B [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:49]Read from MH i2c: E2 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 [15:35:49]MH_I2C_Read... [15:35:49]Read from MH i2c: E2 03 00 75 2D 00 90 00 16 [15:35:49]RAPDU: 90 00 [15:35:49]wFMCommunicate OK [15:35:49]wFMCommunicate request_size=255 [15:35:49]MH_SAM_APDU [15:35:49]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 59 80 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [15:35:49]Write to MH i2c: E2 02 01 76 2D 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 59 80 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 91 [15:35:49]Write i2c OK [15:35:49]MH_I2C_Read... [15:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:50]Read from MH i2c: E2 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 03 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 03 00 76 2D 00 90 00 17 [15:35:50]RAPDU: 90 00 [15:35:50]wFMCommunicate OK [15:35:50]wFMCommunicate request_size=52 [15:35:50]MH_SAM_APDU [15:35:50]CAPDU: 80 0D 02 02 2F 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B5 09 00 00 35 04 06 00 35 4C 34 55 8A F0 [15:35:50]Write to MH i2c: E2 37 00 77 2D 80 0D 02 02 2F 00 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B5 09 00 00 35 04 06 00 35 4C 34 55 8A F0 00 00 18 [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:50]Read from MH i2c: E2 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 03 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 03 00 77 2D 00 90 00 18 [15:35:50]RAPDU: 90 00 [15:35:50]wFMCommunicate OK [15:35:50]wFMCommunicate request_size=4 [15:35:50]MH_SAM_APDU [15:35:50]CAPDU: 80 0D 03 02 [15:35:50]Write to MH i2c: E2 08 00 78 2D 80 0D 03 02 00 00 00 00 20 [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:50]Read from MH i2c: E2 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 0B 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 0B 00 78 2D 00 58 99 45 D3 AA D2 16 71 90 00 2D [15:35:50]RAPDU: 58 99 45 D3 AA D2 16 71 90 00 [15:35:50]wFMCommunicate OK [15:35:50]SAM_PROTO_SignData done [15:35:50]FM_MakeSignedData done [15:35:50]CreateOFDProtocolMessage [15:35:50]wFMCommunicate request_size=4 [15:35:50]MH_SAM_APDU [15:35:50]CAPDU: 80 11 00 00 [15:35:50]Write to MH i2c: E2 08 00 79 2D 80 11 00 00 00 00 00 00 20 [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:50]Read from MH i2c: E2 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 17 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: E2 17 00 79 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 68 [15:35:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:35:50]wFMCommunicate OK [15:35:50]CreateOFDProtocolMessage done [15:35:50]OFDSenderStorePacket 2485 [15:35:50]StoreOFDPacket docnum=2485 [15:35:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 39 01 00 00 6F 46 31 01 29 35 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 59 80 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B5 09 00 00 35 04 06 00 35 4C 34 55 8A F0 58 99 45 D3 AA D2 16 71 [15:35:50]CheckFolder [15:35:50]dirname=/storage/ofd_packets [15:35:50]CheckFolder done [15:35:50]ProducePacketName [15:35:50]name=ofd_packets/00002485 [15:35:50]NVStorageSaveData ofd_packets/00002485 [15:35:50]File name is /storage/ofd_packets/00002485 [15:35:50]Write 343 bytes [15:35:50]NVStorageSaveData done [15:35:50]OFDSenderStorePacket done [15:35:50]KKMCreateOFDPacket done [15:35:50]NVStorageSaveData kkm_last_timestamp [15:35:50]File name is /storage/kkm_last_timestamp [15:35:50]Write 4 bytes [15:35:50]NVStorageSaveData done [15:35:50]ExternCall_PrintAddStr [15:35:50]wPrintStart [15:35:50]Write to MH i2c: 01 00 00 7A 2D A7 [15:35:50]Write i2c OK [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: 01 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: 01 07 00 [15:35:50]MH_I2C_Read... [15:35:50]Read from MH i2c: 01 07 00 7A 2D 00 00 00 00 00 FF 0F BC [15:35:50]RasterBufferAndPrint [15:35:50]line Счет N : (3)99876 [15:35:50]line ИÐÐ: 02508201610067 [15:35:50]line Контрольно-КаÑÑовый Чек [15:35:50]line ПРОДÐЖР[15:35:50]line Товар: 4700000480050 [15:35:50]line Ðапиток Nitro Energy Ñн green ж/б 0,45л [15:35:50]line 1.000 * 95.00 [15:35:50]line = 95.00 [15:35:50]line ÐДС 12% ÐСП 1% [15:35:50]line > о реализуемом товаре [15:35:50]line ИТОГО: 95.00 [15:35:50]line ÐСП 1% : 0.84 [15:35:50]line ÐДС 12% : 10.09 [15:35:50]line Ðаличными: 0.00 [15:35:50]line Безнал.: 95.00 [15:35:50]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:35:50]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:35:50]line СÐО: Общий режим [15:35:50]line Чек 110 18.10.2024 15:35 [15:35:50]line Смена: 22 ФФД: 1.0 [15:35:50]line ЗÐМ: 0300000191 [15:35:50]line РÐМ: 0000000000207295 [15:35:50]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:35:50]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [15:35:50]line ФМ: 0000000002342820 [15:35:50]line ФД: 2485 [15:35:50]line ФПД: 58601411807984 [15:35:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T153553&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2485&fm=58601411807984&tin=02508201610067®Number=0000000000207295&sum=9500 [15:35:50]line 0 [15:35:50]OFD Sender: Processing packet 2485 [packets to send 1, broken 0] [15:35:50]ProducePacketName [15:35:50]name=ofd_packets/00002485 [15:35:50]OFD Sender: To server: ‡•öpG, [15:35:50]CommunicateWithHost lk.salyk.kg:30040 [15:35:50]ConnectInit lk.salyk.kg [15:35:50]written 0, free lines is 4095 [15:35:50]Connected sock=9 [15:35:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 39 01 00 00 6F 46 31 01 29 35 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 59 80 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B5 09 00 00 35 04 06 00 35 4C 34 55 8A F0 58 99 45 D3 AA D2 16 71 [15:35:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 EC C6 47 00 0B 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B5 09 00 00 F4 03 04 00 BD 2B 12 67 B6 04 01 00 00 82 4A FE C3 F3 D9 3C 2F [15:35:51]CommunicateWithHost err = 0 [15:35:51]CheckOFDResponse [15:35:51]1017 (14) - 77093643461234 [15:35:51]1041 (16) - 0000000002342820 [15:35:51]1040 (4) - 2485 [15:35:51]1012 (4) - 18.10.2024 09:34 [15:35:51]1206 (1) - 0 [15:35:51]OFD Sender: Remove packet 2485 [15:35:51]ProducePacketName [15:35:51]name=ofd_packets/00002485 [15:35:51]NVStorageDeleteData [15:35:51]Write to MH i2c: 01 00 00 A5 2D D2 [15:35:51]Write i2c OK [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: 01 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: 01 07 00 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: 01 07 00 A5 2D 00 00 00 00 00 89 0C 6E [15:35:51]RasterBufferAndPrint [15:35:51]line [15:35:51]line [15:35:51]line [15:35:51]line [15:35:51]line [15:35:51]written 0, free lines is 3212 [15:35:51]MH_Cut [15:35:51]Write to MH i2c: D1 01 00 AC 2D 01 AB [15:35:51]Write i2c OK [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: D1 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: D1 01 00 [15:35:51]MH_I2C_Read... [15:35:51]Read from MH i2c: D1 01 00 AC 2D 00 AA [15:35:51]Write to MH i2c: 01 00 00 AD 2D DA [15:35:51]Write i2c OK [15:35:51]MH_I2C_Read... [15:35:51]OFD Sender: No OFD packet to send [15:35:52]*** Cut start [15:35:52]*** Partial cut [15:35:52]*** CUTSNS_PIN = 1 [15:35:52]*** CUTSNS_PIN = 0 [15:35:52]*** Brake cut motor [15:35:52]Read from MH i2c: 01 [15:35:52]MH_I2C_Read... [15:35:52]*** Stop cut motor [15:35:52]*** Cut end [15:35:52]Read from MH i2c: 01 07 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: 01 07 00 AD 2D 00 00 00 00 00 FF 0F EF [15:35:52]process_action close_receipt done [15:35:52]requested_data is exist [15:35:52]produce_requested_data [15:35:52]requested_item fm.sn is exist - process it [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 11 00 00 [15:35:52]Write to MH i2c: E2 08 00 AE 2D 80 11 00 00 00 00 00 00 55 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 17 00 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 17 00 AE 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 9D [15:35:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:35:52]wFMCommunicate OK [15:35:52]requested_item fd.num is exist - process it [15:35:52]SAM_PROTO_GetFieldsCounters [15:35:52]wFMCommunicate request_size=4 [15:35:52]MH_SAM_APDU [15:35:52]CAPDU: 80 13 00 00 [15:35:52]Write to MH i2c: E2 08 00 AF 2D 80 13 00 00 00 00 00 00 58 [15:35:52]Write i2c OK [15:35:52]MH_I2C_Read... [15:35:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:52]Read from MH i2c: E2 [15:35:52]MH_I2C_Read... [15:35:52]Read from MH i2c: E2 62 00 [15:35:52]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 62 00 AF 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B5 09 00 00 0E 04 04 00 16 00 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 8C [15:35:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B5 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 6E 00 00 00 5E 04 04 00 6E 00 00 00 57 04 04 00 6F 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:35:53]wFMCommunicate OK [15:35:53]SAM_PROTO_GetFieldsCounters done [15:35:53]requested_item shift.num is exist - process it [15:35:53]requested_item shift.opened is exist - process it [15:35:53]req_shift_opened [15:35:53]FM_GetShiftState [15:35:53]SAM_PROTO_GetShiftState [15:35:53]wFMCommunicate request_size=4 [15:35:53]MH_SAM_APDU [15:35:53]CAPDU: 80 13 01 00 [15:35:53]Write to MH i2c: E2 08 00 B0 2D 80 13 01 00 00 00 00 00 5A [15:35:53]Write i2c OK [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 [15:35:53]MH_I2C_Read... [15:35:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:53]Read from MH i2c: E2 0E 00 [15:35:53]MH_I2C_Read... [15:35:53]Read from MH i2c: E2 0E 00 B0 2D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 F8 [15:35:53]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:35:53]wFMCommunicate OK [15:35:53]SAM_PROTO_GetShiftState done [15:35:53]FM_GetShiftState done [15:35:53]req_shift_opened done [15:35:53]requested_item shift.open_date is exist - process it [15:35:53]req_shift_open_date [15:35:53]req_shift_open_date done [15:35:53]produce_requested_data done [15:35:53]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2485,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:35:53]process_action_free close_receipt [15:35:53]json_value_free [15:35:53]json_value_free done [15:35:53]process_json_proto returns [15:35:53]Send response to host [15:35:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2485,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:35:53]free response buf [15:35:53]execute_script done [15:35:53]execute_script returns [15:35:53]free content buf [15:35:53]Sock 10.Close socket [15:35:53]Sock 10.Thread stoped [15:35:56]OFD Sender: No OFD packet to send [15:36:01]OFD Sender: No OFD packet to send [15:36:06]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:51]OFD Sender: No OFD packet to send [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:31]OFD Sender: No OFD packet to send [15:40:36]OFD Sender: No OFD packet to send [15:40:41]OFD Sender: No OFD packet to send [15:40:46]OFD Sender: No OFD packet to send [15:40:51]OFD Sender: No OFD packet to send [15:40:56]OFD Sender: No OFD packet to send [15:41:01]OFD Sender: No OFD packet to send [15:41:06]OFD Sender: No OFD packet to send [15:41:11]OFD Sender: No OFD packet to send [15:41:16]OFD Sender: No OFD packet to send [15:41:21]OFD Sender: No OFD packet to send [15:41:26]OFD Sender: No OFD packet to send [15:41:31]OFD Sender: No OFD packet to send [15:41:36]OFD Sender: No OFD packet to send [15:41:41]OFD Sender: No OFD packet to send [15:41:46]OFD Sender: No OFD packet to send [15:41:47]accept exits with 7 [15:41:47]New connection [15:41:47]New thread 3066850660 created [15:41:47]Thread 3066707300 joined [15:41:47]Waiting for new connection... [15:41:47] Sock 7.Parse request [15:41:47]Sock 7.Check first char [15:41:47]Sock 7.First char is OK [15:41:47]request: POST /json_proto HTTP/1.0 [15:41:47]Method: POST [15:41:47]URL: /json_proto [15:41:47]Method is POST - this is cgi request [15:41:47]url: /json_proto [15:41:47]query_string will be loaded in cgi processing [15:41:47]execute_cgi json_proto POST (null) [15:41:47]execute_cgi path=json_proto method=POST [15:41:47]POST find Content-Length [15:41:47]Host: 172.17.52.132:8080 [15:41:47]Content-Length: 627 [15:41:47]Content-Type: application/json [15:41:47] [15:41:47]POST finish read [15:41:47]Found Content-Length = 627 [15:41:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99877", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:47]execute_script... [15:41: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 : (3)99877", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:41:47]POST & json_proto [15:41:47]process_json_proto [15:41:47]json parsed OK: [15:41:47]protocol is kg_v1.0 [15:41:47]action value=close_receipt [15:41:47]process_action close_receipt [15:41:47]cmd_close_receipt [15:41:47]MH_GetDate [15:41:47]Write to MH i2c: F0 00 00 B1 2D CD [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: F0 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: F0 09 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: F0 09 00 B1 2D 00 C0 81 12 67 5A BE F6 66 04 [15:41:47]GetLastDocTimeStamp 1729265753 [15:41:47]current date 1729266112 [15:41:47]FM_GetShiftState [15:41:47]SAM_PROTO_GetShiftState [15:41:47]wFMCommunicate request_size=4 [15:41:47]MH_SAM_APDU [15:41:47]CAPDU: 80 13 01 00 [15:41:47]Write to MH i2c: E2 08 00 B2 2D 80 13 01 00 00 00 00 00 5C [15:41:47]Write i2c OK [15:41:47]MH_I2C_Read... [15:41:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:47]Read from MH i2c: E2 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 0E 00 [15:41:47]MH_I2C_Read... [15:41:47]Read from MH i2c: E2 0E 00 B2 2D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 FA [15:41:47]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:41:47]wFMCommunicate OK [15:41:47]SAM_PROTO_GetShiftState done [15:41:47]FM_GetShiftState done [15:41:47]opened in 1729209717 [15:41:47]opened+sec_in_day 1729296117 [15:41:47]quantity*price = 13900 [15:41:47]sum+1 = 13901 [15:41:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 ÐСП 1% : 1.23 ÐДС 12% : 14.76 Ðаличными: 139.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 111 18.10.2024 15:41 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2486 ФПД: 246883810713012 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T154152&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2486&fm=246883810713012&tin=02508201610067®Number=0000000000207295&sum=13900 0 [15:41:48]StoreToDocumentArchive [15:41:48]shift 22 fd 2486 [15:41:48]save to /storage/0022/doc_00002486 [15:41:48]save last doc name /storage/0022/doc_00002486 to /storage/kkm_last_doc_name [15:41:48]save OK [15:41:48]Clear old archive folders... [15:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:41:48]tlvbuf is 014165D0 [15:41:48]SAM_PROTO_ClearQueue [15:41:48]wFMCommunicate request_size=4 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 09 00 00 [15:41:48]Write to MH i2c: E2 08 00 BF 2D 80 09 00 00 00 00 00 00 5E [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:48]Read from MH i2c: E2 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 03 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 03 00 BF 2D 00 90 00 60 [15:41:48]RAPDU: 90 00 [15:41:48]wFMCommunicate OK [15:41:48]SAM_PROTO_ClearQueue done [15:41:48]KKMCreateOFDPacket [15:41:48]OFDProtocolAddRootSTLVToBuf [15:41:48]FM_MakeSignedData [15:41:48]FM_MakeSignedData [15:41:48]SAM_PROTO_SignData [15:41:48]wFMCommunicate request_size=4 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 0D 01 02 [15:41:48]Write to MH i2c: E2 08 00 C0 2D 80 0D 01 02 00 00 00 00 66 [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:48]Read from MH i2c: E2 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 03 00 [15:41:48]MH_I2C_Read... [15:41:48]Read from MH i2c: E2 03 00 C0 2D 00 90 00 61 [15:41:48]RAPDU: 90 00 [15:41:48]wFMCommunicate OK [15:41:48]wFMCommunicate request_size=255 [15:41:48]MH_SAM_APDU [15:41:48]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 C0 81 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 [15:41:48]Write to MH i2c: E2 02 01 C1 2D 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 C0 81 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 00 00 76 [15:41:48]Write i2c OK [15:41:48]MH_I2C_Read... [15:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:49]Read from MH i2c: E2 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 03 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 03 00 C1 2D 00 90 00 62 [15:41:49]RAPDU: 90 00 [15:41:49]wFMCommunicate OK [15:41:49]wFMCommunicate request_size=39 [15:41:49]MH_SAM_APDU [15:41:49]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B6 09 00 00 35 04 06 00 E0 8A 1D D6 9D B4 [15:41:49]Write to MH i2c: E2 2A 00 C2 2D 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B6 09 00 00 35 04 06 00 E0 8A 1D D6 9D B4 00 00 86 [15:41:49]Write i2c OK [15:41:49]MH_I2C_Read... [15:41:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:49]Read from MH i2c: E2 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 03 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 03 00 C2 2D 00 90 00 63 [15:41:49]RAPDU: 90 00 [15:41:49]wFMCommunicate OK [15:41:49]wFMCommunicate request_size=4 [15:41:49]MH_SAM_APDU [15:41:49]CAPDU: 80 0D 03 02 [15:41:49]Write to MH i2c: E2 08 00 C3 2D 80 0D 03 02 00 00 00 00 6B [15:41:49]Write i2c OK [15:41:49]MH_I2C_Read... [15:41:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:49]Read from MH i2c: E2 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 0B 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 0B 00 C3 2D 00 BE 6C 69 3F A1 83 17 4D 90 00 C6 [15:41:49]RAPDU: BE 6C 69 3F A1 83 17 4D 90 00 [15:41:49]wFMCommunicate OK [15:41:49]SAM_PROTO_SignData done [15:41:49]FM_MakeSignedData done [15:41:49]CreateOFDProtocolMessage [15:41:49]wFMCommunicate request_size=4 [15:41:49]MH_SAM_APDU [15:41:49]CAPDU: 80 11 00 00 [15:41:49]Write to MH i2c: E2 08 00 C4 2D 80 11 00 00 00 00 00 00 6B [15:41:49]Write i2c OK [15:41:49]MH_I2C_Read... [15:41:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:49]Read from MH i2c: E2 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 17 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: E2 17 00 C4 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B3 [15:41:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:41:49]wFMCommunicate OK [15:41:49]CreateOFDProtocolMessage done [15:41:49]OFDSenderStorePacket 2486 [15:41:49]StoreOFDPacket docnum=2486 [15:41:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 B3 43 24 01 7B 61 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 C0 81 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B6 09 00 00 35 04 06 00 E0 8A 1D D6 9D B4 BE 6C 69 3F A1 83 17 4D [15:41:49]CheckFolder [15:41:49]dirname=/storage/ofd_packets [15:41:49]CheckFolder done [15:41:49]ProducePacketName [15:41:49]name=ofd_packets/00002486 [15:41:49]NVStorageSaveData ofd_packets/00002486 [15:41:49]File name is /storage/ofd_packets/00002486 [15:41:49]Write 330 bytes [15:41:49]NVStorageSaveData done [15:41:49]OFDSenderStorePacket done [15:41:49]KKMCreateOFDPacket done [15:41:49]NVStorageSaveData kkm_last_timestamp [15:41:49]File name is /storage/kkm_last_timestamp [15:41:49]Write 4 bytes [15:41:49]NVStorageSaveData done [15:41:49]ExternCall_PrintAddStr [15:41:49]wPrintStart [15:41:49]Write to MH i2c: 01 00 00 C5 2D F2 [15:41:49]Write i2c OK [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: 01 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: 01 07 00 [15:41:49]MH_I2C_Read... [15:41:49]Read from MH i2c: 01 07 00 C5 2D 00 00 00 00 00 FF 0F 07 [15:41:49]RasterBufferAndPrint [15:41:49]line Счет N : (3)99877 [15:41:49]line ИÐÐ: 02508201610067 [15:41:49]line Контрольно-КаÑÑовый Чек [15:41:49]line ПРОДÐЖР[15:41:49]line Товар: 48741231 [15:41:49]line Сигареты Winston Super Slims Silver [15:41:49]line 1.000 * 139.00 [15:41:49]line = 139.00 [15:41:49]line ÐДС 12% ÐСП 1% [15:41:49]line > о реализуемом товаре [15:41:49]line ИТОГО: 139.00 [15:41:49]line ÐСП 1% : 1.23 [15:41:49]line ÐДС 12% : 14.76 [15:41:49]line Ðаличными: 139.00 [15:41:49]line Безнал.: 0.00 [15:41:49]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:41:49]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:41:49]line СÐО: Общий режим [15:41:49]line Чек 111 18.10.2024 15:41 [15:41:49]line Смена: 22 ФФД: 1.0 [15:41:49]line ЗÐМ: 0300000191 [15:41:49]line РÐМ: 0000000000207295 [15:41:49]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:41:49]line ФМ: 0000000002342820 [15:41:49]line ФД: 2486 [15:41:49]line ФПД: 246883810713012 [15:41:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T154152&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2486&fm=246883810713012&tin=02508201610067®Number=0000000000207295&sum=13900 [15:41:49]line 0 [15:41:49]OFD Sender: Processing packet 2486 [packets to send 1, broken 0] [15:41:49]ProducePacketName [15:41:49]name=ofd_packets/00002486 [15:41:49]OFD Sender: To server: ‡•öpG, [15:41:49]CommunicateWithHost lk.salyk.kg:30040 [15:41:49]ConnectInit lk.salyk.kg [15:41:49]written 0, free lines is 4095 [15:41:49]Connected sock=10 [15:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 B3 43 24 01 7B 61 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 C0 81 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B6 09 00 00 35 04 06 00 E0 8A 1D D6 9D B4 BE 6C 69 3F A1 83 17 4D [15:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 2F 63 47 00 A0 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 32 33 34 32 38 32 30 10 04 04 00 B6 09 00 00 F4 03 04 00 24 2D 12 67 B6 04 01 00 00 43 A5 7B F3 7C 48 38 24 [15:41:49]CommunicateWithHost err = 0 [15:41:49]CheckOFDResponse [15:41:49]1017 (14) - 77093643461234 [15:41:49]1041 (16) - 0000000002342820 [15:41:49]1040 (4) - 2486 [15:41:49]1012 (4) - 18.10.2024 09:40 [15:41:49]1206 (1) - 0 [15:41:49]OFD Sender: Remove packet 2486 [15:41:49]ProducePacketName [15:41:49]name=ofd_packets/00002486 [15:41:49]NVStorageDeleteData [15:41:50]Write to MH i2c: 01 00 00 EE 2D 1B [15:41:50]Write i2c OK [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: 01 [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: 01 07 00 [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: 01 07 00 EE 2D 00 00 00 00 00 B3 0C E1 [15:41:50]RasterBufferAndPrint [15:41:50]line [15:41:50]line [15:41:50]line [15:41:50]line [15:41:50]line [15:41:50]written 0, free lines is 3255 [15:41:50]MH_Cut [15:41:50]Write to MH i2c: D1 01 00 F5 2D 01 F4 [15:41:50]Write i2c OK [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: D1 [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: D1 01 00 [15:41:50]MH_I2C_Read... [15:41:50]Read from MH i2c: D1 01 00 F5 2D 00 F3 [15:41:50]Write to MH i2c: 01 00 00 F6 2D 23 [15:41:50]Write i2c OK [15:41:50]MH_I2C_Read... [15:41:50]OFD Sender: No OFD packet to send [15:41:50]*** Cut start [15:41:50]*** Partial cut [15:41:50]*** CUTSNS_PIN = 1 [15:41:51]*** CUTSNS_PIN = 0 [15:41:51]*** Brake cut motor [15:41:51]Read from MH i2c: 01 [15:41:51]MH_I2C_Read... [15:41:51]*** Stop cut motor [15:41:51]*** Cut end [15:41:51]Read from MH i2c: 01 07 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: 01 07 00 F6 2D 00 00 00 00 00 FF 0F 38 [15:41:51]process_action close_receipt done [15:41:51]requested_data is exist [15:41:51]produce_requested_data [15:41:51]requested_item fm.sn is exist - process it [15:41:51]wFMCommunicate request_size=4 [15:41:51]MH_SAM_APDU [15:41:51]CAPDU: 80 11 00 00 [15:41:51]Write to MH i2c: E2 08 00 F7 2D 80 11 00 00 00 00 00 00 9E [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:51]Read from MH i2c: E2 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 17 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 17 00 F7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E6 [15:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:41:51]wFMCommunicate OK [15:41:51]requested_item fd.num is exist - process it [15:41:51]SAM_PROTO_GetFieldsCounters [15:41:51]wFMCommunicate request_size=4 [15:41:51]MH_SAM_APDU [15:41:51]CAPDU: 80 13 00 00 [15:41:51]Write to MH i2c: E2 08 00 F8 2D 80 13 00 00 00 00 00 00 A1 [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:51]Read from MH i2c: E2 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 62 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 62 00 F8 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B6 09 00 00 0E 04 04 00 16 00 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 D9 [15:41:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B6 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 6F 00 00 00 5E 04 04 00 6F 00 00 00 57 04 04 00 70 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:51]wFMCommunicate OK [15:41:51]SAM_PROTO_GetFieldsCounters done [15:41:51]requested_item shift.num is exist - process it [15:41:51]requested_item shift.opened is exist - process it [15:41:51]req_shift_opened [15:41:51]FM_GetShiftState [15:41:51]SAM_PROTO_GetShiftState [15:41:51]wFMCommunicate request_size=4 [15:41:51]MH_SAM_APDU [15:41:51]CAPDU: 80 13 01 00 [15:41:51]Write to MH i2c: E2 08 00 F9 2D 80 13 01 00 00 00 00 00 A3 [15:41:51]Write i2c OK [15:41:51]MH_I2C_Read... [15:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:51]Read from MH i2c: E2 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 0E 00 [15:41:51]MH_I2C_Read... [15:41:51]Read from MH i2c: E2 0E 00 F9 2D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 41 [15:41:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:41:51]wFMCommunicate OK [15:41:51]SAM_PROTO_GetShiftState done [15:41:51]FM_GetShiftState done [15:41:51]req_shift_opened done [15:41:51]requested_item shift.open_date is exist - process it [15:41:51]req_shift_open_date [15:41:51]req_shift_open_date done [15:41:51]produce_requested_data done [15:41:51]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2486,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:41:51]process_action_free close_receipt [15:41:51]json_value_free [15:41:51]json_value_free done [15:41:51]process_json_proto returns [15:41:51]Send response to host [15:41:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2486,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:41:51]free response buf [15:41:51]execute_script done [15:41:51]execute_script returns [15:41:51]free content buf [15:41:51]Sock 7.Close socket [15:41:51]Sock 7.Thread stoped [15:41:55]OFD Sender: No OFD packet to send [15:42:00]OFD Sender: No OFD packet to send [15:42:05]OFD Sender: No OFD packet to send [15:42:10]OFD Sender: No OFD packet to send [15:42:15]OFD Sender: No OFD packet to send [15:42:20]OFD Sender: No OFD packet to send [15:42:25]OFD Sender: No OFD packet to send [15:42:30]OFD Sender: No OFD packet to send [15:42:35]OFD Sender: No OFD packet to send [15:42:40]OFD Sender: No OFD packet to send [15:42:45]OFD Sender: No OFD packet to send [15:42:50]OFD Sender: No OFD packet to send [15:42:51]accept exits with 9 [15:42:51]New connection [15:42:51]New thread 3066707300 created [15:42:51]Thread 3066850660 joined [15:42:51]Waiting for new connection... [15:42:51] Sock 9.Parse request [15:42:51]Sock 9.Check first char [15:42:51]Sock 9.First char is OK [15:42:51]request: POST /json_proto HTTP/1.0 [15:42:51]Method: POST [15:42:51]URL: /json_proto [15:42:51]Method is POST - this is cgi request [15:42:51]url: /json_proto [15:42:51]query_string will be loaded in cgi processing [15:42:51]execute_cgi json_proto POST (null) [15:42:51]execute_cgi path=json_proto method=POST [15:42:51]POST find Content-Length [15:42:51]Host: 172.17.52.132:8080 [15:42:51]Content-Length: 906 [15:42:51]Content-Type: application/json [15:42:51] [15:42:51]POST finish read [15:42:51]Found Content-Length = 906 [15:42:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99878", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:51]execute_script... [15:42: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 : (3)99878", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 299.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:42:51]POST & json_proto [15:42:51]process_json_proto [15:42:51]json parsed OK: [15:42:51]protocol is kg_v1.0 [15:42:51]action value=close_receipt [15:42:51]process_action close_receipt [15:42:51]cmd_close_receipt [15:42:51]MH_GetDate [15:42:51]Write to MH i2c: F0 00 00 FA 2D 16 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: F0 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: F0 09 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: F0 09 00 FA 2D 00 00 82 12 67 5A BE F6 66 8E [15:42:51]GetLastDocTimeStamp 1729266112 [15:42:51]current date 1729266176 [15:42:51]FM_GetShiftState [15:42:51]SAM_PROTO_GetShiftState [15:42:51]wFMCommunicate request_size=4 [15:42:51]MH_SAM_APDU [15:42:51]CAPDU: 80 13 01 00 [15:42:51]Write to MH i2c: E2 08 00 FB 2D 80 13 01 00 00 00 00 00 A5 [15:42:51]Write i2c OK [15:42:51]MH_I2C_Read... [15:42:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:51]Read from MH i2c: E2 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0E 00 [15:42:51]MH_I2C_Read... [15:42:51]Read from MH i2c: E2 0E 00 FB 2D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 43 [15:42:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:42:51]wFMCommunicate OK [15:42:51]SAM_PROTO_GetShiftState done [15:42:51]FM_GetShiftState done [15:42:51]opened in 1729209717 [15:42:51]opened+sec_in_day 1729296117 [15:42:51]quantity*price = 15000 [15:42:51]sum+1 = 15001 [15:42:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48744119 Сигареты Winston Xstyle Dual 1.000 * 149.00 = 149.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 299.00 ÐСП 1% : 2.65 ÐДС 12% : 31.75 Ðаличными: 299.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 112 18.10.2024 15:42 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2487 ФПД: 239253792010038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T154256&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2487&fm=239253792010038&tin=02508201610067®Number=0000000000207295&sum=29900 0 [15:42:53]StoreToDocumentArchive [15:42:53]shift 22 fd 2487 [15:42:53]save to /storage/0022/doc_00002487 [15:42:53]save last doc name /storage/0022/doc_00002487 to /storage/kkm_last_doc_name [15:42:53]save OK [15:42:53]Clear old archive folders... [15:42:53]ProcessDocumentItem done err = 0, tmpTLVsize=390 [15:42:53]tlvbuf is 0133DDA0 [15:42:53]SAM_PROTO_ClearQueue [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 09 00 00 [15:42:53]Write to MH i2c: E2 08 00 08 2E 80 09 00 00 00 00 00 00 A8 [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 08 2E 00 90 00 AA [15:42:53]RAPDU: 90 00 [15:42:53]wFMCommunicate OK [15:42:53]SAM_PROTO_ClearQueue done [15:42:53]KKMCreateOFDPacket [15:42:53]OFDProtocolAddRootSTLVToBuf [15:42:53]FM_MakeSignedData [15:42:53]FM_MakeSignedData [15:42:53]SAM_PROTO_SignData [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 0D 01 02 [15:42:53]Write to MH i2c: E2 08 00 09 2E 80 0D 01 02 00 00 00 00 B0 [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 09 2E 00 90 00 AB [15:42:53]RAPDU: 90 00 [15:42:53]wFMCommunicate OK [15:42:53]wFMCommunicate request_size=255 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [15:42:53]Write to MH i2c: E2 02 01 0A 2E 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 BF [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 0A 2E 00 90 00 AC [15:42:53]RAPDU: 90 00 [15:42:53]wFMCommunicate OK [15:42:53]wFMCommunicate request_size=149 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 0D 02 02 90 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 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 00 82 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B7 09 00 00 35 04 06 00 D9 99 9D 48 AF 36 [15:42:53]Write to MH i2c: E2 98 00 0B 2E 80 0D 02 02 90 00 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 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 00 82 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B7 09 00 00 35 04 06 00 D9 99 9D 48 AF 36 00 00 30 [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 03 00 0B 2E 00 90 00 AD [15:42:53]RAPDU: 90 00 [15:42:53]wFMCommunicate OK [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 0D 03 02 [15:42:53]Write to MH i2c: E2 08 00 0C 2E 80 0D 03 02 00 00 00 00 B5 [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 0B 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 0B 00 0C 2E 00 E3 75 15 C7 45 98 AB 2F 90 00 A1 [15:42:53]RAPDU: E3 75 15 C7 45 98 AB 2F 90 00 [15:42:53]wFMCommunicate OK [15:42:53]SAM_PROTO_SignData done [15:42:53]FM_MakeSignedData done [15:42:53]CreateOFDProtocolMessage [15:42:53]wFMCommunicate request_size=4 [15:42:53]MH_SAM_APDU [15:42:53]CAPDU: 80 11 00 00 [15:42:53]Write to MH i2c: E2 08 00 0D 2E 80 11 00 00 00 00 00 00 B5 [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:53]Read from MH i2c: E2 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 17 00 [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: E2 17 00 0D 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 FD [15:42:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:42:53]wFMCommunicate OK [15:42:53]CreateOFDProtocolMessage done [15:42:53]OFDSenderStorePacket 2487 [15:42:53]StoreOFDPacket docnum=2487 [15:42:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 9A 01 00 00 4C E2 92 01 E8 82 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 00 82 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B7 09 00 00 35 04 06 00 D9 99 9D 48 AF 36 E3 75 15 C7 45 98 AB 2F [15:42:53]CheckFolder [15:42:53]dirname=/storage/ofd_packets [15:42:53]CheckFolder done [15:42:53]ProducePacketName [15:42:53]name=ofd_packets/00002487 [15:42:53]NVStorageSaveData ofd_packets/00002487 [15:42:53]File name is /storage/ofd_packets/00002487 [15:42:53]Write 440 bytes [15:42:53]NVStorageSaveData done [15:42:53]OFDSenderStorePacket done [15:42:53]KKMCreateOFDPacket done [15:42:53]NVStorageSaveData kkm_last_timestamp [15:42:53]File name is /storage/kkm_last_timestamp [15:42:53]Write 4 bytes [15:42:53]NVStorageSaveData done [15:42:53]ExternCall_PrintAddStr [15:42:53]wPrintStart [15:42:53]Write to MH i2c: 01 00 00 0E 2E 3C [15:42:53]Write i2c OK [15:42:53]MH_I2C_Read... [15:42:53]Read from MH i2c: 01 [15:42:54]MH_I2C_Read... [15:42:54]OFD Sender: Processing packet 2487 [packets to send 1, broken 0] [15:42:54]ProducePacketName [15:42:54]name=ofd_packets/00002487 [15:42:54]OFD Sender: To server: ‡•öpG, [15:42:54]CommunicateWithHost lk.salyk.kg:30040 [15:42:54]ConnectInit lk.salyk.kg [15:42:54]Read from MH i2c: 01 07 00 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: 01 07 00 0E 2E 00 00 00 00 00 FF 0F 51 [15:42:54]RasterBufferAndPrint [15:42:54]line Счет N : (3)99878 [15:42:54]line ИÐÐ: 02508201610067 [15:42:54]line Контрольно-КаÑÑовый Чек [15:42:54]line ПРОДÐЖР[15:42:54]line Товар: 5449000189394 [15:42:54]line Холодный чай Fuse Ñгода 0,5л [15:42:54]line 2.000 * 75.00 [15:42:54]line = 150.00 [15:42:54]line ÐДС 12% ÐСП 1% [15:42:54]line > о реализуемом товаре [15:42:54]line Товар: 48744119 [15:42:54]line Сигареты Winston Xstyle Dual [15:42:54]line 1.000 * 149.00 [15:42:54]line = 149.00 [15:42:54]line ÐДС 12% ÐСП 1% [15:42:54]line > о реализуемом товаре [15:42:54]line ИТОГО: 299.00 [15:42:54]line ÐСП 1% : 2.65 [15:42:54]line ÐДС 12% : 31.75 [15:42:54]line Ðаличными: 299.00 [15:42:54]line Безнал.: 0.00 [15:42:54]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:42:54]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:42:54]line СÐО: Общий режим [15:42:54]line Чек 112 18.10.2024 15:42 [15:42:54]line Смена: 22 ФФД: 1.0 [15:42:54]line ЗÐМ: 0300000191 [15:42:54]line РÐМ: 0000000000207295 [15:42:54]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:42:54]line ФМ: 0000000002342820 [15:42:54]line ФД: 2487 [15:42:54]line ФПД: 239253792010038 [15:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T154256&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2487&fm=239253792010038&tin=02508201610067®Number=0000000000207295&sum=29900 [15:42:54]line 0 [15:42:54]written 0, free lines is 4095 [15:42:54]Connected sock=10 [15:42:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 9A 01 00 00 4C E2 92 01 E8 82 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 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 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 74 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 67 0C 00 00 00 00 07 04 06 00 CC 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 00 82 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B7 09 00 00 35 04 06 00 D9 99 9D 48 AF 36 E3 75 15 C7 45 98 AB 2F [15:42:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CA 80 47 00 D4 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 32 33 34 32 38 32 30 10 04 04 00 B7 09 00 00 F4 03 04 00 64 2D 12 67 B6 04 01 00 00 C8 CB A6 93 77 69 1F 85 [15:42:54]CommunicateWithHost err = 0 [15:42:54]CheckOFDResponse [15:42:54]1017 (14) - 77093643461234 [15:42:54]1041 (16) - 0000000002342820 [15:42:54]1040 (4) - 2487 [15:42:54]1012 (4) - 18.10.2024 09:41 [15:42:54]1206 (1) - 0 [15:42:54]OFD Sender: Remove packet 2487 [15:42:54]ProducePacketName [15:42:54]name=ofd_packets/00002487 [15:42:54]NVStorageDeleteData [15:42:54]Write to MH i2c: 01 00 00 3C 2E 6A [15:42:54]Write i2c OK [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: 01 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: 01 07 00 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: 01 07 00 3C 2E 00 00 00 00 00 52 0C CF [15:42:54]RasterBufferAndPrint [15:42:54]line [15:42:54]line [15:42:54]line [15:42:54]line [15:42:54]line [15:42:54]written 0, free lines is 3158 [15:42:54]MH_Cut [15:42:54]Write to MH i2c: D1 01 00 43 2E 01 43 [15:42:54]Write i2c OK [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: D1 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: D1 01 00 [15:42:54]MH_I2C_Read... [15:42:54]Read from MH i2c: D1 01 00 43 2E 00 42 [15:42:54]Write to MH i2c: 01 00 00 44 2E 72 [15:42:54]Write i2c OK [15:42:54]MH_I2C_Read... [15:42:54]OFD Sender: No OFD packet to send [15:42:55]*** Cut start [15:42:55]*** Partial cut [15:42:55]*** CUTSNS_PIN = 1 [15:42:55]*** CUTSNS_PIN = 0 [15:42:55]*** Brake cut motor [15:42:56]Read from MH i2c: 01 [15:42:56]MH_I2C_Read... [15:42:56]*** Stop cut motor [15:42:56]*** Cut end [15:42:56]Read from MH i2c: 01 07 00 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: 01 07 00 44 2E 00 00 00 00 00 FF 0F 87 [15:42:56]process_action close_receipt done [15:42:56]requested_data is exist [15:42:56]produce_requested_data [15:42:56]requested_item fm.sn is exist - process it [15:42:56]wFMCommunicate request_size=4 [15:42:56]MH_SAM_APDU [15:42:56]CAPDU: 80 11 00 00 [15:42:56]Write to MH i2c: E2 08 00 45 2E 80 11 00 00 00 00 00 00 ED [15:42:56]Write i2c OK [15:42:56]MH_I2C_Read... [15:42:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:42:56]Read from MH i2c: E2 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: E2 17 00 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: E2 17 00 45 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 35 [15:42:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:42:56]wFMCommunicate OK [15:42:56]requested_item fd.num is exist - process it [15:42:56]SAM_PROTO_GetFieldsCounters [15:42:56]wFMCommunicate request_size=4 [15:42:56]MH_SAM_APDU [15:42:56]CAPDU: 80 13 00 00 [15:42:56]Write to MH i2c: E2 08 00 46 2E 80 13 00 00 00 00 00 00 F0 [15:42:56]Write i2c OK [15:42:56]MH_I2C_Read... [15:42:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:42:56]Read from MH i2c: E2 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: E2 62 00 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: E2 62 00 46 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B7 09 00 00 0E 04 04 00 16 00 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 2C [15:42:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B7 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 70 00 00 00 5E 04 04 00 70 00 00 00 57 04 04 00 71 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:42:56]wFMCommunicate OK [15:42:56]SAM_PROTO_GetFieldsCounters done [15:42:56]requested_item shift.num is exist - process it [15:42:56]requested_item shift.opened is exist - process it [15:42:56]req_shift_opened [15:42:56]FM_GetShiftState [15:42:56]SAM_PROTO_GetShiftState [15:42:56]wFMCommunicate request_size=4 [15:42:56]MH_SAM_APDU [15:42:56]CAPDU: 80 13 01 00 [15:42:56]Write to MH i2c: E2 08 00 47 2E 80 13 01 00 00 00 00 00 F2 [15:42:56]Write i2c OK [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: E2 [15:42:56]MH_I2C_Read... [15:42:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:42:56]Read from MH i2c: E2 0E 00 [15:42:56]MH_I2C_Read... [15:42:56]Read from MH i2c: E2 0E 00 47 2E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 90 [15:42:56]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:42:56]wFMCommunicate OK [15:42:56]SAM_PROTO_GetShiftState done [15:42:56]FM_GetShiftState done [15:42:56]req_shift_opened done [15:42:56]requested_item shift.open_date is exist - process it [15:42:56]req_shift_open_date [15:42:56]req_shift_open_date done [15:42:56]produce_requested_data done [15:42:56]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2487,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:42:56]process_action_free close_receipt [15:42:56]json_value_free [15:42:56]json_value_free done [15:42:56]process_json_proto returns [15:42:56]Send response to host [15:42:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2487,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:42:56]free response buf [15:42:56]execute_script done [15:42:56]execute_script returns [15:42:56]free content buf [15:42:56]Sock 9.Close socket [15:42:56]Sock 9.Thread stoped [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:14]OFD Sender: No OFD packet to send [15:43:19]OFD Sender: No OFD packet to send [15:43:24]OFD Sender: No OFD packet to send [15:43:29]OFD Sender: No OFD packet to send [15:43:34]OFD Sender: No OFD packet to send [15:43:39]OFD Sender: No OFD packet to send [15:43:44]OFD Sender: No OFD packet to send [15:43:49]OFD Sender: No OFD packet to send [15:43:54]OFD Sender: No OFD packet to send [15:43:59]OFD Sender: No OFD packet to send [15:44:04]OFD Sender: No OFD packet to send [15:44:09]OFD Sender: No OFD packet to send [15:44:14]OFD Sender: No OFD packet to send [15:44:19]OFD Sender: No OFD packet to send [15:44:24]OFD Sender: No OFD packet to send [15:44:29]OFD Sender: No OFD packet to send [15:44:34]OFD Sender: No OFD packet to send [15:44:39]OFD Sender: No OFD packet to send [15:44:44]OFD Sender: No OFD packet to send [15:44:49]OFD Sender: No OFD packet to send [15:44:54]OFD Sender: No OFD packet to send [15:44:59]OFD Sender: No OFD packet to send [15:45:04]OFD Sender: No OFD packet to send [15:45:09]OFD Sender: No OFD packet to send [15:45:14]OFD Sender: No OFD packet to send [15:45:19]OFD Sender: No OFD packet to send [15:45:24]OFD Sender: No OFD packet to send [15:45:29]OFD Sender: No OFD packet to send [15:45:34]OFD Sender: No OFD packet to send [15:45:39]OFD Sender: No OFD packet to send [15:45:44]OFD Sender: No OFD packet to send [15:45:49]OFD Sender: No OFD packet to send [15:45:54]OFD Sender: No OFD packet to send [15:45:59]OFD Sender: No OFD packet to send [15:46:04]OFD Sender: No OFD packet to send [15:46:09]OFD Sender: No OFD packet to send [15:46:14]OFD Sender: No OFD packet to send [15:46:19]OFD Sender: No OFD packet to send [15:46:24]OFD Sender: No OFD packet to send [15:46:29]OFD Sender: No OFD packet to send [15:46:34]OFD Sender: No OFD packet to send [15:46:39]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:05]OFD Sender: No OFD packet to send [15:50:10]OFD Sender: No OFD packet to send [15:50:15]OFD Sender: No OFD packet to send [15:50:20]OFD Sender: No OFD packet to send [15:50:25]OFD Sender: No OFD packet to send [15:50:30]OFD Sender: No OFD packet to send [15:50:35]OFD Sender: No OFD packet to send [15:50:40]OFD Sender: No OFD packet to send [15:50:45]OFD Sender: No OFD packet to send [15:50:50]OFD Sender: No OFD packet to send [15:50:55]OFD Sender: No OFD packet to send [15:51:00]OFD Sender: No OFD packet to send [15:51:05]OFD Sender: No OFD packet to send [15:51:10]OFD Sender: No OFD packet to send [15:51:15]OFD Sender: No OFD packet to send [15:51:20]OFD Sender: No OFD packet to send [15:51:25]OFD Sender: No OFD packet to send [15:51:30]OFD Sender: No OFD packet to send [15:51:35]OFD Sender: No OFD packet to send [15:51:40]OFD Sender: No OFD packet to send [15:51:45]OFD Sender: No OFD packet to send [15:51:50]OFD Sender: No OFD packet to send [15:51:55]OFD Sender: No OFD packet to send [15:52:00]OFD Sender: No OFD packet to send [15:52:05]OFD Sender: No OFD packet to send [15:52:10]OFD Sender: No OFD packet to send [15:52:11]accept exits with 7 [15:52:11]New connection [15:52:11]New thread 3066850660 created [15:52:11]Thread 3066707300 joined [15:52:11]Waiting for new connection... [15:52:11] Sock 7.Parse request [15:52:11]Sock 7.Check first char [15:52:11]Sock 7.First char is OK [15:52:11]request: POST /json_proto HTTP/1.0 [15:52:11]Method: POST [15:52:11]URL: /json_proto [15:52:11]Method is POST - this is cgi request [15:52:11]url: /json_proto [15:52:11]query_string will be loaded in cgi processing [15:52:11]execute_cgi json_proto POST (null) [15:52:11]execute_cgi path=json_proto method=POST [15:52:11]POST find Content-Length [15:52:11]Host: 172.17.52.132:8080 [15:52:11]Content-Length: 725 [15:52:11]Content-Type: application/json [15:52:11] [15:52:11]POST finish read [15:52:11]Found Content-Length = 725 [15:52:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99879", "tax_sys" : 0, "items" : [ { "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:11]execute_script... [15:52: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 : (3)99879", "tax_sys" : 0, "items" : [ { "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:11]POST & json_proto [15:52:11]process_json_proto [15:52:11]json parsed OK: [15:52:11]protocol is kg_v1.0 [15:52:11]action value=close_receipt [15:52:11]process_action close_receipt [15:52:11]cmd_close_receipt [15:52:11]MH_GetDate [15:52:11]Write to MH i2c: F0 00 00 48 2E 65 [15:52:11]Write i2c OK [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 09 00 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: F0 09 00 48 2E 00 30 84 12 67 5A BE F6 66 0F [15:52:11]GetLastDocTimeStamp 1729266176 [15:52:11]current date 1729266736 [15:52:11]FM_GetShiftState [15:52:11]SAM_PROTO_GetShiftState [15:52:11]wFMCommunicate request_size=4 [15:52:11]MH_SAM_APDU [15:52:11]CAPDU: 80 13 01 00 [15:52:11]Write to MH i2c: E2 08 00 49 2E 80 13 01 00 00 00 00 00 F4 [15:52:11]Write i2c OK [15:52:11]MH_I2C_Read... [15:52:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:11]Read from MH i2c: E2 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 0E 00 [15:52:11]MH_I2C_Read... [15:52:11]Read from MH i2c: E2 0E 00 49 2E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 92 [15:52:11]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:52:11]wFMCommunicate OK [15:52:11]SAM_PROTO_GetShiftState done [15:52:11]FM_GetShiftState done [15:52:11]opened in 1729209717 [15:52:11]opened+sec_in_day 1729296117 [15:52:11]quantity*price = 10500 [15:52:11]sum+1 = 10501 [15:52:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 ÐСП 1% : 0.93 ÐДС 12% : 11.15 Ðаличными: 105.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 113 18.10.2024 15:52 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2488 ФПД: 261731053898274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T155216&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2488&fm=261731053898274&tin=02508201610067®Number=0000000000207295&sum=10500 0 [15:52:12]StoreToDocumentArchive [15:52:12]shift 22 fd 2488 [15:52:12]save to /storage/0022/doc_00002488 [15:52:12]save last doc name /storage/0022/doc_00002488 to /storage/kkm_last_doc_name [15:52:12]save OK [15:52:12]Clear old archive folders... [15:52:12]ProcessDocumentItem done err = 0, tmpTLVsize=306 [15:52:12]tlvbuf is 01416150 [15:52:12]SAM_PROTO_ClearQueue [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 09 00 00 [15:52:12]Write to MH i2c: E2 08 00 56 2E 80 09 00 00 00 00 00 00 F6 [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 56 2E 00 90 00 F8 [15:52:12]RAPDU: 90 00 [15:52:12]wFMCommunicate OK [15:52:12]SAM_PROTO_ClearQueue done [15:52:12]KKMCreateOFDPacket [15:52:12]OFDProtocolAddRootSTLVToBuf [15:52:12]FM_MakeSignedData [15:52:12]FM_MakeSignedData [15:52:12]SAM_PROTO_SignData [15:52:12]wFMCommunicate request_size=4 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 0D 01 02 [15:52:12]Write to MH i2c: E2 08 00 57 2E 80 0D 01 02 00 00 00 00 FE [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:12]Read from MH i2c: E2 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 [15:52:12]MH_I2C_Read... [15:52:12]Read from MH i2c: E2 03 00 57 2E 00 90 00 F9 [15:52:12]RAPDU: 90 00 [15:52:12]wFMCommunicate OK [15:52:12]wFMCommunicate request_size=255 [15:52:12]MH_SAM_APDU [15:52:12]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 30 84 12 67 0E 04 04 00 16 00 00 00 B9 04 01 [15:52:12]Write to MH i2c: E2 02 01 58 2E 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 30 84 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 00 46 [15:52:12]Write i2c OK [15:52:12]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 03 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 03 00 58 2E 00 90 00 FA [15:52:13]RAPDU: 90 00 [15:52:13]wFMCommunicate OK [15:52:13]wFMCommunicate request_size=65 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B8 09 00 00 35 04 06 00 EE 0B 02 7E 8A 22 [15:52:13]Write to MH i2c: E2 44 00 59 2E 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B8 09 00 00 35 04 06 00 EE 0B 02 7E 8A 22 00 00 2B [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 03 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 03 00 59 2E 00 90 00 FB [15:52:13]RAPDU: 90 00 [15:52:13]wFMCommunicate OK [15:52:13]wFMCommunicate request_size=4 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 0D 03 02 [15:52:13]Write to MH i2c: E2 08 00 5A 2E 80 0D 03 02 00 00 00 00 03 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 0B 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 0B 00 5A 2E 00 DA 65 68 D3 3A 85 F3 83 90 00 B3 [15:52:13]RAPDU: DA 65 68 D3 3A 85 F3 83 90 00 [15:52:13]wFMCommunicate OK [15:52:13]SAM_PROTO_SignData done [15:52:13]FM_MakeSignedData done [15:52:13]CreateOFDProtocolMessage [15:52:13]wFMCommunicate request_size=4 [15:52:13]MH_SAM_APDU [15:52:13]CAPDU: 80 11 00 00 [15:52:13]Write to MH i2c: E2 08 00 5B 2E 80 11 00 00 00 00 00 00 03 [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:13]Read from MH i2c: E2 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 17 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: E2 17 00 5B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 4B [15:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:52:13]wFMCommunicate OK [15:52:13]CreateOFDProtocolMessage done [15:52:13]OFDSenderStorePacket 2488 [15:52:13]StoreOFDPacket docnum=2488 [15:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 46 01 00 00 F1 DC 3E 01 C8 50 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 30 84 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B8 09 00 00 35 04 06 00 EE 0B 02 7E 8A 22 DA 65 68 D3 3A 85 F3 83 [15:52:13]CheckFolder [15:52:13]dirname=/storage/ofd_packets [15:52:13]CheckFolder done [15:52:13]ProducePacketName [15:52:13]name=ofd_packets/00002488 [15:52:13]NVStorageSaveData ofd_packets/00002488 [15:52:13]File name is /storage/ofd_packets/00002488 [15:52:13]Write 356 bytes [15:52:13]NVStorageSaveData done [15:52:13]OFDSenderStorePacket done [15:52:13]KKMCreateOFDPacket done [15:52:13]NVStorageSaveData kkm_last_timestamp [15:52:13]File name is /storage/kkm_last_timestamp [15:52:13]Write 4 bytes [15:52:13]NVStorageSaveData done [15:52:13]ExternCall_PrintAddStr [15:52:13]wPrintStart [15:52:13]Write to MH i2c: 01 00 00 5C 2E 8A [15:52:13]Write i2c OK [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 07 00 [15:52:13]MH_I2C_Read... [15:52:13]Read from MH i2c: 01 07 00 5C 2E 00 00 00 00 00 FF 0F 9F [15:52:13]RasterBufferAndPrint [15:52:13]line Счет N : (3)99879 [15:52:13]line ИÐÐ: 02508201610067 [15:52:13]line Контрольно-КаÑÑовый Чек [15:52:13]line ПРОДÐЖР[15:52:13]line Товар: 4870145004968 [15:52:13]line Пиво Жатецкий ГуÑÑŒ 9 крепкое 0,43л ж/б [15:52:13]line 1.000 * 105.00 [15:52:13]line = 105.00 [15:52:13]line ÐДС 12% ÐСП 1% [15:52:13]line > о реализуемом товаре [15:52:13]line ИТОГО: 105.00 [15:52:13]line ÐСП 1% : 0.93 [15:52:13]line ÐДС 12% : 11.15 [15:52:13]line Ðаличными: 105.00 [15:52:13]line Безнал.: 0.00 [15:52:13]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:52:13]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:52:13]line СÐО: Общий режим [15:52:13]line Чек 113 18.10.2024 15:52 [15:52:13]line Смена: 22 ФФД: 1.0 [15:52:13]line ЗÐМ: 0300000191 [15:52:13]line РÐМ: 0000000000207295 [15:52:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:52:13]line ФМ: 0000000002342820 [15:52:13]line ФД: 2488 [15:52:13]line ФПД: 261731053898274 [15:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T155216&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2488&fm=261731053898274&tin=02508201610067®Number=0000000000207295&sum=10500 [15:52:13]line 0 [15:52:13]OFD Sender: Processing packet 2488 [packets to send 1, broken 0] [15:52:13]ProducePacketName [15:52:13]name=ofd_packets/00002488 [15:52:13]OFD Sender: To server: ‡•öpG, [15:52:13]CommunicateWithHost lk.salyk.kg:30040 [15:52:13]ConnectInit lk.salyk.kg [15:52:13]written 0, free lines is 4095 [15:52:13]Connected sock=10 [15:52:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 46 01 00 00 F1 DC 3E 01 C8 50 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 30 84 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B8 09 00 00 35 04 06 00 EE 0B 02 7E 8A 22 DA 65 68 D3 3A 85 F3 83 [15:52:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 8F 09 47 00 4D 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B8 09 00 00 F4 03 04 00 94 2F 12 67 B6 04 01 00 00 D5 96 69 39 F7 55 7D B6 [15:52:13]CommunicateWithHost err = 0 [15:52:13]CheckOFDResponse [15:52:13]1017 (14) - 77093643461234 [15:52:13]1041 (16) - 0000000002342820 [15:52:13]1040 (4) - 2488 [15:52:13]1012 (4) - 18.10.2024 09:51 [15:52:13]1206 (1) - 0 [15:52:13]OFD Sender: Remove packet 2488 [15:52:13]ProducePacketName [15:52:13]name=ofd_packets/00002488 [15:52:13]NVStorageDeleteData [15:52:14]Write to MH i2c: 01 00 00 85 2E B3 [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: 01 07 00 85 2E 00 00 00 00 00 C4 0C 8A [15:52:14]RasterBufferAndPrint [15:52:14]line [15:52:14]line [15:52:14]line [15:52:14]line [15:52:14]line [15:52:14]written 0, free lines is 3272 [15:52:14]MH_Cut [15:52:14]Write to MH i2c: D1 01 00 8C 2E 01 8C [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: D1 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: D1 01 00 [15:52:14]MH_I2C_Read... [15:52:14]Read from MH i2c: D1 01 00 8C 2E 00 8B [15:52:14]Write to MH i2c: 01 00 00 8D 2E BB [15:52:14]Write i2c OK [15:52:14]MH_I2C_Read... [15:52:14]OFD Sender: No OFD packet to send [15:52:14]*** Cut start [15:52:14]*** Partial cut [15:52:14]*** CUTSNS_PIN = 1 [15:52:15]*** CUTSNS_PIN = 0 [15:52:15]*** Brake cut motor [15:52:15]Read from MH i2c: 01 [15:52:15]MH_I2C_Read... [15:52:15]*** Stop cut motor [15:52:15]*** Cut end [15:52:15]Read from MH i2c: 01 07 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: 01 07 00 8D 2E 00 00 00 00 00 FF 0F D0 [15:52:15]process_action close_receipt done [15:52:15]requested_data is exist [15:52:15]produce_requested_data [15:52:15]requested_item fm.sn is exist - process it [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 11 00 00 [15:52:15]Write to MH i2c: E2 08 00 8E 2E 80 11 00 00 00 00 00 00 36 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 17 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 17 00 8E 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 7E [15:52:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:52:15]wFMCommunicate OK [15:52:15]requested_item fd.num is exist - process it [15:52:15]SAM_PROTO_GetFieldsCounters [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 13 00 00 [15:52:15]Write to MH i2c: E2 08 00 8F 2E 80 13 00 00 00 00 00 00 39 [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 62 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 62 00 8F 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B8 09 00 00 0E 04 04 00 16 00 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 79 [15:52:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B8 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 71 00 00 00 5E 04 04 00 71 00 00 00 57 04 04 00 72 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:15]wFMCommunicate OK [15:52:15]SAM_PROTO_GetFieldsCounters done [15:52:15]requested_item shift.num is exist - process it [15:52:15]requested_item shift.opened is exist - process it [15:52:15]req_shift_opened [15:52:15]FM_GetShiftState [15:52:15]SAM_PROTO_GetShiftState [15:52:15]wFMCommunicate request_size=4 [15:52:15]MH_SAM_APDU [15:52:15]CAPDU: 80 13 01 00 [15:52:15]Write to MH i2c: E2 08 00 90 2E 80 13 01 00 00 00 00 00 3B [15:52:15]Write i2c OK [15:52:15]MH_I2C_Read... [15:52:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:15]Read from MH i2c: E2 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 0E 00 [15:52:15]MH_I2C_Read... [15:52:15]Read from MH i2c: E2 0E 00 90 2E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D9 [15:52:15]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:52:15]wFMCommunicate OK [15:52:15]SAM_PROTO_GetShiftState done [15:52:15]FM_GetShiftState done [15:52:15]req_shift_opened done [15:52:15]requested_item shift.open_date is exist - process it [15:52:15]req_shift_open_date [15:52:15]req_shift_open_date done [15:52:15]produce_requested_data done [15:52:15]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2488,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:52:15]process_action_free close_receipt [15:52:15]json_value_free [15:52:15]json_value_free done [15:52:15]process_json_proto returns [15:52:15]Send response to host [15:52:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2488,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:52:15]free response buf [15:52:15]execute_script done [15:52:15]execute_script returns [15:52:15]free content buf [15:52:15]Sock 7.Close socket [15:52:15]Sock 7.Thread stoped [15:52:19]OFD Sender: No OFD packet to send [15:52:24]OFD Sender: No OFD packet to send [15:52:29]OFD Sender: No OFD packet to send [15:52:33]accept exits with 9 [15:52:33]New connection [15:52:33]New thread 3066707300 created [15:52:33]Thread 3066850660 joined [15:52:33]Waiting for new connection... [15:52:33] Sock 9.Parse request [15:52:33]Sock 9.Check first char [15:52:33]Sock 9.First char is OK [15:52:33]request: POST /json_proto HTTP/1.0 [15:52:33]Method: POST [15:52:33]URL: /json_proto [15:52:33]Method is POST - this is cgi request [15:52:33]url: /json_proto [15:52:33]query_string will be loaded in cgi processing [15:52:33]execute_cgi json_proto POST (null) [15:52:33]execute_cgi path=json_proto method=POST [15:52:33]POST find Content-Length [15:52:33]Host: 172.17.52.132:8080 [15:52:33]Content-Length: 1096 [15:52:33]Content-Type: application/json [15:52:33] [15:52:33]POST finish read [15:52:33]Found Content-Length = 1096 [15:52:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99880", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:33]execute_script... [15:52: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 : (3)99880", "tax_sys" : 0, "items" : [ { "code": "5449000176431", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 0,5\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:52:33]POST & json_proto [15:52:33]process_json_proto [15:52:33]json parsed OK: [15:52:33]protocol is kg_v1.0 [15:52:33]action value=close_receipt [15:52:33]process_action close_receipt [15:52:33]cmd_close_receipt [15:52:33]MH_GetDate [15:52:33]Write to MH i2c: F0 00 00 91 2E AE [15:52:33]Write i2c OK [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: F0 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: F0 09 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: F0 09 00 91 2E 00 46 84 12 67 5A BE F6 66 6E [15:52:33]GetLastDocTimeStamp 1729266736 [15:52:33]current date 1729266758 [15:52:33]FM_GetShiftState [15:52:33]SAM_PROTO_GetShiftState [15:52:33]wFMCommunicate request_size=4 [15:52:33]MH_SAM_APDU [15:52:33]CAPDU: 80 13 01 00 [15:52:33]Write to MH i2c: E2 08 00 92 2E 80 13 01 00 00 00 00 00 3D [15:52:33]Write i2c OK [15:52:33]MH_I2C_Read... [15:52:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:33]Read from MH i2c: E2 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 0E 00 [15:52:33]MH_I2C_Read... [15:52:33]Read from MH i2c: E2 0E 00 92 2E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 DB [15:52:33]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:52:33]wFMCommunicate OK [15:52:33]SAM_PROTO_GetShiftState done [15:52:33]FM_GetShiftState done [15:52:33]opened in 1729209717 [15:52:33]opened+sec_in_day 1729296117 [15:52:33]quantity*price = 9500 [15:52:33]sum+1 = 9501 [15:52:33]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700026030024 Курут копченный 1.000 * 49.00 = 49.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 144.00 ÐСП 1% : 1.27 ÐДС 12% : 15.29 Ðаличными: 0.00 Безнал.: 144.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 114 18.10.2024 15:52 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000002342820 ФД: 2489 ФПД: 65744064968620 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T155238&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2489&fm=65744064968620&tin=02508201610067®Number=0000000000207295&sum=14400 0 [15:52:35]StoreToDocumentArchive [15:52:35]shift 22 fd 2489 [15:52:35]save to /storage/0022/doc_00002489 [15:52:35]save last doc name /storage/0022/doc_00002489 to /storage/kkm_last_doc_name [15:52:35]save OK [15:52:35]Clear old archive folders... [15:52:35]ProcessDocumentItem done err = 0, tmpTLVsize=390 [15:52:35]tlvbuf is 013CDD40 [15:52:35]SAM_PROTO_ClearQueue [15:52:35]wFMCommunicate request_size=4 [15:52:35]MH_SAM_APDU [15:52:35]CAPDU: 80 09 00 00 [15:52:35]Write to MH i2c: E2 08 00 9F 2E 80 09 00 00 00 00 00 00 3F [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:52:35]Read from MH i2c: E2 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 03 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 03 00 9F 2E 00 90 00 41 [15:52:35]RAPDU: 90 00 [15:52:35]wFMCommunicate OK [15:52:35]SAM_PROTO_ClearQueue done [15:52:35]KKMCreateOFDPacket [15:52:35]OFDProtocolAddRootSTLVToBuf [15:52:35]FM_MakeSignedData [15:52:35]FM_MakeSignedData [15:52:35]SAM_PROTO_SignData [15:52:35]wFMCommunicate request_size=4 [15:52:35]MH_SAM_APDU [15:52:35]CAPDU: 80 0D 01 02 [15:52:35]Write to MH i2c: E2 08 00 A0 2E 80 0D 01 02 00 00 00 00 47 [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:52:35]Read from MH i2c: E2 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 03 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 03 00 A0 2E 00 90 00 42 [15:52:35]RAPDU: 90 00 [15:52:35]wFMCommunicate OK [15:52:35]wFMCommunicate request_size=255 [15:52:35]MH_SAM_APDU [15:52:35]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 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 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [15:52:35]Write to MH i2c: E2 02 01 A1 2E 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 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 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 E8 [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:35]Read from MH i2c: E2 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 03 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 03 00 A1 2E 00 90 00 43 [15:52:35]RAPDU: 90 00 [15:52:35]wFMCommunicate OK [15:52:35]wFMCommunicate request_size=149 [15:52:35]MH_SAM_APDU [15:52:35]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 46 84 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B9 09 00 00 35 04 06 00 3B CB 3B A3 77 AC [15:52:35]Write to MH i2c: E2 98 00 A2 2E 80 0D 02 02 90 00 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 46 84 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B9 09 00 00 35 04 06 00 3B CB 3B A3 77 AC 00 00 16 [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:52:35]Read from MH i2c: E2 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 03 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 03 00 A2 2E 00 90 00 44 [15:52:35]RAPDU: 90 00 [15:52:35]wFMCommunicate OK [15:52:35]wFMCommunicate request_size=4 [15:52:35]MH_SAM_APDU [15:52:35]CAPDU: 80 0D 03 02 [15:52:35]Write to MH i2c: E2 08 00 A3 2E 80 0D 03 02 00 00 00 00 4C [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:52:35]Read from MH i2c: E2 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 0B 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 0B 00 A3 2E 00 E1 8B F5 1D 79 6F 2F D5 90 00 B7 [15:52:35]RAPDU: E1 8B F5 1D 79 6F 2F D5 90 00 [15:52:35]wFMCommunicate OK [15:52:35]SAM_PROTO_SignData done [15:52:35]FM_MakeSignedData done [15:52:35]CreateOFDProtocolMessage [15:52:35]wFMCommunicate request_size=4 [15:52:35]MH_SAM_APDU [15:52:35]CAPDU: 80 11 00 00 [15:52:35]Write to MH i2c: E2 08 00 A4 2E 80 11 00 00 00 00 00 00 4C [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:35]Read from MH i2c: E2 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 17 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: E2 17 00 A4 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 94 [15:52:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:52:35]wFMCommunicate OK [15:52:35]CreateOFDProtocolMessage done [15:52:35]OFDSenderStorePacket 2489 [15:52:35]StoreOFDPacket docnum=2489 [15:52:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 9A 01 00 00 28 15 92 01 92 06 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 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 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 46 84 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B9 09 00 00 35 04 06 00 3B CB 3B A3 77 AC E1 8B F5 1D 79 6F 2F D5 [15:52:35]CheckFolder [15:52:35]dirname=/storage/ofd_packets [15:52:35]CheckFolder done [15:52:35]ProducePacketName [15:52:35]name=ofd_packets/00002489 [15:52:35]NVStorageSaveData ofd_packets/00002489 [15:52:35]File name is /storage/ofd_packets/00002489 [15:52:35]Write 440 bytes [15:52:35]NVStorageSaveData done [15:52:35]OFDSenderStorePacket done [15:52:35]KKMCreateOFDPacket done [15:52:35]NVStorageSaveData kkm_last_timestamp [15:52:35]File name is /storage/kkm_last_timestamp [15:52:35]Write 4 bytes [15:52:35]NVStorageSaveData done [15:52:35]ExternCall_PrintAddStr [15:52:35]wPrintStart [15:52:35]Write to MH i2c: 01 00 00 A5 2E D3 [15:52:35]OFD Sender: Processing packet 2489 [packets to send 1, broken 0] [15:52:35]ProducePacketName [15:52:35]name=ofd_packets/00002489 [15:52:35]OFD Sender: To server: ‡•öpG, [15:52:35]CommunicateWithHost lk.salyk.kg:30040 [15:52:35]ConnectInit lk.salyk.kg [15:52:35]Write i2c OK [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: 01 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: 01 07 00 [15:52:35]MH_I2C_Read... [15:52:35]Read from MH i2c: 01 07 00 A5 2E 00 00 00 00 00 FF 0F E8 [15:52:35]RasterBufferAndPrint [15:52:35]line Счет N : (3)99880 [15:52:35]line ИÐÐ: 02508201610067 [15:52:35]line Контрольно-КаÑÑовый Чек [15:52:35]line ПРОДÐЖР[15:52:35]line Товар: 5449000176431 [15:52:35]line Сок Piko Pulpy апельÑин ПЭТ 0,5л [15:52:35]line 1.000 * 95.00 [15:52:35]line = 95.00 [15:52:35]line ÐДС 12% ÐСП 1% [15:52:35]line > о реализуемом товаре [15:52:35]line Товар: 4700026030024 [15:52:35]line Курут копченный [15:52:35]line 1.000 * 49.00 [15:52:35]line = 49.00 [15:52:35]line ÐДС 12% ÐСП 1% [15:52:35]line > о реализуемом товаре [15:52:35]line ИТОГО: 144.00 [15:52:35]line ÐСП 1% : 1.27 [15:52:35]line ÐДС 12% : 15.29 [15:52:35]line Ðаличными: 0.00 [15:52:35]line Безнал.: 144.00 [15:52:35]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [15:52:35]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [15:52:35]line СÐО: Общий режим [15:52:35]line Чек 114 18.10.2024 15:52 [15:52:35]line Смена: 22 ФФД: 1.0 [15:52:35]line ЗÐМ: 0300000191 [15:52:35]line РÐМ: 0000000000207295 [15:52:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [15:52:35]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [15:52:35]line ФМ: 0000000002342820 [15:52:35]line ФД: 2489 [15:52:35]line ФПД: 65744064968620 [15:52:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T155238&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2489&fm=65744064968620&tin=02508201610067®Number=0000000000207295&sum=14400 [15:52:35]line 0 [15:52:35]written 0, free lines is 4095 [15:52:36]Connected sock=10 [15:52:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 9A 01 00 00 28 15 92 01 92 06 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 33 31 06 04 2F 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 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 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 46 84 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B9 09 00 00 35 04 06 00 3B CB 3B A3 77 AC E1 8B F5 1D 79 6F 2F D5 [15:52:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 F1 CC 47 00 98 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 B9 09 00 00 F4 03 04 00 AA 2F 12 67 B6 04 01 00 00 D8 05 91 38 13 C5 F0 C2 [15:52:36]CommunicateWithHost err = 0 [15:52:36]CheckOFDResponse [15:52:36]1017 (14) - 77093643461234 [15:52:36]1041 (16) - 0000000002342820 [15:52:36]1040 (4) - 2489 [15:52:36]1012 (4) - 18.10.2024 09:51 [15:52:36]1206 (1) - 0 [15:52:36]OFD Sender: Remove packet 2489 [15:52:36]ProducePacketName [15:52:36]name=ofd_packets/00002489 [15:52:36]NVStorageDeleteData [15:52:36]Write to MH i2c: 01 00 00 D6 2E 04 [15:52:36]Write i2c OK [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: 01 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: 01 07 00 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: 01 07 00 D6 2E 00 00 00 00 00 3C 0C 53 [15:52:36]RasterBufferAndPrint [15:52:36]line [15:52:36]line [15:52:36]line [15:52:36]line [15:52:36]line [15:52:36]written 0, free lines is 3138 [15:52:36]MH_Cut [15:52:36]Write to MH i2c: D1 01 00 DD 2E 01 DD [15:52:36]Write i2c OK [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: D1 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: D1 01 00 [15:52:36]MH_I2C_Read... [15:52:36]Read from MH i2c: D1 01 00 DD 2E 00 DC [15:52:36]Write to MH i2c: 01 00 00 DE 2E 0C [15:52:36]Write i2c OK [15:52:36]MH_I2C_Read... [15:52:36]OFD Sender: No OFD packet to send [15:52:37]*** Cut start [15:52:37]*** Partial cut [15:52:37]*** CUTSNS_PIN = 1 [15:52:37]*** CUTSNS_PIN = 0 [15:52:37]*** Brake cut motor [15:52:38]Read from MH i2c: 01 [15:52:38]MH_I2C_Read... [15:52:38]*** Stop cut motor [15:52:38]*** Cut end [15:52:38]Read from MH i2c: 01 07 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: 01 07 00 DE 2E 00 00 00 00 00 FF 0F 21 [15:52:38]process_action close_receipt done [15:52:38]requested_data is exist [15:52:38]produce_requested_data [15:52:38]requested_item fm.sn is exist - process it [15:52:38]wFMCommunicate request_size=4 [15:52:38]MH_SAM_APDU [15:52:38]CAPDU: 80 11 00 00 [15:52:38]Write to MH i2c: E2 08 00 DF 2E 80 11 00 00 00 00 00 00 87 [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:52:38]Read from MH i2c: E2 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 17 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 17 00 DF 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CF [15:52:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [15:52:38]wFMCommunicate OK [15:52:38]requested_item fd.num is exist - process it [15:52:38]SAM_PROTO_GetFieldsCounters [15:52:38]wFMCommunicate request_size=4 [15:52:38]MH_SAM_APDU [15:52:38]CAPDU: 80 13 00 00 [15:52:38]Write to MH i2c: E2 08 00 E0 2E 80 13 00 00 00 00 00 00 8A [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:52:38]Read from MH i2c: E2 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 62 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 62 00 E0 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B9 09 00 00 0E 04 04 00 16 00 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 CE [15:52:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 B9 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 72 00 00 00 5E 04 04 00 72 00 00 00 57 04 04 00 73 00 00 00 19 04 04 00 00 00 00 00 90 00 [15:52:38]wFMCommunicate OK [15:52:38]SAM_PROTO_GetFieldsCounters done [15:52:38]requested_item shift.num is exist - process it [15:52:38]requested_item shift.opened is exist - process it [15:52:38]req_shift_opened [15:52:38]FM_GetShiftState [15:52:38]SAM_PROTO_GetShiftState [15:52:38]wFMCommunicate request_size=4 [15:52:38]MH_SAM_APDU [15:52:38]CAPDU: 80 13 01 00 [15:52:38]Write to MH i2c: E2 08 00 E1 2E 80 13 01 00 00 00 00 00 8C [15:52:38]Write i2c OK [15:52:38]MH_I2C_Read... [15:52:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:52:38]Read from MH i2c: E2 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 0E 00 [15:52:38]MH_I2C_Read... [15:52:38]Read from MH i2c: E2 0E 00 E1 2E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2A [15:52:38]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [15:52:38]wFMCommunicate OK [15:52:38]SAM_PROTO_GetShiftState done [15:52:38]FM_GetShiftState done [15:52:38]req_shift_opened done [15:52:38]requested_item shift.open_date is exist - process it [15:52:38]req_shift_open_date [15:52:38]req_shift_open_date done [15:52:38]produce_requested_data done [15:52:38]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2489,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [15:52:38]process_action_free close_receipt [15:52:38]json_value_free [15:52:38]json_value_free done [15:52:38]process_json_proto returns [15:52:38]Send response to host [15:52:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2489,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [15:52:38]free response buf [15:52:38]execute_script done [15:52:38]execute_script returns [15:52:38]free content buf [15:52:38]Sock 9.Close socket [15:52:38]Sock 9.Thread stoped [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:26]OFD Sender: No OFD packet to send [15:53:31]OFD Sender: No OFD packet to send [15:53:36]OFD Sender: No OFD packet to send [15:53:41]OFD Sender: No OFD packet to send [15:53:46]OFD Sender: No OFD packet to send [15:53:51]OFD Sender: No OFD packet to send [15:53:56]OFD Sender: No OFD packet to send [15:54:01]OFD Sender: No OFD packet to send [15:54:06]OFD Sender: No OFD packet to send [15:54:11]OFD Sender: No OFD packet to send [15:54:16]OFD Sender: No OFD packet to send [15:54:21]OFD Sender: No OFD packet to send [15:54:26]OFD Sender: No OFD packet to send [15:54:31]OFD Sender: No OFD packet to send [15:54:36]OFD Sender: No OFD packet to send [15:54:41]OFD Sender: No OFD packet to send [15:54:46]OFD Sender: No OFD packet to send [15:54:51]OFD Sender: No OFD packet to send [15:54:56]OFD Sender: No OFD packet to send [15:55:01]OFD Sender: No OFD packet to send [15:55:06]OFD Sender: No OFD packet to send [15:55:11]OFD Sender: No OFD packet to send [15:55:16]OFD Sender: No OFD packet to send [15:55:21]OFD Sender: No OFD packet to send [15:55:26]OFD Sender: No OFD packet to send [15:55:31]OFD Sender: No OFD packet to send [15:55:36]OFD Sender: No OFD packet to send [15:55:41]OFD Sender: No OFD packet to send [15:55:46]OFD Sender: No OFD packet to send [15:55:51]OFD Sender: No OFD packet to send [15:55:56]OFD Sender: No OFD packet to send [15:56:01]OFD Sender: No OFD packet to send [15:56:06]OFD Sender: No OFD packet to send [15:56:11]OFD Sender: No OFD packet to send [15:56:16]OFD Sender: No OFD packet to send [15:56:21]OFD Sender: No OFD packet to send [15:56:26]OFD Sender: No OFD packet to send [15:56:31]OFD Sender: No OFD packet to send [15:56:36]OFD Sender: No OFD packet to send [15:56:41]OFD Sender: No OFD packet to send [15:56:46]OFD Sender: No OFD packet to send [15:56:51]OFD Sender: No OFD packet to send [15:56:56]OFD Sender: No OFD packet to send [15:57:01]OFD Sender: No OFD packet to send [15:57:06]OFD Sender: No OFD packet to send [15:57:12]OFD Sender: No OFD packet to send [15:57:17]OFD Sender: No OFD packet to send [15:57:22]OFD Sender: No OFD packet to send [15:57:27]OFD Sender: No OFD packet to send [15:57:32]OFD Sender: No OFD packet to send [15:57:37]OFD Sender: No OFD packet to send [15:57:42]OFD Sender: No OFD packet to send [15:57:47]OFD Sender: No OFD packet to send [15:57:52]OFD Sender: No OFD packet to send [15:57:57]OFD Sender: No OFD packet to send [15:58:02]OFD Sender: No OFD packet to send [15:58:07]OFD Sender: No OFD packet to send [15:58:12]OFD Sender: No OFD packet to send [15:58:17]OFD Sender: No OFD packet to send [15:58:22]OFD Sender: No OFD packet to send [15:58:27]OFD Sender: No OFD packet to send [15:58:32]OFD Sender: No OFD packet to send [15:58:37]OFD Sender: No OFD packet to send [15:58:42]OFD Sender: No OFD packet to send [15:58:47]OFD Sender: No OFD packet to send [15:58:52]OFD Sender: No OFD packet to send [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:47]OFD Sender: No OFD packet to send [15:59:52]OFD Sender: No OFD packet to send [15:59:57]OFD Sender: No OFD packet to send [16:00:02]OFD Sender: No OFD packet to send [16:00:07]OFD Sender: No OFD packet to send [16:00:12]OFD Sender: No OFD packet to send [16:00:17]OFD Sender: No OFD packet to send [16:00:22]OFD Sender: No OFD packet to send [16:00:27]OFD Sender: No OFD packet to send [16:00:32]OFD Sender: No OFD packet to send [16:00:37]OFD Sender: No OFD packet to send [16:00:42]OFD Sender: No OFD packet to send [16:00:47]OFD Sender: No OFD packet to send [16:00:52]OFD Sender: No OFD packet to send [16:00:57]OFD Sender: No OFD packet to send [16:01:02]OFD Sender: No OFD packet to send [16:01:07]OFD Sender: No OFD packet to send [16:01:12]OFD Sender: No OFD packet to send [16:01:17]OFD Sender: No OFD packet to send [16:01:22]OFD Sender: No OFD packet to send [16:01:27]OFD Sender: No OFD packet to send [16:01:32]OFD Sender: No OFD packet to send [16:01:37]OFD Sender: No OFD packet to send [16:01:42]OFD Sender: No OFD packet to send [16:01:47]OFD Sender: No OFD packet to send [16:01:52]OFD Sender: No OFD packet to send [16:01:57]OFD Sender: No OFD packet to send [16:02:02]OFD Sender: No OFD packet to send [16:02:07]OFD Sender: No OFD packet to send [16:02:12]OFD Sender: No OFD packet to send [16:02:17]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]OFD Sender: No OFD packet to send [16:05:32]OFD Sender: No OFD packet to send [16:05:37]OFD Sender: No OFD packet to send [16:05:42]OFD Sender: No OFD packet to send [16:05:47]OFD Sender: No OFD packet to send [16:05:52]OFD Sender: No OFD packet to send [16:05:57]OFD Sender: No OFD packet to send [16:06:02]OFD Sender: No OFD packet to send [16:06:05]accept exits with 7 [16:06:05]New connection [16:06:05]New thread 3066850660 created [16:06:05]Thread 3066707300 joined [16:06:05]Waiting for new connection... [16:06:05] Sock 7.Parse request [16:06:05]Sock 7.Check first char [16:06:05]Sock 7.First char is OK [16:06:05]request: POST /json_proto HTTP/1.0 [16:06:05]Method: POST [16:06:05]URL: /json_proto [16:06:05]Method is POST - this is cgi request [16:06:05]url: /json_proto [16:06:05]query_string will be loaded in cgi processing [16:06:05]execute_cgi json_proto POST (null) [16:06:05]execute_cgi path=json_proto method=POST [16:06:05]POST find Content-Length [16:06:05]Host: 172.17.52.132:8080 [16:06:05]Content-Length: 639 [16:06:05]Content-Type: application/json [16:06:05] [16:06:05]POST finish read [16:06:05]Found Content-Length = 639 [16:06:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99881", "tax_sys" : 0, "items" : [ { "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:05]execute_script... [16:06: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)99881", "tax_sys" : 0, "items" : [ { "code": "4700026030024", "name": "\u041A\u0443\u0440\u0443\u0442 \u043A\u043E\u043F\u0447\u0435\u043D\u043D\u044B\u0439", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:06:05]POST & json_proto [16:06:05]process_json_proto [16:06:05]json parsed OK: [16:06:05]protocol is kg_v1.0 [16:06:05]action value=close_receipt [16:06:05]process_action close_receipt [16:06:05]cmd_close_receipt [16:06:05]MH_GetDate [16:06:05]Write to MH i2c: F0 00 00 E2 2E FF [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: F0 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: F0 09 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: F0 09 00 E2 2E 00 72 87 12 67 5A BE F6 66 EE [16:06:05]GetLastDocTimeStamp 1729266758 [16:06:05]current date 1729267570 [16:06:05]FM_GetShiftState [16:06:05]SAM_PROTO_GetShiftState [16:06:05]wFMCommunicate request_size=4 [16:06:05]MH_SAM_APDU [16:06:05]CAPDU: 80 13 01 00 [16:06:05]Write to MH i2c: E2 08 00 E3 2E 80 13 01 00 00 00 00 00 8E [16:06:05]Write i2c OK [16:06:05]MH_I2C_Read... [16:06:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:05]Read from MH i2c: E2 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: E2 0E 00 [16:06:05]MH_I2C_Read... [16:06:05]Read from MH i2c: E2 0E 00 E3 2E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2C [16:06:05]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [16:06:05]wFMCommunicate OK [16:06:05]SAM_PROTO_GetShiftState done [16:06:05]FM_GetShiftState done [16:06:05]opened in 1729209717 [16:06:05]opened+sec_in_day 1729296117 [16:06:05]quantity*price = 4900 [16:06:05]sum+1 = 4901 [16:06:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 ÐСП 1% : 0.43 ÐДС 12% : 5.20 Ðаличными: 49.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 115 18.10.2024 16:06 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2490 ФПД: 216608029859940 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T160610&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2490&fm=216608029859940&tin=02508201610067®Number=0000000000207295&sum=4900 0 [16:06:06]StoreToDocumentArchive [16:06:06]shift 22 fd 2490 [16:06:06]save to /storage/0022/doc_00002490 [16:06:06]save last doc name /storage/0022/doc_00002490 to /storage/kkm_last_doc_name [16:06:06]save OK [16:06:06]Clear old archive folders... [16:06:06]ProcessDocumentItem done err = 0, tmpTLVsize=271 [16:06:06]tlvbuf is 0135D240 [16:06:06]SAM_PROTO_ClearQueue [16:06:06]wFMCommunicate request_size=4 [16:06:06]MH_SAM_APDU [16:06:06]CAPDU: 80 09 00 00 [16:06:06]Write to MH i2c: E2 08 00 F0 2E 80 09 00 00 00 00 00 00 90 [16:06:06]Write i2c OK [16:06:06]MH_I2C_Read... [16:06:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:06:06]Read from MH i2c: E2 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 03 00 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 03 00 F0 2E 00 90 00 92 [16:06:06]RAPDU: 90 00 [16:06:06]wFMCommunicate OK [16:06:06]SAM_PROTO_ClearQueue done [16:06:06]KKMCreateOFDPacket [16:06:06]OFDProtocolAddRootSTLVToBuf [16:06:06]FM_MakeSignedData [16:06:06]FM_MakeSignedData [16:06:06]SAM_PROTO_SignData [16:06:06]wFMCommunicate request_size=4 [16:06:06]MH_SAM_APDU [16:06:06]CAPDU: 80 0D 01 02 [16:06:06]Write to MH i2c: E2 08 00 F1 2E 80 0D 01 02 00 00 00 00 98 [16:06:06]Write i2c OK [16:06:06]MH_I2C_Read... [16:06:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:06:06]Read from MH i2c: E2 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 03 00 [16:06:06]MH_I2C_Read... [16:06:06]Read from MH i2c: E2 03 00 F1 2E 00 90 00 93 [16:06:06]RAPDU: 90 00 [16:06:06]wFMCommunicate OK [16:06:06]wFMCommunicate request_size=255 [16:06:06]MH_SAM_APDU [16:06: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 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 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 72 87 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [16:06:06]Write to MH i2c: E2 02 01 F2 2E 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 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 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 72 87 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 86 [16:06:06]Write i2c OK [16:06:06]MH_I2C_Read... [16:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:07]Read from MH i2c: E2 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 03 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 03 00 F2 2E 00 90 00 94 [16:06:07]RAPDU: 90 00 [16:06:07]wFMCommunicate OK [16:06:07]wFMCommunicate request_size=30 [16:06:07]MH_SAM_APDU [16:06:07]CAPDU: 80 0D 02 02 19 32 33 34 32 38 32 30 10 04 04 00 BA 09 00 00 35 04 06 00 C5 00 FC AC E0 64 [16:06:07]Write to MH i2c: E2 21 00 F3 2E 80 0D 02 02 19 00 32 33 34 32 38 32 30 10 04 04 00 BA 09 00 00 35 04 06 00 C5 00 FC AC E0 64 00 00 FD [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:06:07]Read from MH i2c: E2 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 03 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 03 00 F3 2E 00 90 00 95 [16:06:07]RAPDU: 90 00 [16:06:07]wFMCommunicate OK [16:06:07]wFMCommunicate request_size=4 [16:06:07]MH_SAM_APDU [16:06:07]CAPDU: 80 0D 03 02 [16:06:07]Write to MH i2c: E2 08 00 F4 2E 80 0D 03 02 00 00 00 00 9D [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:06:07]Read from MH i2c: E2 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 0B 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 0B 00 F4 2E 00 88 09 F5 54 D0 50 7F EB 90 00 02 [16:06:07]RAPDU: 88 09 F5 54 D0 50 7F EB 90 00 [16:06:07]wFMCommunicate OK [16:06:07]SAM_PROTO_SignData done [16:06:07]FM_MakeSignedData done [16:06:07]CreateOFDProtocolMessage [16:06:07]wFMCommunicate request_size=4 [16:06:07]MH_SAM_APDU [16:06:07]CAPDU: 80 11 00 00 [16:06:07]Write to MH i2c: E2 08 00 F5 2E 80 11 00 00 00 00 00 00 9D [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:07]Read from MH i2c: E2 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 17 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: E2 17 00 F5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E5 [16:06:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [16:06:07]wFMCommunicate OK [16:06:07]CreateOFDProtocolMessage done [16:06:07]OFDSenderStorePacket 2490 [16:06:07]StoreOFDPacket docnum=2490 [16:06:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 23 01 00 00 CE 23 1B 01 28 F6 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 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 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 72 87 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BA 09 00 00 35 04 06 00 C5 00 FC AC E0 64 88 09 F5 54 D0 50 7F EB [16:06:07]CheckFolder [16:06:07]dirname=/storage/ofd_packets [16:06:07]CheckFolder done [16:06:07]ProducePacketName [16:06:07]name=ofd_packets/00002490 [16:06:07]NVStorageSaveData ofd_packets/00002490 [16:06:07]File name is /storage/ofd_packets/00002490 [16:06:07]Write 321 bytes [16:06:07]NVStorageSaveData done [16:06:07]OFDSenderStorePacket done [16:06:07]KKMCreateOFDPacket done [16:06:07]NVStorageSaveData kkm_last_timestamp [16:06:07]File name is /storage/kkm_last_timestamp [16:06:07]Write 4 bytes [16:06:07]NVStorageSaveData done [16:06:07]ExternCall_PrintAddStr [16:06:07]wPrintStart [16:06:07]Write to MH i2c: 01 00 00 F6 2E 24 [16:06:07]Write i2c OK [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: 01 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: 01 07 00 [16:06:07]MH_I2C_Read... [16:06:07]Read from MH i2c: 01 07 00 F6 2E 00 00 00 00 00 FF 0F 39 [16:06:07]RasterBufferAndPrint [16:06:07]line Счет N : (3)99881 [16:06:07]line ИÐÐ: 02508201610067 [16:06:07]line Контрольно-КаÑÑовый Чек [16:06:07]line ПРОДÐЖР[16:06:07]line Товар: 4700026030024 [16:06:07]line Курут копченный [16:06:07]line 1.000 * 49.00 [16:06:07]line = 49.00 [16:06:07]line ÐДС 12% ÐСП 1% [16:06:07]line > о реализуемом товаре [16:06:07]line ИТОГО: 49.00 [16:06:07]line ÐСП 1% : 0.43 [16:06:07]line ÐДС 12% : 5.20 [16:06:07]line Ðаличными: 49.00 [16:06:07]line Безнал.: 0.00 [16:06:07]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [16:06:07]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [16:06:07]line СÐО: Общий режим [16:06:07]line Чек 115 18.10.2024 16:06 [16:06:07]line Смена: 22 ФФД: 1.0 [16:06:07]line ЗÐМ: 0300000191 [16:06:07]line РÐМ: 0000000000207295 [16:06:07]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [16:06:07]line ФМ: 0000000002342820 [16:06:07]line ФД: 2490 [16:06:07]line ФПД: 216608029859940 [16:06:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T160610&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2490&fm=216608029859940&tin=02508201610067®Number=0000000000207295&sum=4900 [16:06:07]line 0 [16:06:07]OFD Sender: Processing packet 2490 [packets to send 1, broken 0] [16:06:07]ProducePacketName [16:06:07]name=ofd_packets/00002490 [16:06:07]OFD Sender: To server: ‡•öpG, [16:06:07]CommunicateWithHost lk.salyk.kg:30040 [16:06:07]ConnectInit lk.salyk.kg [16:06:07]written 0, free lines is 4095 [16:06:07]Connected sock=10 [16:06:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 23 01 00 00 CE 23 1B 01 28 F6 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 32 36 30 33 30 30 32 34 06 04 1D 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BE D0 BF D1 87 D0 B5 D0 BD D0 BD D1 8B D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 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 72 87 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BA 09 00 00 35 04 06 00 C5 00 FC AC E0 64 88 09 F5 54 D0 50 7F EB [16:06:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B4 76 47 00 99 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 32 33 34 32 38 32 30 10 04 04 00 BA 09 00 00 F4 03 04 00 D6 32 12 67 B6 04 01 00 00 CB 18 05 97 F5 BF 31 8A [16:06:07]CommunicateWithHost err = 0 [16:06:07]CheckOFDResponse [16:06:07]1017 (14) - 77093643461234 [16:06:07]1041 (16) - 0000000002342820 [16:06:07]1040 (4) - 2490 [16:06:07]1012 (4) - 18.10.2024 10:05 [16:06:07]1206 (1) - 0 [16:06:07]OFD Sender: Remove packet 2490 [16:06:07]ProducePacketName [16:06:07]name=ofd_packets/00002490 [16:06:07]NVStorageDeleteData [16:06:08]Write to MH i2c: 01 00 00 1E 2F 4D [16:06:08]Write i2c OK [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: 01 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: 01 07 00 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: 01 07 00 1E 2F 00 00 00 00 00 E0 0C 40 [16:06:08]RasterBufferAndPrint [16:06:08]line [16:06:08]line [16:06:08]line [16:06:08]line [16:06:08]line [16:06:08]written 0, free lines is 3302 [16:06:08]MH_Cut [16:06:08]Write to MH i2c: D1 01 00 25 2F 01 26 [16:06:08]Write i2c OK [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: D1 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: D1 01 00 [16:06:08]MH_I2C_Read... [16:06:08]Read from MH i2c: D1 01 00 25 2F 00 25 [16:06:08]Write to MH i2c: 01 00 00 26 2F 55 [16:06:08]Write i2c OK [16:06:08]MH_I2C_Read... [16:06:08]OFD Sender: No OFD packet to send [16:06:08]*** Cut start [16:06:08]*** Partial cut [16:06:08]*** CUTSNS_PIN = 1 [16:06:08]*** CUTSNS_PIN = 0 [16:06:09]*** Brake cut motor [16:06:09]Read from MH i2c: 01 [16:06:09]MH_I2C_Read... [16:06:09]*** Stop cut motor [16:06:09]*** Cut end [16:06:09]Read from MH i2c: 01 07 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: 01 07 00 26 2F 00 00 00 00 00 FF 0F 6A [16:06:09]process_action close_receipt done [16:06:09]requested_data is exist [16:06:09]produce_requested_data [16:06:09]requested_item fm.sn is exist - process it [16:06:09]wFMCommunicate request_size=4 [16:06:09]MH_SAM_APDU [16:06:09]CAPDU: 80 11 00 00 [16:06:09]Write to MH i2c: E2 08 00 27 2F 80 11 00 00 00 00 00 00 D0 [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:06:09]Read from MH i2c: E2 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 17 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 17 00 27 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 18 [16:06:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [16:06:09]wFMCommunicate OK [16:06:09]requested_item fd.num is exist - process it [16:06:09]SAM_PROTO_GetFieldsCounters [16:06:09]wFMCommunicate request_size=4 [16:06:09]MH_SAM_APDU [16:06:09]CAPDU: 80 13 00 00 [16:06:09]Write to MH i2c: E2 08 00 28 2F 80 13 00 00 00 00 00 00 D3 [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:06:09]Read from MH i2c: E2 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 62 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 62 00 28 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BA 09 00 00 0E 04 04 00 16 00 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 1B [16:06:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BA 09 00 00 0E 04 04 00 16 00 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 [16:06:09]wFMCommunicate OK [16:06:09]SAM_PROTO_GetFieldsCounters done [16:06:09]requested_item shift.num is exist - process it [16:06:09]requested_item shift.opened is exist - process it [16:06:09]req_shift_opened [16:06:09]FM_GetShiftState [16:06:09]SAM_PROTO_GetShiftState [16:06:09]wFMCommunicate request_size=4 [16:06:09]MH_SAM_APDU [16:06:09]CAPDU: 80 13 01 00 [16:06:09]Write to MH i2c: E2 08 00 29 2F 80 13 01 00 00 00 00 00 D5 [16:06:09]Write i2c OK [16:06:09]MH_I2C_Read... [16:06:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:06:09]Read from MH i2c: E2 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 0E 00 [16:06:09]MH_I2C_Read... [16:06:09]Read from MH i2c: E2 0E 00 29 2F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 73 [16:06:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [16:06:09]wFMCommunicate OK [16:06:09]SAM_PROTO_GetShiftState done [16:06:09]FM_GetShiftState done [16:06:09]req_shift_opened done [16:06:09]requested_item shift.open_date is exist - process it [16:06:09]req_shift_open_date [16:06:09]req_shift_open_date done [16:06:09]produce_requested_data done [16:06:09]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2490,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [16:06:09]process_action_free close_receipt [16:06:09]json_value_free [16:06:09]json_value_free done [16:06:09]process_json_proto returns [16:06:09]Send response to host [16:06:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2490,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [16:06:09]free response buf [16:06:09]execute_script done [16:06:09]execute_script returns [16:06:09]free content buf [16:06:09]Sock 7.Close socket [16:06:09]Sock 7.Thread stoped [16:06:13]OFD Sender: No OFD packet to send [16:06:18]OFD Sender: No OFD packet to send [16:06:23]OFD Sender: No OFD packet to send [16:06:28]OFD Sender: No OFD packet to send [16:06:33]OFD Sender: No OFD packet to send [16:06:38]OFD Sender: No OFD packet to send [16:06:43]OFD Sender: No OFD packet to send [16:06:48]OFD Sender: No OFD packet to send [16:06:53]OFD Sender: No OFD packet to send [16:06:58]OFD Sender: No OFD packet to send [16:07:03]OFD Sender: No OFD packet to send [16:07:08]OFD Sender: No OFD packet to send [16:07:13]OFD Sender: No OFD packet to send [16:07:18]OFD Sender: No OFD packet to send [16:07:23]OFD Sender: No OFD packet to send [16:07:28]OFD Sender: No OFD packet to send [16:07:33]OFD Sender: No OFD packet to send [16:07:38]OFD Sender: No OFD packet to send [16:07:43]OFD Sender: No OFD packet to send [16:07:48]OFD Sender: No OFD packet to send [16:07:53]OFD Sender: No OFD packet to send [16:07:58]OFD Sender: No OFD packet to send [16:08:03]OFD Sender: No OFD packet to send [16:08:08]OFD Sender: No OFD packet to send [16:08:13]OFD Sender: No OFD packet to send [16:08:18]OFD Sender: No OFD packet to send [16:08:23]OFD Sender: No OFD packet to send [16:08:28]OFD Sender: No OFD packet to send [16:08:33]OFD Sender: No OFD packet to send [16:08:38]OFD Sender: No OFD packet to send [16:08:43]OFD Sender: No OFD packet to send [16:08:48]OFD Sender: No OFD packet to send [16:08:53]OFD Sender: No OFD packet to send [16:08:58]OFD Sender: No OFD packet to send [16:09:03]OFD Sender: No OFD packet to send [16:09:08]OFD Sender: No OFD packet to send [16:09:13]OFD Sender: No OFD packet to send [16:09:18]OFD Sender: No OFD packet to send [16:09:23]OFD Sender: No OFD packet to send [16:09:28]OFD Sender: No OFD packet to send [16:09:33]OFD Sender: No OFD packet to send [16:09:38]OFD Sender: No OFD packet to send [16:09:43]OFD Sender: No OFD packet to send [16:09:48]OFD Sender: No OFD packet to send [16:09:53]OFD Sender: No OFD packet to send [16:09:58]OFD Sender: No OFD packet to send [16:10:03]OFD Sender: No OFD packet to send [16:10:08]OFD Sender: No OFD packet to send [16:10:13]OFD Sender: No OFD packet to send [16:10:18]OFD Sender: No OFD packet to send [16:10:23]OFD Sender: No OFD packet to send [16:10:28]OFD Sender: No OFD packet to send [16:10:33]OFD Sender: No OFD packet to send [16:10:38]OFD Sender: No OFD packet to send [16:10:43]OFD Sender: No OFD packet to send [16:10:48]OFD Sender: No OFD packet to send [16:10:53]OFD Sender: No OFD packet to send [16:10:58]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]accept exits with 9 [16:13:08]New connection [16:13:08]New thread 3066707300 created [16:13:08]Thread 3066850660 joined [16:13:08]Waiting for new connection... [16:13:08] Sock 9.Parse request [16:13:08]Sock 9.Check first char [16:13:08]Sock 9.First char is OK [16:13:08]request: POST /json_proto HTTP/1.0 [16:13:08]Method: POST [16:13:08]URL: /json_proto [16:13:08]Method is POST - this is cgi request [16:13:08]url: /json_proto [16:13:08]query_string will be loaded in cgi processing [16:13:08]execute_cgi json_proto POST (null) [16:13:08]execute_cgi path=json_proto method=POST [16:13:08]POST find Content-Length [16:13:08]Host: 172.17.52.132:8080 [16:13:08]Content-Length: 653 [16:13:08]Content-Type: application/json [16:13:08] [16:13:08]POST finish read [16:13:08]Found Content-Length = 653 [16:13:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99882", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:08]execute_script... [16:13: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 : (3)99882", "tax_sys" : 0, "items" : [ { "code": "4700000480050", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Nitro Energy \u044D\u043D green \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:13:08]POST & json_proto [16:13:08]process_json_proto [16:13:08]json parsed OK: [16:13:08]protocol is kg_v1.0 [16:13:08]action value=close_receipt [16:13:08]process_action close_receipt [16:13:08]cmd_close_receipt [16:13:08]MH_GetDate [16:13:08]Write to MH i2c: F0 00 00 2A 2F 48 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 09 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: F0 09 00 2A 2F 00 19 89 12 67 5A BE F6 66 E0 [16:13:08]GetLastDocTimeStamp 1729267570 [16:13:08]current date 1729267993 [16:13:08]FM_GetShiftState [16:13:08]SAM_PROTO_GetShiftState [16:13:08]wFMCommunicate request_size=4 [16:13:08]MH_SAM_APDU [16:13:08]CAPDU: 80 13 01 00 [16:13:08]Write to MH i2c: E2 08 00 2B 2F 80 13 01 00 00 00 00 00 D7 [16:13:08]Write i2c OK [16:13:08]MH_I2C_Read... [16:13:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:08]Read from MH i2c: E2 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0E 00 [16:13:08]MH_I2C_Read... [16:13:08]Read from MH i2c: E2 0E 00 2B 2F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 75 [16:13:08]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [16:13:08]wFMCommunicate OK [16:13:08]SAM_PROTO_GetShiftState done [16:13:08]FM_GetShiftState done [16:13:08]opened in 1729209717 [16:13:08]opened+sec_in_day 1729296117 [16:13:08]quantity*price = 9500 [16:13:08]sum+1 = 9501 [16:13:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 116 18.10.2024 16:13 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2491 ФПД: 39037106272366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161313&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2491&fm=39037106272366&tin=02508201610067®Number=0000000000207295&sum=9500 0 [16:13:09]StoreToDocumentArchive [16:13:09]shift 22 fd 2491 [16:13:09]save to /storage/0022/doc_00002491 [16:13:09]save last doc name /storage/0022/doc_00002491 to /storage/kkm_last_doc_name [16:13:09]save OK [16:13:09]Clear old archive folders... [16:13:09]ProcessDocumentItem done err = 0, tmpTLVsize=293 [16:13:09]tlvbuf is 013997F0 [16:13:09]SAM_PROTO_ClearQueue [16:13:09]wFMCommunicate request_size=4 [16:13:09]MH_SAM_APDU [16:13:09]CAPDU: 80 09 00 00 [16:13:09]Write to MH i2c: E2 08 00 38 2F 80 09 00 00 00 00 00 00 D9 [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:13:09]Read from MH i2c: E2 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: E2 03 00 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: E2 03 00 38 2F 00 90 00 DB [16:13:09]RAPDU: 90 00 [16:13:09]wFMCommunicate OK [16:13:09]SAM_PROTO_ClearQueue done [16:13:09]KKMCreateOFDPacket [16:13:09]OFDProtocolAddRootSTLVToBuf [16:13:09]FM_MakeSignedData [16:13:09]FM_MakeSignedData [16:13:09]SAM_PROTO_SignData [16:13:09]wFMCommunicate request_size=4 [16:13:09]MH_SAM_APDU [16:13:09]CAPDU: 80 0D 01 02 [16:13:09]Write to MH i2c: E2 08 00 39 2F 80 0D 01 02 00 00 00 00 E1 [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:13:09]Read from MH i2c: E2 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: E2 03 00 [16:13:09]MH_I2C_Read... [16:13:09]Read from MH i2c: E2 03 00 39 2F 00 90 00 DC [16:13:09]RAPDU: 90 00 [16:13:09]wFMCommunicate OK [16:13:09]wFMCommunicate request_size=255 [16:13:09]MH_SAM_APDU [16:13:09]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 19 89 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [16:13:09]Write to MH i2c: E2 02 01 3A 2F 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 19 89 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 26 [16:13:09]Write i2c OK [16:13:09]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 3A 2F 00 90 00 DD [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]wFMCommunicate request_size=52 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 02 02 2F 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BB 09 00 00 35 04 06 00 23 81 08 DA 38 6E [16:13:10]Write to MH i2c: E2 37 00 3B 2F 80 0D 02 02 2F 00 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BB 09 00 00 35 04 06 00 23 81 08 DA 38 6E 00 00 8C [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 03 00 3B 2F 00 90 00 DE [16:13:10]RAPDU: 90 00 [16:13:10]wFMCommunicate OK [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 0D 03 02 [16:13:10]Write to MH i2c: E2 08 00 3C 2F 80 0D 03 02 00 00 00 00 E6 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0B 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 0B 00 3C 2F 00 B2 0D 11 1D A0 5C 56 4A 90 00 70 [16:13:10]RAPDU: B2 0D 11 1D A0 5C 56 4A 90 00 [16:13:10]wFMCommunicate OK [16:13:10]SAM_PROTO_SignData done [16:13:10]FM_MakeSignedData done [16:13:10]CreateOFDProtocolMessage [16:13:10]wFMCommunicate request_size=4 [16:13:10]MH_SAM_APDU [16:13:10]CAPDU: 80 11 00 00 [16:13:10]Write to MH i2c: E2 08 00 3D 2F 80 11 00 00 00 00 00 00 E6 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:10]Read from MH i2c: E2 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: E2 17 00 3D 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 2E [16:13:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [16:13:10]wFMCommunicate OK [16:13:10]CreateOFDProtocolMessage done [16:13:10]OFDSenderStorePacket 2491 [16:13:10]StoreOFDPacket docnum=2491 [16:13:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 39 01 00 00 5E FA 31 01 83 EA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 19 89 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BB 09 00 00 35 04 06 00 23 81 08 DA 38 6E B2 0D 11 1D A0 5C 56 4A [16:13:10]CheckFolder [16:13:10]dirname=/storage/ofd_packets [16:13:10]CheckFolder done [16:13:10]ProducePacketName [16:13:10]name=ofd_packets/00002491 [16:13:10]NVStorageSaveData ofd_packets/00002491 [16:13:10]File name is /storage/ofd_packets/00002491 [16:13:10]Write 343 bytes [16:13:10]NVStorageSaveData done [16:13:10]OFDSenderStorePacket done [16:13:10]KKMCreateOFDPacket done [16:13:10]NVStorageSaveData kkm_last_timestamp [16:13:10]File name is /storage/kkm_last_timestamp [16:13:10]Write 4 bytes [16:13:10]NVStorageSaveData done [16:13:10]ExternCall_PrintAddStr [16:13:10]wPrintStart [16:13:10]Write to MH i2c: 01 00 00 3E 2F 6D [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 3E 2F 00 00 00 00 00 FF 0F 82 [16:13:10]RasterBufferAndPrint [16:13:10]line Счет N : (3)99882 [16:13:10]line ИÐÐ: 02508201610067 [16:13:10]line Контрольно-КаÑÑовый Чек [16:13:10]line ПРОДÐЖР[16:13:10]line Товар: 4700000480050 [16:13:10]line Ðапиток Nitro Energy Ñн green ж/б 0,45л [16:13:10]line 1.000 * 95.00 [16:13:10]line = 95.00 [16:13:10]line ÐДС 12% ÐСП 1% [16:13:10]line > о реализуемом товаре [16:13:10]line ИТОГО: 95.00 [16:13:10]line ÐСП 1% : 0.84 [16:13:10]line ÐДС 12% : 10.09 [16:13:10]line Ðаличными: 95.00 [16:13:10]line Безнал.: 0.00 [16:13:10]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [16:13:10]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [16:13:10]line СÐО: Общий режим [16:13:10]line Чек 116 18.10.2024 16:13 [16:13:10]line Смена: 22 ФФД: 1.0 [16:13:10]line ЗÐМ: 0300000191 [16:13:10]line РÐМ: 0000000000207295 [16:13:10]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [16:13:10]line ФМ: 0000000002342820 [16:13:10]line ФД: 2491 [16:13:10]line ФПД: 39037106272366 [16:13:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161313&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2491&fm=39037106272366&tin=02508201610067®Number=0000000000207295&sum=9500 [16:13:10]line 0 [16:13:10]OFD Sender: Processing packet 2491 [packets to send 1, broken 0] [16:13:10]ProducePacketName [16:13:10]name=ofd_packets/00002491 [16:13:10]OFD Sender: To server: ‡•öpG, [16:13:10]CommunicateWithHost lk.salyk.kg:30040 [16:13:10]ConnectInit lk.salyk.kg [16:13:10]written 0, free lines is 4095 [16:13:10]Connected sock=7 [16:13:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 39 01 00 00 5E FA 31 01 83 EA 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 30 35 30 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4E 69 74 72 6F 20 45 6E 65 72 67 79 20 D1 8D D0 BD 20 67 72 65 65 6E 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 19 89 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BB 09 00 00 35 04 06 00 23 81 08 DA 38 6E B2 0D 11 1D A0 5C 56 4A [16:13:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 E2 08 47 00 34 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BB 09 00 00 F4 03 04 00 7D 34 12 67 B6 04 01 00 00 97 DB 34 43 AC 4C 24 19 [16:13:10]CommunicateWithHost err = 0 [16:13:10]CheckOFDResponse [16:13:10]1017 (14) - 77093643461234 [16:13:10]1041 (16) - 0000000002342820 [16:13:10]1040 (4) - 2491 [16:13:10]1012 (4) - 18.10.2024 10:12 [16:13:10]1206 (1) - 0 [16:13:10]OFD Sender: Remove packet 2491 [16:13:10]ProducePacketName [16:13:10]name=ofd_packets/00002491 [16:13:10]NVStorageDeleteData [16:13:10]Write to MH i2c: 01 00 00 67 2F 96 [16:13:10]Write i2c OK [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 [16:13:10]MH_I2C_Read... [16:13:10]Read from MH i2c: 01 07 00 67 2F 00 00 00 00 00 B2 0C 5B [16:13:10]RasterBufferAndPrint [16:13:10]line [16:13:10]line [16:13:10]line [16:13:10]line [16:13:10]line [16:13:10]written 0, free lines is 3255 [16:13:11]MH_Cut [16:13:11]Write to MH i2c: D1 01 00 6E 2F 01 6F [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 01 00 [16:13:11]MH_I2C_Read... [16:13:11]Read from MH i2c: D1 01 00 6E 2F 00 6E [16:13:11]Write to MH i2c: 01 00 00 6F 2F 9E [16:13:11]Write i2c OK [16:13:11]MH_I2C_Read... [16:13:11]OFD Sender: No OFD packet to send [16:13:11]*** Cut start [16:13:11]*** Partial cut [16:13:11]*** CUTSNS_PIN = 1 [16:13:11]*** CUTSNS_PIN = 0 [16:13:12]*** Brake cut motor [16:13:12]Read from MH i2c: 01 [16:13:12]MH_I2C_Read... [16:13:12]*** Stop cut motor [16:13:12]*** Cut end [16:13:12]Read from MH i2c: 01 07 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: 01 07 00 6F 2F 00 00 00 00 00 FF 0F B3 [16:13:12]process_action close_receipt done [16:13:12]requested_data is exist [16:13:12]produce_requested_data [16:13:12]requested_item fm.sn is exist - process it [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 11 00 00 [16:13:12]Write to MH i2c: E2 08 00 70 2F 80 11 00 00 00 00 00 00 19 [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 17 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 17 00 70 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 61 [16:13:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [16:13:12]wFMCommunicate OK [16:13:12]requested_item fd.num is exist - process it [16:13:12]SAM_PROTO_GetFieldsCounters [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 13 00 00 [16:13:12]Write to MH i2c: E2 08 00 71 2F 80 13 00 00 00 00 00 00 1C [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 62 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 62 00 71 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BB 09 00 00 0E 04 04 00 16 00 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 68 [16:13:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BB 09 00 00 0E 04 04 00 16 00 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 [16:13:12]wFMCommunicate OK [16:13:12]SAM_PROTO_GetFieldsCounters done [16:13:12]requested_item shift.num is exist - process it [16:13:12]requested_item shift.opened is exist - process it [16:13:12]req_shift_opened [16:13:12]FM_GetShiftState [16:13:12]SAM_PROTO_GetShiftState [16:13:12]wFMCommunicate request_size=4 [16:13:12]MH_SAM_APDU [16:13:12]CAPDU: 80 13 01 00 [16:13:12]Write to MH i2c: E2 08 00 72 2F 80 13 01 00 00 00 00 00 1E [16:13:12]Write i2c OK [16:13:12]MH_I2C_Read... [16:13:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:13:12]Read from MH i2c: E2 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 0E 00 [16:13:12]MH_I2C_Read... [16:13:12]Read from MH i2c: E2 0E 00 72 2F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 BC [16:13:12]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [16:13:12]wFMCommunicate OK [16:13:12]SAM_PROTO_GetShiftState done [16:13:12]FM_GetShiftState done [16:13:12]req_shift_opened done [16:13:12]requested_item shift.open_date is exist - process it [16:13:12]req_shift_open_date [16:13:12]req_shift_open_date done [16:13:12]produce_requested_data done [16:13:12]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2491,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [16:13:12]process_action_free close_receipt [16:13:12]json_value_free [16:13:12]json_value_free done [16:13:12]process_json_proto returns [16:13:12]Send response to host [16:13:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2491,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [16:13:12]free response buf [16:13:12]execute_script done [16:13:12]execute_script returns [16:13:12]free content buf [16:13:12]Sock 9.Close socket [16:13:12]Sock 9.Thread stoped [16:13:16]OFD Sender: No OFD packet to send [16:13:21]OFD Sender: No OFD packet to send [16:13:26]OFD Sender: No OFD packet to send [16:13:31]OFD Sender: No OFD packet to send [16:13:36]OFD Sender: No OFD packet to send [16:13:41]OFD Sender: No OFD packet to send [16:13:46]OFD Sender: No OFD packet to send [16:13:51]OFD Sender: No OFD packet to send [16:13:56]OFD Sender: No OFD packet to send [16:14:01]OFD Sender: No OFD packet to send [16:14:06]OFD Sender: No OFD packet to send [16:14:11]OFD Sender: No OFD packet to send [16:14:16]OFD Sender: No OFD packet to send [16:14:21]OFD Sender: No OFD packet to send [16:14:26]OFD Sender: No OFD packet to send [16:14:31]OFD Sender: No OFD packet to send [16:14:36]OFD Sender: No OFD packet to send [16:14:41]OFD Sender: No OFD packet to send [16:14:46]OFD Sender: No OFD packet to send [16:14:51]OFD Sender: No OFD packet to send [16:14:56]OFD Sender: No OFD packet to send [16:15:01]OFD Sender: No OFD packet to send [16:15:06]OFD Sender: No OFD packet to send [16:15:11]OFD Sender: No OFD packet to send [16:15:16]OFD Sender: No OFD packet to send [16:15:21]OFD Sender: No OFD packet to send [16:15:26]OFD Sender: No OFD packet to send [16:15:31]OFD Sender: No OFD packet to send [16:15:36]OFD Sender: No OFD packet to send [16:15:41]OFD Sender: No OFD packet to send [16:15:46]OFD Sender: No OFD packet to send [16:15:51]OFD Sender: No OFD packet to send [16:15:56]OFD Sender: No OFD packet to send [16:16:01]OFD Sender: No OFD packet to send [16:16:06]OFD Sender: No OFD packet to send [16:16:11]OFD Sender: No OFD packet to send [16:16:16]OFD Sender: No OFD packet to send [16:16:21]OFD Sender: No OFD packet to send [16:16:26]OFD Sender: No OFD packet to send [16:16:31]OFD Sender: No OFD packet to send [16:16:36]OFD Sender: No OFD packet to send [16:16:41]OFD Sender: No OFD packet to send [16:16:46]OFD Sender: No OFD packet to send [16:16:51]OFD Sender: No OFD packet to send [16:16:56]OFD Sender: No OFD packet to send [16:17:01]OFD Sender: No OFD packet to send [16:17:06]OFD Sender: No OFD packet to send [16:17:11]OFD Sender: No OFD packet to send [16:17:16]OFD Sender: No OFD packet to send [16:17:21]OFD Sender: No OFD packet to send [16:17:26]OFD Sender: No OFD packet to send [16:17:31]OFD Sender: No OFD packet to send [16:17:36]OFD Sender: No OFD packet to send [16:17:41]OFD Sender: No OFD packet to send [16:17:46]OFD Sender: No OFD packet to send [16:17:51]OFD Sender: No OFD packet to send [16:17:56]OFD Sender: No OFD packet to send [16:18:01]OFD Sender: No OFD packet to send [16:18:06]OFD Sender: No OFD packet to send [16:18:11]OFD Sender: No OFD packet to send [16:18:16]OFD Sender: No OFD packet to send [16:18:21]OFD Sender: No OFD packet to send [16:18:26]OFD Sender: No OFD packet to send [16:18:31]OFD Sender: No OFD packet to send [16:18:36]OFD Sender: No OFD packet to send [16:18:41]OFD Sender: No OFD packet to send [16:18:46]OFD Sender: No OFD packet to send [16:18:51]OFD Sender: No OFD packet to send [16:18:56]OFD Sender: No OFD packet to send [16:19:01]OFD Sender: No OFD packet to send [16:19:06]OFD Sender: No OFD packet to send [16:19:11]OFD Sender: No OFD packet to send [16:19:16]OFD Sender: No OFD packet to send [16:19:21]OFD Sender: No OFD packet to send [16:19:26]OFD Sender: No OFD packet to send [16:19:31]accept exits with 10 [16:19:31]New connection [16:19:31]New thread 3066850660 created [16:19:31]Thread 3066707300 joined [16:19:31]Waiting for new connection... [16:19:31] Sock 10.Parse request [16:19:31]Sock 10.Check first char [16:19:31]Sock 10.First char is OK [16:19:31]request: POST /json_proto HTTP/1.0 [16:19:31]Method: POST [16:19:31]URL: /json_proto [16:19:31]Method is POST - this is cgi request [16:19:31]url: /json_proto [16:19:31]query_string will be loaded in cgi processing [16:19:31]execute_cgi json_proto POST (null) [16:19:31]execute_cgi path=json_proto method=POST [16:19:31]POST find Content-Length [16:19:31]Host: 172.17.52.132:8080 [16:19:31]Content-Length: 1607 [16:19:31]Content-Type: application/json [16:19:31] [16:19:31]POST finish read [16:19:31]Found Content-Length = 1607 [16:19:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99883", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 593.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:31]execute_script... [16:19:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99883", "tax_sys" : 0, "items" : [ { "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 2.000, "sum" : 180.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159390729", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0422\u0432\u0438\u043A\u0441 \u042D\u043A\u0441\u0442\u0440\u0430 82\u0433", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202522008", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Maxi \u0427\u0430\u0439 \u0413\u0440\u0443\u0448\u0435\u0432\u044B\u0439 0,45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 593.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:19:31]POST & json_proto [16:19:31]process_json_proto [16:19:31]json parsed OK: [16:19:31]protocol is kg_v1.0 [16:19:31]action value=close_receipt [16:19:31]process_action close_receipt [16:19:31]cmd_close_receipt [16:19:31]MH_GetDate [16:19:31]Write to MH i2c: F0 00 00 73 2F 91 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 09 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: F0 09 00 73 2F 00 98 8A 12 67 5A BE F6 66 A9 [16:19:31]GetLastDocTimeStamp 1729267993 [16:19:31]current date 1729268376 [16:19:31]FM_GetShiftState [16:19:31]SAM_PROTO_GetShiftState [16:19:31]wFMCommunicate request_size=4 [16:19:31]MH_SAM_APDU [16:19:31]CAPDU: 80 13 01 00 [16:19:31]Write to MH i2c: E2 08 00 74 2F 80 13 01 00 00 00 00 00 20 [16:19:31]Write i2c OK [16:19:31]MH_I2C_Read... [16:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:31]Read from MH i2c: E2 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 [16:19:31]MH_I2C_Read... [16:19:31]Read from MH i2c: E2 0E 00 74 2F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 BE [16:19:31]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [16:19:31]wFMCommunicate OK [16:19:31]SAM_PROTO_GetShiftState done [16:19:31]FM_GetShiftState done [16:19:31]opened in 1729209717 [16:19:31]opened+sec_in_day 1729296117 [16:19:31]quantity*price = 18000 [16:19:31]sum+1 = 18001 [16:19:31]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5000159390729 Шок Батончик Ð¢Ð²Ð¸ÐºÑ Ð­ÐºÑтра 82г 2.000 * 89.00 = 178.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 4631150682851 Ðап En Dragon Mojito лайм,клуб ж/б 0,45л 1.000 * 95.00 = 95.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 4870202522008 Ðапиток Maxi Чай Грушевый 0,45л 2.000 * 70.00 = 140.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 593.00 ÐСП 1% : 5.24 ÐДС 12% : 62.97 Ðаличными: 593.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 117 18.10.2024 16:19 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2492 ФПД: 79278605338656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161936&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2492&fm=79278605338656&tin=02508201610067®Number=0000000000207295&sum=59300 0 [16:19:32]StoreToDocumentArchive [16:19:32]shift 22 fd 2492 [16:19:32]save to /storage/0022/doc_00002492 [16:19:32]save last doc name /storage/0022/doc_00002492 to /storage/kkm_last_doc_name [16:19:32]save OK [16:19:32]Clear old archive folders... [16:19:32]ProcessDocumentItem done err = 0, tmpTLVsize=671 [16:19:32]tlvbuf is 01456B30 [16:19:32]SAM_PROTO_ClearQueue [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 09 00 00 [16:19:32]Write to MH i2c: E2 08 00 81 2F 80 09 00 00 00 00 00 00 22 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 81 2F 00 90 00 24 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]SAM_PROTO_ClearQueue done [16:19:32]KKMCreateOFDPacket [16:19:32]OFDProtocolAddRootSTLVToBuf [16:19:32]FM_MakeSignedData [16:19:32]FM_MakeSignedData [16:19:32]SAM_PROTO_SignData [16:19:32]wFMCommunicate request_size=4 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 01 02 [16:19:32]Write to MH i2c: E2 08 00 82 2F 80 0D 01 02 00 00 00 00 2A [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 82 2F 00 90 00 25 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]wFMCommunicate request_size=255 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 02 02 FA 03 00 9F 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 [16:19:32]Write to MH i2c: E2 02 01 83 2F 80 0D 02 02 FA 00 03 00 9F 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 00 08 [16:19:32]Write i2c OK [16:19:32]MH_I2C_Read... [16:19:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:32]Read from MH i2c: E2 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 [16:19:32]MH_I2C_Read... [16:19:32]Read from MH i2c: E2 03 00 83 2F 00 90 00 26 [16:19:32]RAPDU: 90 00 [16:19:32]wFMCommunicate OK [16:19:32]wFMCommunicate request_size=255 [16:19:32]MH_SAM_APDU [16:19:32]CAPDU: 80 0D 02 02 FA 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 [16:19:32]Write to MH i2c: E2 02 01 84 2F 80 0D 02 02 FA 00 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 00 00 3B [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 84 2F 00 90 00 27 [16:19:33]RAPDU: 90 00 [16:19:33]wFMCommunicate OK [16:19:33]wFMCommunicate request_size=180 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 0D 02 02 AF F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 18 00 00 00 00 07 04 06 00 A4 E7 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 98 8A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BC 09 00 00 35 04 06 00 48 1A 7D 1C 08 20 [16:19:33]Write to MH i2c: E2 B7 00 85 2F 80 0D 02 02 AF 00 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 18 00 00 00 00 07 04 06 00 A4 E7 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 98 8A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BC 09 00 00 35 04 06 00 48 1A 7D 1C 08 20 00 00 63 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 03 00 85 2F 00 90 00 28 [16:19:33]RAPDU: 90 00 [16:19:33]wFMCommunicate OK [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 0D 03 02 [16:19:33]Write to MH i2c: E2 08 00 86 2F 80 0D 03 02 00 00 00 00 30 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0B 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 0B 00 86 2F 00 6B F3 4B E9 08 E9 8C FF 90 00 3F [16:19:33]RAPDU: 6B F3 4B E9 08 E9 8C FF 90 00 [16:19:33]wFMCommunicate OK [16:19:33]SAM_PROTO_SignData done [16:19:33]FM_MakeSignedData done [16:19:33]CreateOFDProtocolMessage [16:19:33]wFMCommunicate request_size=4 [16:19:33]MH_SAM_APDU [16:19:33]CAPDU: 80 11 00 00 [16:19:33]Write to MH i2c: E2 08 00 87 2F 80 11 00 00 00 00 00 00 30 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:33]Read from MH i2c: E2 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 17 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: E2 17 00 87 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 78 [16:19:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [16:19:33]wFMCommunicate OK [16:19:33]CreateOFDProtocolMessage done [16:19:33]OFDSenderStorePacket 2492 [16:19:33]StoreOFDPacket docnum=2492 [16:19:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 B3 02 00 00 88 17 AB 02 E5 C9 5A 03 01 00 03 00 9F 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 18 00 00 00 00 07 04 06 00 A4 E7 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 98 8A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BC 09 00 00 35 04 06 00 48 1A 7D 1C 08 20 6B F3 4B E9 08 E9 8C FF [16:19:33]CheckFolder [16:19:33]dirname=/storage/ofd_packets [16:19:33]CheckFolder done [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00002492 [16:19:33]NVStorageSaveData ofd_packets/00002492 [16:19:33]File name is /storage/ofd_packets/00002492 [16:19:33]Write 721 bytes [16:19:33]NVStorageSaveData done [16:19:33]OFDSenderStorePacket done [16:19:33]KKMCreateOFDPacket done [16:19:33]NVStorageSaveData kkm_last_timestamp [16:19:33]File name is /storage/kkm_last_timestamp [16:19:33]Write 4 bytes [16:19:33]NVStorageSaveData done [16:19:33]ExternCall_PrintAddStr [16:19:33]wPrintStart [16:19:33]Write to MH i2c: 01 00 00 88 2F B7 [16:19:33]Write i2c OK [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 [16:19:33]MH_I2C_Read... [16:19:33]Read from MH i2c: 01 07 00 88 2F 00 00 00 00 00 FF 0F CC [16:19:33]RasterBufferAndPrint [16:19:33]line Счет N : (3)99883 [16:19:33]line ИÐÐ: 02508201610067 [16:19:33]line Контрольно-КаÑÑовый Чек [16:19:33]line ПРОДÐЖР[16:19:33]line Товар: 4660085515163 [16:19:33]line Шок Батончик Ð¡Ð½Ð¸ÐºÐµÑ€Ñ Ñупер 95/80г [16:19:33]line 2.000 * 90.00 [16:19:33]line = 180.00 [16:19:33]line ÐДС 12% ÐСП 1% [16:19:33]line > о реализуемом товаре [16:19:33]line Товар: 5000159390729 [16:19:33]line Шок Батончик Ð¢Ð²Ð¸ÐºÑ Ð­ÐºÑтра 82г [16:19:33]line 2.000 * 89.00 [16:19:33]line = 178.00 [16:19:33]line ÐДС 12% ÐСП 1% [16:19:33]line > о реализуемом товаре [16:19:33]line Товар: 4631150682851 [16:19:33]line Ðап En Dragon Mojito лайм,клуб ж/б 0,45л [16:19:33]line 1.000 * 95.00 [16:19:33]line = 95.00 [16:19:33]line ÐДС 12% ÐСП 1% [16:19:33]line > о реализуемом товаре [16:19:33]line Товар: 4870202522008 [16:19:33]line Ðапиток Maxi Чай Грушевый 0,45л [16:19:33]line 2.000 * 70.00 [16:19:33]line = 140.00 [16:19:33]line ÐДС 12% ÐСП 1% [16:19:33]line > о реализуемом товаре [16:19:33]line ИТОГО: 593.00 [16:19:33]line ÐСП 1% : 5.24 [16:19:33]line ÐДС 12% : 62.97 [16:19:33]line Ðаличными: 593.00 [16:19:33]line Безнал.: 0.00 [16:19:33]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [16:19:33]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [16:19:33]line СÐО: Общий режим [16:19:33]line Чек 117 18.10.2024 16:19 [16:19:33]line Смена: 22 ФФД: 1.0 [16:19:33]line ЗÐМ: 0300000191 [16:19:33]line РÐМ: 0000000000207295 [16:19:33]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [16:19:33]line ФМ: 0000000002342820 [16:19:33]line ФД: 2492 [16:19:33]line ФПД: 79278605338656 [16:19:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T161936&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2492&fm=79278605338656&tin=02508201610067®Number=0000000000207295&sum=59300 [16:19:33]line 0 [16:19:33]OFD Sender: Processing packet 2492 [packets to send 1, broken 0] [16:19:33]ProducePacketName [16:19:33]name=ofd_packets/00002492 [16:19:33]OFD Sender: To server: ‡•öpG, [16:19:33]CommunicateWithHost lk.salyk.kg:30040 [16:19:33]ConnectInit lk.salyk.kg [16:19:33]written 0, free lines is 4095 [16:19:34]Connected sock=9 [16:19:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 B3 02 00 00 88 17 AB 02 E5 C9 5A 03 01 00 03 00 9F 02 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 50 46 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 39 30 37 32 39 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A2 D0 B2 D0 B8 D0 BA D1 81 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 20 38 32 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 76 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 30 30 38 06 04 32 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 61 78 69 20 D0 A7 D0 B0 D0 B9 20 D0 93 D1 80 D1 83 D1 88 D0 B5 D0 B2 D1 8B D0 B9 20 30 2C 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 E7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 99 18 00 00 00 00 07 04 06 00 A4 E7 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 98 8A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BC 09 00 00 35 04 06 00 48 1A 7D 1C 08 20 6B F3 4B E9 08 E9 8C FF [16:19:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 1F 1E 47 00 69 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 32 33 34 32 38 32 30 10 04 04 00 BC 09 00 00 F4 03 04 00 FC 35 12 67 B6 04 01 00 00 18 57 49 D5 D7 12 48 EB [16:19:34]CommunicateWithHost err = 0 [16:19:34]CheckOFDResponse [16:19:34]1017 (14) - 77093643461234 [16:19:34]1041 (16) - 0000000002342820 [16:19:34]1040 (4) - 2492 [16:19:34]1012 (4) - 18.10.2024 10:18 [16:19:34]1206 (1) - 0 [16:19:34]OFD Sender: Remove packet 2492 [16:19:34]ProducePacketName [16:19:34]name=ofd_packets/00002492 [16:19:34]NVStorageDeleteData [16:19:34]Write to MH i2c: 01 00 00 C6 2F F5 [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 07 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: 01 07 00 C6 2F 00 00 00 00 00 4C 0B 53 [16:19:34]RasterBufferAndPrint [16:19:34]line [16:19:34]line [16:19:34]line [16:19:34]line [16:19:34]line [16:19:34]written 0, free lines is 2898 [16:19:34]MH_Cut [16:19:34]Write to MH i2c: D1 01 00 CD 2F 01 CE [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: D1 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: D1 01 00 [16:19:34]MH_I2C_Read... [16:19:34]Read from MH i2c: D1 01 00 CD 2F 00 CD [16:19:34]Write to MH i2c: 01 00 00 CE 2F FD [16:19:34]Write i2c OK [16:19:34]MH_I2C_Read... [16:19:34]OFD Sender: No OFD packet to send [16:19:35]*** Cut start [16:19:35]*** Partial cut [16:19:35]*** CUTSNS_PIN = 1 [16:19:35]*** CUTSNS_PIN = 0 [16:19:36]*** Brake cut motor [16:19:36]Read from MH i2c: 01 [16:19:36]MH_I2C_Read... [16:19:36]*** Stop cut motor [16:19:36]*** Cut end [16:19:36]Read from MH i2c: 01 07 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: 01 07 00 CE 2F 00 00 00 00 00 FF 0F 12 [16:19:36]process_action close_receipt done [16:19:36]requested_data is exist [16:19:36]produce_requested_data [16:19:36]requested_item fm.sn is exist - process it [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 11 00 00 [16:19:36]Write to MH i2c: E2 08 00 CF 2F 80 11 00 00 00 00 00 00 78 [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 17 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 17 00 CF 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C0 [16:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [16:19:36]wFMCommunicate OK [16:19:36]requested_item fd.num is exist - process it [16:19:36]SAM_PROTO_GetFieldsCounters [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 13 00 00 [16:19:36]Write to MH i2c: E2 08 00 D0 2F 80 13 00 00 00 00 00 00 7B [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 62 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 62 00 D0 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BC 09 00 00 0E 04 04 00 16 00 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 CB [16:19:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BC 09 00 00 0E 04 04 00 16 00 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 [16:19:36]wFMCommunicate OK [16:19:36]SAM_PROTO_GetFieldsCounters done [16:19:36]requested_item shift.num is exist - process it [16:19:36]requested_item shift.opened is exist - process it [16:19:36]req_shift_opened [16:19:36]FM_GetShiftState [16:19:36]SAM_PROTO_GetShiftState [16:19:36]wFMCommunicate request_size=4 [16:19:36]MH_SAM_APDU [16:19:36]CAPDU: 80 13 01 00 [16:19:36]Write to MH i2c: E2 08 00 D1 2F 80 13 01 00 00 00 00 00 7D [16:19:36]Write i2c OK [16:19:36]MH_I2C_Read... [16:19:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:19:36]Read from MH i2c: E2 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 0E 00 [16:19:36]MH_I2C_Read... [16:19:36]Read from MH i2c: E2 0E 00 D1 2F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1B [16:19:36]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [16:19:36]wFMCommunicate OK [16:19:36]SAM_PROTO_GetShiftState done [16:19:36]FM_GetShiftState done [16:19:36]req_shift_opened done [16:19:36]requested_item shift.open_date is exist - process it [16:19:36]req_shift_open_date [16:19:36]req_shift_open_date done [16:19:36]produce_requested_data done [16:19:36]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2492,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [16:19:36]process_action_free close_receipt [16:19:36]json_value_free [16:19:36]json_value_free done [16:19:36]process_json_proto returns [16:19:36]Send response to host [16:19:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2492,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [16:19:36]free response buf [16:19:36]execute_script done [16:19:36]execute_script returns [16:19:36]free content buf [16:19:36]Sock 10.Close socket [16:19:36]Sock 10.Thread stoped [16:19:39]OFD Sender: No OFD packet to send [16:19:44]OFD Sender: No OFD packet to send [16:19:49]OFD Sender: No OFD packet to send [16:19:54]OFD Sender: No OFD packet to send [16:19:59]OFD Sender: No OFD packet to send [16:20:04]OFD Sender: No OFD packet to send [16:20:09]OFD Sender: No OFD packet to send [16:20:14]OFD Sender: No OFD packet to send [16:20:19]OFD Sender: No OFD packet to send [16:20:24]OFD Sender: No OFD packet to send [16:20:29]OFD Sender: No OFD packet to send [16:20:34]OFD Sender: No OFD packet to send [16:20:39]OFD Sender: No OFD packet to send [16:20:44]OFD Sender: No OFD packet to send [16:20:49]OFD Sender: No OFD packet to send [16:20:54]OFD Sender: No OFD packet to send [16:20:59]OFD Sender: No OFD packet to send [16:21:04]OFD Sender: No OFD packet to send [16:21:09]OFD Sender: No OFD packet to send [16:21:14]OFD Sender: No OFD packet to send [16:21:19]OFD Sender: No OFD packet to send [16:21:24]OFD Sender: No OFD packet to send [16:21:29]OFD Sender: No OFD packet to send [16:21:34]OFD Sender: No OFD packet to send [16:21:39]OFD Sender: No OFD packet to send [16:21:44]OFD Sender: No OFD packet to send [16:21:49]OFD Sender: No OFD packet to send [16:21:54]OFD Sender: No OFD packet to send [16:21:59]OFD Sender: No OFD packet to send [16:22:04]OFD Sender: No OFD packet to send [16:22:09]OFD Sender: No OFD packet to send [16:22:14]OFD Sender: No OFD packet to send [16:22:19]OFD Sender: No OFD packet to send [16:22:24]OFD Sender: No OFD packet to send [16:22:29]OFD Sender: No OFD packet to send [16:22:34]OFD Sender: No OFD packet to send [16:22:40]OFD Sender: No OFD packet to send [16:22:45]OFD Sender: No OFD packet to send [16:22:50]OFD Sender: No OFD packet to send [16:22:55]OFD Sender: No OFD packet to send [16:23:00]OFD Sender: No OFD packet to send [16:23:05]OFD Sender: No OFD packet to send [16:23:10]OFD Sender: No OFD packet to send [16:23:15]OFD Sender: No OFD packet to send [16:23:20]OFD Sender: No OFD packet to send [16:23:25]OFD Sender: No OFD packet to send [16:23:30]OFD Sender: No OFD packet to send [16:23:35]OFD Sender: No OFD packet to send [16:23:40]OFD Sender: No OFD packet to send [16:23:45]OFD Sender: No OFD packet to send [16:23:50]OFD Sender: No OFD packet to send [16:23:55]OFD Sender: No OFD packet to send [16:24:00]OFD Sender: No OFD packet to send [16:24:05]OFD Sender: No OFD packet to send [16:24:10]OFD Sender: No OFD packet to send [16:24:15]OFD Sender: No OFD packet to send [16:24:20]OFD Sender: No OFD packet to send [16:24:25]OFD Sender: No OFD packet to send [16:24:30]OFD Sender: No OFD packet to send [16:24:35]OFD Sender: No OFD packet to send [16:24:40]OFD Sender: No OFD packet to send [16:24:45]OFD Sender: No OFD packet to send [16:24:50]OFD Sender: No OFD packet to send [16:24:55]OFD Sender: No OFD packet to send [16:25:00]OFD Sender: No OFD packet to send [16:25:05]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [16:28:00]OFD Sender: No OFD packet to send [16:28:05]OFD Sender: No OFD packet to send [16:28:10]OFD Sender: No OFD packet to send [16:28:15]OFD Sender: No OFD packet to send [16:28:20]OFD Sender: No OFD packet to send [16:28:25]OFD Sender: No OFD packet to send [16:28:30]OFD Sender: No OFD packet to send [16:28:35]OFD Sender: No OFD packet to send [16:28:40]OFD Sender: No OFD packet to send [16:28:45]OFD Sender: No OFD packet to send [16:28:50]OFD Sender: No OFD packet to send [16:28:55]OFD Sender: No OFD packet to send [16:29:00]OFD Sender: No OFD packet to send [16:29:05]OFD Sender: No OFD packet to send [16:29:10]OFD Sender: No OFD packet to send [16:29:15]OFD Sender: No OFD packet to send [16:29:20]OFD Sender: No OFD packet to send [16:29:25]OFD Sender: No OFD packet to send [16:29:30]OFD Sender: No OFD packet to send [16:29:35]OFD Sender: No OFD packet to send [16:29:40]OFD Sender: No OFD packet to send [16:29:45]OFD Sender: No OFD packet to send [16:29:50]OFD Sender: No OFD packet to send [16:29:55]OFD Sender: No OFD packet to send [16:30:00]OFD Sender: No OFD packet to send [16:30:05]OFD Sender: No OFD packet to send [16:30:10]OFD Sender: No OFD packet to send [16:30:15]OFD Sender: No OFD packet to send [16:30:20]OFD Sender: No OFD packet to send [16:30:25]OFD Sender: No OFD packet to send [16:30:30]OFD Sender: No OFD packet to send [16:30:35]OFD Sender: No OFD packet to send [16:30:40]OFD Sender: No OFD packet to send [16:30:45]OFD Sender: No OFD packet to send [16:30:50]OFD Sender: No OFD packet to send [16:30:55]OFD Sender: No OFD packet to send [16:31:00]OFD Sender: No OFD packet to send [16:31:05]OFD Sender: No OFD packet to send [16:31:10]OFD Sender: No OFD packet to send [16:31:15]OFD Sender: No OFD packet to send [16:31:20]OFD Sender: No OFD packet to send [16:31:25]OFD Sender: No OFD packet to send [16:31:30]OFD Sender: No OFD packet to send [16:31:35]OFD Sender: No OFD packet to send [16:31:40]OFD Sender: No OFD packet to send [16:31:45]OFD Sender: No OFD packet to send [16:31:50]OFD Sender: No OFD packet to send [16:31:55]OFD Sender: No OFD packet to send [16:32:00]OFD Sender: No OFD packet to send [16:32:05]OFD Sender: No OFD packet to send [16:32:10]OFD Sender: No OFD packet to send [16:32:15]OFD Sender: No OFD packet to send [16:32:20]OFD Sender: No OFD packet to send [16:32:25]OFD Sender: No OFD packet to send [16:32:30]OFD Sender: No OFD packet to send [16:32:35]OFD Sender: No OFD packet to send [16:32:40]OFD Sender: No OFD packet to send [16:32:45]OFD Sender: No OFD packet to send [16:32:50]OFD Sender: No OFD packet to send [16:32:55]OFD Sender: No OFD packet to send [16:33:00]OFD Sender: No OFD packet to send [16:33:05]OFD Sender: No OFD packet to send [16:33:10]OFD Sender: No OFD packet to send [16:33:15]OFD Sender: No OFD packet to send [16:33:20]OFD Sender: No OFD packet to send [16:33:25]OFD Sender: No OFD packet to send [16:33:30]OFD Sender: No OFD packet to send [16:33:35]OFD Sender: No OFD packet to send [16:33:40]OFD Sender: No OFD packet to send [16:33:45]OFD Sender: No OFD packet to send [16:33:50]OFD Sender: No OFD packet to send [16:33:55]OFD Sender: No OFD packet to send [16:34:00]OFD Sender: No OFD packet to send [16:34:05]OFD Sender: No OFD packet to send [16:34:10]OFD Sender: No OFD packet to send [16:34:15]OFD Sender: No OFD packet to send [16:34:20]OFD Sender: No OFD packet to send [16:34:25]OFD Sender: No OFD packet to send [16:34:30]OFD Sender: No OFD packet to send [16:34:35]OFD Sender: No OFD packet to send [16:34:40]OFD Sender: No OFD packet to send [16:34:45]OFD Sender: No OFD packet to send [16:34:50]OFD Sender: No OFD packet to send [16:34:55]OFD Sender: No OFD packet to send [16:35:00]OFD Sender: No OFD packet to send [16:35:05]OFD Sender: No OFD packet to send [16:35:10]OFD Sender: No OFD packet to send [16:35:15]OFD Sender: No OFD packet to send [16:35:20]OFD Sender: No OFD packet to send [16:35:25]OFD Sender: No OFD packet to send [16:35:30]OFD Sender: No OFD packet to send [16:35:35]OFD Sender: No OFD packet to send [16:35:40]OFD Sender: No OFD packet to send [16:35:45]OFD Sender: No OFD packet to send [16:35:50]OFD Sender: No OFD packet to send [16:35:55]OFD Sender: No OFD packet to send [16:36:00]OFD Sender: No OFD packet to send [16:36:05]OFD Sender: No OFD packet to send [16:36:10]OFD Sender: No OFD packet to send [16:36:15]OFD Sender: No OFD packet to send [16:36:20]OFD Sender: No OFD packet to send [16:36:25]OFD Sender: No OFD packet to send [16:36:30]OFD Sender: No OFD packet to send [16:36:35]OFD Sender: No OFD packet to send [16:36:40]OFD Sender: No OFD packet to send [16:36:45]OFD Sender: No OFD packet to send [16:36:50]OFD Sender: No OFD packet to send [16:36:55]OFD Sender: No OFD packet to send [16:37:00]OFD Sender: No OFD packet to send [16:37:05]OFD Sender: No OFD packet to send [16:37:10]OFD Sender: No OFD packet to send [16:37:15]OFD Sender: No OFD packet to send [16:37:20]OFD Sender: No OFD packet to send [16:37:25]OFD Sender: No OFD packet to send [16:37:30]OFD Sender: No OFD packet to send [16:37:35]OFD Sender: No OFD packet to send [16:37:40]OFD Sender: No OFD packet to send [16:37:45]OFD Sender: No OFD packet to send [16:37:50]OFD Sender: No OFD packet to send [16:37:55]OFD Sender: No OFD packet to send [16:38:00]OFD Sender: No OFD packet to send [16:38:05]OFD Sender: No OFD packet to send [16:38:10]OFD Sender: No OFD packet to send [16:38:15]OFD Sender: No OFD packet to send [16:38:20]OFD Sender: No OFD packet to send [16:38:25]OFD Sender: No OFD packet to send [16:38:30]OFD Sender: No OFD packet to send [16:38:35]OFD Sender: No OFD packet to send [16:38:40]OFD Sender: No OFD packet to send [16:38:45]OFD Sender: No OFD packet to send [16:38:50]OFD Sender: No OFD packet to send [16:38:55]OFD Sender: No OFD packet to send [16:39:00]OFD Sender: No OFD packet to send [16:39:05]OFD Sender: No OFD packet to send [16:39:10]OFD Sender: No OFD packet to send [16:39:15]OFD Sender: No OFD packet to send [16:39:20]OFD Sender: No OFD packet to send [16:39:25]OFD Sender: No OFD packet to send [16:39:30]OFD Sender: No OFD packet to send [16:39:35]OFD Sender: No OFD packet to send [16:39:40]OFD Sender: No OFD packet to send [16:39:45]OFD Sender: No OFD packet to send [16:39:50]OFD Sender: No OFD packet to send [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:30]OFD Sender: No OFD packet to send [16:40:35]OFD Sender: No OFD packet to send [16:40:40]OFD Sender: No OFD packet to send [16:40:45]OFD Sender: No OFD packet to send [16:40:50]OFD Sender: No OFD packet to send [16:40:55]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:20]OFD Sender: No OFD packet to send [16:42:25]OFD Sender: No OFD packet to send [16:42:30]OFD Sender: No OFD packet to send [16:42:35]OFD Sender: No OFD packet to send [16:42:40]OFD Sender: No OFD packet to send [16:42:45]OFD Sender: No OFD packet to send [16:42:50]OFD Sender: No OFD packet to send [16:42:55]OFD Sender: No OFD packet to send [16:43:00]OFD Sender: No OFD packet to send [16:43:05]OFD Sender: No OFD packet to send [16:43:10]OFD Sender: No OFD packet to send [16:43:15]OFD Sender: No OFD packet to send [16:43:20]OFD Sender: No OFD packet to send [16:43:25]OFD Sender: No OFD packet to send [16:43:30]OFD Sender: No OFD packet to send [16:43:35]OFD Sender: No OFD packet to send [16:43:40]OFD Sender: No OFD packet to send [16:43:45]OFD Sender: No OFD packet to send [16:43:50]OFD Sender: No OFD packet to send [16:43:55]OFD Sender: No OFD packet to send [16:44:00]OFD Sender: No OFD packet to send [16:44:05]OFD Sender: No OFD packet to send [16:44:10]OFD Sender: No OFD packet to send [16:44:15]OFD Sender: No OFD packet to send [16:44:20]OFD Sender: No OFD packet to send [16:44:25]OFD Sender: No OFD packet to send [16:44:30]OFD Sender: No OFD packet to send [16:44:35]OFD Sender: No OFD packet to send [16:44:40]OFD Sender: No OFD packet to send [16:44:46]OFD Sender: No OFD packet to send [16:44:51]OFD Sender: No OFD packet to send [16:44:56]OFD Sender: No OFD packet to send [16:45:01]OFD Sender: No OFD packet to send [16:45:06]OFD Sender: No OFD packet to send [16:45:11]OFD Sender: No OFD packet to send [16:45:16]OFD Sender: No OFD packet to send [16:45:21]OFD Sender: No OFD packet to send [16:45:26]OFD Sender: No OFD packet to send [16:45:31]OFD Sender: No OFD packet to send [16:45:36]OFD Sender: No OFD packet to send [16:45:41]OFD Sender: No OFD packet to send [16:45:46]OFD Sender: No OFD packet to send [16:45:51]OFD Sender: No OFD packet to send [16:45:56]OFD Sender: No OFD packet to send [16:46:01]OFD Sender: No OFD packet to send [16:46:06]OFD Sender: No OFD packet to send [16:46:11]OFD Sender: No OFD packet to send [16:46:16]OFD Sender: No OFD packet to send [16:46:21]OFD Sender: No OFD packet to send [16:46:26]OFD Sender: No OFD packet to send [16:46:31]OFD Sender: No OFD packet to send [16:46:36]OFD Sender: No OFD packet to send [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]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:26]OFD Sender: No OFD packet to send [16:50:31]OFD Sender: No OFD packet to send [16:50:36]OFD Sender: No OFD packet to send [16:50:41]OFD Sender: No OFD packet to send [16:50:46]OFD Sender: No OFD packet to send [16:50:51]OFD Sender: No OFD packet to send [16:50:56]OFD Sender: No OFD packet to send [16:51:01]OFD Sender: No OFD packet to send [16:51:06]OFD Sender: No OFD packet to send [16:51:11]OFD Sender: No OFD packet to send [16:51:16]OFD Sender: No OFD packet to send [16:51:21]OFD Sender: No OFD packet to send [16:51:26]OFD Sender: No OFD packet to send [16:51:31]OFD Sender: No OFD packet to send [16:51:36]OFD Sender: No OFD packet to send [16:51:41]OFD Sender: No OFD packet to send [16:51:46]OFD Sender: No OFD packet to send [16:51:51]OFD Sender: No OFD packet to send [16:51:56]OFD Sender: No OFD packet to send [16:52:01]OFD Sender: No OFD packet to send [16:52:06]OFD Sender: No OFD packet to send [16:52:11]OFD Sender: No OFD packet to send [16:52:16]OFD Sender: No OFD packet to send [16:52:21]OFD Sender: No OFD packet to send [16:52:26]OFD Sender: No OFD packet to send [16:52:31]OFD Sender: No OFD packet to send [16:52:36]OFD Sender: No OFD packet to send [16:52:41]OFD Sender: No OFD packet to send [16:52:46]OFD Sender: No OFD packet to send [16:52:51]OFD Sender: No OFD packet to send [16:52:56]OFD Sender: No OFD packet to send [16:53:01]OFD Sender: No OFD packet to send [16:53:06]OFD Sender: No OFD packet to send [16:53:11]OFD Sender: No OFD packet to send [16:53:16]OFD Sender: No OFD packet to send [16:53:21]OFD Sender: No OFD packet to send [16:53:26]OFD Sender: No OFD packet to send [16:53:31]OFD Sender: No OFD packet to send [16:53:36]OFD Sender: No OFD packet to send [16:53:41]OFD Sender: No OFD packet to send [16:53:46]OFD Sender: No OFD packet to send [16:53:51]OFD Sender: No OFD packet to send [16:53:56]OFD Sender: No OFD packet to send [16:54:01]OFD Sender: No OFD packet to send [16:54:06]OFD Sender: No OFD packet to send [16:54:11]OFD Sender: No OFD packet to send [16:54:16]OFD Sender: No OFD packet to send [16:54:17]accept exits with 7 [16:54:17]New connection [16:54:17]New thread 3066707300 created [16:54:17]Thread 3066850660 joined [16:54:17]Waiting for new connection... [16:54:17] Sock 7.Parse request [16:54:17]Sock 7.Check first char [16:54:17]Sock 7.First char is OK [16:54:17]request: POST /json_proto HTTP/1.0 [16:54:17]Method: POST [16:54:17]URL: /json_proto [16:54:17]Method is POST - this is cgi request [16:54:17]url: /json_proto [16:54:17]query_string will be loaded in cgi processing [16:54:17]execute_cgi json_proto POST (null) [16:54:17]execute_cgi path=json_proto method=POST [16:54:17]POST find Content-Length [16:54:17]Host: 172.17.52.132:8080 [16:54:17]Content-Length: 629 [16:54:17]Content-Type: application/json [16:54:17] [16:54:17]POST finish read [16:54:17]Found Content-Length = 629 [16:54:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99884", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:17]execute_script... [16:54: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 : (3)99884", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:54:17]POST & json_proto [16:54:17]process_json_proto [16:54:17]json parsed OK: [16:54:17]protocol is kg_v1.0 [16:54:17]action value=close_receipt [16:54:17]process_action close_receipt [16:54:17]cmd_close_receipt [16:54:17]MH_GetDate [16:54:17]Write to MH i2c: F0 00 00 D2 2F F0 [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: F0 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: F0 09 00 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: F0 09 00 D2 2F 00 BE 92 12 67 5A BE F6 66 36 [16:54:17]GetLastDocTimeStamp 1729268376 [16:54:17]current date 1729270462 [16:54:17]FM_GetShiftState [16:54:17]SAM_PROTO_GetShiftState [16:54:17]wFMCommunicate request_size=4 [16:54:17]MH_SAM_APDU [16:54:17]CAPDU: 80 13 01 00 [16:54:17]Write to MH i2c: E2 08 00 D3 2F 80 13 01 00 00 00 00 00 7F [16:54:17]Write i2c OK [16:54:17]MH_I2C_Read... [16:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:17]Read from MH i2c: E2 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: E2 0E 00 [16:54:17]MH_I2C_Read... [16:54:17]Read from MH i2c: E2 0E 00 D3 2F 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1D [16:54:17]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [16:54:17]wFMCommunicate OK [16:54:17]SAM_PROTO_GetShiftState done [16:54:17]FM_GetShiftState done [16:54:17]opened in 1729209717 [16:54:17]opened+sec_in_day 1729296117 [16:54:17]quantity*price = 5000 [16:54:17]sum+1 = 5001 [16:54:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 ÐСП 1% : 0.44 ÐДС 12% : 5.31 Ðаличными: 50.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 118 18.10.2024 16:54 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2493 ФПД: 88033237138541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T165422&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2493&fm=88033237138541&tin=02508201610067®Number=0000000000207295&sum=5000 0 [16:54:18]StoreToDocumentArchive [16:54:18]shift 22 fd 2493 [16:54:18]save to /storage/0022/doc_00002493 [16:54:18]save last doc name /storage/0022/doc_00002493 to /storage/kkm_last_doc_name [16:54:18]save OK [16:54:18]Clear old archive folders... [16:54:18]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:54:18]tlvbuf is B6F3FE10 [16:54:18]SAM_PROTO_ClearQueue [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 09 00 00 [16:54:18]Write to MH i2c: E2 08 00 E0 2F 80 09 00 00 00 00 00 00 81 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 03 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 03 00 E0 2F 00 90 00 83 [16:54:18]RAPDU: 90 00 [16:54:18]wFMCommunicate OK [16:54:18]SAM_PROTO_ClearQueue done [16:54:18]KKMCreateOFDPacket [16:54:18]OFDProtocolAddRootSTLVToBuf [16:54:18]FM_MakeSignedData [16:54:18]FM_MakeSignedData [16:54:18]SAM_PROTO_SignData [16:54:18]wFMCommunicate request_size=4 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 0D 01 02 [16:54:18]Write to MH i2c: E2 08 00 E1 2F 80 0D 01 02 00 00 00 00 89 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 03 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 03 00 E1 2F 00 90 00 84 [16:54:18]RAPDU: 90 00 [16:54:18]wFMCommunicate OK [16:54:18]wFMCommunicate request_size=255 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BE 92 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 [16:54:18]Write to MH i2c: E2 02 01 E2 2F 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BE 92 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 00 00 F2 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:18]Read from MH i2c: E2 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 03 00 [16:54:18]MH_I2C_Read... [16:54:18]Read from MH i2c: E2 03 00 E2 2F 00 90 00 85 [16:54:18]RAPDU: 90 00 [16:54:18]wFMCommunicate OK [16:54:18]wFMCommunicate request_size=28 [16:54:18]MH_SAM_APDU [16:54:18]CAPDU: 80 0D 02 02 17 34 32 38 32 30 10 04 04 00 BD 09 00 00 35 04 06 00 50 10 D5 D3 FC 6D [16:54:18]Write to MH i2c: E2 1F 00 E3 2F 80 0D 02 02 17 00 34 32 38 32 30 10 04 04 00 BD 09 00 00 35 04 06 00 50 10 D5 D3 FC 6D 00 00 48 [16:54:18]Write i2c OK [16:54:18]MH_I2C_Read... [16:54:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:54:19]Read from MH i2c: E2 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: E2 03 00 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: E2 03 00 E3 2F 00 90 00 86 [16:54:19]RAPDU: 90 00 [16:54:19]wFMCommunicate OK [16:54:19]wFMCommunicate request_size=4 [16:54:19]MH_SAM_APDU [16:54:19]CAPDU: 80 0D 03 02 [16:54:19]Write to MH i2c: E2 08 00 E4 2F 80 0D 03 02 00 00 00 00 8E [16:54:19]Write i2c OK [16:54:19]MH_I2C_Read... [16:54:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:54:19]Read from MH i2c: E2 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: E2 0B 00 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: E2 0B 00 E4 2F 00 99 E5 35 27 D9 BA 8A DC 90 00 62 [16:54:19]RAPDU: 99 E5 35 27 D9 BA 8A DC 90 00 [16:54:19]wFMCommunicate OK [16:54:19]SAM_PROTO_SignData done [16:54:19]FM_MakeSignedData done [16:54:19]CreateOFDProtocolMessage [16:54:19]wFMCommunicate request_size=4 [16:54:19]MH_SAM_APDU [16:54:19]CAPDU: 80 11 00 00 [16:54:19]Write to MH i2c: E2 08 00 E5 2F 80 11 00 00 00 00 00 00 8E [16:54:19]Write i2c OK [16:54:19]MH_I2C_Read... [16:54:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:19]Read from MH i2c: E2 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: E2 17 00 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: E2 17 00 E5 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D6 [16:54:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [16:54:19]wFMCommunicate OK [16:54:19]CreateOFDProtocolMessage done [16:54:19]OFDSenderStorePacket 2493 [16:54:19]StoreOFDPacket docnum=2493 [16:54:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 21 01 00 00 22 89 19 01 0F FB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BE 92 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BD 09 00 00 35 04 06 00 50 10 D5 D3 FC 6D 99 E5 35 27 D9 BA 8A DC [16:54:19]CheckFolder [16:54:19]dirname=/storage/ofd_packets [16:54:19]CheckFolder done [16:54:19]ProducePacketName [16:54:19]name=ofd_packets/00002493 [16:54:19]NVStorageSaveData ofd_packets/00002493 [16:54:19]File name is /storage/ofd_packets/00002493 [16:54:19]Write 319 bytes [16:54:19]NVStorageSaveData done [16:54:19]OFDSenderStorePacket done [16:54:19]KKMCreateOFDPacket done [16:54:19]NVStorageSaveData kkm_last_timestamp [16:54:19]File name is /storage/kkm_last_timestamp [16:54:19]Write 4 bytes [16:54:19]NVStorageSaveData done [16:54:19]ExternCall_PrintAddStr [16:54:19]wPrintStart [16:54:19]Write to MH i2c: 01 00 00 E6 2F 15 [16:54:19]Write i2c OK [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: 01 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: 01 07 00 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: 01 07 00 E6 2F 00 00 00 00 00 FF 0F 2A [16:54:19]RasterBufferAndPrint [16:54:19]line Счет N : (3)99884 [16:54:19]line ИÐÐ: 02508201610067 [16:54:19]line Контрольно-КаÑÑовый Чек [16:54:19]line ПРОДÐЖР[16:54:19]line Товар: 4700000160358 [16:54:19]line Вода Легенда 1л [16:54:19]line 1.000 * 50.00 [16:54:19]line = 50.00 [16:54:19]line ÐДС 12% ÐСП 1% [16:54:19]line > о реализуемом товаре [16:54:19]line ИТОГО: 50.00 [16:54:19]line ÐСП 1% : 0.44 [16:54:19]line ÐДС 12% : 5.31 [16:54:19]line Ðаличными: 50.00 [16:54:19]line Безнал.: 0.00 [16:54:19]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [16:54:19]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [16:54:19]line СÐО: Общий режим [16:54:19]line Чек 118 18.10.2024 16:54 [16:54:19]line Смена: 22 ФФД: 1.0 [16:54:19]line ЗÐМ: 0300000191 [16:54:19]line РÐМ: 0000000000207295 [16:54:19]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [16:54:19]line ФМ: 0000000002342820 [16:54:19]line ФД: 2493 [16:54:19]line ФПД: 88033237138541 [16:54:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T165422&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2493&fm=88033237138541&tin=02508201610067®Number=0000000000207295&sum=5000 [16:54:19]line 0 [16:54:19]OFD Sender: Processing packet 2493 [packets to send 1, broken 0] [16:54:19]ProducePacketName [16:54:19]name=ofd_packets/00002493 [16:54:19]OFD Sender: To server: ‡•öpG, [16:54:19]CommunicateWithHost lk.salyk.kg:30040 [16:54:19]ConnectInit lk.salyk.kg [16:54:19]written 0, free lines is 4095 [16:54:19]Connected sock=10 [16:54:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 21 01 00 00 22 89 19 01 0F FB 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 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 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 BE 92 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BD 09 00 00 35 04 06 00 50 10 D5 D3 FC 6D 99 E5 35 27 D9 BA 8A DC [16:54:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 F2 AC 47 00 E4 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BD 09 00 00 F4 03 04 00 22 3E 12 67 B6 04 01 00 00 45 E2 6D CC 79 A2 13 C3 [16:54:19]CommunicateWithHost err = 0 [16:54:19]CheckOFDResponse [16:54:19]1017 (14) - 77093643461234 [16:54:19]1041 (16) - 0000000002342820 [16:54:19]1040 (4) - 2493 [16:54:19]1012 (4) - 18.10.2024 10:53 [16:54:19]1206 (1) - 0 [16:54:19]OFD Sender: Remove packet 2493 [16:54:19]ProducePacketName [16:54:19]name=ofd_packets/00002493 [16:54:19]NVStorageDeleteData [16:54:19]Write to MH i2c: 01 00 00 0E 30 3E [16:54:19]Write i2c OK [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: 01 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: 01 07 00 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: 01 07 00 0E 30 00 00 00 00 00 D0 0C 21 [16:54:19]RasterBufferAndPrint [16:54:19]line [16:54:19]line [16:54:19]line [16:54:19]line [16:54:19]line [16:54:19]written 0, free lines is 3286 [16:54:19]MH_Cut [16:54:19]Write to MH i2c: D1 01 00 15 30 01 17 [16:54:19]Write i2c OK [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: D1 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: D1 01 00 [16:54:19]MH_I2C_Read... [16:54:19]Read from MH i2c: D1 01 00 15 30 00 16 [16:54:19]Write to MH i2c: 01 00 00 16 30 46 [16:54:19]Write i2c OK [16:54:19]MH_I2C_Read... [16:54:20]OFD Sender: No OFD packet to send [16:54:20]*** Cut start [16:54:20]*** Partial cut [16:54:20]*** CUTSNS_PIN = 1 [16:54:20]*** CUTSNS_PIN = 0 [16:54:21]*** Brake cut motor [16:54:21]Read from MH i2c: 01 [16:54:21]MH_I2C_Read... [16:54:21]*** Stop cut motor [16:54:21]*** Cut end [16:54:21]Read from MH i2c: 01 07 00 [16:54:21]MH_I2C_Read... [16:54:21]Read from MH i2c: 01 07 00 16 30 00 00 00 00 00 FF 0F 5B [16:54:21]process_action close_receipt done [16:54:21]requested_data is exist [16:54:21]produce_requested_data [16:54:21]requested_item fm.sn is exist - process it [16:54:21]wFMCommunicate request_size=4 [16:54:21]MH_SAM_APDU [16:54:21]CAPDU: 80 11 00 00 [16:54:21]Write to MH i2c: E2 08 00 17 30 80 11 00 00 00 00 00 00 C1 [16:54:21]Write i2c OK [16:54:21]MH_I2C_Read... [16:54:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:54:21]Read from MH i2c: E2 [16:54:21]MH_I2C_Read... [16:54:21]Read from MH i2c: E2 17 00 [16:54:21]MH_I2C_Read... [16:54:21]Read from MH i2c: E2 17 00 17 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 09 [16:54:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [16:54:21]wFMCommunicate OK [16:54:21]requested_item fd.num is exist - process it [16:54:21]SAM_PROTO_GetFieldsCounters [16:54:21]wFMCommunicate request_size=4 [16:54:21]MH_SAM_APDU [16:54:21]CAPDU: 80 13 00 00 [16:54:21]Write to MH i2c: E2 08 00 18 30 80 13 00 00 00 00 00 00 C4 [16:54:21]Write i2c OK [16:54:21]MH_I2C_Read... [16:54:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:54:21]Read from MH i2c: E2 [16:54:21]MH_I2C_Read... [16:54:21]Read from MH i2c: E2 62 00 [16:54:21]MH_I2C_Read... [16:54:21]Read from MH i2c: E2 62 00 18 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BD 09 00 00 0E 04 04 00 16 00 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 18 [16:54:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BD 09 00 00 0E 04 04 00 16 00 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 [16:54:21]wFMCommunicate OK [16:54:21]SAM_PROTO_GetFieldsCounters done [16:54:21]requested_item shift.num is exist - process it [16:54:21]requested_item shift.opened is exist - process it [16:54:21]req_shift_opened [16:54:21]FM_GetShiftState [16:54:21]SAM_PROTO_GetShiftState [16:54:21]wFMCommunicate request_size=4 [16:54:21]MH_SAM_APDU [16:54:21]CAPDU: 80 13 01 00 [16:54:21]Write to MH i2c: E2 08 00 19 30 80 13 01 00 00 00 00 00 C6 [16:54:21]Write i2c OK [16:54:21]MH_I2C_Read... [16:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:54:21]Read from MH i2c: E2 [16:54:21]MH_I2C_Read... [16:54:21]Read from MH i2c: E2 0E 00 [16:54:21]MH_I2C_Read... [16:54:21]Read from MH i2c: E2 0E 00 19 30 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 64 [16:54:21]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [16:54:21]wFMCommunicate OK [16:54:21]SAM_PROTO_GetShiftState done [16:54:21]FM_GetShiftState done [16:54:21]req_shift_opened done [16:54:21]requested_item shift.open_date is exist - process it [16:54:21]req_shift_open_date [16:54:21]req_shift_open_date done [16:54:21]produce_requested_data done [16:54:21]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2493,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [16:54:21]process_action_free close_receipt [16:54:21]json_value_free [16:54:21]json_value_free done [16:54:21]process_json_proto returns [16:54:21]Send response to host [16:54:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2493,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [16:54:21]free response buf [16:54:21]execute_script done [16:54:21]execute_script returns [16:54:21]free content buf [16:54:21]Sock 7.Close socket [16:54:21]Sock 7.Thread stoped [16:54:25]OFD Sender: No OFD packet to send [16:54:30]OFD Sender: No OFD packet to send [16:54:35]OFD Sender: No OFD packet to send [16:54:40]OFD Sender: No OFD packet to send [16:54:45]OFD Sender: No OFD packet to send [16:54:50]OFD Sender: No OFD packet to send [16:54:55]OFD Sender: No OFD packet to send [16:55:00]OFD Sender: No OFD packet to send [16:55:05]OFD Sender: No OFD packet to send [16:55:10]OFD Sender: No OFD packet to send [16:55:15]OFD Sender: No OFD packet to send [16:55:20]OFD Sender: No OFD packet to send [16:55:25]OFD Sender: No OFD packet to send [16:55:30]OFD Sender: No OFD packet to send [16:55:35]OFD Sender: No OFD packet to send [16:55:40]OFD Sender: No OFD packet to send [16:55:45]OFD Sender: No OFD packet to send [16:55:50]OFD Sender: No OFD packet to send [16:55:55]OFD Sender: No OFD packet to send [16:56:00]OFD Sender: No OFD packet to send [16:56:05]OFD Sender: No OFD packet to send [16:56:10]OFD Sender: No OFD packet to send [16:56:15]OFD Sender: No OFD packet to send [16:56:20]OFD Sender: No OFD packet to send [16:56:25]OFD Sender: No OFD packet to send [16:56:30]OFD Sender: No OFD packet to send [16:56:35]OFD Sender: No OFD packet to send [16:56:40]OFD Sender: No OFD packet to send [16:56:45]OFD Sender: No OFD packet to send [16:56:50]OFD Sender: No OFD packet to send [16:56:55]OFD Sender: No OFD packet to send [16:57:00]OFD Sender: No OFD packet to send [16:57:05]OFD Sender: No OFD packet to send [16:57:10]OFD Sender: No OFD packet to send [16:57:15]OFD Sender: No OFD packet to send [16:57:20]OFD Sender: No OFD packet to send [16:57:25]OFD Sender: No OFD packet to send [16:57:30]OFD Sender: No OFD packet to send [16:57:35]OFD Sender: No OFD packet to send [16:57:40]OFD Sender: No OFD packet to send [16:57:45]OFD Sender: No OFD packet to send [16:57:50]OFD Sender: No OFD packet to send [16:57:55]OFD Sender: No OFD packet to send [16:58:00]OFD Sender: No OFD packet to send [16:58:05]OFD Sender: No OFD packet to send [16:58:10]OFD Sender: No OFD packet to send [16:58:15]OFD Sender: No OFD packet to send [16:58:20]OFD Sender: No OFD packet to send [16:58:25]OFD Sender: No OFD packet to send [16:58:30]OFD Sender: No OFD packet to send [16:58:35]OFD Sender: No OFD packet to send [16:58:40]OFD Sender: No OFD packet to send [16:58:45]OFD Sender: No OFD packet to send [16:58:50]OFD Sender: No OFD packet to send [16:58:55]OFD Sender: No OFD packet to send [16:59:00]OFD Sender: No OFD packet to send [16:59:05]OFD Sender: No OFD packet to send [16:59:10]OFD Sender: No OFD packet to send [16:59:15]OFD Sender: No OFD packet to send [16:59:20]OFD Sender: No OFD packet to send [16:59:25]OFD Sender: No OFD packet to send [16:59:30]OFD Sender: No OFD packet to send [16:59:35]OFD Sender: No OFD packet to send [16:59:40]OFD Sender: No OFD packet to send [16:59:45]OFD Sender: No OFD packet to send [16:59:50]OFD Sender: No OFD packet to send [16:59:55]OFD Sender: No OFD packet to send [17:00:00]OFD Sender: No OFD packet to send [17:00:05]OFD Sender: No OFD packet to send [17:00:10]OFD Sender: No OFD packet to send [17:00:15]OFD Sender: No OFD packet to send [17:00:20]OFD Sender: No OFD packet to send [17:00:25]OFD Sender: No OFD packet to send [17:00:30]OFD Sender: No OFD packet to send [17:00:35]OFD Sender: No OFD packet to send [17:00:40]OFD Sender: No OFD packet to send [17:00:45]OFD Sender: No OFD packet to send [17:00:50]OFD Sender: No OFD packet to send [17:00:55]OFD Sender: No OFD packet to send [17:01:00]OFD Sender: No OFD packet to send [17:01:05]OFD Sender: No OFD packet to send [17:01:10]OFD Sender: No OFD packet to send [17:01:15]OFD Sender: No OFD packet to send [17:01:20]OFD Sender: No OFD packet to send [17:01:25]OFD Sender: No OFD packet to send [17:01:30]OFD Sender: No OFD packet to send [17:01:35]OFD Sender: No OFD packet to send [17:01:40]OFD Sender: No OFD packet to send [17:01:45]OFD Sender: No OFD packet to send [17:01:50]OFD Sender: No OFD packet to send [17:01:55]OFD Sender: No OFD packet to send [17:02:00]OFD Sender: No OFD packet to send [17:02:05]OFD Sender: No OFD packet to send [17:02:10]OFD Sender: No OFD packet to send [17:02:15]OFD Sender: No OFD packet to send [17:02:20]OFD Sender: No OFD packet to send [17:02:25]OFD Sender: No OFD packet to send [17:02:30]OFD Sender: No OFD packet to send [17:02:35]OFD Sender: No OFD packet to send [17:02:40]OFD Sender: No OFD packet to send [17:02:45]OFD Sender: No OFD packet to send [17:02:50]OFD Sender: No OFD packet to send [17:02:55]OFD Sender: No OFD packet to send [17:03:00]OFD Sender: No OFD packet to send [17:03:05]OFD Sender: No OFD packet to send [17:03:10]OFD Sender: No OFD packet to send [17:03:15]OFD Sender: No OFD packet to send [17:03:20]OFD Sender: No OFD packet to send [17:03:25]OFD Sender: No OFD packet to send [17:03:30]OFD Sender: No OFD packet to send [17:03:35]OFD Sender: No OFD packet to send [17:03:40]OFD Sender: No OFD packet to send [17:03:45]OFD Sender: No OFD packet to send [17:03:50]OFD Sender: No OFD packet to send [17:03:55]OFD Sender: No OFD packet to send [17:04:00]OFD Sender: No OFD packet to send [17:04:05]OFD Sender: No OFD packet to send [17:04:10]OFD Sender: No OFD packet to send [17:04:15]OFD Sender: No OFD packet to send [17:04:20]OFD Sender: No OFD packet to send [17:04:25]OFD Sender: No OFD packet to send [17:04:30]OFD Sender: No OFD packet to send [17:04:35]OFD Sender: No OFD packet to send [17:04:40]OFD Sender: No OFD packet to send [17:04:45]OFD Sender: No OFD packet to send [17:04:50]OFD Sender: No OFD packet to send [17:04:55]OFD Sender: No OFD packet to send [17:05:00]OFD Sender: No OFD packet to send [17:05:05]OFD Sender: No OFD packet to send [17:05:10]OFD Sender: No OFD packet to send [17:05:15]OFD Sender: No OFD packet to send [17:05:20]OFD Sender: No OFD packet to send [17:05:25]OFD Sender: No OFD packet to send [17:05:30]OFD Sender: No OFD packet to send [17:05:35]OFD Sender: No OFD packet to send [17:05:40]OFD Sender: No OFD packet to send [17:05:45]OFD Sender: No OFD packet to send [17:05:50]OFD Sender: No OFD packet to send [17:05:55]OFD Sender: No OFD packet to send [17:06:00]OFD Sender: No OFD packet to send [17:06:05]OFD Sender: No OFD packet to send [17:06:10]OFD Sender: No OFD packet to send [17:06:15]OFD Sender: No OFD packet to send [17:06:20]OFD Sender: No OFD packet to send [17:06:25]OFD Sender: No OFD packet to send [17:06:30]OFD Sender: No OFD packet to send [17:06:35]OFD Sender: No OFD packet to send [17:06:40]OFD Sender: No OFD packet to send [17:06:45]OFD Sender: No OFD packet to send [17:06:50]OFD Sender: No OFD packet to send [17:06:55]OFD Sender: No OFD packet to send [17:07:00]OFD Sender: No OFD packet to send [17:07:05]OFD Sender: No OFD packet to send [17:07:10]OFD Sender: No OFD packet to send [17:07:15]OFD Sender: No OFD packet to send [17:07:20]OFD Sender: No OFD packet to send [17:07:25]OFD Sender: No OFD packet to send [17:07:30]OFD Sender: No OFD packet to send [17:07:35]OFD Sender: No OFD packet to send [17:07:40]OFD Sender: No OFD packet to send [17:07:45]OFD Sender: No OFD packet to send [17:07:50]OFD Sender: No OFD packet to send [17:07:55]OFD Sender: No OFD packet to send [17:08:00]OFD Sender: No OFD packet to send [17:08:05]OFD Sender: No OFD packet to send [17:08:10]OFD Sender: No OFD packet to send [17:08:15]OFD Sender: No OFD packet to send [17:08:21]OFD Sender: No OFD packet to send [17:08:26]OFD Sender: No OFD packet to send [17:08:31]OFD Sender: No OFD packet to send [17:08:36]OFD Sender: No OFD packet to send [17:08:41]OFD Sender: No OFD packet to send [17:08:46]OFD Sender: No OFD packet to send [17:08:51]OFD Sender: No OFD packet to send [17:08:56]OFD Sender: No OFD packet to send [17:09:01]OFD Sender: No OFD packet to send [17:09:06]OFD Sender: No OFD packet to send [17:09:11]OFD Sender: No OFD packet to send [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:11]OFD Sender: No OFD packet to send [17:10:16]OFD Sender: No OFD packet to send [17:10:21]OFD Sender: No OFD packet to send [17:10:26]OFD Sender: No OFD packet to send [17:10:31]OFD Sender: No OFD packet to send [17:10:36]OFD Sender: No OFD packet to send [17:10:41]OFD Sender: No OFD packet to send [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:16]OFD Sender: No OFD packet to send [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:51]OFD Sender: No OFD packet to send [17:15:56]OFD Sender: No OFD packet to send [17:16:01]OFD Sender: No OFD packet to send [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17: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:59]accept exits with 9 [17:19:59]New connection [17:19:59]New thread 3066850660 created [17:19:59]Thread 3066707300 joined [17:19:59]Waiting for new connection... [17:19:59] Sock 9.Parse request [17:19:59]Sock 9.Check first char [17:19:59]Sock 9.First char is OK [17:19:59]request: POST /json_proto HTTP/1.0 [17:19:59]Method: POST [17:19:59]URL: /json_proto [17:19:59]Method is POST - this is cgi request [17:19:59]url: /json_proto [17:19:59]query_string will be loaded in cgi processing [17:19:59]execute_cgi json_proto POST (null) [17:19:59]execute_cgi path=json_proto method=POST [17:19:59]POST find Content-Length [17:19:59]Host: 172.17.52.132:8080 [17:19:59]Content-Length: 667 [17:19:59]Content-Type: application/json [17:19:59] [17:19:59]POST finish read [17:19:59]Found Content-Length = 667 [17:19:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99885", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:59]execute_script... [17:19: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 : (3)99885", "tax_sys" : 0, "items" : [ { "code": "5449000189394", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u044F\u0433\u043E\u0434\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:19:59]POST & json_proto [17:19:59]process_json_proto [17:19:59]json parsed OK: [17:19:59]protocol is kg_v1.0 [17:19:59]action value=close_receipt [17:19:59]process_action close_receipt [17:19:59]cmd_close_receipt [17:19:59]MH_GetDate [17:19:59]Write to MH i2c: F0 00 00 1A 30 39 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: F0 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: F0 09 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: F0 09 00 1A 30 00 C4 98 12 67 5A BE F6 66 8B [17:19:59]GetLastDocTimeStamp 1729270462 [17:19:59]current date 1729272004 [17:19:59]FM_GetShiftState [17:19:59]SAM_PROTO_GetShiftState [17:19:59]wFMCommunicate request_size=4 [17:19:59]MH_SAM_APDU [17:19:59]CAPDU: 80 13 01 00 [17:19:59]Write to MH i2c: E2 08 00 1B 30 80 13 01 00 00 00 00 00 C8 [17:19:59]Write i2c OK [17:19:59]MH_I2C_Read... [17:19:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:19:59]Read from MH i2c: E2 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0E 00 [17:19:59]MH_I2C_Read... [17:19:59]Read from MH i2c: E2 0E 00 1B 30 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 66 [17:19:59]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:19:59]wFMCommunicate OK [17:19:59]SAM_PROTO_GetShiftState done [17:19:59]FM_GetShiftState done [17:19:59]opened in 1729209717 [17:19:59]opened+sec_in_day 1729296117 [17:19:59]quantity*price = 7500 [17:19:59]sum+1 = 7501 [17:19:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 ÐСП 1% : 0.66 ÐДС 12% : 7.96 Ðаличными: 75.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 119 18.10.2024 17:20 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2494 ФПД: 76568205785274 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T172004&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2494&fm=76568205785274&tin=02508201610067®Number=0000000000207295&sum=7500 0 [17:20:00]StoreToDocumentArchive [17:20:00]shift 22 fd 2494 [17:20:00]save to /storage/0022/doc_00002494 [17:20:00]save last doc name /storage/0022/doc_00002494 to /storage/kkm_last_doc_name [17:20:00]save OK [17:20:00]Clear old archive folders... [17:20:00]ProcessDocumentItem done err = 0, tmpTLVsize=287 [17:20:00]tlvbuf is 01403990 [17:20:00]SAM_PROTO_ClearQueue [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 09 00 00 [17:20:00]Write to MH i2c: E2 08 00 28 30 80 09 00 00 00 00 00 00 CA [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 03 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 03 00 28 30 00 90 00 CC [17:20:00]RAPDU: 90 00 [17:20:00]wFMCommunicate OK [17:20:00]SAM_PROTO_ClearQueue done [17:20:00]KKMCreateOFDPacket [17:20:00]OFDProtocolAddRootSTLVToBuf [17:20:00]FM_MakeSignedData [17:20:00]FM_MakeSignedData [17:20:00]SAM_PROTO_SignData [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 0D 01 02 [17:20:00]Write to MH i2c: E2 08 00 29 30 80 0D 01 02 00 00 00 00 D2 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 03 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 03 00 29 30 00 90 00 CD [17:20:00]RAPDU: 90 00 [17:20:00]wFMCommunicate OK [17:20:00]wFMCommunicate request_size=255 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 C4 98 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 [17:20:00]Write to MH i2c: E2 02 01 2A 30 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 C4 98 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 00 00 B0 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 03 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 03 00 2A 30 00 90 00 CE [17:20:00]RAPDU: 90 00 [17:20:00]wFMCommunicate OK [17:20:00]wFMCommunicate request_size=46 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 0D 02 02 29 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BE 09 00 00 35 04 06 00 45 A3 6C B4 F8 BA [17:20:00]Write to MH i2c: E2 31 00 2B 30 80 0D 02 02 29 00 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BE 09 00 00 35 04 06 00 45 A3 6C B4 F8 BA 00 00 D9 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 03 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 03 00 2B 30 00 90 00 CF [17:20:00]RAPDU: 90 00 [17:20:00]wFMCommunicate OK [17:20:00]wFMCommunicate request_size=4 [17:20:00]MH_SAM_APDU [17:20:00]CAPDU: 80 0D 03 02 [17:20:00]Write to MH i2c: E2 08 00 2C 30 80 0D 03 02 00 00 00 00 D7 [17:20:00]Write i2c OK [17:20:00]MH_I2C_Read... [17:20:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:20:00]Read from MH i2c: E2 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 0B 00 [17:20:00]MH_I2C_Read... [17:20:00]Read from MH i2c: E2 0B 00 2C 30 00 F5 31 5F F4 BA DD 58 04 90 00 44 [17:20:00]RAPDU: F5 31 5F F4 BA DD 58 04 90 00 [17:20:00]wFMCommunicate OK [17:20:00]SAM_PROTO_SignData done [17:20:00]FM_MakeSignedData done [17:20:00]CreateOFDProtocolMessage [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 2D 30 80 11 00 00 00 00 00 00 D7 [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 2D 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 1F [17:20:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [17:20:00]wFMCommunicate OK [17:20:00]CreateOFDProtocolMessage done [17:20:00]OFDSenderStorePacket 2494 [17:20:00]StoreOFDPacket docnum=2494 [17:20:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 33 01 00 00 16 39 2B 01 8B 77 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 C4 98 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BE 09 00 00 35 04 06 00 45 A3 6C B4 F8 BA F5 31 5F F4 BA DD 58 04 [17:20:00]CheckFolder [17:20:00]dirname=/storage/ofd_packets [17:20:00]CheckFolder done [17:20:00]ProducePacketName [17:20:00]name=ofd_packets/00002494 [17:20:00]NVStorageSaveData ofd_packets/00002494 [17:20:00]File name is /storage/ofd_packets/00002494 [17:20:00]Write 337 bytes [17:20:00]NVStorageSaveData done [17:20:00]OFDSenderStorePacket done [17:20:00]KKMCreateOFDPacket done [17:20:00]NVStorageSaveData kkm_last_timestamp [17:20:00]File name is /storage/kkm_last_timestamp [17:20:00]Write 4 bytes [17:20:00]NVStorageSaveData done [17:20:00]ExternCall_PrintAddStr [17:20:00]wPrintStart [17:20:00]Write to MH i2c: 01 00 00 2E 30 5E [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 2E 30 00 00 00 00 00 FF 0F 73 [17:20:00]RasterBufferAndPrint [17:20:00]line Счет N : (3)99885 [17:20:00]line ИÐÐ: 02508201610067 [17:20:00]line Контрольно-КаÑÑовый Чек [17:20:00]line ПРОДÐЖР[17:20:00]line Товар: 5449000189394 [17:20:00]line Холодный чай Fuse Ñгода 0,5л [17:20:00]line 1.000 * 75.00 [17:20:00]line = 75.00 [17:20:00]line ÐДС 12% ÐСП 1% [17:20:00]line > о реализуемом товаре [17:20:00]line ИТОГО: 75.00 [17:20:00]line ÐСП 1% : 0.66 [17:20:00]line ÐДС 12% : 7.96 [17:20:00]line Ðаличными: 75.00 [17:20:00]line Безнал.: 0.00 [17:20:00]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [17:20:00]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [17:20:00]line СÐО: Общий режим [17:20:00]line Чек 119 18.10.2024 17:20 [17:20:00]line Смена: 22 ФФД: 1.0 [17:20:00]line ЗÐМ: 0300000191 [17:20:00]line РÐМ: 0000000000207295 [17:20:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [17:20:00]line ФМ: 0000000002342820 [17:20:00]line ФД: 2494 [17:20:00]line ФПД: 76568205785274 [17:20:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T172004&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2494&fm=76568205785274&tin=02508201610067®Number=0000000000207295&sum=7500 [17:20:01]line 0 [17:20:01]OFD Sender: Processing packet 2494 [packets to send 1, broken 0] [17:20:01]ProducePacketName [17:20:01]name=ofd_packets/00002494 [17:20:01]OFD Sender: To server: ‡•öpG, [17:20:01]CommunicateWithHost lk.salyk.kg:30040 [17:20:01]ConnectInit lk.salyk.kg [17:20:01]written 0, free lines is 4095 [17:20:01]Connected sock=11 [17:20:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 33 01 00 00 16 39 2B 01 8B 77 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 39 34 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D1 8F D0 B3 D0 BE 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 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 C4 98 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BE 09 00 00 35 04 06 00 45 A3 6C B4 F8 BA F5 31 5F F4 BA DD 58 04 [17:20:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 EB 8A 47 00 CE 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 32 33 34 32 38 32 30 10 04 04 00 BE 09 00 00 F4 03 04 00 27 44 12 67 B6 04 01 00 00 39 21 99 4D 98 FD 17 3F [17:20:01]CommunicateWithHost err = 0 [17:20:01]CheckOFDResponse [17:20:01]1017 (14) - 77093643461234 [17:20:01]1041 (16) - 0000000002342820 [17:20:01]1040 (4) - 2494 [17:20:01]1012 (4) - 18.10.2024 11:19 [17:20:01]1206 (1) - 0 [17:20:01]OFD Sender: Remove packet 2494 [17:20:01]ProducePacketName [17:20:01]name=ofd_packets/00002494 [17:20:01]NVStorageDeleteData [17:20:01]Write to MH i2c: 01 00 00 56 30 86 [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: 01 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: 01 07 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: 01 07 00 56 30 00 00 00 00 00 C4 0C 5D [17:20:01]RasterBufferAndPrint [17:20:01]line [17:20:01]line [17:20:01]line [17:20:01]line [17:20:01]line [17:20:01]written 0, free lines is 3272 [17:20:01]MH_Cut [17:20:01]Write to MH i2c: D1 01 00 5D 30 01 5F [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: D1 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: D1 01 00 [17:20:01]MH_I2C_Read... [17:20:01]Read from MH i2c: D1 01 00 5D 30 00 5E [17:20:01]Write to MH i2c: 01 00 00 5E 30 8E [17:20:01]Write i2c OK [17:20:01]MH_I2C_Read... [17:20:02]OFD Sender: No OFD packet to send [17:20:02]*** Cut start [17:20:02]*** Partial cut [17:20:02]*** CUTSNS_PIN = 1 [17:20:02]*** CUTSNS_PIN = 0 [17:20:02]*** Brake cut motor [17:20:03]Read from MH i2c: 01 [17:20:03]MH_I2C_Read... [17:20:03]*** Stop cut motor [17:20:03]*** Cut end [17:20:03]Read from MH i2c: 01 07 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: 01 07 00 5E 30 00 00 00 00 00 FF 0F A3 [17:20:03]process_action close_receipt done [17:20:03]requested_data is exist [17:20:03]produce_requested_data [17:20:03]requested_item fm.sn is exist - process it [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 11 00 00 [17:20:03]Write to MH i2c: E2 08 00 5F 30 80 11 00 00 00 00 00 00 09 [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 17 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 17 00 5F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 51 [17:20:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [17:20:03]wFMCommunicate OK [17:20:03]requested_item fd.num is exist - process it [17:20:03]SAM_PROTO_GetFieldsCounters [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 13 00 00 [17:20:03]Write to MH i2c: E2 08 00 60 30 80 13 00 00 00 00 00 00 0C [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 62 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 62 00 60 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BE 09 00 00 0E 04 04 00 16 00 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 64 [17:20:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BE 09 00 00 0E 04 04 00 16 00 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 [17:20:03]wFMCommunicate OK [17:20:03]SAM_PROTO_GetFieldsCounters done [17:20:03]requested_item shift.num is exist - process it [17:20:03]requested_item shift.opened is exist - process it [17:20:03]req_shift_opened [17:20:03]FM_GetShiftState [17:20:03]SAM_PROTO_GetShiftState [17:20:03]wFMCommunicate request_size=4 [17:20:03]MH_SAM_APDU [17:20:03]CAPDU: 80 13 01 00 [17:20:03]Write to MH i2c: E2 08 00 61 30 80 13 01 00 00 00 00 00 0E [17:20:03]Write i2c OK [17:20:03]MH_I2C_Read... [17:20:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:20:03]Read from MH i2c: E2 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 0E 00 [17:20:03]MH_I2C_Read... [17:20:03]Read from MH i2c: E2 0E 00 61 30 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 AC [17:20:03]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:20:03]wFMCommunicate OK [17:20:03]SAM_PROTO_GetShiftState done [17:20:03]FM_GetShiftState done [17:20:03]req_shift_opened done [17:20:03]requested_item shift.open_date is exist - process it [17:20:03]req_shift_open_date [17:20:03]req_shift_open_date done [17:20:03]produce_requested_data done [17:20:03]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2494,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [17:20:03]process_action_free close_receipt [17:20:03]json_value_free [17:20:03]json_value_free done [17:20:03]process_json_proto returns [17:20:03]Send response to host [17:20:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2494,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [17:20:03]free response buf [17:20:03]execute_script done [17:20:03]execute_script returns [17:20:03]free content buf [17:20:03]Sock 9.Close socket [17:20:03]Sock 9.Thread stoped [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:52]OFD Sender: No OFD packet to send [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:12]OFD Sender: No OFD packet to send [17:23:17]OFD Sender: No OFD packet to send [17:23:22]OFD Sender: No OFD packet to send [17:23:27]OFD Sender: No OFD packet to send [17:23:32]OFD Sender: No OFD packet to send [17:23:37]OFD Sender: No OFD packet to send [17:23:42]OFD Sender: No OFD packet to send [17:23:47]OFD Sender: No OFD packet to send [17:23:52]OFD Sender: No OFD packet to send [17:23:57]OFD Sender: No OFD packet to send [17:24:02]OFD Sender: No OFD packet to send [17:24:07]OFD Sender: No OFD packet to send [17:24:12]OFD Sender: No OFD packet to send [17:24:17]OFD Sender: No OFD packet to send [17:24:22]OFD Sender: No OFD packet to send [17:24:27]OFD Sender: No OFD packet to send [17:24:32]OFD Sender: No OFD packet to send [17:24:37]OFD Sender: No OFD packet to send [17:24:42]OFD Sender: No OFD packet to send [17:24:47]OFD Sender: No OFD packet to send [17:24:52]OFD Sender: No OFD packet to send [17:24:57]OFD Sender: No OFD packet to send [17:25:02]OFD Sender: No OFD packet to send [17:25:07]OFD Sender: No OFD packet to send [17:25:12]OFD Sender: No OFD packet to send [17:25:17]OFD Sender: No OFD packet to send [17:25:22]OFD Sender: No OFD packet to send [17:25:27]OFD Sender: No OFD packet to send [17:25:32]OFD Sender: No OFD packet to send [17:25:37]OFD Sender: No OFD packet to send [17:25:42]OFD Sender: No OFD packet to send [17:25:47]OFD Sender: No OFD packet to send [17:25:52]OFD Sender: No OFD packet to send [17:25:57]OFD Sender: No OFD packet to send [17:26:02]OFD Sender: No OFD packet to send [17:26:07]OFD Sender: No OFD packet to send [17:26:12]OFD Sender: No OFD packet to send [17:26:17]OFD Sender: No OFD packet to send [17:26:22]OFD Sender: No OFD packet to send [17:26:27]OFD Sender: No OFD packet to send [17:26:32]OFD Sender: No OFD packet to send [17:26:37]OFD Sender: No OFD packet to send [17:26:42]OFD Sender: No OFD packet to send [17:26:47]OFD Sender: No OFD packet to send [17:26:52]OFD Sender: No OFD packet to send [17:26:57]OFD Sender: No OFD packet to send [17:27:02]OFD Sender: No OFD packet to send [17:27:07]OFD Sender: No OFD packet to send [17:27:12]OFD Sender: No OFD packet to send [17:27:17]OFD Sender: No OFD packet to send [17:27:22]OFD Sender: No OFD packet to send [17:27:27]OFD Sender: No OFD packet to send [17:27:32]OFD Sender: No OFD packet to send [17:27:37]OFD Sender: No OFD packet to send [17:27:42]OFD Sender: No OFD packet to send [17:27:47]OFD Sender: No OFD packet to send [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:27:58]accept exits with 7 [17:27:58]New connection [17:27:58]New thread 3066707300 created [17:27:58]Thread 3066850660 joined [17:27:58]Waiting for new connection... [17:27:58] Sock 7.Parse request [17:27:58]Sock 7.Check first char [17:27:58]Sock 7.First char is OK [17:27:58]request: POST /json_proto HTTP/1.0 [17:27:58]Method: POST [17:27:58]URL: /json_proto [17:27:58]Method is POST - this is cgi request [17:27:58]url: /json_proto [17:27:58]query_string will be loaded in cgi processing [17:27:58]execute_cgi json_proto POST (null) [17:27:58]execute_cgi path=json_proto method=POST [17:27:58]POST find Content-Length [17:27:58]Host: 172.17.52.132:8080 [17:27:58]Content-Length: 656 [17:27:58]Content-Type: application/json [17:27:58] [17:27:58]POST finish read [17:27:58]Found Content-Length = 656 [17:27:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99886", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:58]execute_script... [17:27: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 : (3)99886", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:27:58]POST & json_proto [17:27:58]process_json_proto [17:27:58]json parsed OK: [17:27:58]protocol is kg_v1.0 [17:27:58]action value=close_receipt [17:27:58]process_action close_receipt [17:27:58]cmd_close_receipt [17:27:58]MH_GetDate [17:27:58]Write to MH i2c: F0 00 00 62 30 81 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: F0 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: F0 09 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: F0 09 00 62 30 00 A3 9A 12 67 5A BE F6 66 B4 [17:27:58]GetLastDocTimeStamp 1729272004 [17:27:58]current date 1729272483 [17:27:58]FM_GetShiftState [17:27:58]SAM_PROTO_GetShiftState [17:27:58]wFMCommunicate request_size=4 [17:27:58]MH_SAM_APDU [17:27:58]CAPDU: 80 13 01 00 [17:27:58]Write to MH i2c: E2 08 00 63 30 80 13 01 00 00 00 00 00 10 [17:27:58]Write i2c OK [17:27:58]MH_I2C_Read... [17:27:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:58]Read from MH i2c: E2 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 0E 00 [17:27:58]MH_I2C_Read... [17:27:58]Read from MH i2c: E2 0E 00 63 30 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 AE [17:27:58]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:27:58]wFMCommunicate OK [17:27:58]SAM_PROTO_GetShiftState done [17:27:58]FM_GetShiftState done [17:27:58]opened in 1729209717 [17:27:58]opened+sec_in_day 1729296117 [17:27:58]quantity*price = 9500 [17:27:58]sum+1 = 9501 [17:27:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 ÐСП 1% : 0.84 ÐДС 12% : 10.09 Ðаличными: 95.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 120 18.10.2024 17:28 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2495 ФПД: 213294890547531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T172803&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2495&fm=213294890547531&tin=02508201610067®Number=0000000000207295&sum=9500 0 [17:27:59]StoreToDocumentArchive [17:27:59]shift 22 fd 2495 [17:27:59]save to /storage/0022/doc_00002495 [17:27:59]save last doc name /storage/0022/doc_00002495 to /storage/kkm_last_doc_name [17:27:59]save OK [17:27:59]Clear old archive folders... [17:27:59]ProcessDocumentItem done err = 0, tmpTLVsize=288 [17:27:59]tlvbuf is 01381D50 [17:27:59]SAM_PROTO_ClearQueue [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 09 00 00 [17:27:59]Write to MH i2c: E2 08 00 70 30 80 09 00 00 00 00 00 00 12 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 03 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 03 00 70 30 00 90 00 14 [17:27:59]RAPDU: 90 00 [17:27:59]wFMCommunicate OK [17:27:59]SAM_PROTO_ClearQueue done [17:27:59]KKMCreateOFDPacket [17:27:59]OFDProtocolAddRootSTLVToBuf [17:27:59]FM_MakeSignedData [17:27:59]FM_MakeSignedData [17:27:59]SAM_PROTO_SignData [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 0D 01 02 [17:27:59]Write to MH i2c: E2 08 00 71 30 80 0D 01 02 00 00 00 00 1A [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 03 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 03 00 71 30 00 90 00 15 [17:27:59]RAPDU: 90 00 [17:27:59]wFMCommunicate OK [17:27:59]wFMCommunicate request_size=255 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A3 9A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 [17:27:59]Write to MH i2c: E2 02 01 72 30 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A3 9A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 00 00 42 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 03 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 03 00 72 30 00 90 00 16 [17:27:59]RAPDU: 90 00 [17:27:59]wFMCommunicate OK [17:27:59]wFMCommunicate request_size=47 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 0D 02 02 2A 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BF 09 00 00 35 04 06 00 C1 FD 96 2E F9 4B [17:27:59]Write to MH i2c: E2 32 00 73 30 80 0D 02 02 2A 00 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BF 09 00 00 35 04 06 00 C1 FD 96 2E F9 4B 00 00 67 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:59]Read from MH i2c: E2 03 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 03 00 73 30 00 90 00 17 [17:27:59]RAPDU: 90 00 [17:27:59]wFMCommunicate OK [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 0D 03 02 [17:27:59]Write to MH i2c: E2 08 00 74 30 80 0D 03 02 00 00 00 00 1F [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 0B 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 0B 00 74 30 00 F4 B7 53 F9 6C 04 0D BD 90 00 51 [17:27:59]RAPDU: F4 B7 53 F9 6C 04 0D BD 90 00 [17:27:59]wFMCommunicate OK [17:27:59]SAM_PROTO_SignData done [17:27:59]FM_MakeSignedData done [17:27:59]CreateOFDProtocolMessage [17:27:59]wFMCommunicate request_size=4 [17:27:59]MH_SAM_APDU [17:27:59]CAPDU: 80 11 00 00 [17:27:59]Write to MH i2c: E2 08 00 75 30 80 11 00 00 00 00 00 00 1F [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:59]Read from MH i2c: E2 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 17 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: E2 17 00 75 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 67 [17:27:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [17:27:59]wFMCommunicate OK [17:27:59]CreateOFDProtocolMessage done [17:27:59]OFDSenderStorePacket 2495 [17:27:59]StoreOFDPacket docnum=2495 [17:27:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 34 01 00 00 7E D8 2C 01 32 9C 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A3 9A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BF 09 00 00 35 04 06 00 C1 FD 96 2E F9 4B F4 B7 53 F9 6C 04 0D BD [17:27:59]CheckFolder [17:27:59]dirname=/storage/ofd_packets [17:27:59]CheckFolder done [17:27:59]ProducePacketName [17:27:59]name=ofd_packets/00002495 [17:27:59]NVStorageSaveData ofd_packets/00002495 [17:27:59]File name is /storage/ofd_packets/00002495 [17:27:59]Write 338 bytes [17:27:59]NVStorageSaveData done [17:27:59]OFDSenderStorePacket done [17:27:59]KKMCreateOFDPacket done [17:27:59]NVStorageSaveData kkm_last_timestamp [17:27:59]File name is /storage/kkm_last_timestamp [17:27:59]Write 4 bytes [17:27:59]NVStorageSaveData done [17:27:59]ExternCall_PrintAddStr [17:27:59]wPrintStart [17:27:59]Write to MH i2c: 01 00 00 76 30 A6 [17:27:59]Write i2c OK [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: 01 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: 01 07 00 [17:27:59]MH_I2C_Read... [17:27:59]Read from MH i2c: 01 07 00 76 30 00 00 00 00 00 FF 0F BB [17:27:59]RasterBufferAndPrint [17:27:59]line Счет N : (3)99886 [17:27:59]line ИÐÐ: 02508201610067 [17:27:59]line Контрольно-КаÑÑовый Чек [17:27:59]line ПРОДÐЖР[17:27:59]line Товар: 4700000481453 [17:27:59]line Ðапиток Ñнерг Nitro Max 0,45 ж/б [17:27:59]line 1.000 * 95.00 [17:27:59]line = 95.00 [17:27:59]line ÐДС 12% ÐСП 1% [17:27:59]line > о реализуемом товаре [17:27:59]line ИТОГО: 95.00 [17:27:59]line ÐСП 1% : 0.84 [17:27:59]line ÐДС 12% : 10.09 [17:27:59]line Ðаличными: 95.00 [17:27:59]line Безнал.: 0.00 [17:27:59]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [17:27:59]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [17:27:59]line СÐО: Общий режим [17:27:59]line Чек 120 18.10.2024 17:28 [17:27:59]line Смена: 22 ФФД: 1.0 [17:27:59]line ЗÐМ: 0300000191 [17:27:59]line РÐМ: 0000000000207295 [17:27:59]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [17:27:59]line ФМ: 0000000002342820 [17:27:59]line ФД: 2495 [17:27:59]line ФПД: 213294890547531 [17:27:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T172803&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2495&fm=213294890547531&tin=02508201610067®Number=0000000000207295&sum=9500 [17:28:00]OFD Sender: Processing packet 2495 [packets to send 1, broken 0] [17:28:00]ProducePacketName [17:28:00]name=ofd_packets/00002495 [17:28:00]OFD Sender: To server: ‡•öpG, [17:28:00]CommunicateWithHost lk.salyk.kg:30040 [17:28:00]ConnectInit lk.salyk.kg [17:28:00]line 0 [17:28:00]written 0, free lines is 4095 [17:28:00]Connected sock=10 [17:28:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 34 01 00 00 7E D8 2C 01 32 9C 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 A3 9A 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 BF 09 00 00 35 04 06 00 C1 FD 96 2E F9 4B F4 B7 53 F9 6C 04 0D BD [17:28:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 C0 97 47 00 B1 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 32 33 34 32 38 32 30 10 04 04 00 BF 09 00 00 F4 03 04 00 06 46 12 67 B6 04 01 00 00 8D E3 AB 5E DE 22 35 5D [17:28:00]CommunicateWithHost err = 0 [17:28:00]CheckOFDResponse [17:28:00]1017 (14) - 77093643461234 [17:28:00]1041 (16) - 0000000002342820 [17:28:00]1040 (4) - 2495 [17:28:00]1012 (4) - 18.10.2024 11:27 [17:28:00]1206 (1) - 0 [17:28:00]OFD Sender: Remove packet 2495 [17:28:00]ProducePacketName [17:28:00]name=ofd_packets/00002495 [17:28:00]NVStorageDeleteData [17:28:00]Write to MH i2c: 01 00 00 9F 30 CF [17:28:00]Write i2c OK [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: 01 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: 01 07 00 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: 01 07 00 9F 30 00 00 00 00 00 C1 0C A3 [17:28:00]RasterBufferAndPrint [17:28:00]line [17:28:00]line [17:28:00]line [17:28:00]line [17:28:00]line [17:28:00]written 0, free lines is 3271 [17:28:00]MH_Cut [17:28:00]Write to MH i2c: D1 01 00 A6 30 01 A8 [17:28:00]Write i2c OK [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: D1 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: D1 01 00 [17:28:00]MH_I2C_Read... [17:28:00]Read from MH i2c: D1 01 00 A6 30 00 A7 [17:28:00]Write to MH i2c: 01 00 00 A7 30 D7 [17:28:00]Write i2c OK [17:28:00]MH_I2C_Read... [17:28:01]OFD Sender: No OFD packet to send [17:28:01]*** Cut start [17:28:01]*** Partial cut [17:28:01]*** CUTSNS_PIN = 1 [17:28:01]*** CUTSNS_PIN = 0 [17:28:01]*** Brake cut motor [17:28:02]Read from MH i2c: 01 *** Stop cut motor [17:28:02]*** Cut end [17:28:02] [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: 01 07 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: 01 07 00 A7 30 00 00 00 00 00 FF 0F EC [17:28:02]process_action close_receipt done [17:28:02]requested_data is exist [17:28:02]produce_requested_data [17:28:02]requested_item fm.sn is exist - process it [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 11 00 00 [17:28:02]Write to MH i2c: E2 08 00 A8 30 80 11 00 00 00 00 00 00 52 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 17 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 17 00 A8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 9A [17:28:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [17:28:02]wFMCommunicate OK [17:28:02]requested_item fd.num is exist - process it [17:28:02]SAM_PROTO_GetFieldsCounters [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 13 00 00 [17:28:02]Write to MH i2c: E2 08 00 A9 30 80 13 00 00 00 00 00 00 55 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 62 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 62 00 A9 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BF 09 00 00 0E 04 04 00 16 00 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 B1 [17:28:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 BF 09 00 00 0E 04 04 00 16 00 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 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_GetFieldsCounters done [17:28:02]requested_item shift.num is exist - process it [17:28:02]requested_item shift.opened is exist - process it [17:28:02]req_shift_opened [17:28:02]FM_GetShiftState [17:28:02]SAM_PROTO_GetShiftState [17:28:02]wFMCommunicate request_size=4 [17:28:02]MH_SAM_APDU [17:28:02]CAPDU: 80 13 01 00 [17:28:02]Write to MH i2c: E2 08 00 AA 30 80 13 01 00 00 00 00 00 57 [17:28:02]Write i2c OK [17:28:02]MH_I2C_Read... [17:28:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:02]Read from MH i2c: E2 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0E 00 [17:28:02]MH_I2C_Read... [17:28:02]Read from MH i2c: E2 0E 00 AA 30 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 F5 [17:28:02]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:28:02]wFMCommunicate OK [17:28:02]SAM_PROTO_GetShiftState done [17:28:02]FM_GetShiftState done [17:28:02]req_shift_opened done [17:28:02]requested_item shift.open_date is exist - process it [17:28:02]req_shift_open_date [17:28:02]req_shift_open_date done [17:28:02]produce_requested_data done [17:28:02]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2495,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [17:28:02]process_action_free close_receipt [17:28:02]json_value_free [17:28:02]json_value_free done [17:28:02]process_json_proto returns [17:28:02]Send response to host [17:28:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2495,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [17:28:02]free response buf [17:28:02]execute_script done [17:28:02]execute_script returns [17:28:02]free content buf [17:28:02]Sock 7.Close socket [17:28:02]Sock 7.Thread stoped [17:28:06]OFD Sender: No OFD packet to send [17:28:11]OFD Sender: No OFD packet to send [17:28:16]OFD Sender: No OFD packet to send [17:28:21]OFD Sender: No OFD packet to send [17:28:26]OFD Sender: No OFD packet to send [17:28:31]OFD Sender: No OFD packet to send [17:28:36]OFD Sender: No OFD packet to send [17:28:41]OFD Sender: No OFD packet to send [17:28:46]OFD Sender: No OFD packet to send [17:28:51]OFD Sender: No OFD packet to send [17:28:56]OFD Sender: No OFD packet to send [17:29:01]OFD Sender: No OFD packet to send [17:29:06]OFD Sender: No OFD packet to send [17:29:11]OFD Sender: No OFD packet to send [17:29:16]OFD Sender: No OFD packet to send [17:29:21]OFD Sender: No OFD packet to send [17:29:26]OFD Sender: No OFD packet to send [17:29:31]OFD Sender: No OFD packet to send [17:29:36]OFD Sender: No OFD packet to send [17:29:41]OFD Sender: No OFD packet to send [17:29:46]OFD Sender: No OFD packet to send [17:29:51]OFD Sender: No OFD packet to send [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:21]OFD Sender: No OFD packet to send [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:21]OFD Sender: No OFD packet to send [17:33:26]OFD Sender: No OFD packet to send [17:33:31]OFD Sender: No OFD packet to send [17:33:36]OFD Sender: No OFD packet to send [17:33:41]OFD Sender: No OFD packet to send [17:33:46]OFD Sender: No OFD packet to send [17:33:51]OFD Sender: No OFD packet to send [17:33:56]OFD Sender: No OFD packet to send [17:34:01]OFD Sender: No OFD packet to send [17:34:06]OFD Sender: No OFD packet to send [17:34:11]OFD Sender: No OFD packet to send [17:34:16]OFD Sender: No OFD packet to send [17:34:21]OFD Sender: No OFD packet to send [17:34:26]OFD Sender: No OFD packet to send [17:34:31]OFD Sender: No OFD packet to send [17:34:36]OFD Sender: No OFD packet to send [17:34:41]OFD Sender: No OFD packet to send [17:34:46]OFD Sender: No OFD packet to send [17:34:51]OFD Sender: No OFD packet to send [17:34:56]OFD Sender: No OFD packet to send [17:35:01]OFD Sender: No OFD packet to send [17:35:06]OFD Sender: No OFD packet to send [17:35:11]OFD Sender: No OFD packet to send [17:35:16]OFD Sender: No OFD packet to send [17:35:21]OFD Sender: No OFD packet to send [17:35:26]OFD Sender: No OFD packet to send [17:35:31]OFD Sender: No OFD packet to send [17:35:36]OFD Sender: No OFD packet to send [17:35:41]OFD Sender: No OFD packet to send [17:35:46]OFD Sender: No OFD packet to send [17:35:51]OFD Sender: No OFD packet to send [17:35:56]OFD Sender: No OFD packet to send [17:36:01]OFD Sender: No OFD packet to send [17:36:06]OFD Sender: No OFD packet to send [17:36:11]OFD Sender: No OFD packet to send [17:36:16]OFD Sender: No OFD packet to send [17:36:21]OFD Sender: No OFD packet to send [17:36:26]OFD Sender: No OFD packet to send [17:36:31]OFD Sender: No OFD packet to send [17:36:36]OFD Sender: No OFD packet to send [17:36:41]OFD Sender: No OFD packet to send [17:36:46]OFD Sender: No OFD packet to send [17:36:51]OFD Sender: No OFD packet to send [17:36:56]OFD Sender: No OFD packet to send [17:37:01]OFD Sender: No OFD packet to send [17:37:06]OFD Sender: No OFD packet to send [17:37:11]OFD Sender: No OFD packet to send [17:37:16]OFD Sender: No OFD packet to send [17:37:21]OFD Sender: No OFD packet to send [17:37:26]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:51]OFD Sender: No OFD packet to send [17:38:56]OFD Sender: No OFD packet to send [17:39:01]OFD Sender: No OFD packet to send [17:39:06]OFD Sender: No OFD packet to send [17:39:11]OFD Sender: No OFD packet to send [17:39:16]OFD Sender: No OFD packet to send [17:39:21]OFD Sender: No OFD packet to send [17:39:26]OFD Sender: No OFD packet to send [17:39:31]OFD Sender: No OFD packet to send [17:39:36]OFD Sender: No OFD packet to send [17:39:41]OFD Sender: No OFD packet to send [17:39:46]OFD Sender: No OFD packet to send [17:39:51]OFD Sender: No OFD packet to send [17:39:56]OFD Sender: No OFD packet to send [17:40:01]OFD Sender: No OFD packet to send [17:40:06]OFD Sender: No OFD packet to send [17:40:11]OFD Sender: No OFD packet to send [17:40:16]OFD Sender: No OFD packet to send [17:40:21]OFD Sender: No OFD packet to send [17:40:26]OFD Sender: No OFD packet to send [17:40:31]OFD Sender: No OFD packet to send [17:40:36]OFD Sender: No OFD packet to send [17:40:41]OFD Sender: No OFD packet to send [17:40:46]OFD Sender: No OFD packet to send [17:40:51]OFD Sender: No OFD packet to send [17:40:56]OFD Sender: No OFD packet to send [17:41:01]OFD Sender: No OFD packet to send [17:41:06]OFD Sender: No OFD packet to send [17:41:11]OFD Sender: No OFD packet to send [17:41:16]OFD Sender: No OFD packet to send [17:41:21]OFD Sender: No OFD packet to send [17:41:26]OFD Sender: No OFD packet to send [17:41:31]OFD Sender: No OFD packet to send [17:41:36]OFD Sender: No OFD packet to send [17:41:41]OFD Sender: No OFD packet to send [17:41:46]OFD Sender: No OFD packet to send [17:41:51]OFD Sender: No OFD packet to send [17:41:56]OFD Sender: No OFD packet to send [17:42:01]OFD Sender: No OFD packet to send [17:42:06]OFD Sender: No OFD packet to send [17:42:11]OFD Sender: No OFD packet to send [17:42:16]OFD Sender: No OFD packet to send [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:36]OFD Sender: No OFD packet to send [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:31]OFD Sender: No OFD packet to send [17:44:36]OFD Sender: No OFD packet to send [17:44:41]OFD Sender: No OFD packet to send [17:44:46]OFD Sender: No OFD packet to send [17:44:51]OFD Sender: No OFD packet to send [17:44:56]OFD Sender: No OFD packet to send [17:45:01]OFD Sender: No OFD packet to send [17:45:06]OFD Sender: No OFD packet to send [17:45:11]OFD Sender: No OFD packet to send [17:45:16]OFD Sender: No OFD packet to send [17:45:21]OFD Sender: No OFD packet to send [17:45:26]OFD Sender: No OFD packet to send [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:01]OFD Sender: No OFD packet to send [17:46:06]OFD Sender: No OFD packet to send [17:46:11]OFD Sender: No OFD packet to send [17:46:16]OFD Sender: No OFD packet to send [17:46:21]OFD Sender: No OFD packet to send [17:46:26]OFD Sender: No OFD packet to send [17:46:31]OFD Sender: No OFD packet to send [17:46:36]OFD Sender: No OFD packet to send [17:46:41]OFD Sender: No OFD packet to send [17:46:46]OFD Sender: No OFD packet to send [17:46:51]OFD Sender: No OFD packet to send [17:46:56]OFD Sender: No OFD packet to send [17:47:01]OFD Sender: No OFD packet to send [17:47:06]accept exits with 9 [17:47:06]New connection [17:47:06]New thread 3066850660 created [17:47:06]Thread 3066707300 joined [17:47:06]Waiting for new connection... [17:47:06] Sock 9.Parse request [17:47:06]Sock 9.Check first char [17:47:06]Sock 9.First char is OK [17:47:06]request: POST /json_proto HTTP/1.0 [17:47:06]Method: POST [17:47:06]URL: /json_proto [17:47:06]Method is POST - this is cgi request [17:47:06]url: /json_proto [17:47:06]query_string will be loaded in cgi processing [17:47:06]execute_cgi json_proto POST (null) [17:47:06]execute_cgi path=json_proto method=POST [17:47:06]POST find Content-Length [17:47:06]Host: 172.17.52.132:8080 [17:47:06]Content-Length: 1042 [17:47:06]Content-Type: application/json [17:47:06] [17:47:06]POST finish read [17:47:06]Found Content-Length = 1042 [17:47:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99887", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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: Mbank", "payments": [ { "type": 1, "sum" : 685.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:06]execute_script... [17:47: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 : (3)99887", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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: Mbank", "payments": [ { "type": 1, "sum" : 685.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:06]POST & json_proto [17:47:06]process_json_proto [17:47:06]json parsed OK: [17:47:06]protocol is kg_v1.0 [17:47:06]action value=close_receipt [17:47:06]process_action close_receipt [17:47:06]cmd_close_receipt [17:47:06]MH_GetDate [17:47:06]Write to MH i2c: F0 00 00 AB 30 CA [17:47:06]Write i2c OK [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: F0 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: F0 09 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: F0 09 00 AB 30 00 1F 9F 12 67 5A BE F6 66 7E [17:47:06]GetLastDocTimeStamp 1729272483 [17:47:06]current date 1729273631 [17:47:06]FM_GetShiftState [17:47:06]SAM_PROTO_GetShiftState [17:47:06]wFMCommunicate request_size=4 [17:47:06]MH_SAM_APDU [17:47:06]CAPDU: 80 13 01 00 [17:47:06]Write to MH i2c: E2 08 00 AC 30 80 13 01 00 00 00 00 00 59 [17:47:06]Write i2c OK [17:47:06]MH_I2C_Read... [17:47:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:06]Read from MH i2c: E2 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 0E 00 [17:47:06]MH_I2C_Read... [17:47:06]Read from MH i2c: E2 0E 00 AC 30 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 F7 [17:47:06]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:47:06]wFMCommunicate OK [17:47:06]SAM_PROTO_GetShiftState done [17:47:06]FM_GetShiftState done [17:47:06]opened in 1729209717 [17:47:06]opened+sec_in_day 1729296117 [17:47:06]quantity*price = 56000 [17:47:06]sum+1 = 56001 [17:47:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000054227 Ðапиток Кока-Кола 1л 1.000 * 125.00 = 125.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 685.00 ÐСП 1% : 6.07 ÐДС 12% : 72.74 Ðаличными: 0.00 Безнал.: 685.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 121 18.10.2024 17:47 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2496 ФПД: 221832703998166 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T174711&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2496&fm=221832703998166&tin=02508201610067®Number=0000000000207295&sum=68500 0 [17:47:07]StoreToDocumentArchive [17:47:07]shift 22 fd 2496 [17:47:07]save to /storage/0022/doc_00002496 [17:47:07]save last doc name /storage/0022/doc_00002496 to /storage/kkm_last_doc_name [17:47:07]save OK [17:47:07]Clear old archive folders... [17:47:07]ProcessDocumentItem done err = 0, tmpTLVsize=390 [17:47:07]tlvbuf is B6EC1DF0 [17:47:07]SAM_PROTO_ClearQueue [17:47:07]wFMCommunicate request_size=4 [17:47:07]MH_SAM_APDU [17:47:07]CAPDU: 80 09 00 00 [17:47:07]Write to MH i2c: E2 08 00 B9 30 80 09 00 00 00 00 00 00 5B [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:47:07]Read from MH i2c: E2 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 03 00 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 03 00 B9 30 00 90 00 5D [17:47:07]RAPDU: 90 00 [17:47:07]wFMCommunicate OK [17:47:07]SAM_PROTO_ClearQueue done [17:47:07]KKMCreateOFDPacket [17:47:07]OFDProtocolAddRootSTLVToBuf [17:47:07]FM_MakeSignedData [17:47:07]FM_MakeSignedData [17:47:07]SAM_PROTO_SignData [17:47:07]wFMCommunicate request_size=4 [17:47:07]MH_SAM_APDU [17:47:07]CAPDU: 80 0D 01 02 [17:47:07]Write to MH i2c: E2 08 00 BA 30 80 0D 01 02 00 00 00 00 63 [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:47:07]Read from MH i2c: E2 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 03 00 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 03 00 BA 30 00 90 00 5E [17:47:07]RAPDU: 90 00 [17:47:07]wFMCommunicate OK [17:47:07]wFMCommunicate request_size=255 [17:47:07]MH_SAM_APDU [17:47:07]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [17:47:07]Write to MH i2c: E2 02 01 BB 30 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 8B [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:07]Read from MH i2c: E2 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 03 00 [17:47:07]MH_I2C_Read... [17:47:07]Read from MH i2c: E2 03 00 BB 30 00 90 00 5F [17:47:07]RAPDU: 90 00 [17:47:07]wFMCommunicate OK [17:47:07]wFMCommunicate request_size=149 [17:47:07]MH_SAM_APDU [17:47:07]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 0B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1F 9F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C0 09 00 00 35 04 06 00 C9 C1 73 85 78 D6 [17:47:07]Write to MH i2c: E2 98 00 BC 30 80 0D 02 02 90 00 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 0B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1F 9F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C0 09 00 00 35 04 06 00 C9 C1 73 85 78 D6 00 00 8F [17:47:07]Write i2c OK [17:47:07]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 03 00 BC 30 00 90 00 60 [17:47:08]RAPDU: 90 00 [17:47:08]wFMCommunicate OK [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 0D 03 02 [17:47:08]Write to MH i2c: E2 08 00 BD 30 80 0D 03 02 00 00 00 00 68 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0B 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 0B 00 BD 30 00 AF 15 52 E4 62 B1 E6 57 90 00 B3 [17:47:08]RAPDU: AF 15 52 E4 62 B1 E6 57 90 00 [17:47:08]wFMCommunicate OK [17:47:08]SAM_PROTO_SignData done [17:47:08]FM_MakeSignedData done [17:47:08]CreateOFDProtocolMessage [17:47:08]wFMCommunicate request_size=4 [17:47:08]MH_SAM_APDU [17:47:08]CAPDU: 80 11 00 00 [17:47:08]Write to MH i2c: E2 08 00 BE 30 80 11 00 00 00 00 00 00 68 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:08]Read from MH i2c: E2 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 17 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: E2 17 00 BE 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B0 [17:47:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [17:47:08]wFMCommunicate OK [17:47:08]CreateOFDProtocolMessage done [17:47:08]OFDSenderStorePacket 2496 [17:47:08]StoreOFDPacket docnum=2496 [17:47:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 9A 01 00 00 62 9F 92 01 EC 7F 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 0B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1F 9F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C0 09 00 00 35 04 06 00 C9 C1 73 85 78 D6 AF 15 52 E4 62 B1 E6 57 [17:47:08]CheckFolder [17:47:08]dirname=/storage/ofd_packets [17:47:08]CheckFolder done [17:47:08]ProducePacketName [17:47:08]name=ofd_packets/00002496 [17:47:08]NVStorageSaveData ofd_packets/00002496 [17:47:08]File name is /storage/ofd_packets/00002496 [17:47:08]Write 440 bytes [17:47:08]NVStorageSaveData done [17:47:08]OFDSenderStorePacket done [17:47:08]KKMCreateOFDPacket done [17:47:08]NVStorageSaveData kkm_last_timestamp [17:47:08]File name is /storage/kkm_last_timestamp [17:47:08]Write 4 bytes [17:47:08]NVStorageSaveData done [17:47:08]ExternCall_PrintAddStr [17:47:08]wPrintStart [17:47:08]Write to MH i2c: 01 00 00 BF 30 EF [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 07 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 07 00 BF 30 00 00 00 00 00 FF 0F 04 [17:47:08]RasterBufferAndPrint [17:47:08]line Счет N : (3)99887 [17:47:08]line ИÐÐ: 02508201610067 [17:47:08]line Контрольно-КаÑÑовый Чек [17:47:08]line ПРОДÐЖР[17:47:08]line Товар: 4700003150936 [17:47:08]line ÐÐ¾Ð²Ð°Ñ Ð’Ð¾Ð´ÐºÐ° Organic 40% 0,48л [17:47:08]line 1.000 * 560.00 [17:47:08]line = 560.00 [17:47:08]line ÐДС 12% ÐСП 1% [17:47:08]line > о реализуемом товаре [17:47:08]line Товар: 5449000054227 [17:47:08]line Ðапиток Кока-Кола 1л [17:47:08]line 1.000 * 125.00 [17:47:08]line = 125.00 [17:47:08]line ÐДС 12% ÐСП 1% [17:47:08]line > о реализуемом товаре [17:47:08]line ИТОГО: 685.00 [17:47:08]line ÐСП 1% : 6.07 [17:47:08]line ÐДС 12% : 72.74 [17:47:08]line Ðаличными: 0.00 [17:47:08]line Безнал.: 685.00 [17:47:08]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [17:47:08]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [17:47:08]line СÐО: Общий режим [17:47:08]line Чек 121 18.10.2024 17:47 [17:47:08]line Смена: 22 ФФД: 1.0 [17:47:08]line ЗÐМ: 0300000191 [17:47:08]line РÐМ: 0000000000207295 [17:47:08]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [17:47:08]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [17:47:08]line ФМ: 0000000002342820 [17:47:08]line ФД: 2496 [17:47:08]line ФПД: 221832703998166 [17:47:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T174711&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2496&fm=221832703998166&tin=02508201610067®Number=0000000000207295&sum=68500 [17:47:08]line 0 [17:47:08]written 0, free lines is 4095 [17:47:08]OFD Sender: Processing packet 2496 [packets to send 1, broken 0] [17:47:08]ProducePacketName [17:47:08]name=ofd_packets/00002496 [17:47:08]OFD Sender: To server: ‡•öpG, [17:47:08]CommunicateWithHost lk.salyk.kg:30040 [17:47:08]ConnectInit lk.salyk.kg [17:47:08]Connected sock=10 [17:47:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 9A 01 00 00 62 9F 92 01 EC 7F 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 0B 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 1C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 94 0B 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 1F 9F 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C0 09 00 00 35 04 06 00 C9 C1 73 85 78 D6 AF 15 52 E4 62 B1 E6 57 [17:47:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 34 30 47 00 AD 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C0 09 00 00 F4 03 04 00 82 4A 12 67 B6 04 01 00 00 75 39 F7 65 34 77 02 E2 [17:47:08]CommunicateWithHost err = 0 [17:47:08]CheckOFDResponse [17:47:08]1017 (14) - 77093643461234 [17:47:08]1041 (16) - 0000000002342820 [17:47:08]1040 (4) - 2496 [17:47:08]1012 (4) - 18.10.2024 11:46 [17:47:08]1206 (1) - 0 [17:47:08]OFD Sender: Remove packet 2496 [17:47:08]ProducePacketName [17:47:08]name=ofd_packets/00002496 [17:47:08]NVStorageDeleteData [17:47:08]Write to MH i2c: 01 00 00 EF 30 1F [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 07 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: 01 07 00 EF 30 00 00 00 00 00 6E 0C A0 [17:47:08]RasterBufferAndPrint [17:47:08]line [17:47:08]line [17:47:08]line [17:47:08]line [17:47:08]line [17:47:08]written 0, free lines is 3188 [17:47:08]MH_Cut [17:47:08]Write to MH i2c: D1 01 00 F6 30 01 F8 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: D1 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: D1 01 00 [17:47:08]MH_I2C_Read... [17:47:08]Read from MH i2c: D1 01 00 F6 30 00 F7 [17:47:08]Write to MH i2c: 01 00 00 F7 30 27 [17:47:08]Write i2c OK [17:47:08]MH_I2C_Read... [17:47:09]OFD Sender: No OFD packet to send [17:47:09]*** Cut start [17:47:09]*** Partial cut [17:47:09]*** CUTSNS_PIN = 1 [17:47:09]*** CUTSNS_PIN = 0 [17:47:09]*** Brake cut motor [17:47:10]Read from MH i2c: 01 [17:47:10]MH_I2C_Read... [17:47:10]*** Stop cut motor [17:47:10]*** Cut end [17:47:10]Read from MH i2c: 01 07 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: 01 07 00 F7 30 00 00 00 00 00 FF 0F 3C [17:47:10]process_action close_receipt done [17:47:10]requested_data is exist [17:47:10]produce_requested_data [17:47:10]requested_item fm.sn is exist - process it [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 11 00 00 [17:47:10]Write to MH i2c: E2 08 00 F8 30 80 11 00 00 00 00 00 00 A2 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 17 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 17 00 F8 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EA [17:47:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [17:47:10]wFMCommunicate OK [17:47:10]requested_item fd.num is exist - process it [17:47:10]SAM_PROTO_GetFieldsCounters [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 13 00 00 [17:47:10]Write to MH i2c: E2 08 00 F9 30 80 13 00 00 00 00 00 00 A5 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 62 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 62 00 F9 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C0 09 00 00 0E 04 04 00 16 00 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 05 [17:47:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C0 09 00 00 0E 04 04 00 16 00 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 [17:47:10]wFMCommunicate OK [17:47:10]SAM_PROTO_GetFieldsCounters done [17:47:10]requested_item shift.num is exist - process it [17:47:10]requested_item shift.opened is exist - process it [17:47:10]req_shift_opened [17:47:10]FM_GetShiftState [17:47:10]SAM_PROTO_GetShiftState [17:47:10]wFMCommunicate request_size=4 [17:47:10]MH_SAM_APDU [17:47:10]CAPDU: 80 13 01 00 [17:47:10]Write to MH i2c: E2 08 00 FA 30 80 13 01 00 00 00 00 00 A7 [17:47:10]Write i2c OK [17:47:10]MH_I2C_Read... [17:47:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:10]Read from MH i2c: E2 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 0E 00 [17:47:10]MH_I2C_Read... [17:47:10]Read from MH i2c: E2 0E 00 FA 30 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 45 [17:47:10]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:47:10]wFMCommunicate OK [17:47:10]SAM_PROTO_GetShiftState done [17:47:10]FM_GetShiftState done [17:47:10]req_shift_opened done [17:47:10]requested_item shift.open_date is exist - process it [17:47:10]req_shift_open_date [17:47:10]req_shift_open_date done [17:47:10]produce_requested_data done [17:47:10]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2496,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [17:47:10]process_action_free close_receipt [17:47:10]json_value_free [17:47:10]json_value_free done [17:47:10]process_json_proto returns [17:47:10]Send response to host [17:47:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2496,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [17:47:10]free response buf [17:47:10]execute_script done [17:47:10]execute_script returns [17:47:10]free content buf [17:47:10]Sock 9.Close socket [17:47:10]Sock 9.Thread stoped [17:47:14]OFD Sender: No OFD packet to send [17:47:19]OFD Sender: No OFD packet to send [17:47:24]OFD Sender: No OFD packet to send [17:47:29]OFD Sender: No OFD packet to send [17:47:34]OFD Sender: No OFD packet to send [17:47:39]OFD Sender: No OFD packet to send [17:47:42]accept exits with 7 [17:47:42]New connection [17:47:42]New thread 3066707300 created [17:47:42]Thread 3066850660 joined [17:47:42]Waiting for new connection... [17:47:42] Sock 7.Parse request [17:47:42]Sock 7.Check first char [17:47:42]Sock 7.First char is OK [17:47:42]request: POST /json_proto HTTP/1.0 [17:47:42]Method: POST [17:47:42]URL: /json_proto [17:47:42]Method is POST - this is cgi request [17:47:42]url: /json_proto [17:47:42]query_string will be loaded in cgi processing [17:47:42]execute_cgi json_proto POST (null) [17:47:42]execute_cgi path=json_proto method=POST [17:47:42]POST find Content-Length [17:47:42]Host: 172.17.52.132:8080 [17:47:42]Content-Length: 215 [17:47:42]Content-Type: application/json [17:47:42] [17:47:42]POST finish read [17:47:42]Found Content-Length = 215 [17:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:42]execute_script... [17:47:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:42]POST & json_proto [17:47:42]process_json_proto [17:47:42]json parsed OK: [17:47:42]protocol is kg_v1.0 [17:47:42]action value=get_value [17:47:42]process_action get_value [17:47:42]cmd_get_value [17:47:42]process_action get_value done [17:47:42]requested_data is exist [17:47:42]produce_requested_data [17:47:42]requested_item kkm.sn is exist - process it [17:47:42]requested_item kkm.ver is exist - process it [17:47:42]requested_item fm.sn is exist - process it [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 11 00 00 [17:47:42]Write to MH i2c: E2 08 00 FB 30 80 11 00 00 00 00 00 00 A5 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 17 00 FB 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 ED [17:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [17:47:42]wFMCommunicate OK [17:47:42]requested_item fd.num is exist - process it [17:47:42]SAM_PROTO_GetFieldsCounters [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 13 00 00 [17:47:42]Write to MH i2c: E2 08 00 FC 30 80 13 00 00 00 00 00 00 A8 [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 62 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 62 00 FC 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C0 09 00 00 0E 04 04 00 16 00 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 08 [17:47:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C0 09 00 00 0E 04 04 00 16 00 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 [17:47:42]wFMCommunicate OK [17:47:42]SAM_PROTO_GetFieldsCounters done [17:47:42]requested_item shift.num is exist - process it [17:47:42]requested_item shift.opened is exist - process it [17:47:42]req_shift_opened [17:47:42]FM_GetShiftState [17:47:42]SAM_PROTO_GetShiftState [17:47:42]wFMCommunicate request_size=4 [17:47:42]MH_SAM_APDU [17:47:42]CAPDU: 80 13 01 00 [17:47:42]Write to MH i2c: E2 08 00 FD 30 80 13 01 00 00 00 00 00 AA [17:47:42]Write i2c OK [17:47:42]MH_I2C_Read... [17:47:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:42]Read from MH i2c: E2 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0E 00 [17:47:42]MH_I2C_Read... [17:47:42]Read from MH i2c: E2 0E 00 FD 30 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 48 [17:47:42]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:47:42]wFMCommunicate OK [17:47:42]SAM_PROTO_GetShiftState done [17:47:42]FM_GetShiftState done [17:47:42]req_shift_opened done [17:47:42]requested_item shift.open_date is exist - process it [17:47:42]req_shift_open_date [17:47:42]req_shift_open_date done [17:47:42]produce_requested_data done [17:47:42]produce_requested_data return {"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2496,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [17:47:42]process_action_free get_value [17:47:42]json_value_free [17:47:42]json_value_free done [17:47:42]process_json_proto returns [17:47:42]Send response to host [17:47:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2496,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [17:47:42]free response buf [17:47:42]execute_script done [17:47:42]execute_script returns [17:47:42]free content buf [17:47:42]Sock 7.Close socket [17:47:42]Sock 7.Thread stoped [17:47:42]accept exits with 10 [17:47:42]New connection [17:47:42]New thread 3066850660 created [17:47:42]Thread 3066707300 joined [17:47:42]Waiting for new connection... [17:47:42] Sock 10.Parse request [17:47:42]Sock 10.Check first char [17:47:42]Sock 10.First char is OK [17:47:42]request: POST /json_proto HTTP/1.0 [17:47:42]Method: POST [17:47:42]URL: /json_proto [17:47:42]Method is POST - this is cgi request [17:47:42]url: /json_proto [17:47:42]query_string will be loaded in cgi processing [17:47:42]execute_cgi json_proto POST (null) [17:47:42]execute_cgi path=json_proto method=POST [17:47:42]POST find Content-Length [17:47:42]Host: 172.17.52.132:8080 [17:47:42]Content-Length: 331 [17:47:42]Content-Type: application/json [17:47:42] [17:47:42]POST finish read [17:47:42]Found Content-Length = 331 [17:47:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:42]execute_script... [17:47:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:43]POST & json_proto [17:47:43]process_json_proto [17:47:43]json parsed OK: [17:47:43]protocol is kg_v1.0 [17:47:43]action value=get_value [17:47:43]process_action get_value [17:47:43]cmd_get_value [17:47:43]process_action get_value done [17:47:43]requested_data is exist [17:47:43]produce_requested_data [17:47:43]requested_item fm.sale.total is exist - process it [17:47:43]SAM_PROTO_GetFMData [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 13 03 00 [17:47:43]Write to MH i2c: E2 08 00 FE 30 80 13 03 00 00 00 00 00 AD [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 FD 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 FD 00 FE 30 00 BE 04 85 04 BA 04 6E 04 04 00 94 09 00 00 69 04 9F 00 6F 04 04 00 8C 09 00 00 B1 04 04 00 63 98 CC 04 70 04 04 00 60 3E 90 03 72 04 04 00 03 5A 3C 01 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 74 7A 82 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 9E DE 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 97 [17:47:43]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 94 09 00 00 69 04 9F 00 6F 04 04 00 8C 09 00 00 B1 04 04 00 63 98 CC 04 70 04 04 00 60 3E 90 03 72 04 04 00 03 5A 3C 01 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 74 7A 82 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 9E DE 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [17:47:43]wFMCommunicate OK [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 17 00 00 [17:47:43]Write to MH i2c: E2 08 00 FF 30 80 17 00 00 00 00 00 00 AF [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:43]Read from MH i2c: E2 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 FD 00 [17:47:43]MH_I2C_Read... [17:47:43]Read from MH i2c: E2 FD 00 FF 30 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 C4 [17:47:43]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:47:43]wFMCommunicate OK [17:47:43]wFMCommunicate request_size=4 [17:47:43]MH_SAM_APDU [17:47:43]CAPDU: 80 17 00 00 [17:47:43]Write to MH i2c: E2 08 00 00 31 80 17 00 00 00 00 00 00 B1 [17:47:43]Write i2c OK [17:47:43]MH_I2C_Read... [17:47:44]OFD Sender: No OFD packet to send [17:47:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 FD 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 FD 00 00 31 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 E3 [17:47:44]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [17:47:44]wFMCommunicate OK [17:47:44]wFMCommunicate request_size=4 [17:47:44]MH_SAM_APDU [17:47:44]CAPDU: 80 17 00 00 [17:47:44]Write to MH i2c: E2 08 00 01 31 80 17 00 00 00 00 00 00 B2 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 FD 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 FD 00 01 31 00 04 F7 03 00 00 EF 03 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 90 00 2D [17:47:44]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [17:47:44]wFMCommunicate OK [17:47:44]wFMCommunicate request_size=4 [17:47:44]MH_SAM_APDU [17:47:44]CAPDU: 80 17 00 00 [17:47:44]Write to MH i2c: E2 08 00 02 31 80 17 00 00 00 00 00 00 B3 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [17:47:44]Read from MH i2c: E2 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 DB 00 [17:47:44]MH_I2C_Read... [17:47:44]Read from MH i2c: E2 DB 00 02 31 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 95 [17:47:44]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:47:44]wFMCommunicate OK [17:47:44]SAM_PROTO_GetFMData done [17:47:44]requested_item fm.sale_refund.total is exist - process it [17:47:44]requested_item fm.buy.total is exist - process it [17:47:44]requested_item shift.sale.total is exist - process it [17:47:44]SAM_PROTO_GetShiftData [17:47:44]wFMCommunicate request_size=4 [17:47:44]MH_SAM_APDU [17:47:44]CAPDU: 80 13 02 00 [17:47:44]Write to MH i2c: E2 08 00 03 31 80 13 02 00 00 00 00 00 B2 [17:47:44]Write i2c OK [17:47:44]MH_I2C_Read... [17:47:45]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:47:45]Read from MH i2c: E2 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 FD 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 FD 00 03 31 00 AE 04 AA 04 AA 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 A4 4D 47 70 04 03 00 40 9A 2A 72 04 03 00 64 B3 1C 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 A9 92 07 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 82 A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 39 [17:47:45]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 A4 4D 47 70 04 03 00 40 9A 2A 72 04 03 00 64 B3 1C 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 A9 92 07 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 82 A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:47:45]wFMCommunicate OK [17:47:45]wFMCommunicate request_size=4 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 17 00 00 [17:47:45]Write to MH i2c: E2 08 00 04 31 80 17 00 00 00 00 00 00 B5 [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:45]Read from MH i2c: E2 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 FD 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 FD 00 04 31 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 D7 [17:47:45]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:47:45]wFMCommunicate OK [17:47:45]wFMCommunicate request_size=4 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 17 00 00 [17:47:45]Write to MH i2c: E2 08 00 05 31 80 17 00 00 00 00 00 00 B6 [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:45]Read from MH i2c: E2 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 FD 00 [17:47:45]MH_I2C_Read... [17:47:45]Read from MH i2c: E2 FD 00 05 31 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 6D [17:47:45]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:47:45]wFMCommunicate OK [17:47:45]wFMCommunicate request_size=4 [17:47:45]MH_SAM_APDU [17:47:45]CAPDU: 80 17 00 00 [17:47:45]Write to MH i2c: E2 08 00 06 31 80 17 00 00 00 00 00 00 B7 [17:47:45]Write i2c OK [17:47:45]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 FD 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 FD 00 06 31 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 29 [17:47:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:47:46]wFMCommunicate OK [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 17 00 00 [17:47:46]Write to MH i2c: E2 08 00 07 31 80 17 00 00 00 00 00 00 B8 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:47:46]Read from MH i2c: E2 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 CB 00 [17:47:46]MH_I2C_Read... [17:47:46]Read from MH i2c: E2 CB 00 07 31 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 A1 [17:47:46]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:47:46]wFMCommunicate OK [17:47:46]SAM_PROTO_GetShiftData done [17:47:46]requested_item shift.sale.total_cash is exist - process it [17:47:46]requested_item shift.sale_refund.total is exist - process it [17:47:46]requested_item shift.sale_refund.total_cash is exist - process it [17:47:46]requested_item shift.buy.total is exist - process it [17:47:46]requested_item shift.buy.total_cash is exist - process it [17:47:46]produce_requested_data done [17:47:46]produce_requested_data return {"fm.sale.total":805172.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":46729.32,"shift.sale.total_cash":27920.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} [17:47:46]process_action_free get_value [17:47:46]json_value_free [17:47:46]json_value_free done [17:47:46]process_json_proto returns [17:47:46]Send response to host [17:47:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":805172.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":46729.32,"shift.sale.total_cash":27920.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}}} [17:47:46]free response buf [17:47:46]execute_script done [17:47:46]execute_script returns [17:47:46]free content buf [17:47:46]Sock 10.Close socket [17:47:46]Sock 10.Thread stoped [17:47:46]accept exits with 7 [17:47:46]New connection [17:47:46]New thread 3066707300 created [17:47:46]Thread 3066850660 joined [17:47:46]Waiting for new connection... [17:47:46] Sock 7.Parse request [17:47:46]Sock 7.Check first char [17:47:46]Sock 7.First char is OK [17:47:46]request: POST /json_proto HTTP/1.0 [17:47:46]Method: POST [17:47:46]URL: /json_proto [17:47:46]Method is POST - this is cgi request [17:47:46]url: /json_proto [17:47:46]query_string will be loaded in cgi processing [17:47:46]execute_cgi json_proto POST (null) [17:47:46]execute_cgi path=json_proto method=POST [17:47:46]POST find Content-Length [17:47:46]Host: 172.17.52.132:8080 [17:47:46]Content-Length: 331 [17:47:46]Content-Type: application/json [17:47:46] [17:47:46]POST finish read [17:47:46]Found Content-Length = 331 [17:47:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:46]execute_script... [17:47:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [17:47:46]POST & json_proto [17:47:46]process_json_proto [17:47:46]json parsed OK: [17:47:46]protocol is kg_v1.0 [17:47:46]action value=get_value [17:47:46]process_action get_value [17:47:46]cmd_get_value [17:47:46]process_action get_value done [17:47:46]requested_data is exist [17:47:46]produce_requested_data [17:47:46]requested_item fm.sale.total is exist - process it [17:47:46]SAM_PROTO_GetFMData [17:47:46]wFMCommunicate request_size=4 [17:47:46]MH_SAM_APDU [17:47:46]CAPDU: 80 13 03 00 [17:47:46]Write to MH i2c: E2 08 00 08 31 80 13 03 00 00 00 00 00 B8 [17:47:46]Write i2c OK [17:47:46]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 FD 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 FD 00 08 31 00 BE 04 85 04 BA 04 6E 04 04 00 94 09 00 00 69 04 9F 00 6F 04 04 00 8C 09 00 00 B1 04 04 00 63 98 CC 04 70 04 04 00 60 3E 90 03 72 04 04 00 03 5A 3C 01 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 74 7A 82 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 9E DE 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 A2 [17:47:47]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 94 09 00 00 69 04 9F 00 6F 04 04 00 8C 09 00 00 B1 04 04 00 63 98 CC 04 70 04 04 00 60 3E 90 03 72 04 04 00 03 5A 3C 01 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 74 7A 82 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 9E DE 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [17:47:47]wFMCommunicate OK [17:47:47]wFMCommunicate request_size=4 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 17 00 00 [17:47:47]Write to MH i2c: E2 08 00 09 31 80 17 00 00 00 00 00 00 BA [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 FD 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 FD 00 09 31 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 CF [17:47:47]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:47:47]wFMCommunicate OK [17:47:47]wFMCommunicate request_size=4 [17:47:47]MH_SAM_APDU [17:47:47]CAPDU: 80 17 00 00 [17:47:47]Write to MH i2c: E2 08 00 0A 31 80 17 00 00 00 00 00 00 BB [17:47:47]Write i2c OK [17:47:47]MH_I2C_Read... [17:47:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:47]Read from MH i2c: E2 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 FD 00 [17:47:47]MH_I2C_Read... [17:47:47]Read from MH i2c: E2 FD 00 0A 31 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 ED [17:47:47]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [17:47:48]wFMCommunicate OK [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 17 00 00 [17:47:48]Write to MH i2c: E2 08 00 0B 31 80 17 00 00 00 00 00 00 BC [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:48]Read from MH i2c: E2 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 FD 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 FD 00 0B 31 00 04 F7 03 00 00 EF 03 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 90 00 37 [17:47:48]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [17:47:48]wFMCommunicate OK [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 17 00 00 [17:47:48]Write to MH i2c: E2 08 00 0C 31 80 17 00 00 00 00 00 00 BD [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 [17:47:48]MH_I2C_Read... [17:47:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [17:47:48]Read from MH i2c: E2 DB 00 [17:47:48]MH_I2C_Read... [17:47:48]Read from MH i2c: E2 DB 00 0C 31 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 9F [17:47:48]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:47:48]wFMCommunicate OK [17:47:48]SAM_PROTO_GetFMData done [17:47:48]requested_item fm.sale_refund.total is exist - process it [17:47:48]requested_item fm.buy.total is exist - process it [17:47:48]requested_item shift.sale.total is exist - process it [17:47:48]SAM_PROTO_GetShiftData [17:47:48]wFMCommunicate request_size=4 [17:47:48]MH_SAM_APDU [17:47:48]CAPDU: 80 13 02 00 [17:47:48]Write to MH i2c: E2 08 00 0D 31 80 13 02 00 00 00 00 00 BC [17:47:48]Write i2c OK [17:47:48]MH_I2C_Read... [17:47:49]OFD Sender: No OFD packet to send [17:47:49]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 FD 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 FD 00 0D 31 00 AE 04 AA 04 AA 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 A4 4D 47 70 04 03 00 40 9A 2A 72 04 03 00 64 B3 1C 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 A9 92 07 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 82 A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 43 [17:47:49]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 A4 4D 47 70 04 03 00 40 9A 2A 72 04 03 00 64 B3 1C 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 A9 92 07 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 82 A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:47:49]wFMCommunicate OK [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 17 00 00 [17:47:49]Write to MH i2c: E2 08 00 0E 31 80 17 00 00 00 00 00 00 BF [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:49]Read from MH i2c: E2 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 FD 00 [17:47:49]MH_I2C_Read... [17:47:49]Read from MH i2c: E2 FD 00 0E 31 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 E1 [17:47:49]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:47:49]wFMCommunicate OK [17:47:49]wFMCommunicate request_size=4 [17:47:49]MH_SAM_APDU [17:47:49]CAPDU: 80 17 00 00 [17:47:49]Write to MH i2c: E2 08 00 0F 31 80 17 00 00 00 00 00 00 C0 [17:47:49]Write i2c OK [17:47:49]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 FD 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 FD 00 0F 31 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 77 [17:47:50]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:47:50]wFMCommunicate OK [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 17 00 00 [17:47:50]Write to MH i2c: E2 08 00 10 31 80 17 00 00 00 00 00 00 C1 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 FD 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 FD 00 10 31 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 33 [17:47:50]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:47:50]wFMCommunicate OK [17:47:50]wFMCommunicate request_size=4 [17:47:50]MH_SAM_APDU [17:47:50]CAPDU: 80 17 00 00 [17:47:50]Write to MH i2c: E2 08 00 11 31 80 17 00 00 00 00 00 00 C2 [17:47:50]Write i2c OK [17:47:50]MH_I2C_Read... [17:47:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:47:50]Read from MH i2c: E2 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 CB 00 [17:47:50]MH_I2C_Read... [17:47:50]Read from MH i2c: E2 CB 00 11 31 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 AB [17:47:51]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:47:51]wFMCommunicate OK [17:47:51]SAM_PROTO_GetShiftData done [17:47:51]requested_item shift.sale.total_cash is exist - process it [17:47:51]requested_item shift.sale_refund.total is exist - process it [17:47:51]requested_item shift.sale_refund.total_cash is exist - process it [17:47:51]requested_item shift.buy.total is exist - process it [17:47:51]requested_item shift.buy.total_cash is exist - process it [17:47:51]produce_requested_data done [17:47:51]produce_requested_data return {"fm.sale.total":805172.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":46729.32,"shift.sale.total_cash":27920.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} [17:47:51]process_action_free get_value [17:47:51]json_value_free [17:47:51]json_value_free done [17:47:51]process_json_proto returns [17:47:51]Send response to host [17:47:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":805172.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":46729.32,"shift.sale.total_cash":27920.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}}} [17:47:51]free response buf [17:47:51]execute_script done [17:47:51]execute_script returns [17:47:51]free content buf [17:47:51]Sock 7.Close socket [17:47:51]Sock 7.Thread stoped [17:47:51]accept exits with 9 [17:47:51]New connection [17:47:51]New thread 3066850660 created [17:47:51]Thread 3066707300 joined [17:47:51]Waiting for new connection... [17:47:51] Sock 9.Parse request [17:47:51]Sock 9.Check first char [17:47:51]Sock 9.First char is OK [17:47:51]request: POST /json_proto HTTP/1.0 [17:47:51]Method: POST [17:47:51]URL: /json_proto [17:47:51]Method is POST - this is cgi request [17:47:51]url: /json_proto [17:47:51]query_string will be loaded in cgi processing [17:47:51]execute_cgi json_proto POST (null) [17:47:51]execute_cgi path=json_proto method=POST [17:47:51]POST find Content-Length [17:47:51]Host: 172.17.52.132:8080 [17:47:51]Content-Length: 263 [17:47:51]Content-Type: application/json [17:47:51] [17:47:51]POST finish read [17:47:51]Found Content-Length = 263 [17:47:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:51]execute_script... [17:47:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:47:51]POST & json_proto [17:47:51]process_json_proto [17:47:51]json parsed OK: [17:47:51]protocol is kg_v1.0 [17:47:51]action value=x_report [17:47:51]process_action x_report [17:47:51]cmd_x_report [17:47:51]MH_GetDate [17:47:51]Write to MH i2c: F0 00 00 12 31 32 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 09 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 09 00 12 31 00 4C 9F 12 67 5A BE F6 66 13 [17:47:51]GetLastDocTimeStamp 1729273631 [17:47:51]current date 1729273676 [17:47:51]FM_GetShiftState [17:47:51]SAM_PROTO_GetShiftState [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 13 01 00 [17:47:51]Write to MH i2c: E2 08 00 13 31 80 13 01 00 00 00 00 00 C1 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:47:51]Read from MH i2c: E2 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 0E 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 0E 00 13 31 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 5F [17:47:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:47:51]wFMCommunicate OK [17:47:51]SAM_PROTO_GetShiftState done [17:47:51]FM_GetShiftState done [17:47:51]KKMCreateXReportDocument [17:47:51]Load OK [17:47:51]Malloc new data [17:47:51]MH_GetDate [17:47:51]Write to MH i2c: F0 00 00 14 31 34 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 09 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: F0 09 00 14 31 00 4C 9F 12 67 5A BE F6 66 15 [17:47:51]Malloc new data [17:47:51]Malloc new data [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 11 00 00 [17:47:51]Write to MH i2c: E2 08 00 15 31 80 11 00 00 00 00 00 00 C0 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:47:51]Read from MH i2c: E2 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 17 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 17 00 15 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 08 [17:47:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [17:47:51]wFMCommunicate OK [17:47:51]SAM_PROTO_GetFieldsCounters [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 13 00 00 [17:47:51]Write to MH i2c: E2 08 00 16 31 80 13 00 00 00 00 00 00 C3 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:47:51]Read from MH i2c: E2 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 62 00 [17:47:51]MH_I2C_Read... [17:47:51]Read from MH i2c: E2 62 00 16 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C0 09 00 00 0E 04 04 00 16 00 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 23 [17:47:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C0 09 00 00 0E 04 04 00 16 00 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 [17:47:51]wFMCommunicate OK [17:47:51]SAM_PROTO_GetFieldsCounters done [17:47:51]Malloc new data [17:47:51]Malloc new data [17:47:51]Malloc new data [17:47:51]KKMCreateXReportDocument OK [17:47:51]KKMSetXReportData OK [17:47:51]KKMPrepareXReportFMData [17:47:51]SAM_PROTO_GetShiftData [17:47:51]wFMCommunicate request_size=4 [17:47:51]MH_SAM_APDU [17:47:51]CAPDU: 80 13 02 00 [17:47:51]Write to MH i2c: E2 08 00 17 31 80 13 02 00 00 00 00 00 C6 [17:47:51]Write i2c OK [17:47:51]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 FD 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 FD 00 17 31 00 AE 04 AA 04 AA 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 A4 4D 47 70 04 03 00 40 9A 2A 72 04 03 00 64 B3 1C 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 A9 92 07 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 82 A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 4D [17:47:52]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 79 00 00 00 69 04 9B 00 6F 04 04 00 79 00 00 00 B1 04 03 00 A4 4D 47 70 04 03 00 40 9A 2A 72 04 03 00 64 B3 1C 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 A9 92 07 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 82 A1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 17 00 00 [17:47:52]Write to MH i2c: E2 08 00 18 31 80 17 00 00 00 00 00 00 C9 [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:52]Read from MH i2c: E2 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 FD 00 [17:47:52]MH_I2C_Read... [17:47:52]Read from MH i2c: E2 FD 00 18 31 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 EB [17:47:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [17:47:52]wFMCommunicate OK [17:47:52]wFMCommunicate request_size=4 [17:47:52]MH_SAM_APDU [17:47:52]CAPDU: 80 17 00 00 [17:47:52]Write to MH i2c: E2 08 00 19 31 80 17 00 00 00 00 00 00 CA [17:47:52]Write i2c OK [17:47:52]MH_I2C_Read... [17:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:53]Read from MH i2c: E2 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 FD 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 FD 00 19 31 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 81 [17:47:53]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [17:47:53]wFMCommunicate OK [17:47:53]wFMCommunicate request_size=4 [17:47:53]MH_SAM_APDU [17:47:53]CAPDU: 80 17 00 00 [17:47:53]Write to MH i2c: E2 08 00 1A 31 80 17 00 00 00 00 00 00 CB [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:53]Read from MH i2c: E2 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 FD 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 FD 00 1A 31 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 3D [17:47:53]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [17:47:53]wFMCommunicate OK [17:47:53]wFMCommunicate request_size=4 [17:47:53]MH_SAM_APDU [17:47:53]CAPDU: 80 17 00 00 [17:47:53]Write to MH i2c: E2 08 00 1B 31 80 17 00 00 00 00 00 00 CC [17:47:53]Write i2c OK [17:47:53]MH_I2C_Read... [17:47:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [17:47:53]Read from MH i2c: E2 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 CB 00 [17:47:53]MH_I2C_Read... [17:47:53]Read from MH i2c: E2 CB 00 1B 31 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B5 [17:47:54]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:47:54]wFMCommunicate OK [17:47:54]SAM_PROTO_GetShiftData done [17:47:54]1194 (1194) - Ñчетчики итогов Ñмены [17:47:54] 1134 (4) - 121 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [17:47:54] 1129 (155) - Ñчетчики операций «приход» [17:47:54] 1135 (4) - 121 - количеÑтво чеков по признаку раÑчетов [17:47:54] 1201 (3) - 46729.32 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [17:47:54] 1136 (3) - 27920.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [17:47:54] 1138 (3) - 18809.32 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [17:47:54] 1024 (122) - Ñуммы налогов [17:47:54] 1006 (9) - Ñуммы ÐДС [17:47:54] 1010 (1) - 0% - код Ñтавки ÐДС [17:47:54] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [17:47:54] 1006 (12) - Ñуммы ÐДС [17:47:54] 1010 (1) - 12% - код Ñтавки ÐДС [17:47:54] 1011 (3) - 4962.97 - Ñумма ÐДС по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 0% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (11) - Ñуммы ÐСП [17:47:54] 1014 (1) - 1% - код Ñтавки ÐСП [17:47:54] 1015 (2) - 413.46 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 2% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 3% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 5% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 0,50% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 1,50% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1130 (141) - Ñчетчики операций «возврат прихода» [17:47:54] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [17:47:54] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [17:47:54] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [17:47:54] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [17:47:54] 1024 (117) - Ñуммы налогов [17:47:54] 1006 (9) - Ñуммы ÐДС [17:47:54] 1010 (1) - 0% - код Ñтавки ÐДС [17:47:54] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [17:47:54] 1006 (9) - Ñуммы ÐДС [17:47:54] 1010 (1) - 12% - код Ñтавки ÐДС [17:47:54] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 0% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 1% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 2% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 3% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 5%OFD Sender: No OFD packet to send [17:47:54] - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 0,50% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 1,50% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1131 (141) - Ñчетчики операций «раÑход» [17:47:54] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [17:47:54] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [17:47:54] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [17:47:54] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [17:47:54] 1024 (117) - Ñуммы налогов [17:47:54] 1006 (9) - Ñуммы ÐДС [17:47:54] 1010 (1) - 0% - код Ñтавки ÐДС [17:47:54] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [17:47:54] 1006 (9) - Ñуммы ÐДС [17:47:54] 1010 (1) - 12% - код Ñтавки ÐДС [17:47:54] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 0% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 1% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 2% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 3% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 5% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 0,50% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 1,50% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1132 (141) - Ñчетчики операций «возврат раÑхода» [17:47:54] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [17:47:54] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [17:47:54] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [17:47:54] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [17:47:54] 1024 (117) - Ñуммы налогов [17:47:54] 1006 (9) - Ñуммы ÐДС [17:47:54] 1010 (1) - 0% - код Ñтавки ÐДС [17:47:54] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [17:47:54] 1006 (9) - Ñуммы ÐДС [17:47:54] 1010 (1) - 12% - код Ñтавки ÐДС [17:47:54] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 0% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 1% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 2% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 3% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 5% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 0,50% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1007 (9) - Ñуммы ÐСП [17:47:54] 1014 (1) - 1,50% - код Ñтавки ÐСП [17:47:54] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [17:47:54] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1194 (04AA) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1134 (046E) [17:47:54]Malloc new data [17:47:54]Processing tag 1129 (0469) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1135 (046F) [17:47:54]Malloc new data [17:47:54]Processing tag 1201 (04B1) [17:47:54]Malloc new data [17:47:54]Processing tag 1136 (0470) [17:47:54]Malloc new data [17:47:54]Processing tag 1138 (0472) [17:47:54]Malloc new data [17:47:54]Processing tag 1024 (0400) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1006 (03EE) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1010 (03F2) [17:47:54]Malloc new data [17:47:54]Processing tag 1011 (03F3) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1006 (03EE) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1010 (03F2) [17:47:54]Malloc new data [17:47:54]Processing tag 1011 (03F3) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]SetTLVBufToDocument err=0 [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1130 (046A) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1135 (046F) [17:47:54]Malloc new data [17:47:54]Processing tag 1201 (04B1) [17:47:54]Malloc new data [17:47:54]Processing tag 1136 (0470) [17:47:54]Malloc new data [17:47:54]Processing tag 1138 (0472) [17:47:54]Malloc new data [17:47:54]Processing tag 1024 (0400) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1006 (03EE) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1010 (03F2) [17:47:54]Malloc new data [17:47:54]Processing tag 1011 (03F3) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1006 (03EE) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1010 (03F2) [17:47:54]Malloc new data [17:47:54]Processing tag 1011 (03F3) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]SetTLVBufToDocument err=0 [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1131 (046B) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1135 (046F) [17:47:54]Malloc new data [17:47:54]Processing tag 1201 (04B1) [17:47:54]Malloc new data [17:47:54]Processing tag 1136 (0470) [17:47:54]Malloc new data [17:47:54]Processing tag 1138 (0472) [17:47:54]Malloc new data [17:47:54]Processing tag 1024 (0400) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1006 (03EE) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1010 (03F2) [17:47:54]Malloc new data [17:47:54]Processing tag 1011 (03F3) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1006 (03EE) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1010 (03F2) [17:47:54]Malloc new data [17:47:54]Processing tag 1011 (03F3) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1014 (03F6) [17:47:54]Malloc new data [17:47:54]Processing tag 1015 (03F7) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]SetTLVBufToDocument err=0 [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1132 (046C) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1135 (046F) [17:47:54]Malloc new data [17:47:54]Processing tag 1201 (04B1) [17:47:54]Malloc new data [17:47:54]Processing tag 1136 (0470) [17:47:54]Malloc new data [17:47:54]Processing tag 1138 (0472) [17:47:54]Malloc new data [17:47:54]Processing tag 1024 (0400) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1006 (03EE) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1010 (03F2) [17:47:54]Malloc new data [17:47:54]Processing tag 1011 (03F3) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1006 (03EE) [17:47:54]Load OK [17:47:54]SetTLVBufToDocument [17:47:54]Processing tag 1010 (03F2) [17:47:54]Malloc new data [17:47:54]Processing tag 1011 (03F3) [17:47:54]Malloc new data [17:47:54]SetTLVBufToDocument err=0 [17:47:54]Processing tag 1007 (03EF) [17:47:54]Load OK [17:47:55]SetTLVBufToDocument [17:47:55]Processing tag 1014 (03F6) [17:47:55]Malloc new data [17:47:55]Processing tag 1015 (03F7) [17:47:55]Malloc new data [17:47:55]SetTLVBufToDocument err=0 [17:47:55]Processing tag 1007 (03EF) [17:47:55]Load OK [17:47:55]SetTLVBufToDocument [17:47:55]Processing tag 1014 (03F6) [17:47:55]Malloc new data [17:47:55]Processing tag 1015 (03F7) [17:47:55]Malloc new data [17:47:55]SetTLVBufToDocument err=0 [17:47:55]Processing tag 1007 (03EF) [17:47:55]Load OK [17:47:55]SetTLVBufToDocument [17:47:55]Processing tag 1014 (03F6) [17:47:55]Malloc new data [17:47:55]Processing tag 1015 (03F7) [17:47:55]Malloc new data [17:47:55]SetTLVBufToDocument err=0 [17:47:55]Processing tag 1007 (03EF) [17:47:55]Load OK [17:47:55]SetTLVBufToDocument [17:47:55]Processing tag 1014 (03F6) [17:47:55]Malloc new data [17:47:55]Processing tag 1015 (03F7) [17:47:55]Malloc new data [17:47:55]SetTLVBufToDocument err=0 [17:47:55]Processing tag 1007 (03EF) [17:47:55]Load OK [17:47:55]SetTLVBufToDocument [17:47:55]Processing tag 1014 (03F6) [17:47:55]Malloc new data [17:47:55]Processing tag 1015 (03F7) [17:47:55]Malloc new data [17:47:55]SetTLVBufToDocument err=0 [17:47:55]Processing tag 1007 (03EF) [17:47:55]Load OK [17:47:55]SetTLVBufToDocument [17:47:55]Processing tag 1014 (03F6) [17:47:55]Malloc new data [17:47:55]Processing tag 1015 (03F7) [17:47:55]Malloc new data [17:47:55]SetTLVBufToDocument err=0 [17:47:55]Processing tag 1007 (03EF) [17:47:55]Load OK [17:47:55]SetTLVBufToDocument [17:47:55]Processing tag 1014 (03F6) [17:47:55]Malloc new data [17:47:55]Processing tag 1015 (03F7) [17:47:55]Malloc new data [17:47:55]SetTLVBufToDocument err=0 [17:47:55]SetTLVBufToDocument err=0 [17:47:55]SetTLVBufToDocument err=0 [17:47:55]Processing tag 1133 (046D) [17:47:55]Malloc new data [17:47:55]SetTLVBufToDocument err=0 [17:47:55]SetTLVBufToDocument err=0 [17:47:55]Malloc new data [17:47:55]SAM_PROTO_GetFMData [17:47:55]wFMCommunicate request_size=4 [17:47:55]MH_SAM_APDU [17:47:55]CAPDU: 80 13 03 00 [17:47:55]Write to MH i2c: E2 08 00 1C 31 80 13 03 00 00 00 00 00 CC [17:47:55]Write i2c OK [17:47:55]MH_I2C_Read... [17:47:55]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [17:47:55]Read from MH i2c: E2 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 FD 00 [17:47:55]MH_I2C_Read... [17:47:55]Read from MH i2c: E2 FD 00 1C 31 00 BE 04 85 04 BA 04 6E 04 04 00 94 09 00 00 69 04 9F 00 6F 04 04 00 8C 09 00 00 B1 04 04 00 63 98 CC 04 70 04 04 00 60 3E 90 03 72 04 04 00 03 5A 3C 01 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 74 7A 82 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 9E DE 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 B6 [17:47:55]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 94 09 00 00 69 04 9F 00 6F 04 04 00 8C 09 00 00 B1 04 04 00 63 98 CC 04 70 04 04 00 60 3E 90 03 72 04 04 00 03 5A 3C 01 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 74 7A 82 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 9E DE 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [17:47:56]wFMCommunicate OK [17:47:56]wFMCommunicate request_size=4 [17:47:56]MH_SAM_APDU [17:47:56]CAPDU: 80 17 00 00 [17:47:56]Write to MH i2c: E2 08 00 1D 31 80 17 00 00 00 00 00 00 CE [17:47:56]Write i2c OK [17:47:56]MH_I2C_Read... [17:47:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:56]Read from MH i2c: E2 [17:47:56]MH_I2C_Read... [17:47:56]Read from MH i2c: E2 FD 00 [17:47:56]MH_I2C_Read... [17:47:56]Read from MH i2c: E2 FD 00 1D 31 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E3 [17:47:56]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [17:47:56]wFMCommunicate OK [17:47:56]wFMCommunicate request_size=4 [17:47:56]MH_SAM_APDU [17:47:56]CAPDU: 80 17 00 00 [17:47:56]Write to MH i2c: E2 08 00 1E 31 80 17 00 00 00 00 00 00 CF [17:47:56]Write i2c OK [17:47:56]MH_I2C_Read... [17:47:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:56]Read from MH i2c: E2 [17:47:56]MH_I2C_Read... [17:47:56]Read from MH i2c: E2 FD 00 [17:47:56]MH_I2C_Read... [17:47:56]Read from MH i2c: E2 FD 00 1E 31 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 01 [17:47: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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [17:47:57]wFMCommunicate OK [17:47:57]wFMCommunicate request_size=4 [17:47:57]MH_SAM_APDU [17:47:57]CAPDU: 80 17 00 00 [17:47:57]Write to MH i2c: E2 08 00 1F 31 80 17 00 00 00 00 00 00 D0 [17:47:57]Write i2c OK [17:47:57]MH_I2C_Read... [17:47:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [17:47:57]Read from MH i2c: E2 [17:47:57]MH_I2C_Read... [17:47:57]Read from MH i2c: E2 FD 00 [17:47:57]MH_I2C_Read... [17:47:57]Read from MH i2c: E2 FD 00 1F 31 00 04 F7 03 00 00 EF 03 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 90 00 4B [17:47:57]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [17:47:57]wFMCommunicate OK [17:47:57]wFMCommunicate request_size=4 [17:47:57]MH_SAM_APDU [17:47:57]CAPDU: 80 17 00 00 [17:47:57]Write to MH i2c: E2 08 00 20 31 80 17 00 00 00 00 00 00 D1 [17:47:57]Write i2c OK [17:47:57]MH_I2C_Read... [17:47:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [17:47:57]Read from MH i2c: E2 [17:47:57]MH_I2C_Read... [17:47:57]Read from MH i2c: E2 DB 00 [17:47:57]MH_I2C_Read... [17:47:57]Read from MH i2c: E2 DB 00 20 31 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B3 [17:47:58]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [17:47:58]wFMCommunicate OK [17:47:58]SAM_PROTO_GetFMData done [17:47:58]FM_GetFMData:85 04 BA 04 6E 04 04 00 94 09 00 00 69 04 9F 00 6F 04 04 00 8C 09 00 00 B1 04 04 00 63 98 CC 04 70 04 04 00 60 3E 90 03 72 04 04 00 03 5A 3C 01 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 74 7A 82 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 9E DE 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:47:59]oper:6F 04 04 00 8C 09 00 00 B1 04 04 00 63 98 CC 04 70 04 04 00 60 3E 90 03 72 04 04 00 03 5A 3C 01 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 74 7A 82 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 9E DE 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:47:59]total:63 98 CC 04 [17:47:59]Malloc new data [17:47:59]oper:6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:47:59]total:58 F6 01 [17:47:59]Malloc new data [17:47:59]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 OFD Sender: No OFD packet to send [17:47:59]06 F7 03 00 00 [17:47:59]total: [17:47:59]Malloc new data [17:47:59]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [17:47:59]total: [17:47:59]Malloc new data [17:47:59]KKMPrepareXReportFMData err=0 [17:47:59]Ð¥ отчет ИÐÐ: 02508201610067 КаÑÑир: Ðуралиева Ð. 18.10.2024 17:47 Смена: 10 РÐМ: 0000000000207295 ЗÐМ: 0300000191 СÐО: Общий режим Ð’Ñего чеков: 121 ИТОГИ ПРИХОД Чеков: 121 Общий итог: 46729.32 Итого наличными: 27920.00 Итого безнал.: 18809.32 ÐДС 0% : 0.00 ÐДС 12% : 4962.97 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 413.46 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ РÐСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ ВОЗВРÐТ РÐСХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 Сумма внеÑений: 0.00 Сумма выплат: 0.00 Ðал. в каÑÑе: 27920.00 ÐС Приход: 805172.19 ÐС Возвр.Прихода: 1286.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФМ: 0000000002342820 [17:47:59]StoreToDocumentArchive [17:47:59]MH_GetDate [17:47:59]Write to MH i2c: F0 00 00 21 31 41 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 09 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: F0 09 00 21 31 00 54 9F 12 67 5A BE F6 66 2A [17:47:59]shift 10 fd 1729273684 [17:47:59]Create dir for shift 0010 [17:47:59]save to /storage/0010/doc_1729273684 [17:47:59]save last doc name /storage/0010/doc_1729273684 to /storage/kkm_last_doc_name [17:47:59]save OK [17:47:59]Clear old archive folders... [17:47:59]NVStorageSaveData kkm_last_timestamp [17:47:59]File name is /storage/kkm_last_timestamp [17:47:59]Write 4 bytes [17:47:59]NVStorageSaveData done [17:47:59]ExternCall_PrintAddStr [17:47:59]wPrintStart [17:47:59]Write to MH i2c: 01 00 00 22 31 53 [17:47:59]Write i2c OK [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 07 00 [17:47:59]MH_I2C_Read... [17:47:59]Read from MH i2c: 01 07 00 22 31 00 00 00 00 00 FF 0F 68 [17:47:59]RasterBufferAndPrint [17:47:59]line Ð¥ отчет [17:47:59]line ИÐÐ: 02508201610067 [17:47:59]line КаÑÑир: Ðуралиева Ð. [17:47:59]line 18.10.2024 17:47 [17:47:59]line Смена: 10 [17:47:59]line РÐМ: 0000000000207295 [17:47:59]line ЗÐМ: 0300000191 [17:47:59]line СÐО: Общий режим [17:47:59]line Ð’Ñего чеков: 121 [17:47:59]line ИТОГИ ПРИХОД [17:47:59]line Чеков: 121 [17:47:59]line Общий итог: 46729.32 [17:47:59]line Итого наличными: 27920.00 [17:47:59]line Итого безнал.: 18809.32 [17:47:59]line ÐДС 0% : 0.00 [17:47:59]line ÐДС 12% : 4962.97 [17:47:59]line ÐСП 0% : 0.00 [17:47:59]line ÐСП 1,50% : 0.00 [17:47:59]line ÐСП 0,50% : 0.00 [17:47:59]line ÐСП 5% : 0.00 [17:47:59]line ÐСП 3% : 0.00 [17:47:59]line ÐСП 2% : 0.00 [17:47:59]line ÐСП 1% : 413.46 [17:47:59]line ИТОГИ ВОЗВРÐТ ПРИХОДР[17:47:59]line Чеков: 0 [17:47:59]line Общий итог: 0.00 [17:47:59]line Итого наличными: 0.00 [17:47:59]line Итого безнал.: 0.00 [17:47:59]line ÐДС 0% : 0.00 [17:47:59]line ÐДС 12% : 0.00 [17:47:59]line ÐСП 0% : 0.00 [17:47:59]line ÐСП 1,50% : 0.00 [17:47:59]line ÐСП 0,50% : 0.00 [17:47:59]line ÐСП 5% : 0.00 [17:47:59]line ÐСП 3% : 0.00 [17:47:59]line ÐСП 2% : 0.00 [17:47:59]line ÐСП 1% : 0.00 [17:47:59]line ИТОГИ РÐСХОД [17:47:59]line Чеков: 0 [17:47:59]line Общий итог: 0.00 [17:47:59]line Итого наличными: 0.00 [17:47:59]line Итого безнал.: 0.00 [17:47:59]line ÐДС 0% : 0.00 [17:47:59]line ÐДС 12% : 0.00 [17:47:59]line ÐСП 0% : 0.00 [17:47:59]line ÐСП 1,50% : 0.00 [17:47:59]line ÐСП 0,50% : 0.00 [17:47:59]line ÐСП 5% : 0.00 [17:47:59]line ÐСП 3% : 0.00 [17:47:59]line ÐСП 2% : 0.00 [17:47:59]line ÐСП 1% : 0.00 [17:47:59]line ИТОГИ ВОЗВРÐТ РÐСХОДР[17:47:59]line Чеков: 0 [17:47:59]line Общий итог: 0.00 [17:47:59]line Итого наличными: 0.00 [17:47:59]line Итого безнал.: 0.00 [17:47:59]line ÐДС 0% : 0.00 [17:47:59]line ÐДС 12% : 0.00 [17:47:59]line ÐСП 0% : 0.00 [17:47:59]line ÐСП 1,50% : 0.00 [17:47:59]line ÐСП 0,50% : 0.00 [17:47:59]line ÐСП 5% : 0.00 [17:47:59]line ÐСП 3% : 0.00 [17:47:59]line ÐСП 2% : 0.00 [17:47:59]line ÐСП 1% : 0.00 [17:47:59]line Сумма внеÑений: 0.00 [17:47:59]line Сумма выплат: 0.00 [17:47:59]line Ðал. в каÑÑе: 27920.00 [17:47:59]line ÐС Приход: 805172.19 [17:47:59]line ÐС Возвр.Прихода: 1286.00 [17:47:59]line ÐС РаÑход: 0.00 [17:47:59]line ÐС Возвр.РаÑхода: 0.00 [17:47:59]line ФМ: 0000000002342820 [17:47:59]written 0, free lines is 4095 [17:48:00]Write to MH i2c: 01 00 00 6D 31 9E [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 07 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: 01 07 00 6D 31 00 00 00 00 00 53 0A 02 [17:48:00]RasterBufferAndPrint [17:48:00]line [17:48:00]line [17:48:00]line [17:48:00]line [17:48:00]line [17:48:00]written 0, free lines is 2674 [17:48:00]MH_Cut [17:48:00]Write to MH i2c: D1 01 00 74 31 01 77 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: D1 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: D1 01 00 [17:48:00]MH_I2C_Read... [17:48:00]Read from MH i2c: D1 01 00 74 31 00 76 [17:48:00]Write to MH i2c: 01 00 00 75 31 A6 [17:48:00]Write i2c OK [17:48:00]MH_I2C_Read... [17:48:01]*** Cut start [17:48:01]*** Partial cut [17:48:01]*** CUTSNS_PIN = 1 [17:48:01]*** CUTSNS_PIN = 0 [17:48:01]*** Brake cut motor [17:48:02]Read from MH i2c: 01 [17:48:02]MH_I2C_Read... [17:48:02]*** Stop cut motor [17:48:02]*** Cut end [17:48:02]Read from MH i2c: 01 07 00 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: 01 07 00 75 31 00 00 00 00 00 FF 0F BB [17:48:02]process_action x_report done [17:48:02]requested_data is exist [17:48:02]produce_requested_data [17:48:02]requested_item fd.num is exist - process it [17:48:02]SAM_PROTO_GetFieldsCounters [17:48:02]wFMCommunicate request_size=4 [17:48:02]MH_SAM_APDU [17:48:02]CAPDU: 80 13 00 00 [17:48:02]Write to MH i2c: E2 08 00 76 31 80 13 00 00 00 00 00 00 23 [17:48:02]Write i2c OK [17:48:02]MH_I2C_Read... [17:48:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:02]Read from MH i2c: E2 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 62 00 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 62 00 76 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C0 09 00 00 0E 04 04 00 16 00 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 83 [17:48:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C0 09 00 00 0E 04 04 00 16 00 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 [17:48:02]wFMCommunicate OK [17:48:02]SAM_PROTO_GetFieldsCounters done [17:48:02]requested_item shift.num is exist - process it [17:48:02]requested_item shift.opened is exist - process it [17:48:02]req_shift_opened [17:48:02]FM_GetShiftState [17:48:02]SAM_PROTO_GetShiftState [17:48:02]wFMCommunicate request_size=4 [17:48:02]MH_SAM_APDU [17:48:02]CAPDU: 80 13 01 00 [17:48:02]Write to MH i2c: E2 08 00 77 31 80 13 01 00 00 00 00 00 25 [17:48:02]Write i2c OK [17:48:02]MH_I2C_Read... [17:48:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:02]Read from MH i2c: E2 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 0E 00 [17:48:02]MH_I2C_Read... [17:48:02]Read from MH i2c: E2 0E 00 77 31 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C3 [17:48:02]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [17:48:02]wFMCommunicate OK [17:48:02]SAM_PROTO_GetShiftState done [17:48:02]FM_GetShiftState done [17:48:02]req_shift_opened done [17:48:02]requested_item shift.open_date is exist - process it [17:48:02]req_shift_open_date [17:48:02]req_shift_open_date done [17:48:02]produce_requested_data done [17:48:02]produce_requested_data return {"fd.num":2496,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [17:48:02]process_action_free x_report [17:48:02]json_value_free [17:48:02]json_value_free done [17:48:02]process_json_proto returns [17:48:02]Send response to host [17:48:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2496,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [17:48:02]free response buf [17:48:02]execute_script done [17:48:02]execute_script returns [17:48:02]free content buf [17:48:02]Sock 9.Close socket [17:48:02]Sock 9.Thread stoped [17:48:04]OFD Sender: No OFD packet to send [17:48:09]OFD Sender: No OFD packet to send [17:48:14]OFD Sender: No OFD packet to send [17:48:19]OFD Sender: No OFD packet to send [17:48:24]OFD Sender: No OFD packet to send [17:48:29]OFD Sender: No OFD packet to send [17:48:34]OFD Sender: No OFD packet to send [17:48:39]OFD Sender: No OFD packet to send [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:54]OFD Sender: No OFD packet to send [17:51:59]OFD Sender: No OFD packet to send [17:52:04]OFD Sender: No OFD packet to send [17:52:09]OFD Sender: No OFD packet to send [17:52:14]OFD Sender: No OFD packet to send [17:52:19]OFD Sender: No OFD packet to send [17:52:24]OFD Sender: No OFD packet to send [17:52:29]OFD Sender: No OFD packet to send [17:52:34]OFD Sender: No OFD packet to send [17:52:39]OFD Sender: No OFD packet to send [17:52:44]OFD Sender: No OFD packet to send [17:52:49]OFD Sender: No OFD packet to send [17:52:54]OFD Sender: No OFD packet to send [17:52:59]OFD Sender: No OFD packet to send [17:53:04]OFD Sender: No OFD packet to send [17:53:09]OFD Sender: No OFD packet to send [17:53:14]OFD Sender: No OFD packet to send [17:53:19]OFD Sender: No OFD packet to send [17:53:24]OFD Sender: No OFD packet to send [17:53:29]OFD Sender: No OFD packet to send [17:53:34]OFD Sender: No OFD packet to send [17:53:39]OFD Sender: No OFD packet to send [17:53:44]OFD Sender: No OFD packet to send [17:53:49]OFD Sender: No OFD packet to send [17:53:54]OFD Sender: No OFD packet to send [17:53:59]OFD Sender: No OFD packet to send [17:54:04]OFD Sender: No OFD packet to send [17:54:09]OFD Sender: No OFD packet to send [17:54:14]OFD Sender: No OFD packet to send [17:54:19]OFD Sender: No OFD packet to send [17:54:24]OFD Sender: No OFD packet to send [17:54:29]OFD Sender: No OFD packet to send [17:54:34]OFD Sender: No OFD packet to send [17:54:39]OFD Sender: No OFD packet to send [17:54:44]OFD Sender: No OFD packet to send [17:54:49]OFD Sender: No OFD packet to send [17:54:54]OFD Sender: No OFD packet to send [17:54:59]OFD Sender: No OFD packet to send [17:55:04]OFD Sender: No OFD packet to send [17:55:09]OFD Sender: No OFD packet to send [17:55:14]OFD Sender: No OFD packet to send [17:55:19]OFD Sender: No OFD packet to send [17:55:24]OFD Sender: No OFD packet to send [17:55:29]OFD Sender: No OFD packet to send [17:55:34]OFD Sender: No OFD packet to send [17:55:39]OFD Sender: No OFD packet to send [17:55:44]OFD Sender: No OFD packet to send [17:55: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: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]OFD Sender: No OFD packet to send [17:57:49]OFD Sender: No OFD packet to send [17:57:54]OFD Sender: No OFD packet to send [17:57:59]OFD Sender: No OFD packet to send [17:58:04]OFD Sender: No OFD packet to send [17:58:09]OFD Sender: No OFD packet to send [17:58:14]OFD Sender: No OFD packet to send [17:58:19]OFD Sender: No OFD packet to send [17:58:24]OFD Sender: No OFD packet to send [17:58:29]OFD Sender: No OFD packet to send [17:58:34]OFD Sender: No OFD packet to send [17:58:39]OFD Sender: No OFD packet to send [17:58:44]OFD Sender: No OFD packet to send [17:58:49]OFD Sender: No OFD packet to send [17:58:54]OFD Sender: No OFD packet to send [17:58:59]OFD Sender: No OFD packet to send [17:59:04]OFD Sender: No OFD packet to send [17:59:09]OFD Sender: No OFD packet to send [17:59:14]OFD Sender: No OFD packet to send [17:59:19]OFD Sender: No OFD packet to send [17:59:24]OFD Sender: No OFD packet to send [17:59:29]OFD Sender: No OFD packet to send [17:59:34]OFD Sender: No OFD packet to send [17:59:39]OFD Sender: No OFD packet to send [17:59:44]OFD Sender: No OFD packet to send [17:59:49]OFD Sender: No OFD packet to send [17:59:54]OFD Sender: No OFD packet to send [17:59:59]OFD Sender: No OFD packet to send [18:00:04]OFD Sender: No OFD packet to send [18:00:09]OFD Sender: No OFD packet to send [18:00:14]OFD Sender: No OFD packet to send [18:00:19]OFD Sender: No OFD packet to send [18:00:24]OFD Sender: No OFD packet to send [18:00:29]OFD Sender: No OFD packet to send [18:00:34]OFD Sender: No OFD packet to send [18:00:39]OFD Sender: No OFD packet to send [18:00:44]OFD Sender: No OFD packet to send [18:00:49]OFD Sender: No OFD packet to send [18:00:54]OFD Sender: No OFD packet to send [18:00:59]OFD Sender: No OFD packet to send [18:01:04]OFD Sender: No OFD packet to send [18:01:09]OFD Sender: No OFD packet to send [18:01:14]OFD Sender: No OFD packet to send [18:01:19]OFD Sender: No OFD packet to send [18:01:24]OFD Sender: No OFD packet to send [18:01:29]OFD Sender: No OFD packet to send [18:01:34]OFD Sender: No OFD packet to send [18:01:39]OFD Sender: No OFD packet to send [18:01:44]OFD Sender: No OFD packet to send [18:01:49]OFD Sender: No OFD packet to send [18:01:54]OFD Sender: No OFD packet to send [18:01:59]OFD Sender: No OFD packet to send [18:02:04]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:42]accept exits with 7 [18:04:42]New connection [18:04:42]New thread 3066707300 created [18:04:42]Thread 3066850660 joined [18:04:42]Waiting for new connection... [18:04:42] Sock 7.Parse request [18:04:42]Sock 7.Check first char [18:04:42]Sock 7.First char is OK [18:04:42]request: POST /json_proto HTTP/1.0 [18:04:42]Method: POST [18:04:42]URL: /json_proto [18:04:42]Method is POST - this is cgi request [18:04:42]url: /json_proto [18:04:42]query_string will be loaded in cgi processing [18:04:42]execute_cgi json_proto POST (null) [18:04:42]execute_cgi path=json_proto method=POST [18:04:42]POST find Content-Length [18:04:42]Host: 172.17.52.132:8080 [18:04:42]Content-Length: 654 [18:04:42]Content-Type: application/json [18:04:42] [18:04:42]POST finish read [18:04:42]Found Content-Length = 654 [18:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99888", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:42]execute_script... [18:04: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)99888", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:42]POST & json_proto [18:04:42]process_json_proto [18:04:42]json parsed OK: [18:04:42]protocol is kg_v1.0 [18:04:42]action value=close_receipt [18:04:42]process_action close_receipt [18:04:42]cmd_close_receipt [18:04:42]MH_GetDate [18:04:42]Write to MH i2c: F0 00 00 78 31 98 [18:04:42]Write i2c OK [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: F0 [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: F0 09 00 [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: F0 09 00 78 31 00 40 A3 12 67 5A BE F6 66 71 [18:04:42]GetLastDocTimeStamp 1729273676 [18:04:42]current date 1729274688 [18:04:42]FM_GetShiftState [18:04:42]SAM_PROTO_GetShiftState [18:04:42]wFMCommunicate request_size=4 [18:04:42]MH_SAM_APDU [18:04:42]CAPDU: 80 13 01 00 [18:04:42]Write to MH i2c: E2 08 00 79 31 80 13 01 00 00 00 00 00 27 [18:04:42]Write i2c OK [18:04:42]MH_I2C_Read... [18:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:42]Read from MH i2c: E2 [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: E2 0E 00 [18:04:42]MH_I2C_Read... [18:04:42]Read from MH i2c: E2 0E 00 79 31 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C5 [18:04:42]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:04:42]wFMCommunicate OK [18:04:42]SAM_PROTO_GetShiftState done [18:04:42]FM_GetShiftState done [18:04:42]opened in 1729209717 [18:04:42]opened+sec_in_day 1729296117 [18:04:42]quantity*price = 6900 [18:04:42]sum+1 = 6901 [18:04:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 ÐСП 1% : 0.61 ÐДС 12% : 7.33 Ðаличными: 69.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 122 18.10.2024 18:04 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2497 ФПД: 276049236080395 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T180448&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2497&fm=276049236080395&tin=02508201610067®Number=0000000000207295&sum=6900 0 [18:04:44]StoreToDocumentArchive [18:04:44]shift 22 fd 2497 [18:04:44]save to /storage/0022/doc_00002497 [18:04:44]save last doc name /storage/0022/doc_00002497 to /storage/kkm_last_doc_name [18:04:44]save OK [18:04:44]Clear old archive folders... [18:04:44]Remove dir /storage/0010 [18:04:44]opendir ok [18:04:44]file . [18:04:44]file .. [18:04:44]file doc_1729273684 [18:04:44]remove file /storage/0010/doc_1729273684 [18:04:44]remove dir /storage/0010 [18:04:44]ProcessDocumentItem done err = 0, tmpTLVsize=294 [18:04:44]tlvbuf is 013A6D40 [18:04:44]SAM_PROTO_ClearQueue [18:04:44]wFMCommunicate request_size=4 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 09 00 00 [18:04:44]Write to MH i2c: E2 08 00 86 31 80 09 00 00 00 00 00 00 29 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 86 31 00 90 00 2B [18:04:44]RAPDU: 90 00 [18:04:44]wFMCommunicate OK [18:04:44]SAM_PROTO_ClearQueue done [18:04:44]KKMCreateOFDPacket [18:04:44]OFDProtocolAddRootSTLVToBuf [18:04:44]FM_MakeSignedData [18:04:44]FM_MakeSignedData [18:04:44]SAM_PROTO_SignData [18:04:44]wFMCommunicate request_size=4 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 0D 01 02 [18:04:44]Write to MH i2c: E2 08 00 87 31 80 0D 01 02 00 00 00 00 31 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 87 31 00 90 00 2C [18:04:44]RAPDU: 90 00 [18:04:44]wFMCommunicate OK [18:04:44]wFMCommunicate request_size=255 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 40 A3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [18:04:44]Write to MH i2c: E2 02 01 88 31 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 40 A3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 2C [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 88 31 00 90 00 2D [18:04:44]RAPDU: 90 00 [18:04:44]wFMCommunicate OK [18:04:44]wFMCommunicate request_size=53 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 0D 02 02 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C1 09 00 00 35 04 06 00 FB 10 B8 A8 37 0B [18:04:44]Write to MH i2c: E2 38 00 89 31 80 0D 02 02 30 00 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C1 09 00 00 35 04 06 00 FB 10 B8 A8 37 0B 00 00 95 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 03 00 89 31 00 90 00 2E [18:04:44]RAPDU: 90 00 [18:04:44]wFMCommunicate OK [18:04:44]wFMCommunicate request_size=4 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 0D 03 02 [18:04:44]Write to MH i2c: E2 08 00 8A 31 80 0D 03 02 00 00 00 00 36 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 0B 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 0B 00 8A 31 00 C3 EA 3A 38 16 0C CF EF 90 00 36 [18:04:44]RAPDU: C3 EA 3A 38 16 0C CF EF 90 00 [18:04:44]wFMCommunicate OK [18:04:44]SAM_PROTO_SignData done [18:04:44]FM_MakeSignedData done [18:04:44]CreateOFDProtocolMessage [18:04:44]wFMCommunicate request_size=4 [18:04:44]MH_SAM_APDU [18:04:44]CAPDU: 80 11 00 00 [18:04:44]Write to MH i2c: E2 08 00 8B 31 80 11 00 00 00 00 00 00 36 [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:44]Read from MH i2c: E2 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 17 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: E2 17 00 8B 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 7E [18:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:04:44]wFMCommunicate OK [18:04:44]CreateOFDProtocolMessage done [18:04:44]OFDSenderStorePacket 2497 [18:04:44]StoreOFDPacket docnum=2497 [18:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3A 01 00 00 B8 80 32 01 76 03 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 40 A3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C1 09 00 00 35 04 06 00 FB 10 B8 A8 37 0B C3 EA 3A 38 16 0C CF EF [18:04:44]CheckFolder [18:04:44]dirname=/storage/ofd_packets [18:04:44]CheckFolder done [18:04:44]ProducePacketName [18:04:44]name=ofd_packets/00002497 [18:04:44]NVStorageSaveData ofd_packets/00002497 [18:04:44]File name is /storage/ofd_packets/00002497 [18:04:44]Write 344 bytes [18:04:44]NVStorageSaveData done [18:04:44]OFDSenderStorePacket done [18:04:44]KKMCreateOFDPacket done [18:04:44]NVStorageSaveData kkm_last_timestamp [18:04:44]File name is /storage/kkm_last_timestamp [18:04:44]Write 4 bytes [18:04:44]NVStorageSaveData done [18:04:44]ExternCall_PrintAddStr [18:04:44]wPrintStart [18:04:44]Write to MH i2c: 01 00 00 8C 31 BD [18:04:44]Write i2c OK [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 07 00 [18:04:44]MH_I2C_Read... [18:04:44]Read from MH i2c: 01 07 00 8C 31 00 00 00 00 00 FF 0F D2 [18:04:44]RasterBufferAndPrint [18:04:44]line Счет N : (3)99888 [18:04:44]line ИÐÐ: 02508201610067 [18:04:44]line Контрольно-КаÑÑовый Чек [18:04:44]line ПРОДÐЖР[18:04:44]line Товар: 4600682557456 [18:04:44]line Ðапиток FLash up energy Ñн ж/б 0,5/0,45л [18:04:44]line 1.000 * 69.00 [18:04:44]line = 69.00 [18:04:44]line ÐДС 12% ÐСП 1% [18:04:44]line > о реализуемом товаре [18:04:44]line ИТОГО: 69.00 [18:04:44]line ÐСП 1% : 0.61 [18:04:44]line ÐДС 12% : 7.33 [18:04:44]line Ðаличными: 69.00 [18:04:44]line Безнал.: 0.00 [18:04:44]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [18:04:44]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [18:04:44]line СÐО: Общий режим [18:04:44]line Чек 122 18.10.2024 18:04 [18:04:44]line Смена: 22 ФФД: 1.0 [18:04:44]line ЗÐМ: 0300000191 [18:04:44]line РÐМ: 0000000000207295 [18:04:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [18:04:44]line ФМ: 0000000002342820 [18:04:44]line ФД: 2497 [18:04:44]line ФПД: 276049236080395 [18:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T180448&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2497&fm=276049236080395&tin=02508201610067®Number=0000000000207295&sum=6900 [18:04:44]line 0 [18:04:44]OFD Sender: Processing packet 2497 [packets to send 1, broken 0] [18:04:44]ProducePacketName [18:04:44]name=ofd_packets/00002497 [18:04:44]OFD Sender: To server: ‡•öpG, [18:04:44]CommunicateWithHost lk.salyk.kg:30040 [18:04:44]ConnectInit lk.salyk.kg [18:04:44]written 0, free lines is 4095 [18:04:45]Connected sock=10 [18:04:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3A 01 00 00 B8 80 32 01 76 03 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 40 A3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C1 09 00 00 35 04 06 00 FB 10 B8 A8 37 0B C3 EA 3A 38 16 0C CF EF [18:04:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 95 37 47 00 B3 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 32 33 34 32 38 32 30 10 04 04 00 C1 09 00 00 F4 03 04 00 A3 4E 12 67 B6 04 01 00 00 D3 DB 63 71 4D 71 FD 9B [18:04:45]CommunicateWithHost err = 0 [18:04:45]CheckOFDResponse [18:04:45]1017 (14) - 77093643461234 [18:04:45]1041 (16) - 0000000002342820 [18:04:45]1040 (4) - 2497 [18:04:45]1012 (4) - 18.10.2024 12:03 [18:04:45]1206 (1) - 0 [18:04:45]OFD Sender: Remove packet 2497 [18:04:45]ProducePacketName [18:04:45]name=ofd_packets/00002497 [18:04:45]NVStorageDeleteData [18:04:45]Write to MH i2c: 01 00 00 B5 31 E6 [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 07 00 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: 01 07 00 B5 31 00 00 00 00 00 B9 0C B2 [18:04:45]RasterBufferAndPrint [18:04:45]line [18:04:45]line [18:04:45]line [18:04:45]line [18:04:45]line [18:04:45]written 0, free lines is 3262 [18:04:45]MH_Cut [18:04:45]Write to MH i2c: D1 01 00 BC 31 01 BF [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: D1 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: D1 01 00 [18:04:45]MH_I2C_Read... [18:04:45]Read from MH i2c: D1 01 00 BC 31 00 BE [18:04:45]Write to MH i2c: 01 00 00 BD 31 EE [18:04:45]Write i2c OK [18:04:45]MH_I2C_Read... [18:04:45]OFD Sender: No OFD packet to send [18:04:46]*** Cut start [18:04:46]*** Partial cut [18:04:46]*** CUTSNS_PIN = 1 [18:04:46]*** CUTSNS_PIN = 0 [18:04:46]*** Brake cut motor [18:04:46]Read from MH i2c: 01 [18:04:46]MH_I2C_Read... [18:04:46]*** Stop cut motor [18:04:46]*** Cut end [18:04:46]Read from MH i2c: 01 07 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: 01 07 00 BD 31 00 00 00 00 00 FF 0F 03 [18:04:46]process_action close_receipt done [18:04:46]requested_data is exist [18:04:46]produce_requested_data [18:04:46]requested_item fm.sn is exist - process it [18:04:46]wFMCommunicate request_size=4 [18:04:46]MH_SAM_APDU [18:04:46]CAPDU: 80 11 00 00 [18:04:46]Write to MH i2c: E2 08 00 BE 31 80 11 00 00 00 00 00 00 69 [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 [18:04:46]MH_I2C_Read... [18:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:46]Read from MH i2c: E2 17 00 [18:04:46]MH_I2C_Read... [18:04:46]Read from MH i2c: E2 17 00 BE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B1 [18:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:04:46]wFMCommunicate OK [18:04:46]requested_item fd.num is exist - process it [18:04:46]SAM_PROTO_GetFieldsCounters [18:04:46]wFMCommunicate request_size=4 [18:04:46]MH_SAM_APDU [18:04:46]CAPDU: 80 13 00 00 [18:04:46]Write to MH i2c: E2 08 00 BF 31 80 13 00 00 00 00 00 00 6C [18:04:46]Write i2c OK [18:04:46]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:47]Read from MH i2c: E2 62 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 62 00 BF 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C1 09 00 00 0E 04 04 00 16 00 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 D0 [18:04:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C1 09 00 00 0E 04 04 00 16 00 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 [18:04:47]wFMCommunicate OK [18:04:47]SAM_PROTO_GetFieldsCounters done [18:04:47]requested_item shift.num is exist - process it [18:04:47]requested_item shift.opened is exist - process it [18:04:47]req_shift_opened [18:04:47]FM_GetShiftState [18:04:47]SAM_PROTO_GetShiftState [18:04:47]wFMCommunicate request_size=4 [18:04:47]MH_SAM_APDU [18:04:47]CAPDU: 80 13 01 00 [18:04:47]Write to MH i2c: E2 08 00 C0 31 80 13 01 00 00 00 00 00 6E [18:04:47]Write i2c OK [18:04:47]MH_I2C_Read... [18:04:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:47]Read from MH i2c: E2 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 0E 00 [18:04:47]MH_I2C_Read... [18:04:47]Read from MH i2c: E2 0E 00 C0 31 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 0C [18:04:47]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:04:47]wFMCommunicate OK [18:04:47]SAM_PROTO_GetShiftState done [18:04:47]FM_GetShiftState done [18:04:47]req_shift_opened done [18:04:47]requested_item shift.open_date is exist - process it [18:04:47]req_shift_open_date [18:04:47]req_shift_open_date done [18:04:47]produce_requested_data done [18:04:47]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2497,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [18:04:47]process_action_free close_receipt [18:04:47]json_value_free [18:04:47]json_value_free done [18:04:47]process_json_proto returns [18:04:47]Send response to host [18:04:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2497,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [18:04:47]free response buf [18:04:47]execute_script done [18:04:47]execute_script returns [18:04:47]free content buf [18:04:47]Sock 7.Close socket [18:04:47]Sock 7.Thread stoped [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:05:57]accept exits with 9 [18:05:57]New connection [18:05:57]New thread 3066850660 created [18:05:57]Thread 3066707300 joined [18:05:57]Waiting for new connection... [18:05:57] Sock 9.Parse request [18:05:57]Sock 9.Check first char [18:05:57]Sock 9.First char is OK [18:05:57]request: POST /json_proto HTTP/1.0 [18:05:57]Method: POST [18:05:57]URL: /json_proto [18:05:57]Method is POST - this is cgi request [18:05:57]url: /json_proto [18:05:57]query_string will be loaded in cgi processing [18:05:57]execute_cgi json_proto POST (null) [18:05:57]execute_cgi path=json_proto method=POST [18:05:57]POST find Content-Length [18:05:57]Host: 172.17.52.132:8080 [18:05:57]Content-Length: 1471 [18:05:57]Content-Type: application/json [18:05:57] [18:05:57]POST finish read [18:05:57]Found Content-Length = 1471 [18:05:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99889", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 3.000, "sum" : 132.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 402.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:57]execute_script... [18:05: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 : (3)99889", "tax_sys" : 0, "items" : [ { "code": "4870001154035", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u043F\u0435\u0440\u0441", "price" : 61.00, "quantity" : 1.000, "sum" : 61.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 3.000, "sum" : 132.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 402.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:05:57]POST & json_proto [18:05:57]process_json_proto [18:05:57]json parsed OK: [18:05:57]protocol is kg_v1.0 [18:05:57]action value=close_receipt [18:05:57]process_action close_receipt [18:05:57]cmd_close_receipt [18:05:57]MH_GetDate [18:05:57]Write to MH i2c: F0 00 00 C1 31 E1 [18:05:57]Write i2c OK [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: F0 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: F0 09 00 [18:05:57]MH_I2C_Read... [18:05:57]Read from MH i2c: F0 09 00 C1 31 00 8B A3 12 67 5A BE F6 66 05 [18:05:57]GetLastDocTimeStamp 1729274688 [18:05:57]current date 1729274763 [18:05:57]FM_GetShiftState [18:05:58]SAM_PROTO_GetShiftState [18:05:58]wFMCommunicate request_size=4 [18:05:58]MH_SAM_APDU [18:05:58]CAPDU: 80 13 01 00 [18:05:58]Write to MH i2c: E2 08 00 C2 31 80 13 01 00 00 00 00 00 70 [18:05:58]Write i2c OK [18:05:58]MH_I2C_Read... [18:05:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:05:58]Read from MH i2c: E2 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 0E 00 [18:05:58]MH_I2C_Read... [18:05:58]Read from MH i2c: E2 0E 00 C2 31 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 0E [18:05:58]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:05:58]wFMCommunicate OK [18:05:58]SAM_PROTO_GetShiftState done [18:05:58]FM_GetShiftState done [18:05:58]opened in 1729209717 [18:05:58]opened+sec_in_day 1729296117 [18:05:58]quantity*price = 6100 [18:05:58]sum+1 = 6101 [18:05:58]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 3.000 * 44.00 = 132.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 5000159381178 Шок Батончик Баунти Трио 82,5г 1.000 * 89.00 = 89.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 5449000189332 Холодный чай Fuse перÑик 1л 1.000 * 120.00 = 120.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 402.00 ÐСП 1% : 3.56 ÐДС 12% : 42.69 Ðаличными: 402.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 123 18.10.2024 18:06 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2498 ФПД: 42058980804241 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T180603&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2498&fm=42058980804241&tin=02508201610067®Number=0000000000207295&sum=40200 0 [18:05:59]StoreToDocumentArchive [18:05:59]shift 22 fd 2498 [18:05:59]save to /storage/0022/doc_00002498 [18:05:59]save last doc name /storage/0022/doc_00002498 to /storage/kkm_last_doc_name [18:05:59]save OK [18:05:59]Clear old archive folders... [18:05:59]ProcessDocumentItem done err = 0, tmpTLVsize=631 [18:05:59]tlvbuf is 01382650 [18:05:59]SAM_PROTO_ClearQueue [18:05:59]wFMCommunicate request_size=4 [18:05:59]MH_SAM_APDU [18:05:59]CAPDU: 80 09 00 00 [18:05:59]Write to MH i2c: E2 08 00 CF 31 80 09 00 00 00 00 00 00 72 [18:05:59]Write i2c OK [18:05:59]MH_I2C_Read... [18:05:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:05:59]Read from MH i2c: E2 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 03 00 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 03 00 CF 31 00 90 00 74 [18:05:59]RAPDU: 90 00 [18:05:59]wFMCommunicate OK [18:05:59]SAM_PROTO_ClearQueue done [18:05:59]KKMCreateOFDPacket [18:05:59]OFDProtocolAddRootSTLVToBuf [18:05:59]FM_MakeSignedData [18:05:59]FM_MakeSignedData [18:05:59]SAM_PROTO_SignData [18:05:59]wFMCommunicate request_size=4 [18:05:59]MH_SAM_APDU [18:05:59]CAPDU: 80 0D 01 02 [18:05:59]Write to MH i2c: E2 08 00 D0 31 80 0D 01 02 00 00 00 00 7A [18:05:59]Write i2c OK [18:05:59]MH_I2C_Read... [18:05:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:05:59]Read from MH i2c: E2 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 03 00 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 03 00 D0 31 00 90 00 75 [18:05:59]RAPDU: 90 00 [18:05:59]wFMCommunicate OK [18:05:59]wFMCommunicate request_size=255 [18:05:59]MH_SAM_APDU [18:05:59]CAPDU: 80 0D 02 02 FA 03 00 77 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 90 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 [18:05:59]Write to MH i2c: E2 02 01 D1 31 80 0D 02 02 FA 00 03 00 77 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 90 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 00 00 B4 [18:05:59]Write i2c OK [18:05:59]MH_I2C_Read... [18:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:59]Read from MH i2c: E2 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 03 00 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 03 00 D1 31 00 90 00 76 [18:05:59]RAPDU: 90 00 [18:05:59]wFMCommunicate OK [18:05:59]wFMCommunicate request_size=255 [18:05:59]MH_SAM_APDU [18:05:59]CAPDU: 80 0D 02 02 FA 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 01 00 [18:05:59]Write to MH i2c: E2 02 01 D2 31 80 0D 02 02 FA 00 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 01 00 00 00 6D [18:05:59]Write i2c OK [18:05:59]MH_I2C_Read... [18:05:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:05:59]Read from MH i2c: E2 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 03 00 [18:05:59]MH_I2C_Read... [18:05:59]Read from MH i2c: E2 03 00 D2 31 00 90 00 77 [18:05:59]RAPDU: 90 00 [18:05:59]wFMCommunicate OK [18:05:59]wFMCommunicate request_size=140 [18:05:59]MH_SAM_APDU [18:05:59]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 10 00 00 00 00 07 04 06 00 08 9D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8B A3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C2 09 00 00 35 04 06 00 26 40 9E 9C 46 91 [18:05:59]Write to MH i2c: E2 8F 00 D3 31 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 10 00 00 00 00 07 04 06 00 08 9D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8B A3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C2 09 00 00 35 04 06 00 26 40 9E 9C 46 91 00 00 8A [18:05:59]Write i2c OK [18:05:59]MH_I2C_Read... [18:06:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:06:00]Read from MH i2c: E2 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: E2 03 00 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: E2 03 00 D3 31 00 90 00 78 [18:06:00]RAPDU: 90 00 [18:06:00]wFMCommunicate OK [18:06:00]wFMCommunicate request_size=4 [18:06:00]MH_SAM_APDU [18:06:00]CAPDU: 80 0D 03 02 [18:06:00]Write to MH i2c: E2 08 00 D4 31 80 0D 03 02 00 00 00 00 80 [18:06:00]Write i2c OK [18:06:00]MH_I2C_Read... [18:06:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:06:00]Read from MH i2c: E2 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: E2 0B 00 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: E2 0B 00 D4 31 00 E2 2F 93 89 2F 85 AD 82 90 00 91 [18:06:00]RAPDU: E2 2F 93 89 2F 85 AD 82 90 00 [18:06:00]wFMCommunicate OK [18:06:00]SAM_PROTO_SignData done [18:06:00]FM_MakeSignedData done [18:06:00]CreateOFDProtocolMessage [18:06:00]wFMCommunicate request_size=4 [18:06:00]MH_SAM_APDU [18:06:00]CAPDU: 80 11 00 00 [18:06:00]Write to MH i2c: E2 08 00 D5 31 80 11 00 00 00 00 00 00 80 [18:06:00]Write i2c OK [18:06:00]MH_I2C_Read... [18:06:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:00]Read from MH i2c: E2 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: E2 17 00 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: E2 17 00 D5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C8 [18:06:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:06:00]wFMCommunicate OK [18:06:00]CreateOFDProtocolMessage done [18:06:00]OFDSenderStorePacket 2498 [18:06:00]StoreOFDPacket docnum=2498 [18:06:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 8B 02 00 00 07 C6 83 02 6F F6 5A 03 01 00 03 00 77 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 90 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 10 00 00 00 00 07 04 06 00 08 9D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8B A3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C2 09 00 00 35 04 06 00 26 40 9E 9C 46 91 E2 2F 93 89 2F 85 AD 82 [18:06:00]CheckFolder [18:06:00]dirname=/storage/ofd_packets [18:06:00]CheckFolder done [18:06:00]ProducePacketName [18:06:00]name=ofd_packets/00002498 [18:06:00]NVStorageSaveData ofd_packets/00002498 [18:06:00]File name is /storage/ofd_packets/00002498 [18:06:00]Write 681 bytes [18:06:00]NVStorageSaveData done [18:06:00]OFDSenderStorePacket done [18:06:00]KKMCreateOFDPacket done [18:06:00]NVStorageSaveData kkm_last_timestamp [18:06:00]File name is /storage/kkm_last_timestamp [18:06:00]Write 4 bytes [18:06:00]NVStorageSaveData done [18:06:00]ExternCall_PrintAddStr [18:06:00]wPrintStart [18:06:00]Write to MH i2c: 01 00 00 D6 31 07 [18:06:00]Write i2c OK [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: 01 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: 01 07 00 [18:06:00]MH_I2C_Read... [18:06:00]Read from MH i2c: 01 07 00 D6 31 00 00 00 00 00 FF 0F 1C [18:06:00]RasterBufferAndPrint [18:06:00]line Счет N : (3)99889 [18:06:00]line ИÐÐ: 02508201610067 [18:06:00]line Контрольно-КаÑÑовый Чек [18:06:00]line ПРОДÐЖР[18:06:00]line Товар: 4870001154035 [18:06:00]line Ðапиток Lipton IceTea 0,5л Ð¿ÐµÑ€Ñ [18:06:00]line 1.000 * 61.00 [18:06:00]line = 61.00 [18:06:00]line ÐДС 12% ÐСП 1% [18:06:00]line > о реализуемом товаре [18:06:00]line Товар: 4870112003925 [18:06:00]line Конд ULKER-Albeni 40gr (6*24) [18:06:00]line 3.000 * 44.00 [18:06:00]line = 132.00 [18:06:00]line ÐДС 12% ÐСП 1% [18:06:00]line > о реализуемом товаре [18:06:00]line Товар: 5000159381178 [18:06:00]line Шок Батончик Баунти Трио 82,5г [18:06:00]line 1.000 * 89.00 [18:06:00]line = 89.00 [18:06:00]line ÐДС 12% ÐСП 1% [18:06:00]line > о реализуемом товаре [18:06:00]line Товар: 5449000189332 [18:06:00]line Холодный чай Fuse перÑик 1л [18:06:00]line 1.000 * 120.00 [18:06:00]line = 120.00 [18:06:00]line ÐДС 12% ÐСП 1% [18:06:00]line > о реализуемом товаре [18:06:00]line ИТОГО: 402.00 [18:06:00]line ÐСП 1% : 3.56 [18:06:00]line ÐДС 12% : 42.69 [18:06:00]line Ðаличными: 402.00 [18:06:00]line Безнал.: 0.00 [18:06:00]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [18:06:00]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [18:06:00]line СÐО: Общий режим [18:06:00]line Чек 123 18.10.2024 18:06 [18:06:00]line Смена: 22 ФФД: 1.0 [18:06:00]line ЗÐМ: 0300000191 [18:06:00]line РÐМ: 0000000000207295 [18:06:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [18:06:00]line ФМ: 0000000002342820 [18:06:00]line ФД: 2498 [18:06:00]line ФПД: 42058980804241 [18:06:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T180603&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2498&fm=42058980804241&tin=02508201610067®Number=0000000000207295&sum=40200 [18:06:00]OFD Sender: Processing packet 2498 [packets to send 1, broken 0] [18:06:00]ProducePacketName [18:06:00]name=ofd_packets/00002498 [18:06:00]OFD Sender: To server: ‡•öpG, [18:06:00]CommunicateWithHost lk.salyk.kg:30040 [18:06:00]ConnectInit lk.salyk.kg [18:06:00]line 0 [18:06:00]written 0, free lines is 4095 [18:06:00]Connected sock=10 [18:06:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 8B 02 00 00 07 C6 83 02 6F F6 5A 03 01 00 03 00 77 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 33 35 06 04 2B 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 17 00 00 00 00 13 04 06 00 D4 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 90 33 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 9D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 64 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 10 00 00 00 00 07 04 06 00 08 9D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 00 00 00 F4 03 04 00 8B A3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C2 09 00 00 35 04 06 00 26 40 9E 9C 46 91 E2 2F 93 89 2F 85 AD 82 [18:06:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 99 D3 47 00 95 E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C2 09 00 00 F4 03 04 00 EF 4E 12 67 B6 04 01 00 00 4A 87 C0 99 04 BE 3F 42 [18:06:00]CommunicateWithHost err = 0 [18:06:00]CheckOFDResponse [18:06:00]1017 (14) - 77093643461234 [18:06:00]1041 (16) - 0000000002342820 [18:06:00]1040 (4) - 2498 [18:06:00]1012 (4) - 18.10.2024 12:05 [18:06:00]1206 (1) - 0 [18:06:00]OFD Sender: Remove packet 2498 [18:06:00]ProducePacketName [18:06:00]name=ofd_packets/00002498 [18:06:00]NVStorageDeleteData [18:06:01]Write to MH i2c: 01 00 00 12 32 44 [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: 01 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: 01 07 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: 01 07 00 12 32 00 00 00 00 00 8D 0B E3 [18:06:01]RasterBufferAndPrint [18:06:01]line [18:06:01]line [18:06:01]line [18:06:01]line [18:06:01]line [18:06:01]written 0, free lines is 2967 [18:06:01]MH_Cut [18:06:01]Write to MH i2c: D1 01 00 19 32 01 1D [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: D1 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: D1 01 00 [18:06:01]MH_I2C_Read... [18:06:01]Read from MH i2c: D1 01 00 19 32 00 1C [18:06:01]Write to MH i2c: 01 00 00 1A 32 4C [18:06:01]Write i2c OK [18:06:01]MH_I2C_Read... [18:06:01]OFD Sender: No OFD packet to send [18:06:02]*** Cut start [18:06:02]*** Partial cut [18:06:02]*** CUTSNS_PIN = 1 [18:06:02]*** CUTSNS_PIN = 0 [18:06:02]*** Brake cut motor [18:06:02]Read from MH i2c: 01 [18:06:02]MH_I2C_Read... [18:06:02]*** Stop cut motor [18:06:02]*** Cut end [18:06:02]Read from MH i2c: 01 07 00 [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: 01 07 00 1A 32 00 00 00 00 00 FF 0F 61 [18:06:02]process_action close_receipt done [18:06:02]requested_data is exist [18:06:02]produce_requested_data [18:06:02]requested_item fm.sn is exist - process it [18:06:02]wFMCommunicate request_size=4 [18:06:02]MH_SAM_APDU [18:06:02]CAPDU: 80 11 00 00 [18:06:02]Write to MH i2c: E2 08 00 1B 32 80 11 00 00 00 00 00 00 C7 [18:06:02]Write i2c OK [18:06:02]MH_I2C_Read... [18:06:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:06:02]Read from MH i2c: E2 [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: E2 17 00 [18:06:02]MH_I2C_Read... [18:06:02]Read from MH i2c: E2 17 00 1B 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 0F [18:06:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:06:02]wFMCommunicate OK [18:06:02]requested_item fd.num is exist - process it [18:06:02]SAM_PROTO_GetFieldsCounters [18:06:02]wFMCommunicate request_size=4 [18:06:02]MH_SAM_APDU [18:06:02]CAPDU: 80 13 00 00 [18:06:02]Write to MH i2c: E2 08 00 1C 32 80 13 00 00 00 00 00 00 CA [18:06:02]Write i2c OK [18:06:02]MH_I2C_Read... [18:06:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:06:03]Read from MH i2c: E2 [18:06:03]MH_I2C_Read... [18:06:03]Read from MH i2c: E2 62 00 [18:06:03]MH_I2C_Read... [18:06:03]Read from MH i2c: E2 62 00 1C 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C2 09 00 00 0E 04 04 00 16 00 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 32 [18:06:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C2 09 00 00 0E 04 04 00 16 00 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 [18:06:03]wFMCommunicate OK [18:06:03]SAM_PROTO_GetFieldsCounters done [18:06:03]requested_item shift.num is exist - process it [18:06:03]requested_item shift.opened is exist - process it [18:06:03]req_shift_opened [18:06:03]FM_GetShiftState [18:06:03]SAM_PROTO_GetShiftState [18:06:03]wFMCommunicate request_size=4 [18:06:03]MH_SAM_APDU [18:06:03]CAPDU: 80 13 01 00 [18:06:03]Write to MH i2c: E2 08 00 1D 32 80 13 01 00 00 00 00 00 CC [18:06:03]Write i2c OK [18:06:03]MH_I2C_Read... [18:06:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:06:03]Read from MH i2c: E2 [18:06:03]MH_I2C_Read... [18:06:03]Read from MH i2c: E2 0E 00 [18:06:03]MH_I2C_Read... [18:06:03]Read from MH i2c: E2 0E 00 1D 32 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 6A [18:06:03]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:06:03]wFMCommunicate OK [18:06:03]SAM_PROTO_GetShiftState done [18:06:03]FM_GetShiftState done [18:06:03]req_shift_opened done [18:06:03]requested_item shift.open_date is exist - process it [18:06:03]req_shift_open_date [18:06:03]req_shift_open_date done [18:06:03]produce_requested_data done [18:06:03]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2498,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [18:06:03]process_action_free close_receipt [18:06:03]json_value_free [18:06:03]json_value_free done [18:06:03]process_json_proto returns [18:06:03]Send response to host [18:06:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2498,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [18:06:03]free response buf [18:06:03]execute_script done [18:06:03]execute_script returns [18:06:03]free content buf [18:06:03]Sock 9.Close socket [18:06:03]Sock 9.Thread stoped [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:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]OFD Sender: No OFD packet to send [18:12:31]OFD Sender: No OFD packet to send [18:12:36]OFD Sender: No OFD packet to send [18:12:41]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:04]accept exits with 7 [18:15:04]New connection [18:15:04]New thread 3066707300 created [18:15:04]Thread 3066850660 joined [18:15:04]Waiting for new connection... [18:15:04] Sock 7.Parse request [18:15:04]Sock 7.Check first char [18:15:04]Sock 7.First char is OK [18:15:04]request: POST /json_proto HTTP/1.0 [18:15:04]Method: POST [18:15:04]URL: /json_proto [18:15:04]Method is POST - this is cgi request [18:15:04]url: /json_proto [18:15:04]query_string will be loaded in cgi processing [18:15:04]execute_cgi json_proto POST (null) [18:15:04]execute_cgi path=json_proto method=POST [18:15:04]POST find Content-Length [18:15:04]Host: 172.17.52.132:8080 [18:15:04]Content-Length: 696 [18:15:04]Content-Type: application/json [18:15:04] [18:15:04]POST finish read [18:15:04]Found Content-Length = 696 [18:15:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99890", "tax_sys" : 0, "items" : [ { "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 7.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:04]execute_script... [18:15: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)99890", "tax_sys" : 0, "items" : [ { "code": "4700000160099", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 7.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:15:04]POST & json_proto [18:15:04]process_json_proto [18:15:04]json parsed OK: [18:15:04]protocol is kg_v1.0 [18:15:04]action value=close_receipt [18:15:04]process_action close_receipt [18:15:04]cmd_close_receipt [18:15:04]MH_GetDate [18:15:04]Write to MH i2c: F0 00 00 1E 32 3F [18:15:04]Write i2c OK [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: F0 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: F0 09 00 [18:15:04]MH_I2C_Read... [18:15:04]Read from MH i2c: F0 09 00 1E 32 00 AE A5 12 67 5A BE F6 66 88 [18:15:04]GetLastDocTimeStamp 1729274763 [18:15:04]current date 1729275310 [18:15:04]FM_GetShiftState [18:15:04]SAM_PROTO_GetShiftState [18:15:04]wFMCommunicate request_size=4 [18:15:04]MH_SAM_APDU [18:15:04]CAPDU: 80 13 01 00 [18:15:04]Write to MH i2c: E2 08 00 1F 32 80 13 01 00 00 00 00 00 CE [18:15:04]Write i2c OK [18:15:04]MH_I2C_Read... [18:15:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:05]Read from MH i2c: E2 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 0E 00 [18:15:05]MH_I2C_Read... [18:15:05]Read from MH i2c: E2 0E 00 1F 32 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 6C [18:15:05]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:15:05]wFMCommunicate OK [18:15:05]SAM_PROTO_GetShiftState done [18:15:05]FM_GetShiftState done [18:15:05]opened in 1729209717 [18:15:05]opened+sec_in_day 1729296117 [18:15:05]quantity*price = 10500 [18:15:05]sum+1 = 10501 [18:15:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 ÐСП 1% : 0.93 ÐДС 12% : 11.15 Ðаличными: 105.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 124 18.10.2024 18:15 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2499 ФПД: 30496388746987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T181510&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2499&fm=30496388746987&tin=02508201610067®Number=0000000000207295&sum=10500 0 [18:15:06]StoreToDocumentArchive [18:15:06]shift 22 fd 2499 [18:15:06]save to /storage/0022/doc_00002499 [18:15:06]save last doc name /storage/0022/doc_00002499 to /storage/kkm_last_doc_name [18:15:06]save OK [18:15:06]Clear old archive folders... [18:15:06]ProcessDocumentItem done err = 0, tmpTLVsize=290 [18:15:06]tlvbuf is 013E4E00 [18:15:06]SAM_PROTO_ClearQueue [18:15:06]wFMCommunicate request_size=4 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 09 00 00 [18:15:06]Write to MH i2c: E2 08 00 2C 32 80 09 00 00 00 00 00 00 D0 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 2C 32 00 90 00 D2 [18:15:06]RAPDU: 90 00 [18:15:06]wFMCommunicate OK [18:15:06]SAM_PROTO_ClearQueue done [18:15:06]KKMCreateOFDPacket [18:15:06]OFDProtocolAddRootSTLVToBuf [18:15:06]FM_MakeSignedData [18:15:06]FM_MakeSignedData [18:15:06]SAM_PROTO_SignData [18:15:06]wFMCommunicate request_size=4 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 0D 01 02 [18:15:06]Write to MH i2c: E2 08 00 2D 32 80 0D 01 02 00 00 00 00 D8 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 2D 32 00 90 00 D3 [18:15:06]RAPDU: 90 00 [18:15:06]wFMCommunicate OK [18:15:06]wFMCommunicate request_size=255 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AE A5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [18:15:06]Write to MH i2c: E2 02 01 2E 32 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AE A5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 7E [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 2E 32 00 90 00 D4 [18:15:06]RAPDU: 90 00 [18:15:06]wFMCommunicate OK [18:15:06]wFMCommunicate request_size=49 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 0D 02 02 2C 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C3 09 00 00 35 04 06 00 1B BC 7E 6B 0E EB [18:15:06]Write to MH i2c: E2 34 00 2F 32 80 0D 02 02 2C 00 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C3 09 00 00 35 04 06 00 1B BC 7E 6B 0E EB 00 00 82 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 03 00 2F 32 00 90 00 D5 [18:15:06]RAPDU: 90 00 [18:15:06]wFMCommunicate OK [18:15:06]wFMCommunicate request_size=4 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 0D 03 02 [18:15:06]Write to MH i2c: E2 08 00 30 32 80 0D 03 02 00 00 00 00 DD [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 0B 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 0B 00 30 32 00 02 AF A9 6B 2C 00 65 1D 90 00 51 [18:15:06]RAPDU: 02 AF A9 6B 2C 00 65 1D 90 00 [18:15:06]wFMCommunicate OK [18:15:06]SAM_PROTO_SignData done [18:15:06]FM_MakeSignedData done [18:15:06]CreateOFDProtocolMessage [18:15:06]wFMCommunicate request_size=4 [18:15:06]MH_SAM_APDU [18:15:06]CAPDU: 80 11 00 00 [18:15:06]Write to MH i2c: E2 08 00 31 32 80 11 00 00 00 00 00 00 DD [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:06]Read from MH i2c: E2 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 17 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: E2 17 00 31 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 25 [18:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:15:06]wFMCommunicate OK [18:15:06]CreateOFDProtocolMessage done [18:15:06]OFDSenderStorePacket 2499 [18:15:06]StoreOFDPacket docnum=2499 [18:15:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 36 01 00 00 66 8C 2E 01 93 79 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AE A5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C3 09 00 00 35 04 06 00 1B BC 7E 6B 0E EB 02 AF A9 6B 2C 00 65 1D [18:15:06]CheckFolder [18:15:06]dirname=/storage/ofd_packets [18:15:06]CheckFolder done [18:15:06]ProducePacketName [18:15:06]name=ofd_packets/00002499 [18:15:06]NVStorageSaveData ofd_packets/00002499 [18:15:06]File name is /storage/ofd_packets/00002499 [18:15:06]Write 340 bytes [18:15:06]NVStorageSaveData done [18:15:06]OFDSenderStorePacket done [18:15:06]KKMCreateOFDPacket done [18:15:06]NVStorageSaveData kkm_last_timestamp [18:15:06]File name is /storage/kkm_last_timestamp [18:15:06]Write 4 bytes [18:15:06]NVStorageSaveData done [18:15:06]ExternCall_PrintAddStr [18:15:06]wPrintStart [18:15:06]Write to MH i2c: 01 00 00 32 32 64 [18:15:06]Write i2c OK [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: 01 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: 01 07 00 [18:15:06]MH_I2C_Read... [18:15:06]Read from MH i2c: 01 07 00 32 32 00 00 00 00 00 FF 0F 79 [18:15:06]RasterBufferAndPrint [18:15:06]line Счет N : (3)99890 [18:15:06]line ИÐÐ: 02508201610067 [18:15:06]line Контрольно-КаÑÑовый Чек [18:15:06]line ПРОДÐЖР[18:15:06]line Товар: 4700000160099 [18:15:06]line Снек Курут индивидуальный [18:15:06]line 7.000 * 15.00 [18:15:06]line = 105.00 [18:15:06]line ÐДС 12% ÐСП 1% [18:15:06]line > о реализуемом товаре [18:15:06]line ИТОГО: 105.00 [18:15:06]line ÐСП 1% : 0.93 [18:15:06]line ÐДС 12% : 11.15 [18:15:06]line Ðаличными: 105.00 [18:15:06]line Безнал.: 0.00 [18:15:06]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [18:15:06]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [18:15:06]line СÐО: Общий режим [18:15:06]line Чек 124 18.10.2024 18:15 [18:15:06]line Смена: 22 ФФД: 1.0 [18:15:06]line ЗÐМ: 0300000191 [18:15:06]line РÐМ: 0000000000207295 [18:15:06]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [18:15:06]line ФМ: 0000000002342820 [18:15:06]line ФД: 2499 [18:15:06]line ФПД: 30496388746987 [18:15:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T181510&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2499&fm=30496388746987&tin=02508201610067®Number=0000000000207295&sum=10500 [18:15:07]line 0 [18:15:07]OFD Sender: Processing packet 2499 [packets to send 1, broken 0] [18:15:07]ProducePacketName [18:15:07]name=ofd_packets/00002499 [18:15:07]OFD Sender: To server: ‡•öpG, [18:15:07]CommunicateWithHost lk.salyk.kg:30040 [18:15:07]ConnectInit lk.salyk.kg [18:15:07]written 0, free lines is 4095 [18:15:07]Connected sock=10 [18:15:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 36 01 00 00 66 8C 2E 01 93 79 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 30 39 39 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 AE A5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C3 09 00 00 35 04 06 00 1B BC 7E 6B 0E EB 02 AF A9 6B 2C 00 65 1D [18:15:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 A1 BB 47 00 3C 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 32 33 34 32 38 32 30 10 04 04 00 C3 09 00 00 F4 03 04 00 11 51 12 67 B6 04 01 00 00 84 9F 39 B0 EC 69 6C 3A [18:15:07]CommunicateWithHost err = 0 [18:15:07]CheckOFDResponse [18:15:07]1017 (14) - 77093643461234 [18:15:07]1041 (16) - 0000000002342820 [18:15:07]1040 (4) - 2499 [18:15:07]1012 (4) - 18.10.2024 12:14 [18:15:07]1206 (1) - 0 [18:15:07]OFD Sender: Remove packet 2499 [18:15:07]ProducePacketName [18:15:07]name=ofd_packets/00002499 [18:15:07]NVStorageDeleteData [18:15:07]Write to MH i2c: 01 00 00 5A 32 8C [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 07 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: 01 07 00 5A 32 00 00 00 00 00 C0 0C 5F [18:15:07]RasterBufferAndPrint [18:15:07]line [18:15:07]line [18:15:07]line [18:15:07]line [18:15:07]line [18:15:07]written 0, free lines is 3270 [18:15:07]MH_Cut [18:15:07]Write to MH i2c: D1 01 00 61 32 01 65 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: D1 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: D1 01 00 [18:15:07]MH_I2C_Read... [18:15:07]Read from MH i2c: D1 01 00 61 32 00 64 [18:15:07]Write to MH i2c: 01 00 00 62 32 94 [18:15:07]Write i2c OK [18:15:07]MH_I2C_Read... [18:15:07]OFD Sender: No OFD packet to send [18:15:08]*** Cut start [18:15:08]*** Partial cut [18:15:08]*** CUTSNS_PIN = 1 [18:15:08]*** CUTSNS_PIN = 0 [18:15:08]*** Brake cut motor [18:15:08]Read from MH i2c: 01 [18:15:09]MH_I2C_Read... [18:15:09]*** Stop cut motor [18:15:09]*** Cut end [18:15:09]Read from MH i2c: 01 07 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: 01 07 00 62 32 00 00 00 00 00 FF 0F A9 [18:15:09]process_action close_receipt done [18:15:09]requested_data is exist [18:15:09]produce_requested_data [18:15:09]requested_item fm.sn is exist - process it [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 11 00 00 [18:15:09]Write to MH i2c: E2 08 00 63 32 80 11 00 00 00 00 00 00 0F [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 17 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 17 00 63 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 57 [18:15:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:15:09]wFMCommunicate OK [18:15:09]requested_item fd.num is exist - process it [18:15:09]SAM_PROTO_GetFieldsCounters [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 13 00 00 [18:15:09]Write to MH i2c: E2 08 00 64 32 80 13 00 00 00 00 00 00 12 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 62 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 62 00 64 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C3 09 00 00 0E 04 04 00 16 00 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 7E [18:15:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C3 09 00 00 0E 04 04 00 16 00 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 [18:15:09]wFMCommunicate OK [18:15:09]SAM_PROTO_GetFieldsCounters done [18:15:09]requested_item shift.num is exist - process it [18:15:09]requested_item shift.opened is exist - process it [18:15:09]req_shift_opened [18:15:09]FM_GetShiftState [18:15:09]SAM_PROTO_GetShiftState [18:15:09]wFMCommunicate request_size=4 [18:15:09]MH_SAM_APDU [18:15:09]CAPDU: 80 13 01 00 [18:15:09]Write to MH i2c: E2 08 00 65 32 80 13 01 00 00 00 00 00 14 [18:15:09]Write i2c OK [18:15:09]MH_I2C_Read... [18:15:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:15:09]Read from MH i2c: E2 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 0E 00 [18:15:09]MH_I2C_Read... [18:15:09]Read from MH i2c: E2 0E 00 65 32 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B2 [18:15:09]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:15:09]wFMCommunicate OK [18:15:09]SAM_PROTO_GetShiftState done [18:15:09]FM_GetShiftState done [18:15:09]req_shift_opened done [18:15:09]requested_item shift.open_date is exist - process it [18:15:09]req_shift_open_date [18:15:09]req_shift_open_date done [18:15:09]produce_requested_data done [18:15:09]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2499,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [18:15:09]process_action_free close_receipt [18:15:09]json_value_free [18:15:09]json_value_free done [18:15:09]process_json_proto returns [18:15:09]Send response to host [18:15:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2499,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [18:15:09]free response buf [18:15:09]execute_script done [18:15:09]execute_script returns [18:15:09]free content buf [18:15:09]Sock 7.Close socket [18:15:09]Sock 7.Thread stoped [18:15:12]OFD Sender: No OFD packet to send [18:15:17]OFD Sender: No OFD packet to send [18:15:22]OFD Sender: No OFD packet to send [18:15:27]OFD Sender: No OFD packet to send [18:15:32]OFD Sender: No OFD packet to send [18:15:37]OFD Sender: No OFD packet to send [18:15:42]OFD Sender: No OFD packet to send [18:15:47]OFD Sender: No OFD packet to send [18:15:52]OFD Sender: No OFD packet to send [18:15:57]OFD Sender: No OFD packet to send [18:16:02]OFD Sender: No OFD packet to send [18:16:07]OFD Sender: No OFD packet to send [18:16:12]OFD Sender: No OFD packet to send [18:16:17]OFD Sender: No OFD packet to send [18:16:22]OFD Sender: No OFD packet to send [18:16:27]OFD Sender: No OFD packet to send [18:16:32]OFD Sender: No OFD packet to send [18:16:37]OFD Sender: No OFD packet to send [18:16:42]OFD Sender: No OFD packet to send [18:16:47]OFD Sender: No OFD packet to send [18:16:52]OFD Sender: No OFD packet to send [18:16:57]OFD Sender: No OFD packet to send [18:17:02]OFD Sender: No OFD packet to send [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:08]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:53]OFD Sender: No OFD packet to send [18:18:58]OFD Sender: No OFD packet to send [18:19:03]OFD Sender: No OFD packet to send [18:19:08]OFD Sender: No OFD packet to send [18:19:13]OFD Sender: No OFD packet to send [18:19:18]OFD Sender: No OFD packet to send [18:19:23]OFD Sender: No OFD packet to send [18:19:28]OFD Sender: No OFD packet to send [18:19:33]OFD Sender: No OFD packet to send [18:19:38]OFD Sender: No OFD packet to send [18:19:43]OFD Sender: No OFD packet to send [18:19:48]OFD Sender: No OFD packet to send [18:19:53]OFD Sender: No OFD packet to send [18:19:58]OFD Sender: No OFD packet to send [18:20:03]OFD Sender: No OFD packet to send [18:20:08]OFD Sender: No OFD packet to send [18:20:13]OFD Sender: No OFD packet to send [18:20:18]OFD Sender: No OFD packet to send [18:20:23]OFD Sender: No OFD packet to send [18:20:28]OFD Sender: No OFD packet to send [18:20:33]OFD Sender: No OFD packet to send [18:20:38]OFD Sender: No OFD packet to send [18:20:43]OFD Sender: No OFD packet to send [18:20:48]OFD Sender: No OFD packet to send [18:20:53]OFD Sender: No OFD packet to send [18:20:58]OFD Sender: No OFD packet to send [18:21:03]OFD Sender: No OFD packet to send [18:21:08]OFD Sender: No OFD packet to send [18:21:13]OFD Sender: No OFD packet to send [18:21:18]OFD Sender: No OFD packet to send [18:21:23]OFD Sender: No OFD packet to send [18:21:28]OFD Sender: No OFD packet to send [18:21:33]OFD Sender: No OFD packet to send [18:21:38]OFD Sender: No OFD packet to send [18:21:43]OFD Sender: No OFD packet to send [18:21:48]OFD Sender: No OFD packet to send [18:21:53]OFD Sender: No OFD packet to send [18:21:58]OFD Sender: No OFD packet to send [18:22:03]OFD Sender: No OFD packet to send [18:22:08]OFD Sender: No OFD packet to send [18:22:13]OFD Sender: No OFD packet to send [18:22:18]OFD Sender: No OFD packet to send [18:22:23]OFD Sender: No OFD packet to send [18:22:28]OFD Sender: No OFD packet to send [18:22:33]OFD Sender: No OFD packet to send [18:22:38]OFD Sender: No OFD packet to send [18:22:43]OFD Sender: No OFD packet to send [18:22:48]OFD Sender: No OFD packet to send [18:22:53]OFD Sender: No OFD packet to send [18:22:58]OFD Sender: No OFD packet to send [18:23:03]OFD Sender: No OFD packet to send [18:23:08]OFD Sender: No OFD packet to send [18:23:13]OFD Sender: No OFD packet to send [18:23:18]OFD Sender: No OFD packet to send [18:23:23]OFD Sender: No OFD packet to send [18:23:28]OFD Sender: No OFD packet to send [18:23:33]OFD Sender: No OFD packet to send [18:23:38]OFD Sender: No OFD packet to send [18:23:43]OFD Sender: No OFD packet to send [18:23:48]OFD Sender: No OFD packet to send [18:23:53]OFD Sender: No OFD packet to send [18:23:58]OFD Sender: No OFD packet to send [18:24:03]OFD Sender: No OFD packet to send [18:24:08]OFD Sender: No OFD packet to send [18:24:13]OFD Sender: No OFD packet to send [18:24:18]OFD Sender: No OFD packet to send [18:24:23]OFD Sender: No OFD packet to send [18:24:28]OFD Sender: No OFD packet to send [18:24:33]OFD Sender: No OFD packet to send [18:24:38]OFD Sender: No OFD packet to send [18:24:43]OFD Sender: No OFD packet to send [18:24:48]OFD Sender: No OFD packet to send [18:24:53]OFD Sender: No OFD packet to send [18:24:58]OFD Sender: No OFD packet to send [18:25:03]OFD Sender: No OFD packet to send [18:25:08]OFD Sender: No OFD packet to send [18:25:13]OFD Sender: No OFD packet to send [18:25:18]OFD Sender: No OFD packet to send [18:25:23]OFD Sender: No OFD packet to send [18:25:28]OFD Sender: No OFD packet to send [18:25:33]OFD Sender: No OFD packet to send [18:25:38]OFD Sender: No OFD packet to send [18:25:43]OFD Sender: No OFD packet to send [18:25:48]OFD Sender: No OFD packet to send [18:25:53]OFD Sender: No OFD packet to send [18:25:58]OFD Sender: No OFD packet to send [18:26:03]OFD Sender: No OFD packet to send [18:26:08]OFD Sender: No OFD packet to send [18:26:13]OFD Sender: No OFD packet to send [18:26:18]OFD Sender: No OFD packet to send [18:26:23]OFD Sender: No OFD packet to send [18:26:28]OFD Sender: No OFD packet to send [18:26:33]OFD Sender: No OFD packet to send [18:26:38]OFD Sender: No OFD packet to send [18:26:43]OFD Sender: No OFD packet to send [18:26:48]OFD Sender: No OFD packet to send [18:26:53]OFD Sender: No OFD packet to send [18:26:58]OFD Sender: No OFD packet to send [18:27:03]OFD Sender: No OFD packet to send [18:27:08]OFD Sender: No OFD packet to send [18:27:13]OFD Sender: No OFD packet to send [18:27:18]OFD Sender: No OFD packet to send [18:27:23]OFD Sender: No OFD packet to send [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:08]OFD Sender: No OFD packet to send [18:28:13]OFD Sender: No OFD packet to send [18:28:18]OFD Sender: No OFD packet to send [18:28:23]OFD Sender: No OFD packet to send [18:28:28]OFD Sender: No OFD packet to send [18:28:33]OFD Sender: No OFD packet to send [18:28:38]OFD Sender: No OFD packet to send [18:28:43]OFD Sender: No OFD packet to send [18:28:48]OFD Sender: No OFD packet to send [18:28:53]OFD Sender: No OFD packet to send [18:28:58]OFD Sender: No OFD packet to send [18:29:03]OFD Sender: No OFD packet to send [18:29:08]OFD Sender: No OFD packet to send [18:29:13]OFD Sender: No OFD packet to send [18:29:18]OFD Sender: No OFD packet to send [18:29:23]OFD Sender: No OFD packet to send [18:29:28]OFD Sender: No OFD packet to send [18:29:33]OFD Sender: No OFD packet to send [18:29:38]OFD Sender: No OFD packet to send [18:29:43]OFD Sender: No OFD packet to send [18:29:48]OFD Sender: No OFD packet to send [18:29:53]OFD Sender: No OFD packet to send [18:29:58]OFD Sender: No OFD packet to send [18:30:03]OFD Sender: No OFD packet to send [18:30: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:56]accept exits with 9 [18:30:56]New connection [18:30:56]New thread 3066850660 created [18:30:56]Thread 3066707300 joined [18:30:56]Waiting for new connection... [18:30:56] Sock 9.Parse request [18:30:56]Sock 9.Check first char [18:30:56]Sock 9.First char is OK [18:30:56]request: POST /json_proto HTTP/1.0 [18:30:56]Method: POST [18:30:56]URL: /json_proto [18:30:56]Method is POST - this is cgi request [18:30:56]url: /json_proto [18:30:56]query_string will be loaded in cgi processing [18:30:56]execute_cgi json_proto POST (null) [18:30:56]execute_cgi path=json_proto method=POST [18:30:56]POST find Content-Length [18:30:56]Host: 172.17.52.132:8080 [18:30:56]Content-Length: 640 [18:30:56]Content-Type: application/json [18:30:56] [18:30:56]POST finish read [18:30:56]Found Content-Length = 640 [18:30:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99891", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:56]execute_script... [18:30: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 : (3)99891", "tax_sys" : 0, "items" : [ { "code": "4700001060152", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,5\u043B", "price" : 660.00, "quantity" : 1.000, "sum" : 660.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 660.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:30:56]POST & json_proto [18:30:56]process_json_proto [18:30:56]json parsed OK: [18:30:56]protocol is kg_v1.0 [18:30:56]action value=close_receipt [18:30:56]process_action close_receipt [18:30:56]cmd_close_receipt [18:30:56]MH_GetDate [18:30:56]Write to MH i2c: F0 00 00 66 32 87 [18:30:56]Write i2c OK [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: F0 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: F0 09 00 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: F0 09 00 66 32 00 66 A9 12 67 5A BE F6 66 8C [18:30:56]GetLastDocTimeStamp 1729275310 [18:30:56]current date 1729276262 [18:30:56]FM_GetShiftState [18:30:56]SAM_PROTO_GetShiftState [18:30:56]wFMCommunicate request_size=4 [18:30:56]MH_SAM_APDU [18:30:56]CAPDU: 80 13 01 00 [18:30:56]Write to MH i2c: E2 08 00 67 32 80 13 01 00 00 00 00 00 16 [18:30:56]Write i2c OK [18:30:56]MH_I2C_Read... [18:30:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:30:56]Read from MH i2c: E2 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: E2 0E 00 [18:30:56]MH_I2C_Read... [18:30:56]Read from MH i2c: E2 0E 00 67 32 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B4 [18:30:56]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:30:56]wFMCommunicate OK [18:30:56]SAM_PROTO_GetShiftState done [18:30:56]FM_GetShiftState done [18:30:56]opened in 1729209717 [18:30:56]opened+sec_in_day 1729296117 [18:30:56]quantity*price = 66000 [18:30:56]sum+1 = 66001 [18:30:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 660.00 ÐСП 1% : 5.84 ÐДС 12% : 70.09 Ðаличными: 660.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 125 18.10.2024 18:31 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2500 ФПД: 126419405861425 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183102&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2500&fm=126419405861425&tin=02508201610067®Number=0000000000207295&sum=66000 0 [18:30:58]StoreToDocumentArchive [18:30:58]shift 22 fd 2500 [18:30:58]save to /storage/0022/doc_00002500 [18:30:58]save last doc name /storage/0022/doc_00002500 to /storage/kkm_last_doc_name [18:30:58]save OK [18:30:58]Clear old archive folders... [18:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [18:30:58]tlvbuf is 01463400 [18:30:58]SAM_PROTO_ClearQueue [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 09 00 00 [18:30:58]Write to MH i2c: E2 08 00 74 32 80 09 00 00 00 00 00 00 18 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 74 32 00 90 00 1A [18:30:58]RAPDU: 90 00 [18:30:58]wFMCommunicate OK [18:30:58]SAM_PROTO_ClearQueue done [18:30:58]KKMCreateOFDPacket [18:30:58]OFDProtocolAddRootSTLVToBuf [18:30:58]FM_MakeSignedData [18:30:58]FM_MakeSignedData [18:30:58]SAM_PROTO_SignData [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 0D 01 02 [18:30:58]Write to MH i2c: E2 08 00 75 32 80 0D 01 02 00 00 00 00 20 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 75 32 00 90 00 1B [18:30:58]RAPDU: 90 00 [18:30:58]wFMCommunicate OK [18:30:58]wFMCommunicate request_size=255 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 66 A9 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 [18:30:58]Write to MH i2c: E2 02 01 76 32 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 66 A9 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 79 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 76 32 00 90 00 1C [18:30:58]RAPDU: 90 00 [18:30:58]wFMCommunicate OK [18:30:58]wFMCommunicate request_size=32 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 0D 02 02 1B 30 30 32 33 34 32 38 32 30 10 04 04 00 C4 09 00 00 35 04 06 00 72 FA 4F C7 72 31 [18:30:58]Write to MH i2c: E2 23 00 77 32 80 0D 02 02 1B 00 30 30 32 33 34 32 38 32 30 10 04 04 00 C4 09 00 00 35 04 06 00 72 FA 4F C7 72 31 00 00 67 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 03 00 77 32 00 90 00 1D [18:30:58]RAPDU: 90 00 [18:30:58]wFMCommunicate OK [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 0D 03 02 [18:30:58]Write to MH i2c: E2 08 00 78 32 80 0D 03 02 00 00 00 00 25 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 0B 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 0B 00 78 32 00 6A 1D E4 F4 F5 3B 82 1A 90 00 51 [18:30:58]RAPDU: 6A 1D E4 F4 F5 3B 82 1A 90 00 [18:30:58]wFMCommunicate OK [18:30:58]SAM_PROTO_SignData done [18:30:58]FM_MakeSignedData done [18:30:58]CreateOFDProtocolMessage [18:30:58]wFMCommunicate request_size=4 [18:30:58]MH_SAM_APDU [18:30:58]CAPDU: 80 11 00 00 [18:30:58]Write to MH i2c: E2 08 00 79 32 80 11 00 00 00 00 00 00 25 [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:30:58]Read from MH i2c: E2 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 17 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: E2 17 00 79 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 6D [18:30:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:30:58]wFMCommunicate OK [18:30:58]CreateOFDProtocolMessage done [18:30:58]OFDSenderStorePacket 2500 [18:30:58]StoreOFDPacket docnum=2500 [18:30:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 38 37 1D 01 97 C8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 66 A9 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C4 09 00 00 35 04 06 00 72 FA 4F C7 72 31 6A 1D E4 F4 F5 3B 82 1A [18:30:58]CheckFolder [18:30:58]dirname=/storage/ofd_packets [18:30:58]CheckFolder done [18:30:58]ProducePacketName [18:30:58]name=ofd_packets/00002500 [18:30:58]NVStorageSaveData ofd_packets/00002500 [18:30:58]File name is /storage/ofd_packets/00002500 [18:30:58]Write 323 bytes [18:30:58]NVStorageSaveData done [18:30:58]OFDSenderStorePacket done [18:30:58]KKMCreateOFDPacket done [18:30:58]NVStorageSaveData kkm_last_timestamp [18:30:58]File name is /storage/kkm_last_timestamp [18:30:58]Write 4 bytes [18:30:58]NVStorageSaveData done [18:30:58]ExternCall_PrintAddStr [18:30:58]wPrintStart [18:30:58]Write to MH i2c: 01 00 00 7A 32 AC [18:30:58]Write i2c OK [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: 01 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: 01 07 00 [18:30:58]MH_I2C_Read... [18:30:58]Read from MH i2c: 01 07 00 7A 32 00 00 00 00 00 FF 0F C1 [18:30:58]RasterBufferAndPrint [18:30:58]line Счет N : (3)99891 [18:30:58]line ИÐÐ: 02508201610067 [18:30:58]line Контрольно-КаÑÑовый Чек [18:30:58]line ПРОДÐЖР[18:30:58]line Товар: 4700001060152 [18:30:58]line КоньÑк Бишкек 0,5л [18:30:58]line 1.000 * 660.00 [18:30:58]line = 660.00 [18:30:58]line ÐДС 12% ÐСП 1% [18:30:58]line > о реализуемом товаре [18:30:58]line ИТОГО: 660.00 [18:30:58]line ÐСП 1% : 5.84 [18:30:58]line ÐДС 12% : 70.09 [18:30:58]line Ðаличными: 660.00 [18:30:58]line Безнал.: 0.00 [18:30:58]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [18:30:58]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [18:30:58]line СÐО: Общий режим [18:30:58]line Чек 125 18.10.2024 18:31 [18:30:58]line Смена: 22 ФФД: 1.0 [18:30:58]line ЗÐМ: 0300000191 [18:30:58]line РÐМ: 0000000000207295 [18:30:58]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [18:30:58]line ФМ: 0000000002342820 [18:30:58]line ФД: 2500 [18:30:58]line ФПД: 126419405861425 [18:30:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183102&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2500&fm=126419405861425&tin=02508201610067®Number=0000000000207295&sum=66000 [18:30:58]line 0 [18:30:58]OFD Sender: Processing packet 2500 [packets to send 1, broken 0] [18:30:58]ProducePacketName [18:30:58]name=ofd_packets/00002500 [18:30:58]OFD Sender: To server: ‡•öpG, [18:30:58]CommunicateWithHost lk.salyk.kg:30040 [18:30:58]ConnectInit lk.salyk.kg [18:30:58]written 0, free lines is 4095 [18:30:59]Connected sock=10 [18:30:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 38 37 1D 01 97 C8 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 35 32 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 01 01 00 00 00 13 04 06 00 D0 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 66 A9 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C4 09 00 00 35 04 06 00 72 FA 4F C7 72 31 6A 1D E4 F4 F5 3B 82 1A [18:30:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 EF 53 47 00 B7 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 32 33 34 32 38 32 30 10 04 04 00 C4 09 00 00 F4 03 04 00 C9 54 12 67 B6 04 01 00 00 7D 81 94 02 36 B3 1F 46 [18:30:59]CommunicateWithHost err = 0 [18:30:59]CheckOFDResponse [18:30:59]1017 (14) - 77093643461234 [18:30:59]1041 (16) - 0000000002342820 [18:30:59]1040 (4) - 2500 [18:30:59]1012 (4) - 18.10.2024 12:30 [18:30:59]1206 (1) - 0 [18:30:59]OFD Sender: Remove packet 2500 [18:30:59]ProducePacketName [18:30:59]name=ofd_packets/00002500 [18:30:59]NVStorageDeleteData [18:30:59]Write to MH i2c: 01 00 00 A2 32 D4 [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 07 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: 01 07 00 A2 32 00 00 00 00 00 DD 0C C4 [18:30:59]RasterBufferAndPrint [18:30:59]line [18:30:59]line [18:30:59]line [18:30:59]line [18:30:59]line [18:30:59]written 0, free lines is 3300 [18:30:59]MH_Cut [18:30:59]Write to MH i2c: D1 01 00 A9 32 01 AD [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: D1 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: D1 01 00 [18:30:59]MH_I2C_Read... [18:30:59]Read from MH i2c: D1 01 00 A9 32 00 AC [18:30:59]Write to MH i2c: 01 00 00 AA 32 DC [18:30:59]Write i2c OK [18:30:59]MH_I2C_Read... [18:30:59]OFD Sender: No OFD packet to send [18:31:00]*** Cut start [18:31:00]*** Partial cut [18:31:00]*** CUTSNS_PIN = 1 [18:31:00]*** CUTSNS_PIN = 0 [18:31:00]*** Brake cut motor [18:31:00]Read from MH i2c: 01 [18:31:00]MH_I2C_Read... [18:31:00]*** Stop cut motor [18:31:00]*** Cut end [18:31:00]Read from MH i2c: 01 07 00 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: 01 07 00 AA 32 00 00 00 00 00 FF 0F F1 [18:31:00]process_action close_receipt done [18:31:00]requested_data is exist [18:31:00]produce_requested_data [18:31:00]requested_item fm.sn is exist - process it [18:31:00]wFMCommunicate request_size=4 [18:31:00]MH_SAM_APDU [18:31:00]CAPDU: 80 11 00 00 [18:31:00]Write to MH i2c: E2 08 00 AB 32 80 11 00 00 00 00 00 00 57 [18:31:00]Write i2c OK [18:31:00]MH_I2C_Read... [18:31:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:31:00]Read from MH i2c: E2 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: E2 17 00 [18:31:00]MH_I2C_Read... [18:31:00]Read from MH i2c: E2 17 00 AB 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 9F [18:31:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:31:00]wFMCommunicate OK [18:31:00]requested_item fd.num is exist - process it [18:31:00]SAM_PROTO_GetFieldsCounters [18:31:00]wFMCommunicate request_size=4 [18:31:00]MH_SAM_APDU [18:31:00]CAPDU: 80 13 00 00 [18:31:00]Write to MH i2c: E2 08 00 AC 32 80 13 00 00 00 00 00 00 5A [18:31:00]Write i2c OK [18:31:00]MH_I2C_Read... [18:31:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:31:01]Read from MH i2c: E2 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 62 00 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 62 00 AC 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C4 09 00 00 0E 04 04 00 16 00 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 CA [18:31:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C4 09 00 00 0E 04 04 00 16 00 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 [18:31:01]wFMCommunicate OK [18:31:01]SAM_PROTO_GetFieldsCounters done [18:31:01]requested_item shift.num is exist - process it [18:31:01]requested_item shift.opened is exist - process it [18:31:01]req_shift_opened [18:31:01]FM_GetShiftState [18:31:01]SAM_PROTO_GetShiftState [18:31:01]wFMCommunicate request_size=4 [18:31:01]MH_SAM_APDU [18:31:01]CAPDU: 80 13 01 00 [18:31:01]Write to MH i2c: E2 08 00 AD 32 80 13 01 00 00 00 00 00 5C [18:31:01]Write i2c OK [18:31:01]MH_I2C_Read... [18:31:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:31:01]Read from MH i2c: E2 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 0E 00 [18:31:01]MH_I2C_Read... [18:31:01]Read from MH i2c: E2 0E 00 AD 32 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 FA [18:31:01]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:31:01]wFMCommunicate OK [18:31:01]SAM_PROTO_GetShiftState done [18:31:01]FM_GetShiftState done [18:31:01]req_shift_opened done [18:31:01]requested_item shift.open_date is exist - process it [18:31:01]req_shift_open_date [18:31:01]req_shift_open_date done [18:31:01]produce_requested_data done [18:31:01]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2500,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [18:31:01]process_action_free close_receipt [18:31:01]json_value_free [18:31:01]json_value_free done [18:31:01]process_json_proto returns [18:31:01]Send response to host [18:31:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2500,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [18:31:01]free response buf [18:31:01]execute_script done [18:31:01]execute_script returns [18:31:01]free content buf [18:31:01]Sock 9.Close socket [18:31:01]Sock 9.Thread stoped [18:31:04]OFD Sender: No OFD packet to send [18:31:09]OFD Sender: No OFD packet to send [18:31:14]OFD Sender: No OFD packet to send [18:31:19]OFD Sender: No OFD packet to send [18:31:24]OFD Sender: No OFD packet to send [18:31:29]OFD Sender: No OFD packet to send [18:31:34]OFD Sender: No OFD packet to send [18:31:39]OFD Sender: No OFD packet to send [18:31:44]OFD Sender: No OFD packet to send [18:31:49]OFD Sender: No OFD packet to send [18:31:54]OFD Sender: No OFD packet to send [18:31:59]OFD Sender: No OFD packet to send [18:32:04]OFD Sender: No OFD packet to send [18:32:09]OFD Sender: No OFD packet to send [18:32:14]OFD Sender: No OFD packet to send [18:32:19]OFD Sender: No OFD packet to send [18:32:24]OFD Sender: No OFD packet to send [18:32:29]OFD Sender: No OFD packet to send [18:32:34]OFD Sender: No OFD packet to send [18:32:39]OFD Sender: No OFD packet to send [18:32:44]OFD Sender: No OFD packet to send [18:32:49]OFD Sender: No OFD packet to send [18:32:54]OFD Sender: No OFD packet to send [18:32:59]OFD Sender: No OFD packet to send [18:33:04]OFD Sender: No OFD packet to send [18:33:09]OFD Sender: No OFD packet to send [18:33:14]OFD Sender: No OFD packet to send [18:33:19]OFD Sender: No OFD packet to send [18:33:24]OFD Sender: No OFD packet to send [18:33:29]OFD Sender: No OFD packet to send [18:33:34]OFD Sender: No OFD packet to send [18:33:39]OFD Sender: No OFD packet to send [18:33:42]accept exits with 7 [18:33:42]New connection [18:33:42]New thread 3066707300 created [18:33:42]Thread 3066850660 joined [18:33:42]Waiting for new connection... [18:33:42] Sock 7.Parse request [18:33:42]Sock 7.Check first char [18:33:42]Sock 7.First char is OK [18:33:42]request: POST /json_proto HTTP/1.0 [18:33:42]Method: POST [18:33:42]URL: /json_proto [18:33:42]Method is POST - this is cgi request [18:33:42]url: /json_proto [18:33:42]query_string will be loaded in cgi processing [18:33:42]execute_cgi json_proto POST (null) [18:33:42]execute_cgi path=json_proto method=POST [18:33:42]POST find Content-Length [18:33:42]Host: 172.17.52.132:8080 [18:33:42]Content-Length: 645 [18:33:42]Content-Type: application/json [18:33:42] [18:33:42]POST finish read [18:33:42]Found Content-Length = 645 [18:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99892", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:42]execute_script... [18:33: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)99892", "tax_sys" : 0, "items" : [ { "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 30.00, "quantity" : 1.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 30.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:42]POST & json_proto [18:33:42]process_json_proto [18:33:42]json parsed OK: [18:33:42]protocol is kg_v1.0 [18:33:42]action value=close_receipt [18:33:42]process_action close_receipt [18:33:42]cmd_close_receipt [18:33:42]MH_GetDate [18:33:42]Write to MH i2c: F0 00 00 AE 32 CF [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: F0 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: F0 09 00 [18:33:42]MH_I2C_Read... [18:33:42]Read from MH i2c: F0 09 00 AE 32 00 0C AA 12 67 5A BE F6 66 7B [18:33:42]GetLastDocTimeStamp 1729276262 [18:33:42]current date 1729276428 [18:33:42]FM_GetShiftState [18:33:42]SAM_PROTO_GetShiftState [18:33:42]wFMCommunicate request_size=4 [18:33:42]MH_SAM_APDU [18:33:42]CAPDU: 80 13 01 00 [18:33:42]Write to MH i2c: E2 08 00 AF 32 80 13 01 00 00 00 00 00 5E [18:33:42]Write i2c OK [18:33:42]MH_I2C_Read... [18:33:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:43]Read from MH i2c: E2 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 0E 00 [18:33:43]MH_I2C_Read... [18:33:43]Read from MH i2c: E2 0E 00 AF 32 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 FC [18:33:43]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:33:43]wFMCommunicate OK [18:33:43]SAM_PROTO_GetShiftState done [18:33:43]FM_GetShiftState done [18:33:43]opened in 1729209717 [18:33:43]opened+sec_in_day 1729296117 [18:33:43]quantity*price = 3000 [18:33:43]sum+1 = 3001 [18:33:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 30.00 ÐСП 1% : 0.26 ÐДС 12% : 3.19 Ðаличными: 30.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 126 18.10.2024 18:33 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2501 ФПД: 73495427306912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183348&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2501&fm=73495427306912&tin=02508201610067®Number=0000000000207295&sum=3000 0 [18:33:44]StoreToDocumentArchive [18:33:44]shift 22 fd 2501 [18:33:44]save to /storage/0022/doc_00002501 [18:33:44]save last doc name /storage/0022/doc_00002501 to /storage/kkm_last_doc_name [18:33:44]save OK [18:33:44]Clear old archive folders... [18:33:44]ProcessDocumentItem done err = 0, tmpTLVsize=277 [18:33:44]tlvbuf is 0135A900 [18:33:44]SAM_PROTO_ClearQueue [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 09 00 00 [18:33:44]Write to MH i2c: E2 08 00 BC 32 80 09 00 00 00 00 00 00 60 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 BC 32 00 90 00 62 [18:33:44]RAPDU: 90 00 [18:33:44]wFMCommunicate OK [18:33:44]SAM_PROTO_ClearQueue done [18:33:44]KKMCreateOFDPacket [18:33:44]OFDProtocolAddRootSTLVToBuf [18:33:44]FM_MakeSignedData [18:33:44]FM_MakeSignedData [18:33:44]SAM_PROTO_SignData [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 0D 01 02 [18:33:44]Write to MH i2c: E2 08 00 BD 32 80 0D 01 02 00 00 00 00 68 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 BD 32 00 90 00 63 [18:33:44]RAPDU: 90 00 [18:33:44]wFMCommunicate OK [18:33:44]wFMCommunicate request_size=255 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 0D 02 02 FA 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 0C AA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 [18:33:44]Write to MH i2c: E2 02 01 BE 32 80 0D 02 02 FA 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 0C AA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 00 00 07 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 BE 32 00 90 00 64 [18:33:44]RAPDU: 90 00 [18:33:44]wFMCommunicate OK [18:33:44]wFMCommunicate request_size=36 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C5 09 00 00 35 04 06 00 42 D7 FC D6 55 A0 [18:33:44]Write to MH i2c: E2 27 00 BF 32 80 0D 02 02 1F 00 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C5 09 00 00 35 04 06 00 42 D7 FC D6 55 A0 00 00 33 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 03 00 BF 32 00 90 00 65 [18:33:44]RAPDU: 90 00 [18:33:44]wFMCommunicate OK [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 0D 03 02 [18:33:44]Write to MH i2c: E2 08 00 C0 32 80 0D 03 02 00 00 00 00 6D [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 0B 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 0B 00 C0 32 00 A6 A0 FE 5F 88 C5 DE C9 90 00 05 [18:33:44]RAPDU: A6 A0 FE 5F 88 C5 DE C9 90 00 [18:33:44]wFMCommunicate OK [18:33:44]SAM_PROTO_SignData done [18:33:44]FM_MakeSignedData done [18:33:44]CreateOFDProtocolMessage [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 11 00 00 [18:33:44]Write to MH i2c: E2 08 00 C1 32 80 11 00 00 00 00 00 00 6D [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 17 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 17 00 C1 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B5 [18:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:33:44]wFMCommunicate OK [18:33:44]CreateOFDProtocolMessage done [18:33:44]OFDSenderStorePacket 2501 [18:33:44]StoreOFDPacket docnum=2501 [18:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 29 01 00 00 3C 5A 21 01 9B 8D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 0C AA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C5 09 00 00 35 04 06 00 42 D7 FC D6 55 A0 A6 A0 FE 5F 88 C5 DE C9 [18:33:44]CheckFolder [18:33:44]dirname=/storage/ofd_packets [18:33:44]CheckFolder done [18:33:44]ProducePacketName [18:33:44]name=ofd_packets/00002501 [18:33:44]NVStorageSaveData ofd_packets/00002501 [18:33:44]File name is /storage/ofd_packets/00002501 [18:33:44]Write 327 bytes [18:33:44]NVStorageSaveData done [18:33:44]OFDSenderStorePacket done [18:33:44]KKMCreateOFDPacket done [18:33:44]NVStorageSaveData kkm_last_timestamp [18:33:44]File name is /storage/kkm_last_timestamp [18:33:44]Write 4 bytes [18:33:44]NVStorageSaveData done [18:33:44]ExternCall_PrintAddStr [18:33:44]wPrintStart [18:33:44]Write to MH i2c: 01 00 00 C2 32 F4 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 07 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: 01 07 00 C2 32 00 00 00 00 00 FF 0F 09 [18:33:44]RasterBufferAndPrint [18:33:44]line Счет N : (3)99892 [18:33:44]line ИÐÐ: 02508201610067 [18:33:44]line Контрольно-КаÑÑовый Чек [18:33:44]line ПРОДÐЖР[18:33:44]line Товар: 4700000310173 [18:33:44]line Вода Ðдыгене 0,5л б/г [18:33:44]line 1.000 * 30.00 [18:33:44]line = 30.00 [18:33:44]line ÐДС 12% ÐСП 1% [18:33:44]line > о реализуемом товаре [18:33:44]line ИТОГО: 30.00 [18:33:44]line ÐСП 1% : 0.26 [18:33:44]line ÐДС 12% : 3.19 [18:33:44]line Ðаличными: 30.00 [18:33:44]line Безнал.: 0.00 [18:33:44]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [18:33:44]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [18:33:44]line СÐО: Общий режим [18:33:44]line Чек 126 18.10.2024 18:33 [18:33:44]line Смена: 22 ФФД: 1.0 [18:33:44]line ЗÐМ: 0300000191 [18:33:44]line РÐМ: 0000000000207295 [18:33:44]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [18:33:44]line ФМ: 0000000002342820 [18:33:44]line ФД: 2501 [18:33:44]line ФПД: 73495427306912 [18:33:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183348&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2501&fm=73495427306912&tin=02508201610067®Number=0000000000207295&sum=3000 [18:33:45]line 0 [18:33:45]OFD Sender: Processing packet 2501 [packets to send 1, broken 0] [18:33:45]ProducePacketName [18:33:45]name=ofd_packets/00002501 [18:33:45]OFD Sender: To server: ‡•öpG, [18:33:45]CommunicateWithHost lk.salyk.kg:30040 [18:33:45]ConnectInit lk.salyk.kg [18:33:45]written 0, free lines is 4095 [18:33:45]Connected sock=11 [18:33:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 29 01 00 00 3C 5A 21 01 9B 8D 5A 03 01 00 03 00 15 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B8 0B 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 0B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 01 00 00 00 00 07 04 06 00 B8 0B 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 0C AA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C5 09 00 00 35 04 06 00 42 D7 FC D6 55 A0 A6 A0 FE 5F 88 C5 DE C9 [18:33:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 BE BC 47 00 20 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 32 33 34 32 38 32 30 10 04 04 00 C5 09 00 00 F4 03 04 00 6F 55 12 67 B6 04 01 00 00 E6 90 CF F4 C2 CE 0F BB [18:33:45]CommunicateWithHost err = 0 [18:33:45]CheckOFDResponse [18:33:45]1017 (14) - 77093643461234 [18:33:45]1041 (16) - 0000000002342820 [18:33:45]1040 (4) - 2501 [18:33:45]1012 (4) - 18.10.2024 12:32 [18:33:45]1206 (1) - 0 [18:33:45]OFD Sender: Remove packet 2501 [18:33:45]ProducePacketName [18:33:45]name=ofd_packets/00002501 [18:33:45]NVStorageDeleteData [18:33:45]Write to MH i2c: 01 00 00 EA 32 1C [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: 01 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: 01 07 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: 01 07 00 EA 32 00 00 00 00 00 D9 0C 08 [18:33:45]RasterBufferAndPrint [18:33:45]line [18:33:45]line [18:33:45]line [18:33:45]line [18:33:45]line [18:33:45]written 0, free lines is 3296 [18:33:45]MH_Cut [18:33:45]Write to MH i2c: D1 01 00 F1 32 01 F5 [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: D1 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: D1 01 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: D1 01 00 F1 32 00 F4 [18:33:45]Write to MH i2c: 01 00 00 F2 32 24 [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]OFD Sender: No OFD packet to send [18:33:46]*** Cut start [18:33:46]*** Partial cut [18:33:46]*** CUTSNS_PIN = 1 [18:33:46]*** CUTSNS_PIN = 0 [18:33:46]*** Brake cut motor [18:33:46]Read from MH i2c: 01 [18:33:46]MH_I2C_Read... [18:33:46]*** Stop cut motor [18:33:46]*** Cut end [18:33:46]Read from MH i2c: 01 07 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 07 00 F2 32 00 00 00 00 00 FF 0F 39 [18:33:46]process_action close_receipt done [18:33:46]requested_data is exist [18:33:46]produce_requested_data [18:33:46]requested_item fm.sn is exist - process it [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 11 00 00 [18:33:46]Write to MH i2c: E2 08 00 F3 32 80 11 00 00 00 00 00 00 9F [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 17 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 17 00 F3 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E7 [18:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:33:46]wFMCommunicate OK [18:33:46]requested_item fd.num is exist - process it [18:33:46]SAM_PROTO_GetFieldsCounters [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 13 00 00 [18:33:46]Write to MH i2c: E2 08 00 F4 32 80 13 00 00 00 00 00 00 A2 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 62 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 62 00 F4 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C5 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 7E 00 00 00 5E 04 04 00 7E 00 00 00 57 04 04 00 7F 00 00 00 19 04 04 00 00 00 00 00 90 00 16 [18:33:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C5 09 00 00 0E 04 04 00 16 00 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 [18:33:47]wFMCommunicate OK [18:33:47]SAM_PROTO_GetFieldsCounters done [18:33:47]requested_item shift.num is exist - process it [18:33:47]requested_item shift.opened is exist - process it [18:33:47]req_shift_opened [18:33:47]FM_GetShiftState [18:33:47]SAM_PROTO_GetShiftState [18:33:47]wFMCommunicate request_size=4 [18:33:47]MH_SAM_APDU [18:33:47]CAPDU: 80 13 01 00 [18:33:47]Write to MH i2c: E2 08 00 F5 32 80 13 01 00 00 00 00 00 A4 [18:33:47]Write i2c OK [18:33:47]MH_I2C_Read... [18:33:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:47]Read from MH i2c: E2 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 0E 00 [18:33:47]MH_I2C_Read... [18:33:47]Read from MH i2c: E2 0E 00 F5 32 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 42 [18:33:47]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:33:47]wFMCommunicate OK [18:33:47]SAM_PROTO_GetShiftState done [18:33:47]FM_GetShiftState done [18:33:47]req_shift_opened done [18:33:47]requested_item shift.open_date is exist - process it [18:33:47]req_shift_open_date [18:33:47]req_shift_open_date done [18:33:47]produce_requested_data done [18:33:47]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2501,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [18:33:47]process_action_free close_receipt [18:33:47]json_value_free [18:33:47]json_value_free done [18:33:47]process_json_proto returns [18:33:47]Send response to host [18:33:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2501,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [18:33:47]free response buf [18:33:47]execute_script done [18:33:47]execute_script returns [18:33:47]free content buf [18:33:47]Sock 7.Close socket [18:33:47]Sock 7.Thread stoped [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:51]OFD Sender: No OFD packet to send [18:35:56]OFD Sender: No OFD packet to send [18:36:01]OFD Sender: No OFD packet to send [18:36:06]OFD Sender: No OFD packet to send [18:36:11]OFD Sender: No OFD packet to send [18:36:16]OFD Sender: No OFD packet to send [18:36:21]OFD Sender: No OFD packet to send [18:36:23]accept exits with 9 [18:36:23]New connection [18:36:23]New thread 3066850660 created [18:36:23]Thread 3066707300 joined [18:36:23]Waiting for new connection... [18:36:23] Sock 9.Parse request [18:36:23]Sock 9.Check first char [18:36:23]Sock 9.First char is OK [18:36:23]request: POST /json_proto HTTP/1.0 [18:36:23]Method: POST [18:36:23]URL: /json_proto [18:36:23]Method is POST - this is cgi request [18:36:23]url: /json_proto [18:36:23]query_string will be loaded in cgi processing [18:36:23]execute_cgi json_proto POST (null) [18:36:23]execute_cgi path=json_proto method=POST [18:36:23]POST find Content-Length [18:36:23]Host: 172.17.52.132:8080 [18:36:23]Content-Length: 645 [18:36:23]Content-Type: application/json [18:36:23] [18:36:23]POST finish read [18:36:23]Found Content-Length = 645 [18:36:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99893", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:23]execute_script... [18:36: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 : (3)99893", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:23]POST & json_proto [18:36:23]process_json_proto [18:36:23]json parsed OK: [18:36:23]protocol is kg_v1.0 [18:36:23]action value=close_receipt [18:36:23]process_action close_receipt [18:36:23]cmd_close_receipt [18:36:23]MH_GetDate [18:36:23]Write to MH i2c: F0 00 00 F6 32 17 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: F0 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: F0 09 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: F0 09 00 F6 32 00 AD AA 12 67 5A BE F6 66 64 [18:36:23]GetLastDocTimeStamp 1729276428 [18:36:23]current date 1729276589 [18:36:23]FM_GetShiftState [18:36:23]SAM_PROTO_GetShiftState [18:36:23]wFMCommunicate request_size=4 [18:36:23]MH_SAM_APDU [18:36:23]CAPDU: 80 13 01 00 [18:36:23]Write to MH i2c: E2 08 00 F7 32 80 13 01 00 00 00 00 00 A6 [18:36:23]Write i2c OK [18:36:23]MH_I2C_Read... [18:36:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:23]Read from MH i2c: E2 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 0E 00 [18:36:23]MH_I2C_Read... [18:36:23]Read from MH i2c: E2 0E 00 F7 32 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 44 [18:36:23]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:36:23]wFMCommunicate OK [18:36:23]SAM_PROTO_GetShiftState done [18:36:23]FM_GetShiftState done [18:36:23]opened in 1729209717 [18:36:23]opened+sec_in_day 1729296117 [18:36:23]quantity*price = 13000 [18:36:23]sum+1 = 13001 [18:36:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 ÐСП 1% : 1.15 ÐДС 12% : 13.80 Ðаличными: 130.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 127 18.10.2024 18:36 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2502 ФПД: 117536403020507 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183629&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2502&fm=117536403020507&tin=02508201610067®Number=0000000000207295&sum=13000 0 [18:36:24]StoreToDocumentArchive [18:36:24]shift 22 fd 2502 [18:36:24]save to /storage/0022/doc_00002502 [18:36:24]save last doc name /storage/0022/doc_00002502 to /storage/kkm_last_doc_name [18:36:24]save OK [18:36:24]Clear old archive folders... [18:36:24]ProcessDocumentItem done err = 0, tmpTLVsize=282 [18:36:24]tlvbuf is 013BA260 [18:36:24]SAM_PROTO_ClearQueue [18:36:24]wFMCommunicate request_size=4 [18:36:24]MH_SAM_APDU [18:36:24]CAPDU: 80 09 00 00 [18:36:24]Write to MH i2c: E2 08 00 04 33 80 09 00 00 00 00 00 00 A9 [18:36:24]Write i2c OK [18:36:24]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 04 33 00 90 00 AB [18:36:25]RAPDU: 90 00 [18:36:25]wFMCommunicate OK [18:36:25]SAM_PROTO_ClearQueue done [18:36:25]KKMCreateOFDPacket [18:36:25]OFDProtocolAddRootSTLVToBuf [18:36:25]FM_MakeSignedData [18:36:25]FM_MakeSignedData [18:36:25]SAM_PROTO_SignData [18:36:25]wFMCommunicate request_size=4 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 0D 01 02 [18:36:25]Write to MH i2c: E2 08 00 05 33 80 0D 01 02 00 00 00 00 B1 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 05 33 00 90 00 AC [18:36:25]RAPDU: 90 00 [18:36:25]wFMCommunicate OK [18:36:25]wFMCommunicate request_size=255 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 7F 00 00 00 F4 03 04 00 AD AA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 [18:36:25]Write to MH i2c: E2 02 01 06 33 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 7F 00 00 00 F4 03 04 00 AD AA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 00 00 25 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 06 33 00 90 00 AD [18:36:25]RAPDU: 90 00 [18:36:25]wFMCommunicate OK [18:36:25]wFMCommunicate request_size=41 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C6 09 00 00 35 04 06 00 6A E6 13 8C DA DB [18:36:25]Write to MH i2c: E2 2C 00 07 33 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C6 09 00 00 35 04 06 00 6A E6 13 8C DA DB 00 00 EB [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 03 00 07 33 00 90 00 AE [18:36:25]RAPDU: 90 00 [18:36:25]wFMCommunicate OK [18:36:25]wFMCommunicate request_size=4 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 0D 03 02 [18:36:25]Write to MH i2c: E2 08 00 08 33 80 0D 03 02 00 00 00 00 B6 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 0B 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 0B 00 08 33 00 A9 73 5E D9 E3 B5 B9 B9 90 00 14 [18:36:25]RAPDU: A9 73 5E D9 E3 B5 B9 B9 90 00 [18:36:25]wFMCommunicate OK [18:36:25]SAM_PROTO_SignData done [18:36:25]FM_MakeSignedData done [18:36:25]CreateOFDProtocolMessage [18:36:25]wFMCommunicate request_size=4 [18:36:25]MH_SAM_APDU [18:36:25]CAPDU: 80 11 00 00 [18:36:25]Write to MH i2c: E2 08 00 09 33 80 11 00 00 00 00 00 00 B6 [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:25]Read from MH i2c: E2 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 17 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: E2 17 00 09 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 FE [18:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:36:25]wFMCommunicate OK [18:36:25]CreateOFDProtocolMessage done [18:36:25]OFDSenderStorePacket 2502 [18:36:25]StoreOFDPacket docnum=2502 [18:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 58 B4 26 01 43 EE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 7F 00 00 00 F4 03 04 00 AD AA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C6 09 00 00 35 04 06 00 6A E6 13 8C DA DB A9 73 5E D9 E3 B5 B9 B9 [18:36:25]CheckFolder [18:36:25]dirname=/storage/ofd_packets [18:36:25]CheckFolder done [18:36:25]ProducePacketName [18:36:25]name=ofd_packets/00002502 [18:36:25]NVStorageSaveData ofd_packets/00002502 [18:36:25]File name is /storage/ofd_packets/00002502 [18:36:25]Write 332 bytes [18:36:25]NVStorageSaveData done [18:36:25]OFDSenderStorePacket done [18:36:25]KKMCreateOFDPacket done [18:36:25]NVStorageSaveData kkm_last_timestamp [18:36:25]File name is /storage/kkm_last_timestamp [18:36:25]Write 4 bytes [18:36:25]NVStorageSaveData done [18:36:25]ExternCall_PrintAddStr [18:36:25]wPrintStart [18:36:25]Write to MH i2c: 01 00 00 0A 33 3D [18:36:25]Write i2c OK [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 07 00 [18:36:25]MH_I2C_Read... [18:36:25]Read from MH i2c: 01 07 00 0A 33 00 00 00 00 00 FF 0F 52 [18:36:25]RasterBufferAndPrint [18:36:25]line Счет N : (3)99893 [18:36:25]line ИÐÐ: 02508201610067 [18:36:25]line Контрольно-КаÑÑовый Чек [18:36:25]line ПРОДÐЖР[18:36:25]line Товар: 2000036220012 [18:36:25]line Кофе Капучино XL(GABB TRADE) [18:36:25]line 1.000 * 130.00 [18:36:25]line = 130.00 [18:36:25]line ÐДС 12% ÐСП 1% [18:36:25]line > о реализуемом товаре [18:36:25]line ИТОГО: 130.00 [18:36:25]line ÐСП 1% : 1.15 [18:36:25]line ÐДС 12% : 13.80 [18:36:25]line Ðаличными: 130.00 [18:36:25]line Безнал.: 0.00 [18:36:25]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [18:36:25]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [18:36:25]line СÐО: Общий режим [18:36:25]line Чек 127 18.10.2024 18:36 [18:36:25]line Смена: 22 ФФД: 1.0 [18:36:25]line ЗÐМ: 0300000191 [18:36:25]line РÐМ: 0000000000207295 [18:36:25]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [18:36:25]line ФМ: 0000000002342820 [18:36:25]line ФД: 2502 [18:36:25]line ФПД: 117536403020507 [18:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183629&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2502&fm=117536403020507&tin=02508201610067®Number=0000000000207295&sum=13000 [18:36:25]line 0 [18:36:25]OFD Sender: Processing packet 2502 [packets to send 1, broken 0] [18:36:25]ProducePacketName [18:36:25]name=ofd_packets/00002502 [18:36:25]OFD Sender: To server: ‡•öpG, [18:36:25]CommunicateWithHost lk.salyk.kg:30040 [18:36:25]ConnectInit lk.salyk.kg [18:36:25]written 0, free lines is 4095 [18:36:26]Connected sock=7 [18:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 58 B4 26 01 43 EE 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 7F 00 00 00 F4 03 04 00 AD AA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C6 09 00 00 35 04 06 00 6A E6 13 8C DA DB A9 73 5E D9 E3 B5 B9 B9 [18:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 85 9F 47 00 3E 52 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C6 09 00 00 F4 03 04 00 10 56 12 67 B6 04 01 00 00 9F 78 10 DE FB 20 B2 78 [18:36:26]CommunicateWithHost err = 0 [18:36:26]CheckOFDResponse [18:36:26]1017 (14) - 77093643461234 [18:36:26]1041 (16) - 0000000002342820 [18:36:26]1040 (4) - 2502 [18:36:26]1012 (4) - 18.10.2024 12:35 [18:36:26]1206 (1) - 0 [18:36:26]OFD Sender: Remove packet 2502 [18:36:26]ProducePacketName [18:36:26]name=ofd_packets/00002502 [18:36:26]NVStorageDeleteData [18:36:26]Write to MH i2c: 01 00 00 33 33 66 [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 07 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: 01 07 00 33 33 00 00 00 00 00 C8 0C 41 [18:36:26]RasterBufferAndPrint [18:36:26]line [18:36:26]line [18:36:26]line [18:36:26]line [18:36:26]line [18:36:26]written 0, free lines is 3278 [18:36:26]MH_Cut [18:36:26]Write to MH i2c: D1 01 00 3A 33 01 3F [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: D1 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: D1 01 00 [18:36:26]MH_I2C_Read... [18:36:26]Read from MH i2c: D1 01 00 3A 33 00 3E [18:36:26]Write to MH i2c: 01 00 00 3B 33 6E [18:36:26]Write i2c OK [18:36:26]MH_I2C_Read... [18:36:26]OFD Sender: No OFD packet to send [18:36:27]*** Cut start [18:36:27]*** Partial cut [18:36:27]*** CUTSNS_PIN = 1 [18:36:27]*** CUTSNS_PIN = 0 [18:36:27]*** Brake cut motor [18:36:27]Read from MH i2c: 01 [18:36:27]MH_I2C_Read... [18:36:27]*** Stop cut motor [18:36:27]*** Cut end [18:36:27]Read from MH i2c: 01 07 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: 01 07 00 3B 33 00 00 00 00 00 FF 0F 83 [18:36:27]process_action close_receipt done [18:36:27]requested_data is exist [18:36:27]produce_requested_data [18:36:27]requested_item fm.sn is exist - process it [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 11 00 00 [18:36:27]Write to MH i2c: E2 08 00 3C 33 80 11 00 00 00 00 00 00 E9 [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 17 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 17 00 3C 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 31 [18:36:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:36:27]wFMCommunicate OK [18:36:27]requested_item fd.num is exist - process it [18:36:27]SAM_PROTO_GetFieldsCounters [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 13 00 00 [18:36:27]Write to MH i2c: E2 08 00 3D 33 80 13 00 00 00 00 00 00 EC [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:27]Read from MH i2c: E2 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 62 00 [18:36:27]MH_I2C_Read... [18:36:27]Read from MH i2c: E2 62 00 3D 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C6 09 00 00 0E 04 04 00 16 00 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 64 [18:36:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C6 09 00 00 0E 04 04 00 16 00 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 [18:36:27]wFMCommunicate OK [18:36:27]SAM_PROTO_GetFieldsCounters done [18:36:27]requested_item shift.num is exist - process it [18:36:27]requested_item shift.opened is exist - process it [18:36:27]req_shift_opened [18:36:27]FM_GetShiftState [18:36:27]SAM_PROTO_GetShiftState [18:36:27]wFMCommunicate request_size=4 [18:36:27]MH_SAM_APDU [18:36:27]CAPDU: 80 13 01 00 [18:36:27]Write to MH i2c: E2 08 00 3E 33 80 13 01 00 00 00 00 00 EE [18:36:27]Write i2c OK [18:36:27]MH_I2C_Read... [18:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:28]Read from MH i2c: E2 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: E2 0E 00 [18:36:28]MH_I2C_Read... [18:36:28]Read from MH i2c: E2 0E 00 3E 33 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 8C [18:36:28]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:36:28]wFMCommunicate OK [18:36:28]SAM_PROTO_GetShiftState done [18:36:28]FM_GetShiftState done [18:36:28]req_shift_opened done [18:36:28]requested_item shift.open_date is exist - process it [18:36:28]req_shift_open_date [18:36:28]req_shift_open_date done [18:36:28]produce_requested_data done [18:36:28]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2502,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [18:36:28]process_action_free close_receipt [18:36:28]json_value_free [18:36:28]json_value_free done [18:36:28]process_json_proto returns [18:36:28]Send response to host [18:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2502,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [18:36:28]free response buf [18:36:28]execute_script done [18:36:28]execute_script returns [18:36:28]free content buf [18:36:28]Sock 9.Close socket [18:36:28]Sock 9.Thread stoped [18:36:31]OFD Sender: No OFD packet to send [18:36:36]OFD Sender: No OFD packet to send [18:36:41]OFD Sender: No OFD packet to send [18:36:46]OFD Sender: No OFD packet to send [18:36:51]OFD Sender: No OFD packet to send [18:36:56]OFD Sender: No OFD packet to send [18:37:01]OFD Sender: No OFD packet to send [18:37:06]OFD Sender: No OFD packet to send [18:37:11]OFD Sender: No OFD packet to send [18:37:16]OFD Sender: No OFD packet to send [18:37:21]OFD Sender: No OFD packet to send [18:37:26]OFD Sender: No OFD packet to send [18:37:31]OFD Sender: No OFD packet to send [18:37:36]OFD Sender: No OFD packet to send [18:37:41]OFD Sender: No OFD packet to send [18:37:46]OFD Sender: No OFD packet to send [18:37:51]OFD Sender: No OFD packet to send [18:37:52]accept exits with 10 [18:37:52]New connection [18:37:52]New thread 3066707300 created [18:37:52]Thread 3066850660 joined [18:37:52]Waiting for new connection... [18:37:52] Sock 10.Parse request [18:37:52]Sock 10.Check first char [18:37:52]Sock 10.First char is OK [18:37:52]request: POST /json_proto HTTP/1.0 [18:37:52]Method: POST [18:37:52]URL: /json_proto [18:37:52]Method is POST - this is cgi request [18:37:52]url: /json_proto [18:37:52]query_string will be loaded in cgi processing [18:37:52]execute_cgi json_proto POST (null) [18:37:52]execute_cgi path=json_proto method=POST [18:37:52]POST find Content-Length [18:37:52]Host: 172.17.52.132:8080 [18:37:52]Content-Length: 623 [18:37:52]Content-Type: application/json [18:37:52] [18:37:52]POST finish read [18:37:52]Found Content-Length = 623 [18:37:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99894", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:52]execute_script... [18:37: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 : (3)99894", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:37:52]POST & json_proto [18:37:52]process_json_proto [18:37:52]json parsed OK: [18:37:52]protocol is kg_v1.0 [18:37:52]action value=close_receipt [18:37:52]process_action close_receipt [18:37:52]cmd_close_receipt [18:37:52]MH_GetDate [18:37:52]Write to MH i2c: F0 00 00 3F 33 61 [18:37:52]Write i2c OK [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: F0 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: F0 09 00 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: F0 09 00 3F 33 00 06 AB 12 67 5A BE F6 66 08 [18:37:52]GetLastDocTimeStamp 1729276589 [18:37:52]current date 1729276678 [18:37:52]FM_GetShiftState [18:37:52]SAM_PROTO_GetShiftState [18:37:52]wFMCommunicate request_size=4 [18:37:52]MH_SAM_APDU [18:37:52]CAPDU: 80 13 01 00 [18:37:52]Write to MH i2c: E2 08 00 40 33 80 13 01 00 00 00 00 00 F0 [18:37:52]Write i2c OK [18:37:52]MH_I2C_Read... [18:37:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:52]Read from MH i2c: E2 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: E2 0E 00 [18:37:52]MH_I2C_Read... [18:37:52]Read from MH i2c: E2 0E 00 40 33 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 8E [18:37:52]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:37:52]wFMCommunicate OK [18:37:52]SAM_PROTO_GetShiftState done [18:37:52]FM_GetShiftState done [18:37:52]opened in 1729209717 [18:37:52]opened+sec_in_day 1729296117 [18:37:52]quantity*price = 15400 [18:37:52]sum+1 = 15401 [18:37:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 ÐСП 1% : 1.36 ÐДС 12% : 16.35 Ðаличными: 154.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 128 18.10.2024 18:37 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2503 ФПД: 83208859275812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183758&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2503&fm=83208859275812&tin=02508201610067®Number=0000000000207295&sum=15400 0 [18:37:54]StoreToDocumentArchive [18:37:54]shift 22 fd 2503 [18:37:54]save to /storage/0022/doc_00002503 [18:37:54]save last doc name /storage/0022/doc_00002503 to /storage/kkm_last_doc_name [18:37:54]save OK [18:37:54]Clear old archive folders... [18:37:54]ProcessDocumentItem done err = 0, tmpTLVsize=276 [18:37:54]tlvbuf is 013BA100 [18:37:54]SAM_PROTO_ClearQueue [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 09 00 00 [18:37:54]Write to MH i2c: E2 08 00 4D 33 80 09 00 00 00 00 00 00 F2 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 4D 33 00 90 00 F4 [18:37:54]RAPDU: 90 00 [18:37:54]wFMCommunicate OK [18:37:54]SAM_PROTO_ClearQueue done [18:37:54]KKMCreateOFDPacket [18:37:54]OFDProtocolAddRootSTLVToBuf [18:37:54]FM_MakeSignedData [18:37:54]FM_MakeSignedData [18:37:54]SAM_PROTO_SignData [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 0D 01 02 [18:37:54]Write to MH i2c: E2 08 00 4E 33 80 0D 01 02 00 00 00 00 FA [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 4E 33 00 90 00 F5 [18:37:54]RAPDU: 90 00 [18:37:54]wFMCommunicate OK [18:37:54]wFMCommunicate request_size=255 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 06 AB 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 [18:37:54]Write to MH i2c: E2 02 01 4F 33 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 06 AB 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 00 00 E7 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 4F 33 00 90 00 F6 [18:37:54]RAPDU: 90 00 [18:37:54]wFMCommunicate OK [18:37:54]wFMCommunicate request_size=35 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C7 09 00 00 35 04 06 00 4B AD 92 7F D2 24 [18:37:54]Write to MH i2c: E2 26 00 50 33 80 0D 02 02 1E 00 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C7 09 00 00 35 04 06 00 4B AD 92 7F D2 24 00 00 B4 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 03 00 50 33 00 90 00 F7 [18:37:54]RAPDU: 90 00 [18:37:54]wFMCommunicate OK [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 0D 03 02 [18:37:54]Write to MH i2c: E2 08 00 51 33 80 0D 03 02 00 00 00 00 FF [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 0B 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 0B 00 51 33 00 B7 EE CD A7 88 35 92 6B 90 00 D3 [18:37:54]RAPDU: B7 EE CD A7 88 35 92 6B 90 00 [18:37:54]wFMCommunicate OK [18:37:54]SAM_PROTO_SignData done [18:37:54]FM_MakeSignedData done [18:37:54]CreateOFDProtocolMessage [18:37:54]wFMCommunicate request_size=4 [18:37:54]MH_SAM_APDU [18:37:54]CAPDU: 80 11 00 00 [18:37:54]Write to MH i2c: E2 08 00 52 33 80 11 00 00 00 00 00 00 FF [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:54]Read from MH i2c: E2 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 17 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: E2 17 00 52 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 47 [18:37:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:37:54]wFMCommunicate OK [18:37:54]CreateOFDProtocolMessage done [18:37:54]OFDSenderStorePacket 2503 [18:37:54]StoreOFDPacket docnum=2503 [18:37:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 FB EE 20 01 4E 65 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 06 AB 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C7 09 00 00 35 04 06 00 4B AD 92 7F D2 24 B7 EE CD A7 88 35 92 6B [18:37:54]CheckFolder [18:37:54]dirname=/storage/ofd_packets [18:37:54]CheckFolder done [18:37:54]ProducePacketName [18:37:54]name=ofd_packets/00002503 [18:37:54]NVStorageSaveData ofd_packets/00002503 [18:37:54]File name is /storage/ofd_packets/00002503 [18:37:54]Write 326 bytes [18:37:54]NVStorageSaveData done [18:37:54]OFDSenderStorePacket done [18:37:54]KKMCreateOFDPacket done [18:37:54]NVStorageSaveData kkm_last_timestamp [18:37:54]File name is /storage/kkm_last_timestamp [18:37:54]Write 4 bytes [18:37:54]NVStorageSaveData done [18:37:54]ExternCall_PrintAddStr [18:37:54]wPrintStart [18:37:54]Write to MH i2c: 01 00 00 53 33 86 [18:37:54]Write i2c OK [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 07 00 [18:37:54]MH_I2C_Read... [18:37:54]Read from MH i2c: 01 07 00 53 33 00 00 00 00 00 FF 0F 9B [18:37:54]RasterBufferAndPrint [18:37:54]line Счет N : (3)99894 [18:37:54]line ИÐÐ: 02508201610067 [18:37:54]line Контрольно-КаÑÑовый Чек [18:37:54]line ПРОДÐЖР[18:37:54]line Товар: 48747073 [18:37:54]line Сигареты Richmond Royal Edition [18:37:54]line 1.000 * 154.00 [18:37:54]line = 154.00 [18:37:54]line ÐДС 12% ÐСП 1% [18:37:54]line > о реализуемом товаре [18:37:54]line ИТОГО: 154.00 [18:37:54]line ÐСП 1% : 1.36 [18:37:54]line ÐДС 12% : 16.35 [18:37:54]line Ðаличными: 154.00 [18:37:54]line Безнал.: 0.00 [18:37:54]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [18:37:54]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [18:37:54]line СÐО: Общий режим [18:37:54]line Чек 128 18.10.2024 18:37 [18:37:54]line Смена: 22 ФФД: 1.0 [18:37:54]line ЗÐМ: 0300000191 [18:37:54]line РÐМ: 0000000000207295 [18:37:54]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [18:37:54]line ФМ: 0000000002342820 [18:37:54]line ФД: 2503 [18:37:54]line ФПД: 83208859275812 [18:37:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T183758&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2503&fm=83208859275812&tin=02508201610067®Number=0000000000207295&sum=15400 [18:37:54]line 0 [18:37:54]OFD Sender: Processing packet 2503 [packets to send 1, broken 0] [18:37:54]ProducePacketName [18:37:54]name=ofd_packets/00002503 [18:37:54]OFD Sender: To server: ‡•öpG, [18:37:54]CommunicateWithHost lk.salyk.kg:30040 [18:37:54]ConnectInit lk.salyk.kg [18:37:54]written 0, free lines is 4095 [18:37:54]Connected sock=9 [18:37:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 FB EE 20 01 4E 65 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 00 00 00 F4 03 04 00 06 AB 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C7 09 00 00 35 04 06 00 4B AD 92 7F D2 24 B7 EE CD A7 88 35 92 6B [18:37:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 70 1E 47 00 84 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C7 09 00 00 F4 03 04 00 69 56 12 67 B6 04 01 00 00 89 05 34 20 51 1B E3 22 [18:37:55]CommunicateWithHost err = 0 [18:37:55]CheckOFDResponse [18:37:55]1017 (14) - 77093643461234 [18:37:55]1041 (16) - 0000000002342820 [18:37:55]1040 (4) - 2503 [18:37:55]1012 (4) - 18.10.2024 12:36 [18:37:55]1206 (1) - 0 [18:37:55]OFD Sender: Remove packet 2503 [18:37:55]ProducePacketName [18:37:55]name=ofd_packets/00002503 [18:37:55]NVStorageDeleteData [18:37:55]Write to MH i2c: 01 00 00 7C 33 AF [18:37:55]Write i2c OK [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: 01 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: 01 07 00 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: 01 07 00 7C 33 00 00 00 00 00 B2 0C 74 [18:37:55]RasterBufferAndPrint [18:37:55]line [18:37:55]line [18:37:55]line [18:37:55]line [18:37:55]line [18:37:55]written 0, free lines is 3254 [18:37:55]MH_Cut [18:37:55]Write to MH i2c: D1 01 00 83 33 01 88 [18:37:55]Write i2c OK [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: D1 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: D1 01 00 [18:37:55]MH_I2C_Read... [18:37:55]Read from MH i2c: D1 01 00 83 33 00 87 [18:37:55]Write to MH i2c: 01 00 00 84 33 B7 [18:37:55]Write i2c OK [18:37:55]MH_I2C_Read... [18:37:55]OFD Sender: No OFD packet to send [18:37:56]*** Cut start [18:37:56]*** Partial cut [18:37:56]*** CUTSNS_PIN = 1 [18:37:56]*** CUTSNS_PIN = 0 [18:37:56]*** Brake cut motor [18:37:56]Read from MH i2c: 01 [18:37:56]MH_I2C_Read... [18:37:56]*** Stop cut motor [18:37:56]*** Cut end [18:37:56]Read from MH i2c: 01 07 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: 01 07 00 84 33 00 00 00 00 00 FF 0F CC [18:37:56]process_action close_receipt done [18:37:56]requested_data is exist [18:37:56]produce_requested_data [18:37:56]requested_item fm.sn is exist - process it [18:37:56]wFMCommunicate request_size=4 [18:37:56]MH_SAM_APDU [18:37:56]CAPDU: 80 11 00 00 [18:37:56]Write to MH i2c: E2 08 00 85 33 80 11 00 00 00 00 00 00 32 [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:56]Read from MH i2c: E2 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 17 00 [18:37:56]MH_I2C_Read... [18:37:56]Read from MH i2c: E2 17 00 85 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 7A [18:37:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:37:56]wFMCommunicate OK [18:37:56]requested_item fd.num is exist - process it [18:37:56]SAM_PROTO_GetFieldsCounters [18:37:56]wFMCommunicate request_size=4 [18:37:56]MH_SAM_APDU [18:37:56]CAPDU: 80 13 00 00 [18:37:56]Write to MH i2c: E2 08 00 86 33 80 13 00 00 00 00 00 00 35 [18:37:56]Write i2c OK [18:37:56]MH_I2C_Read... [18:37:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:57]Read from MH i2c: E2 [18:37:57]MH_I2C_Read... [18:37:57]Read from MH i2c: E2 62 00 [18:37:57]MH_I2C_Read... [18:37:57]Read from MH i2c: E2 62 00 86 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C7 09 00 00 0E 04 04 00 16 00 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 B1 [18:37:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C7 09 00 00 0E 04 04 00 16 00 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 [18:37:57]wFMCommunicate OK [18:37:57]SAM_PROTO_GetFieldsCounters done [18:37:57]requested_item shift.num is exist - process it [18:37:57]requested_item shift.opened is exist - process it [18:37:57]req_shift_opened [18:37:57]FM_GetShiftState [18:37:57]SAM_PROTO_GetShiftState [18:37:57]wFMCommunicate request_size=4 [18:37:57]MH_SAM_APDU [18:37:57]CAPDU: 80 13 01 00 [18:37:57]Write to MH i2c: E2 08 00 87 33 80 13 01 00 00 00 00 00 37 [18:37:57]Write i2c OK [18:37:57]MH_I2C_Read... [18:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:57]Read from MH i2c: E2 [18:37:57]MH_I2C_Read... [18:37:57]Read from MH i2c: E2 0E 00 [18:37:57]MH_I2C_Read... [18:37:57]Read from MH i2c: E2 0E 00 87 33 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D5 [18:37:57]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:37:57]wFMCommunicate OK [18:37:57]SAM_PROTO_GetShiftState done [18:37:57]FM_GetShiftState done [18:37:57]req_shift_opened done [18:37:57]requested_item shift.open_date is exist - process it [18:37:57]req_shift_open_date [18:37:57]req_shift_open_date done [18:37:57]produce_requested_data done [18:37:57]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2503,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [18:37:57]process_action_free close_receipt [18:37:57]json_value_free [18:37:57]json_value_free done [18:37:57]process_json_proto returns [18:37:57]Send response to host [18:37:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2503,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [18:37:57]free response buf [18:37:57]execute_script done [18:37:57]execute_script returns [18:37:57]free content buf [18:37:57]Sock 10.Close socket [18:37:57]Sock 10.Thread stoped [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:30]OFD Sender: No OFD packet to send [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:45]OFD Sender: No OFD packet to send [18:39:50]OFD Sender: No OFD packet to send [18:39:55]OFD Sender: No OFD packet to send [18:40:00]OFD Sender: No OFD packet to send [18:40:05]OFD Sender: No OFD packet to send [18:40:10]OFD Sender: No OFD packet to send [18:40:15]OFD Sender: No OFD packet to send [18:40:20]OFD Sender: No OFD packet to send [18:40:25]OFD Sender: No OFD packet to send [18:40:30]OFD Sender: No OFD packet to send [18:40:35]OFD Sender: No OFD packet to send [18:40:40]OFD Sender: No OFD packet to send [18:40:45]OFD Sender: No OFD packet to send [18:40:50]OFD Sender: No OFD packet to send [18:40:55]OFD Sender: No OFD packet to send [18:41:00]OFD Sender: No OFD packet to send [18:41:05]OFD Sender: No OFD packet to send [18:41:10]OFD Sender: No OFD packet to send [18:41:15]OFD Sender: No OFD packet to send [18:41:20]OFD Sender: No OFD packet to send [18:41:25]OFD Sender: No OFD packet to send [18:41:30]OFD Sender: No OFD packet to send [18:41:35]OFD Sender: No OFD packet to send [18:41:40]OFD Sender: No OFD packet to send [18:41:45]OFD Sender: No OFD packet to send [18:41:50]OFD Sender: No OFD packet to send [18:41:55]OFD Sender: No OFD packet to send [18:42:00]OFD Sender: No OFD packet to send [18:42:05]OFD Sender: No OFD packet to send [18:42:10]OFD Sender: No OFD packet to send [18:42:15]OFD Sender: No OFD packet to send [18:42:20]OFD Sender: No OFD packet to send [18:42:25]OFD Sender: No OFD packet to send [18:42:30]OFD Sender: No OFD packet to send [18:42:35]OFD Sender: No OFD packet to send [18:42:40]OFD Sender: No OFD packet to send [18:42:45]OFD Sender: No OFD packet to send [18:42:50]OFD Sender: No OFD packet to send [18:42:55]OFD Sender: No OFD packet to send [18:43:00]OFD Sender: No OFD packet to send [18:43:05]OFD Sender: No OFD packet to send [18:43:10]OFD Sender: No OFD packet to send [18:43:15]OFD Sender: No OFD packet to send [18:43:20]OFD Sender: No OFD packet to send [18:43:25]OFD Sender: No OFD packet to send [18:43:30]OFD Sender: No OFD packet to send [18:43:35]OFD Sender: No OFD packet to send [18:43:40]OFD Sender: No OFD packet to send [18:43:45]OFD Sender: No OFD packet to send [18:43:50]OFD Sender: No OFD packet to send [18:43:55]OFD Sender: No OFD packet to send [18:44:00]OFD Sender: No OFD packet to send [18:44:05]OFD Sender: No OFD packet to send [18:44:10]OFD Sender: No OFD packet to send [18:44:15]OFD Sender: No OFD packet to send [18:44:20]OFD Sender: No OFD packet to send [18:44:25]OFD Sender: No OFD packet to send [18:44:30]OFD Sender: No OFD packet to send [18:44:35]OFD Sender: No OFD packet to send [18:44:40]OFD Sender: No OFD packet to send [18:44:45]OFD Sender: No OFD packet to send [18:44:50]OFD Sender: No OFD packet to send [18:44:56]OFD Sender: No OFD packet to send [18:45:01]OFD Sender: No OFD packet to send [18:45:06]OFD Sender: No OFD packet to send [18:45:11]OFD Sender: No OFD packet to send [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:06]OFD Sender: No OFD packet to send [18:46:11]OFD Sender: No OFD packet to send [18:46:16]OFD Sender: No OFD packet to send [18:46:21]OFD Sender: No OFD packet to send [18:46:26]OFD Sender: No OFD packet to send [18:46:31]OFD Sender: No OFD packet to send [18:46:36]OFD Sender: No OFD packet to send [18:46:41]OFD Sender: No OFD packet to send [18:46:46]OFD Sender: No OFD packet to send [18:46:51]OFD Sender: No OFD packet to send [18:46:56]OFD Sender: No OFD packet to send [18:47:01]OFD Sender: No OFD packet to send [18:47:06]OFD Sender: No OFD packet to send [18:47:11]OFD Sender: No OFD packet to send [18:47:16]OFD Sender: No OFD packet to send [18:47:21]OFD Sender: No OFD packet to send [18:47:26]OFD Sender: No OFD packet to send [18:47:31]OFD Sender: No OFD packet to send [18:47:36]OFD Sender: No OFD packet to send [18:47:41]OFD Sender: No OFD packet to send [18:47:46]OFD Sender: No OFD packet to send [18:47:51]OFD Sender: No OFD packet to send [18:47:56]OFD Sender: No OFD packet to send [18:48:01]OFD Sender: No OFD packet to send [18:48:06]OFD Sender: No OFD packet to send [18:48:11]OFD Sender: No OFD packet to send [18:48:16]OFD Sender: No OFD packet to send [18:48:21]OFD Sender: No OFD packet to send [18:48:26]OFD Sender: No OFD packet to send [18:48:31]OFD Sender: No OFD packet to send [18:48:36]OFD Sender: No OFD packet to send [18:48:41]OFD Sender: No OFD packet to send [18:48:46]OFD Sender: No OFD packet to send [18:48:51]OFD Sender: No OFD packet to send [18:48:56]OFD Sender: No OFD packet to send [18:49:01]OFD Sender: No OFD packet to send [18:49:06]OFD Sender: No OFD packet to send [18:49:11]OFD Sender: No OFD packet to send [18:49:16]OFD Sender: No OFD packet to send [18:49:21]OFD Sender: No OFD packet to send [18:49:26]OFD Sender: No OFD packet to send [18:49:31]OFD Sender: No OFD packet to send [18:49:36]OFD Sender: No OFD packet to send [18:49:41]OFD Sender: No OFD packet to send [18:49:46]OFD Sender: No OFD packet to send [18:49:51]OFD Sender: No OFD packet to send [18:49:56]OFD Sender: No OFD packet to send [18:50:01]OFD Sender: No OFD packet to send [18:50:06]OFD Sender: No OFD packet to send [18:50:11]OFD Sender: No OFD packet to send [18:50:16]OFD Sender: No OFD packet to send [18:50:21]OFD Sender: No OFD packet to send [18:50:26]OFD Sender: No OFD packet to send [18:50:31]OFD Sender: No OFD packet to send [18:50:36]OFD Sender: No OFD packet to send [18:50:41]OFD Sender: No OFD packet to send [18:50:46]OFD Sender: No OFD packet to send [18:50:51]OFD Sender: No OFD packet to send [18:50:56]OFD Sender: No OFD packet to send [18:51:01]OFD Sender: No OFD packet to send [18:51:06]OFD Sender: No OFD packet to send [18:51:11]OFD Sender: No OFD packet to send [18:51:16]OFD Sender: No OFD packet to send [18:51:21]OFD Sender: No OFD packet to send [18:51:26]OFD Sender: No OFD packet to send [18:51:31]OFD Sender: No OFD packet to send [18:51:36]OFD Sender: No OFD packet to send [18:51:41]OFD Sender: No OFD packet to send [18:51:46]OFD Sender: No OFD packet to send [18:51:51]OFD Sender: No OFD packet to send [18:51:56]OFD Sender: No OFD packet to send [18:52:01]OFD Sender: No OFD packet to send [18:52:06]OFD Sender: No OFD packet to send [18:52:11]OFD Sender: No OFD packet to send [18:52:16]OFD Sender: No OFD packet to send [18:52:21]OFD Sender: No OFD packet to send [18:52:26]OFD Sender: No OFD packet to send [18:52:31]OFD Sender: No OFD packet to send [18:52:36]OFD Sender: No OFD packet to send [18:52:41]OFD Sender: No OFD packet to send [18:52:46]OFD Sender: No OFD packet to send [18:52:51]OFD Sender: No OFD packet to send [18:52:56]OFD Sender: No OFD packet to send [18:53:01]OFD Sender: No OFD packet to send [18:53:06]OFD Sender: No OFD packet to send [18:53:11]OFD Sender: No OFD packet to send [18:53:16]OFD Sender: No OFD packet to send [18:53:21]OFD Sender: No OFD packet to send [18:53:26]OFD Sender: No OFD packet to send [18:53:31]OFD Sender: No OFD packet to send [18:53:36]OFD Sender: No OFD packet to send [18:53:41]OFD Sender: No OFD packet to send [18:53:46]OFD Sender: No OFD packet to send [18:53:51]OFD Sender: No OFD packet to send [18:53:56]OFD Sender: No OFD packet to send [18:54:01]OFD Sender: No OFD packet to send [18:54:06]OFD Sender: No OFD packet to send [18:54:11]OFD Sender: No OFD packet to send [18:54:16]OFD Sender: No OFD packet to send [18:54:21]OFD Sender: No OFD packet to send [18:54:26]OFD Sender: No OFD packet to send [18:54:31]OFD Sender: No OFD packet to send [18:54:36]OFD Sender: No OFD packet to send [18:54:41]OFD Sender: No OFD packet to send [18:54:46]OFD Sender: No OFD packet to send [18:54:51]OFD Sender: No OFD packet to send [18:54:56]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:11]OFD Sender: No OFD packet to send [18:57:16]OFD Sender: No OFD packet to send [18:57:21]OFD Sender: No OFD packet to send [18:57:26]OFD Sender: No OFD packet to send [18:57:30]accept exits with 7 [18:57:30]New connection [18:57:30]New thread 3066850660 created [18:57:30]Thread 3066707300 joined [18:57:30]Waiting for new connection... [18:57:30] Sock 7.Parse request [18:57:30]Sock 7.Check first char [18:57:30]Sock 7.First char is OK [18:57:30]request: POST /json_proto HTTP/1.0 [18:57:30]Method: POST [18:57:30]URL: /json_proto [18:57:30]Method is POST - this is cgi request [18:57:30]url: /json_proto [18:57:30]query_string will be loaded in cgi processing [18:57:30]execute_cgi json_proto POST (null) [18:57:30]execute_cgi path=json_proto method=POST [18:57:30]POST find Content-Length [18:57:30]Host: 172.17.52.132:8080 [18:57:30]Content-Length: 770 [18:57:30]Content-Type: application/json [18:57:30] [18:57:30]POST finish read [18:57:30]Found Content-Length = 770 [18:57:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99895", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.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: Mbank", "payments": [ { "type": 1, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:30]execute_script... [18:57: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 : (3)99895", "tax_sys" : 0, "items" : [ { "code": "4700000310326", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 1\u043B \u0431/\u0433", "price" : 35.00, "quantity" : 1.000, "sum" : 35.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: Mbank", "payments": [ { "type": 1, "sum" : 35.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:30]POST & json_proto [18:57:30]process_json_proto [18:57:30]json parsed OK: [18:57:30]protocol is kg_v1.0 [18:57:30]action value=close_receipt [18:57:30]process_action close_receipt [18:57:30]cmd_close_receipt [18:57:30]MH_GetDate [18:57:30]Write to MH i2c: F0 00 00 88 33 AA [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: F0 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: F0 09 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: F0 09 00 88 33 00 A0 AF 12 67 5A BE F6 66 EF [18:57:30]GetLastDocTimeStamp 1729276678 [18:57:30]current date 1729277856 [18:57:30]FM_GetShiftState [18:57:30]SAM_PROTO_GetShiftState [18:57:30]wFMCommunicate request_size=4 [18:57:30]MH_SAM_APDU [18:57:30]CAPDU: 80 13 01 00 [18:57:30]Write to MH i2c: E2 08 00 89 33 80 13 01 00 00 00 00 00 39 [18:57:30]Write i2c OK [18:57:30]MH_I2C_Read... [18:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:30]Read from MH i2c: E2 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 0E 00 [18:57:30]MH_I2C_Read... [18:57:30]Read from MH i2c: E2 0E 00 89 33 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D7 [18:57:30]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:57:30]wFMCommunicate OK [18:57:30]SAM_PROTO_GetShiftState done [18:57:30]FM_GetShiftState done [18:57:30]opened in 1729209717 [18:57:30]opened+sec_in_day 1729296117 [18:57:30]quantity*price = 3500 [18:57:30]sum+1 = 3501 [18:57:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 35.00 ÐСП 1% : 0.31 ÐДС 12% : 3.72 Ðаличными: 0.00 Безнал.: 35.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 129 18.10.2024 18:57 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank ФМ: 0000000002342820 ФД: 2504 ФПД: 19979503343018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185736&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2504&fm=19979503343018&tin=02508201610067®Number=0000000000207295&sum=3500 0 [18:57:31]StoreToDocumentArchive [18:57:31]shift 22 fd 2504 [18:57:31]save to /storage/0022/doc_00002504 [18:57:31]save last doc name /storage/0022/doc_00002504 to /storage/kkm_last_doc_name [18:57:31]save OK [18:57:31]Clear old archive folders... [18:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=275 [18:57:31]tlvbuf is 0133DCC0 [18:57:31]SAM_PROTO_ClearQueue [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 09 00 00 [18:57:31]Write to MH i2c: E2 08 00 96 33 80 09 00 00 00 00 00 00 3B [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:31]Read from MH i2c: E2 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 [18:57:31]MH_I2C_Read... [18:57:31]Read from MH i2c: E2 03 00 96 33 00 90 00 3D [18:57:31]RAPDU: 90 00 [18:57:31]wFMCommunicate OK [18:57:31]SAM_PROTO_ClearQueue done [18:57:31]KKMCreateOFDPacket [18:57:31]OFDProtocolAddRootSTLVToBuf [18:57:31]FM_MakeSignedData [18:57:31]FM_MakeSignedData [18:57:31]SAM_PROTO_SignData [18:57:31]wFMCommunicate request_size=4 [18:57:31]MH_SAM_APDU [18:57:31]CAPDU: 80 0D 01 02 [18:57:31]Write to MH i2c: E2 08 00 97 33 80 0D 01 02 00 00 00 00 43 [18:57:31]Write i2c OK [18:57:31]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 03 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 03 00 97 33 00 90 00 3E [18:57:32]RAPDU: 90 00 [18:57:32]wFMCommunicate OK [18:57:32]wFMCommunicate request_size=255 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 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 00 00 00 00 00 00 39 04 06 00 AC 0D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A0 AF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 [18:57:32]Write to MH i2c: E2 02 01 98 33 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 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 00 00 00 00 00 00 39 04 06 00 AC 0D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A0 AF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 00 00 8A [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 03 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 03 00 98 33 00 90 00 3F [18:57:32]RAPDU: 90 00 [18:57:32]wFMCommunicate OK [18:57:32]wFMCommunicate request_size=34 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C8 09 00 00 35 04 06 00 12 2B D7 33 15 AA [18:57:32]Write to MH i2c: E2 25 00 99 33 80 0D 02 02 1D 00 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C8 09 00 00 35 04 06 00 12 2B D7 33 15 AA 00 00 D3 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 03 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 03 00 99 33 00 90 00 40 [18:57:32]RAPDU: 90 00 [18:57:32]wFMCommunicate OK [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 0D 03 02 [18:57:32]Write to MH i2c: E2 08 00 9A 33 80 0D 03 02 00 00 00 00 48 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 0B 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 0B 00 9A 33 00 78 1D 11 21 CC 04 53 1D 90 00 50 [18:57:32]RAPDU: 78 1D 11 21 CC 04 53 1D 90 00 [18:57:32]wFMCommunicate OK [18:57:32]SAM_PROTO_SignData done [18:57:32]FM_MakeSignedData done [18:57:32]CreateOFDProtocolMessage [18:57:32]wFMCommunicate request_size=4 [18:57:32]MH_SAM_APDU [18:57:32]CAPDU: 80 11 00 00 [18:57:32]Write to MH i2c: E2 08 00 9B 33 80 11 00 00 00 00 00 00 48 [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:32]Read from MH i2c: E2 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 17 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: E2 17 00 9B 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 90 [18:57:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:57:32]wFMCommunicate OK [18:57:32]CreateOFDProtocolMessage done [18:57:32]OFDSenderStorePacket 2504 [18:57:32]StoreOFDPacket docnum=2504 [18:57:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 27 01 00 00 52 A0 1F 01 1F C1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 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 00 00 00 00 00 00 39 04 06 00 AC 0D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A0 AF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C8 09 00 00 35 04 06 00 12 2B D7 33 15 AA 78 1D 11 21 CC 04 53 1D [18:57:32]CheckFolder [18:57:32]dirname=/storage/ofd_packets [18:57:32]CheckFolder done [18:57:32]ProducePacketName [18:57:32]name=ofd_packets/00002504 [18:57:32]NVStorageSaveData ofd_packets/00002504 [18:57:32]File name is /storage/ofd_packets/00002504 [18:57:32]Write 325 bytes [18:57:32]NVStorageSaveData done [18:57:32]OFDSenderStorePacket done [18:57:32]KKMCreateOFDPacket done [18:57:32]NVStorageSaveData kkm_last_timestamp [18:57:32]File name is /storage/kkm_last_timestamp [18:57:32]Write 4 bytes [18:57:32]NVStorageSaveData done [18:57:32]ExternCall_PrintAddStr [18:57:32]wPrintStart [18:57:32]Write to MH i2c: 01 00 00 9C 33 CF [18:57:32]Write i2c OK [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: 01 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: 01 07 00 [18:57:32]MH_I2C_Read... [18:57:32]Read from MH i2c: 01 07 00 9C 33 00 00 00 00 00 FF 0F E4 [18:57:32]RasterBufferAndPrint [18:57:32]line Счет N : (3)99895 [18:57:32]line ИÐÐ: 02508201610067 [18:57:32]line Контрольно-КаÑÑовый Чек [18:57:32]line ПРОДÐЖР[18:57:32]line Товар: 4700000310326 [18:57:32]line Вода Ðдыгене 1л б/г [18:57:32]line 1.000 * 35.00 [18:57:32]line = 35.00 [18:57:32]line ÐДС 12% ÐСП 1% [18:57:32]line > о реализуемом товаре [18:57:32]line ИТОГО: 35.00 [18:57:32]line ÐСП 1% : 0.31 [18:57:32]line ÐДС 12% : 3.72 [18:57:32]line Ðаличными: 0.00 [18:57:32]line Безнал.: 35.00 [18:57:32]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [18:57:32]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [18:57:32]line СÐО: Общий режим [18:57:32]line Чек 129 18.10.2024 18:57 [18:57:32]line Смена: 22 ФФД: 1.0 [18:57:32]line ЗÐМ: 0300000191 [18:57:32]line РÐМ: 0000000000207295 [18:57:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [18:57:32]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Mbank [18:57:32]line ФМ: 0000000002342820 [18:57:32]line ФД: 2504 [18:57:32]line ФПД: 19979503343018 [18:57:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T185736&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2504&fm=19979503343018&tin=02508201610067®Number=0000000000207295&sum=3500 [18:57:32]line 0 [18:57:32]OFD Sender: Processing packet 2504 [packets to send 1, broken 0] [18:57:32]ProducePacketName [18:57:32]name=ofd_packets/00002504 [18:57:32]OFD Sender: To server: ‡•öpG, [18:57:32]CommunicateWithHost lk.salyk.kg:30040 [18:57:32]ConnectInit lk.salyk.kg [18:57:32]written 0, free lines is 4095 [18:57:32]Connected sock=10 [18:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 27 01 00 00 52 A0 1F 01 1F C1 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 33 32 36 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 31 D0 BB 20 D0 B1 2F D0 B3 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 00 00 00 00 00 00 39 04 06 00 AC 0D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 A0 AF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C8 09 00 00 35 04 06 00 12 2B D7 33 15 AA 78 1D 11 21 CC 04 53 1D [18:57:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CF A2 47 00 D7 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 32 33 34 32 38 32 30 10 04 04 00 C8 09 00 00 F4 03 04 00 03 5B 12 67 B6 04 01 00 00 53 9C 50 62 FD 0A EC 98 [18:57:33]CommunicateWithHost err = 0 [18:57:33]CheckOFDResponse [18:57:33]1017 (14) - 77093643461234 [18:57:33]1041 (16) - 0000000002342820 [18:57:33]1040 (4) - 2504 [18:57:33]1012 (4) - 18.10.2024 12:56 [18:57:33]1206 (1) - 0 [18:57:33]OFD Sender: Remove packet 2504 [18:57:33]ProducePacketName [18:57:33]name=ofd_packets/00002504 [18:57:33]NVStorageDeleteData [18:57:33]Write to MH i2c: 01 00 00 C5 33 F8 [18:57:33]Write i2c OK [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: 01 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: 01 07 00 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: 01 07 00 C5 33 00 00 00 00 00 BC 0C C7 [18:57:33]RasterBufferAndPrint [18:57:33]line [18:57:33]line [18:57:33]line [18:57:33]line [18:57:33]line [18:57:33]written 0, free lines is 3267 [18:57:33]MH_Cut [18:57:33]Write to MH i2c: D1 01 00 CC 33 01 D1 [18:57:33]Write i2c OK [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: D1 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: D1 01 00 [18:57:33]MH_I2C_Read... [18:57:33]Read from MH i2c: D1 01 00 CC 33 00 D0 [18:57:33]Write to MH i2c: 01 00 00 CD 33 00 [18:57:33]Write i2c OK [18:57:33]MH_I2C_Read... [18:57:33]OFD Sender: No OFD packet to send [18:57:34]*** Cut start [18:57:34]*** Partial cut [18:57:34]*** CUTSNS_PIN = 1 [18:57:34]*** CUTSNS_PIN = 0 [18:57:34]*** Brake cut motor [18:57:34]Read from MH i2c: 01 [18:57:34]MH_I2C_Read... [18:57:34]*** Stop cut motor [18:57:34]*** Cut end [18:57:34]Read from MH i2c: 01 07 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: 01 07 00 CD 33 00 00 00 00 00 FF 0F 15 [18:57:34]process_action close_receipt done [18:57:34]requested_data is exist [18:57:34]produce_requested_data [18:57:34]requested_item fm.sn is exist - process it [18:57:34]wFMCommunicate request_size=4 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 11 00 00 [18:57:34]Write to MH i2c: E2 08 00 CE 33 80 11 00 00 00 00 00 00 7B [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 17 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 17 00 CE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C3 [18:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [18:57:34]wFMCommunicate OK [18:57:34]requested_item fd.num is exist - process it [18:57:34]SAM_PROTO_GetFieldsCounters [18:57:34]wFMCommunicate request_size=4 [18:57:34]MH_SAM_APDU [18:57:34]CAPDU: 80 13 00 00 [18:57:34]Write to MH i2c: E2 08 00 CF 33 80 13 00 00 00 00 00 00 7E [18:57:34]Write i2c OK [18:57:34]MH_I2C_Read... [18:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:34]Read from MH i2c: E2 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 62 00 [18:57:34]MH_I2C_Read... [18:57:34]Read from MH i2c: E2 62 00 CF 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C8 09 00 00 0E 04 04 00 16 00 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 FE [18:57:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C8 09 00 00 0E 04 04 00 16 00 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 [18:57:35]wFMCommunicate OK [18:57:35]SAM_PROTO_GetFieldsCounters done [18:57:35]requested_item shift.num is exist - process it [18:57:35]requested_item shift.opened is exist - process it [18:57:35]req_shift_opened [18:57:35]FM_GetShiftState [18:57:35]SAM_PROTO_GetShiftState [18:57:35]wFMCommunicate request_size=4 [18:57:35]MH_SAM_APDU [18:57:35]CAPDU: 80 13 01 00 [18:57:35]Write to MH i2c: E2 08 00 D0 33 80 13 01 00 00 00 00 00 80 [18:57:35]Write i2c OK [18:57:35]MH_I2C_Read... [18:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:35]Read from MH i2c: E2 [18:57:35]MH_I2C_Read... [18:57:35]Read from MH i2c: E2 0E 00 [18:57:35]MH_I2C_Read... [18:57:35]Read from MH i2c: E2 0E 00 D0 33 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1E [18:57:35]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [18:57:35]wFMCommunicate OK [18:57:35]SAM_PROTO_GetShiftState done [18:57:35]FM_GetShiftState done [18:57:35]req_shift_opened done [18:57:35]requested_item shift.open_date is exist - process it [18:57:35]req_shift_open_date [18:57:35]req_shift_open_date done [18:57:35]produce_requested_data done [18:57:35]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2504,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [18:57:35]process_action_free close_receipt [18:57:35]json_value_free [18:57:35]json_value_free done [18:57:35]process_json_proto returns [18:57:35]Send response to host [18:57:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2504,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [18:57:35]free response buf [18:57:35]execute_script done [18:57:35]execute_script returns [18:57:35]free content buf [18:57:35]Sock 7.Close socket [18:57:35]Sock 7.Thread stoped [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:58]OFD Sender: No OFD packet to send [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:58]OFD Sender: No OFD packet to send [19:03:03]OFD Sender: No OFD packet to send [19:03:08]OFD Sender: No OFD packet to send [19:03:13]OFD Sender: No OFD packet to send [19:03:18]accept exits with 9 [19:03:18]New connection [19:03:18]New thread 3066707300 created [19:03:18]Thread 3066850660 joined [19:03:18]Waiting for new connection... [19:03:18] Sock 9.Parse request [19:03:18]Sock 9.Check first char [19:03:18]Sock 9.First char is OK [19:03:18]request: POST /json_proto HTTP/1.0 [19:03:18]Method: POST [19:03:18]URL: /json_proto [19:03:18]Method is POST - this is cgi request [19:03:18]url: /json_proto [19:03:18]query_string will be loaded in cgi processing [19:03:18]execute_cgi json_proto POST (null) [19:03:18]execute_cgi path=json_proto method=POST [19:03:18]POST find Content-Length [19:03:18]Host: 172.17.52.132:8080 [19:03:18]Content-Length: 853 [19:03:18]Content-Type: application/json [19:03:18] [19:03:18]POST finish read [19:03:18]Found Content-Length = 853 [19:03:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99896", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 273.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:18]execute_script... [19:03: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 : (3)99896", "tax_sys" : 0, "items" : [ { "code": "48742191", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Bond Street Blue", "price" : 134.00, "quantity" : 1.000, "sum" : 134.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 273.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:18]POST & json_proto [19:03:18]process_json_proto [19:03:18]OFD Sender: No OFD packet to send [19:03:18]json parsed OK: [19:03:18]protocol is kg_v1.0 [19:03:18]action value=close_receipt [19:03:18]process_action close_receipt [19:03:18]cmd_close_receipt [19:03:18]MH_GetDate [19:03:18]Write to MH i2c: F0 00 00 D1 33 F3 [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 09 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: F0 09 00 D1 33 00 FC B0 12 67 5A BE F6 66 95 [19:03:18]GetLastDocTimeStamp 1729277856 [19:03:18]current date 1729278204 [19:03:18]FM_GetShiftState [19:03:18]SAM_PROTO_GetShiftState [19:03:18]wFMCommunicate request_size=4 [19:03:18]MH_SAM_APDU [19:03:18]CAPDU: 80 13 01 00 [19:03:18]Write to MH i2c: E2 08 00 D2 33 80 13 01 00 00 00 00 00 82 [19:03:18]Write i2c OK [19:03:18]MH_I2C_Read... [19:03:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:18]Read from MH i2c: E2 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 0E 00 [19:03:18]MH_I2C_Read... [19:03:18]Read from MH i2c: E2 0E 00 D2 33 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 20 [19:03:18]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:03:18]wFMCommunicate OK [19:03:18]SAM_PROTO_GetShiftState done [19:03:18]FM_GetShiftState done [19:03:18]opened in 1729209717 [19:03:18]opened+sec_in_day 1729296117 [19:03:18]quantity*price = 13400 [19:03:18]sum+1 = 13401 [19:03:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48745000 Сигареты Winston Purple Mix 1.000 * 139.00 = 139.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 273.00 ÐСП 1% : 2.42 ÐДС 12% : 28.99 Ðаличными: 273.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 130 18.10.2024 19:03 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2505 ФПД: 161275045417165 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T190324&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2505&fm=161275045417165&tin=02508201610067®Number=0000000000207295&sum=27300 0 [19:03:20]StoreToDocumentArchive [19:03:20]shift 22 fd 2505 [19:03:20]save to /storage/0022/doc_00002505 [19:03:20]save last doc name /storage/0022/doc_00002505 to /storage/kkm_last_doc_name [19:03:20]save OK [19:03:20]Clear old archive folders... [19:03:20]ProcessDocumentItem done err = 0, tmpTLVsize=372 [19:03:20]tlvbuf is 0143AC40 [19:03:20]SAM_PROTO_ClearQueue [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 09 00 00 [19:03:20]Write to MH i2c: E2 08 00 DF 33 80 09 00 00 00 00 00 00 84 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 DF 33 00 90 00 86 [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]SAM_PROTO_ClearQueue done [19:03:20]KKMCreateOFDPacket [19:03:20]OFDProtocolAddRootSTLVToBuf [19:03:20]FM_MakeSignedData [19:03:20]FM_MakeSignedData [19:03:20]SAM_PROTO_SignData [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 01 02 [19:03:20]Write to MH i2c: E2 08 00 E0 33 80 0D 01 02 00 00 00 00 8C [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 E0 33 00 90 00 87 [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]wFMCommunicate request_size=255 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 02 02 FA 03 00 74 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 [19:03:20]Write to MH i2c: E2 02 01 E1 33 80 0D 02 02 FA 00 03 00 74 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 00 00 09 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 E1 33 00 90 00 88 [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]wFMCommunicate request_size=131 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 02 02 7E 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 A4 6A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FC B0 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C9 09 00 00 35 04 06 00 92 AD C5 CB 10 CD [19:03:20]Write to MH i2c: E2 86 00 E2 33 80 0D 02 02 7E 00 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 A4 6A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FC B0 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C9 09 00 00 35 04 06 00 92 AD C5 CB 10 CD 00 00 5F [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 03 00 E2 33 00 90 00 89 [19:03:20]RAPDU: 90 00 [19:03:20]wFMCommunicate OK [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 0D 03 02 [19:03:20]Write to MH i2c: E2 08 00 E3 33 80 0D 03 02 00 00 00 00 91 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 0B 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 0B 00 E3 33 00 37 E6 C3 D2 B5 A5 5D 08 90 00 03 [19:03:20]RAPDU: 37 E6 C3 D2 B5 A5 5D 08 90 00 [19:03:20]wFMCommunicate OK [19:03:20]SAM_PROTO_SignData done [19:03:20]FM_MakeSignedData done [19:03:20]CreateOFDProtocolMessage [19:03:20]wFMCommunicate request_size=4 [19:03:20]MH_SAM_APDU [19:03:20]CAPDU: 80 11 00 00 [19:03:20]Write to MH i2c: E2 08 00 E4 33 80 11 00 00 00 00 00 00 91 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:20]Read from MH i2c: E2 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 17 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: E2 17 00 E4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D9 [19:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:03:20]wFMCommunicate OK [19:03:20]CreateOFDProtocolMessage done [19:03:20]OFDSenderStorePacket 2505 [19:03:20]StoreOFDPacket docnum=2505 [19:03:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 88 01 00 00 B3 9C 80 01 4F BB 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 A4 6A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FC B0 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C9 09 00 00 35 04 06 00 92 AD C5 CB 10 CD 37 E6 C3 D2 B5 A5 5D 08 [19:03:20]CheckFolder [19:03:20]dirname=/storage/ofd_packets [19:03:20]CheckFolder done [19:03:20]ProducePacketName [19:03:20]name=ofd_packets/00002505 [19:03:20]NVStorageSaveData ofd_packets/00002505 [19:03:20]File name is /storage/ofd_packets/00002505 [19:03:20]Write 422 bytes [19:03:20]NVStorageSaveData done [19:03:20]OFDSenderStorePacket done [19:03:20]KKMCreateOFDPacket done [19:03:20]NVStorageSaveData kkm_last_timestamp [19:03:20]File name is /storage/kkm_last_timestamp [19:03:20]Write 4 bytes [19:03:20]NVStorageSaveData done [19:03:20]ExternCall_PrintAddStr [19:03:20]wPrintStart [19:03:20]Write to MH i2c: 01 00 00 E5 33 18 [19:03:20]Write i2c OK [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 [19:03:20]MH_I2C_Read... [19:03:20]Read from MH i2c: 01 07 00 E5 33 00 00 00 00 00 FF 0F 2D [19:03:20]RasterBufferAndPrint [19:03:20]line Счет N : (3)99896 [19:03:20]line ИÐÐ: 02508201610067 [19:03:20]line Контрольно-КаÑÑовый Чек [19:03:20]line ПРОДÐЖР[19:03:20]line Товар: 48742191 [19:03:20]line Сигареты Bond Street Blue [19:03:20]line 1.000 * 134.00 [19:03:20]line = 134.00 [19:03:20]line ÐДС 12% ÐСП 1% [19:03:20]line > о реализуемом товаре [19:03:20]line Товар: 48745000 [19:03:20]line Сигареты Winston Purple Mix [19:03:20]line 1.000 * 139.00 [19:03:20]line = 139.00 [19:03:20]line ÐДС 12% ÐСП 1% [19:03:20]line > о реализуемом товаре [19:03:21]line ИТОГО: 273.00 [19:03:21]line ÐСП 1% : 2.42 [19:03:21]line ÐДС 12% : 28.99 [19:03:21]line Ðаличными: 273.00 [19:03:21]line Безнал.: 0.00 [19:03:21]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [19:03:21]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [19:03:21]line СÐО: Общий режим [19:03:21]line Чек 130 18.10.2024 19:03 [19:03:21]line Смена: 22 ФФД: 1.0 [19:03:21]line ЗÐМ: 0300000191 [19:03:21]line РÐМ: 0000000000207295 [19:03:21]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [19:03:21]line ФМ: 0000000002342820 [19:03:21]line ФД: 2505 [19:03:21]line ФПД: 161275045417165 [19:03:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T190324&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2505&fm=161275045417165&tin=02508201610067®Number=0000000000207295&sum=27300 [19:03:21]line 0 [19:03:21]OFD Sender: Processing packet 2505 [packets to send 1, broken 0] [19:03:21]ProducePacketName [19:03:21]name=ofd_packets/00002505 [19:03:21]OFD Sender: To server: ‡•öpG, [19:03:21]CommunicateWithHost lk.salyk.kg:30040 [19:03:21]ConnectInit lk.salyk.kg [19:03:21]written 0, free lines is 4095 [19:03:21]Connected sock=10 [19:03:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 88 01 00 00 B3 9C 80 01 4F BB 5A 03 01 00 03 00 74 01 1E 04 01 00 01 23 04 60 00 8A 04 08 00 34 38 37 34 32 31 39 31 06 04 21 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 42 6F 6E 64 20 53 74 72 65 65 74 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 58 34 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 6A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 53 0B 00 00 00 00 07 04 06 00 A4 6A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 FC B0 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C9 09 00 00 35 04 06 00 92 AD C5 CB 10 CD 37 E6 C3 D2 B5 A5 5D 08 [19:03:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 2F 53 47 00 8A 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 C9 09 00 00 F4 03 04 00 5F 5C 12 67 B6 04 01 00 00 9C F5 C3 59 E1 43 F1 48 [19:03:21]CommunicateWithHost err = 0 [19:03:21]CheckOFDResponse [19:03:21]1017 (14) - 77093643461234 [19:03:21]1041 (16) - 0000000002342820 [19:03:21]1040 (4) - 2505 [19:03:21]1012 (4) - 18.10.2024 13:02 [19:03:21]1206 (1) - 0 [19:03:21]OFD Sender: Remove packet 2505 [19:03:21]ProducePacketName [19:03:21]name=ofd_packets/00002505 [19:03:21]NVStorageDeleteData [19:03:21]Write to MH i2c: 01 00 00 13 34 47 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 07 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: 01 07 00 13 34 00 00 00 00 00 64 0C BE [19:03:21]RasterBufferAndPrint [19:03:21]line [19:03:21]line [19:03:21]line [19:03:21]line [19:03:21]line [19:03:21]written 0, free lines is 3181 [19:03:21]MH_Cut [19:03:21]Write to MH i2c: D1 01 00 1A 34 01 20 [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 01 00 [19:03:21]MH_I2C_Read... [19:03:21]Read from MH i2c: D1 01 00 1A 34 00 1F [19:03:21]Write to MH i2c: 01 00 00 1B 34 4F [19:03:21]Write i2c OK [19:03:21]MH_I2C_Read... [19:03:21]OFD Sender: No OFD packet to send [19:03:22]*** Cut start [19:03:22]*** Partial cut [19:03:22]*** CUTSNS_PIN = 1 [19:03:22]*** CUTSNS_PIN = 0 [19:03:22]*** Brake cut motor [19:03:23]Read from MH i2c: 01 [19:03:23]MH_I2C_Read... [19:03:23]*** Stop cut motor [19:03:23]*** Cut end [19:03:23]Read from MH i2c: 01 07 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: 01 07 00 1B 34 00 00 00 00 00 FF 0F 64 [19:03:23]process_action close_receipt done [19:03:23]requested_data is exist [19:03:23]produce_requested_data [19:03:23]requested_item fm.sn is exist - process it [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 11 00 00 [19:03:23]Write to MH i2c: E2 08 00 1C 34 80 11 00 00 00 00 00 00 CA [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 17 00 1C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 12 [19:03:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:03:23]wFMCommunicate OK [19:03:23]requested_item fd.num is exist - process it [19:03:23]SAM_PROTO_GetFieldsCounters [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 13 00 00 [19:03:23]Write to MH i2c: E2 08 00 1D 34 80 13 00 00 00 00 00 00 CD [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 62 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 62 00 1D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 51 [19:03:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 [19:03:23]wFMCommunicate OK [19:03:23]SAM_PROTO_GetFieldsCounters done [19:03:23]requested_item shift.num is exist - process it [19:03:23]requested_item shift.opened is exist - process it [19:03:23]req_shift_opened [19:03:23]FM_GetShiftState [19:03:23]SAM_PROTO_GetShiftState [19:03:23]wFMCommunicate request_size=4 [19:03:23]MH_SAM_APDU [19:03:23]CAPDU: 80 13 01 00 [19:03:23]Write to MH i2c: E2 08 00 1E 34 80 13 01 00 00 00 00 00 CF [19:03:23]Write i2c OK [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 [19:03:23]MH_I2C_Read... [19:03:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:23]Read from MH i2c: E2 0E 00 [19:03:23]MH_I2C_Read... [19:03:23]Read from MH i2c: E2 0E 00 1E 34 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 6D [19:03:23]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:03:23]wFMCommunicate OK [19:03:23]SAM_PROTO_GetShiftState done [19:03:23]FM_GetShiftState done [19:03:23]req_shift_opened done [19:03:23]requested_item shift.open_date is exist - process it [19:03:23]req_shift_open_date [19:03:23]req_shift_open_date done [19:03:23]produce_requested_data done [19:03:23]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:03:23]process_action_free close_receipt [19:03:23]json_value_free [19:03:23]json_value_free done [19:03:23]process_json_proto returns [19:03:23]Send response to host [19:03:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:03:23]free response buf [19:03:23]execute_script done [19:03:23]execute_script returns [19:03:23]free content buf [19:03:23]Sock 9.Close socket [19:03:23]Sock 9.Thread stoped [19:03:26]OFD Sender: No OFD packet to send [19:03:31]OFD Sender: No OFD packet to send [19:03:36]OFD Sender: No OFD packet to send [19:03:41]OFD Sender: No OFD packet to send [19:03:46]OFD Sender: No OFD packet to send [19:03:51]OFD Sender: No OFD packet to send [19:03:56]OFD Sender: No OFD packet to send [19:04:01]OFD Sender: No OFD packet to send [19:04:06]OFD Sender: No OFD packet to send [19:04:11]OFD Sender: No OFD packet to send [19:04:16]OFD Sender: No OFD packet to send [19:04:21]OFD Sender: No OFD packet to send [19:04:26]OFD Sender: No OFD packet to send [19:04:31]OFD Sender: No OFD packet to send [19:04:36]OFD Sender: No OFD packet to send [19:04:41]OFD Sender: No OFD packet to send [19:04:46]OFD Sender: No OFD packet to send [19:04:51]OFD Sender: No OFD packet to send [19:04:56]OFD Sender: No OFD packet to send [19:05:01]OFD Sender: No OFD packet to send [19:05:06]OFD Sender: No OFD packet to send [19:05:11]OFD Sender: No OFD packet to send [19:05:16]OFD Sender: No OFD packet to send [19:05:21]OFD Sender: No OFD packet to send [19:05:26]OFD Sender: No OFD packet to send [19:05:31]OFD Sender: No OFD packet to send [19:05:36]OFD Sender: No OFD packet to send [19:05:41]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:12]accept exits with 7 [19:08:12]New connection [19:08:12]New thread 3066850660 created [19:08:12]Thread 3066707300 joined [19:08:12]Waiting for new connection... [19:08:12] Sock 7.Parse request [19:08:12]Sock 7.Check first char [19:08:12]Sock 7.First char is OK [19:08:12]request: POST /json_proto HTTP/1.0 [19:08:12]Method: POST [19:08:12]URL: /json_proto [19:08:12]Method is POST - this is cgi request [19:08:12]url: /json_proto [19:08:12]query_string will be loaded in cgi processing [19:08:12]execute_cgi json_proto POST (null) [19:08:12]execute_cgi path=json_proto method=POST [19:08:12]POST find Content-Length [19:08:12]Host: 172.17.52.132:8080 [19:08:12]Content-Length: 215 [19:08:12]Content-Type: application/json [19:08:12] [19:08:12]POST finish read [19:08:12]Found Content-Length = 215 [19:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:12]execute_script... [19:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:12]POST & json_proto [19:08:12]process_json_proto [19:08:12]json parsed OK: [19:08:12]protocol is kg_v1.0 [19:08:12]action value=get_value [19:08:12]process_action get_value [19:08:12]cmd_get_value [19:08:12]process_action get_value done [19:08:12]requested_data is exist [19:08:12]produce_requested_data [19:08:12]requested_item kkm.sn is exist - process it [19:08:12]requested_item kkm.ver is exist - process it [19:08:12]requested_item fm.sn is exist - process it [19:08:12]wFMCommunicate request_size=4 [19:08:12]MH_SAM_APDU [19:08:12]CAPDU: 80 11 00 00 [19:08:12]Write to MH i2c: E2 08 00 1F 34 80 11 00 00 00 00 00 00 CD [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:12]Read from MH i2c: E2 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 17 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 17 00 1F 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 15 [19:08:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:08:12]wFMCommunicate OK [19:08:12]requested_item fd.num is exist - process it [19:08:12]SAM_PROTO_GetFieldsCounters [19:08:12]wFMCommunicate request_size=4 [19:08:12]MH_SAM_APDU [19:08:12]CAPDU: 80 13 00 00 [19:08:12]Write to MH i2c: E2 08 00 20 34 80 13 00 00 00 00 00 00 D0 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:12]Read from MH i2c: E2 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 62 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 62 00 20 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 54 [19:08:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 [19:08:12]wFMCommunicate OK [19:08:12]SAM_PROTO_GetFieldsCounters done [19:08:12]requested_item shift.num is exist - process it [19:08:12]requested_item shift.opened is exist - process it [19:08:12]req_shift_opened [19:08:12]FM_GetShiftState [19:08:12]SAM_PROTO_GetShiftState [19:08:12]wFMCommunicate request_size=4 [19:08:12]MH_SAM_APDU [19:08:12]CAPDU: 80 13 01 00 [19:08:12]Write to MH i2c: E2 08 00 21 34 80 13 01 00 00 00 00 00 D2 [19:08:12]Write i2c OK [19:08:12]MH_I2C_Read... [19:08:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:12]Read from MH i2c: E2 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 0E 00 [19:08:12]MH_I2C_Read... [19:08:12]Read from MH i2c: E2 0E 00 21 34 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 70 [19:08:12]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:08:12]wFMCommunicate OK [19:08:12]SAM_PROTO_GetShiftState done [19:08:12]FM_GetShiftState done [19:08:12]req_shift_opened done [19:08:12]requested_item shift.open_date is exist - process it [19:08:12]req_shift_open_date [19:08:12]req_shift_open_date done [19:08:12]produce_requested_data done [19:08:12]produce_requested_data return {"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:08:12]process_action_free get_value [19:08:12]json_value_free [19:08:12]json_value_free done [19:08:12]process_json_proto returns [19:08:12]Send response to host [19:08:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:08:12]free response buf [19:08:12]execute_script done [19:08:12]execute_script returns [19:08:12]free content buf [19:08:12]Sock 7.Close socket [19:08:12]Sock 7.Thread stoped [19:08:12]accept exits with 9 [19:08:12]New connection [19:08:12]New thread 3066707300 created [19:08:12]Thread 3066850660 joined [19:08:12]Waiting for new connection... [19:08:12] Sock 9.Parse request [19:08:12]Sock 9.Check first char [19:08:12]Sock 9.First char is OK [19:08:12]request: POST /json_proto HTTP/1.0 [19:08:12]Method: POST [19:08:12]URL: /json_proto [19:08:12]Method is POST - this is cgi request [19:08:12]url: /json_proto [19:08:12]query_string will be loaded in cgi processing [19:08:12]execute_cgi json_proto POST (null) [19:08:12]execute_cgi path=json_proto method=POST [19:08:12]POST find Content-Length [19:08:12]Host: 172.17.52.132:8080 [19:08:12]Content-Length: 331 [19:08:12]Content-Type: application/json [19:08:12] [19:08:12]POST finish read [19:08:12]Found Content-Length = 331 [19:08:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:08:12]execute_script... [19:08:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:08:12]POST & json_proto [19:08:12]process_json_proto [19:08:12]json parsed OK: [19:08:12]protocol is kg_v1.0 [19:08:12]action value=get_value [19:08:12]process_action get_value [19:08:12]cmd_get_value [19:08:12]process_action get_value done [19:08:12]requested_data is exist [19:08:12]produce_requested_data [19:08:12]requested_item fm.sale.total is exist - process it [19:08:12]SAM_PROTO_GetFMData [19:08:12]wFMCommunicate request_size=4 [19:08:12]MH_SAM_APDU [19:08:12]CAPDU: 80 13 03 00 [19:08:12]Write to MH i2c: E2 08 00 22 34 80 13 03 00 00 00 00 00 D5 [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:08:13]Read from MH i2c: E2 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 FD 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 FD 00 22 34 00 BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 E5 [19:08:13]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [19:08:13]wFMCommunicate OK [19:08:13]wFMCommunicate request_size=4 [19:08:13]MH_SAM_APDU [19:08:13]CAPDU: 80 17 00 00 [19:08:13]Write to MH i2c: E2 08 00 23 34 80 17 00 00 00 00 00 00 D7 [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:13]Read from MH i2c: E2 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 FD 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 FD 00 23 34 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 EC [19:08:13]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:08:13]wFMCommunicate OK [19:08:13]wFMCommunicate request_size=4 [19:08:13]MH_SAM_APDU [19:08:13]CAPDU: 80 17 00 00 [19:08:13]Write to MH i2c: E2 08 00 24 34 80 17 00 00 00 00 00 00 D8 [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:13]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:13]Read from MH i2c: E2 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 FD 00 [19:08:13]MH_I2C_Read... [19:08:13]Read from MH i2c: E2 FD 00 24 34 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 0A [19:08:13]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:08:13]wFMCommunicate OK [19:08:13]wFMCommunicate request_size=4 [19:08:13]MH_SAM_APDU [19:08:13]CAPDU: 80 17 00 00 [19:08:13]Write to MH i2c: E2 08 00 25 34 80 17 00 00 00 00 00 00 D9 [19:08:13]Write i2c OK [19:08:13]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 FD 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 FD 00 25 34 00 04 F7 03 00 00 EF 03 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 90 00 54 [19:08:14]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [19:08:14]wFMCommunicate OK [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 17 00 00 [19:08:14]Write to MH i2c: E2 08 00 26 34 80 17 00 00 00 00 00 00 DA [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [19:08:14]Read from MH i2c: E2 DB 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 DB 00 26 34 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BC [19:08:14]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:08:14]wFMCommunicate OK [19:08:14]SAM_PROTO_GetFMData done [19:08:14]requested_item fm.sale_refund.total is exist - process it [19:08:14]requested_item fm.buy.total is exist - process it [19:08:14]requested_item shift.sale.total is exist - process it [19:08:14]SAM_PROTO_GetShiftData [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 13 02 00 [19:08:14]Write to MH i2c: E2 08 00 27 34 80 13 02 00 00 00 00 00 D9 [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:14]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:08:14]Read from MH i2c: E2 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 FD 00 [19:08:14]MH_I2C_Read... [19:08:14]Read from MH i2c: E2 FD 00 27 34 00 AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 86 [19:08:14]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:08:14]wFMCommunicate OK [19:08:14]wFMCommunicate request_size=4 [19:08:14]MH_SAM_APDU [19:08:14]CAPDU: 80 17 00 00 [19:08:14]Write to MH i2c: E2 08 00 28 34 80 17 00 00 00 00 00 00 DC [19:08:14]Write i2c OK [19:08:14]MH_I2C_Read... [19:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:15]Read from MH i2c: E2 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 FD 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 FD 00 28 34 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 FE [19:08:15]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:08:15]wFMCommunicate OK [19:08:15]wFMCommunicate request_size=4 [19:08:15]MH_SAM_APDU [19:08:15]CAPDU: 80 17 00 00 [19:08:15]Write to MH i2c: E2 08 00 29 34 80 17 00 00 00 00 00 00 DD [19:08:15]Write i2c OK [19:08:15]MH_I2C_Read... [19:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:15]Read from MH i2c: E2 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 FD 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 FD 00 29 34 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 94 [19:08:15]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:08:15]wFMCommunicate OK [19:08:15]wFMCommunicate request_size=4 [19:08:15]MH_SAM_APDU [19:08:15]CAPDU: 80 17 00 00 [19:08:15]Write to MH i2c: E2 08 00 2A 34 80 17 00 00 00 00 00 00 DE [19:08:15]Write i2c OK [19:08:15]MH_I2C_Read... [19:08:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:15]Read from MH i2c: E2 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 FD 00 [19:08:15]MH_I2C_Read... [19:08:15]Read from MH i2c: E2 FD 00 2A 34 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 50 [19:08:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:08:15]wFMCommunicate OK [19:08:15]wFMCommunicate request_size=4 [19:08:15]MH_SAM_APDU [19:08:15]CAPDU: 80 17 00 00 [19:08:15]Write to MH i2c: E2 08 00 2B 34 80 17 00 00 00 00 00 00 DF [19:08:15]Write i2c OK [19:08:15]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 CB 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 CB 00 2B 34 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 C8 [19:08:16]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:08:16]wFMCommunicate OK [19:08:16]SAM_PROTO_GetShiftData done [19:08:16]requested_item shift.sale.total_cash is exist - process it [19:08:16]requested_item shift.sale_refund.total is exist - process it [19:08:16]requested_item shift.sale_refund.total_cash is exist - process it [19:08:16]requested_item shift.buy.total is exist - process it [19:08:16]requested_item shift.buy.total_cash is exist - process it [19:08:16]produce_requested_data done [19:08:16]produce_requested_data return {"fm.sale.total":807030.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":48587.32,"shift.sale.total_cash":29743.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} [19:08:16]process_action_free get_value [19:08:16]json_value_free [19:08:16]json_value_free done [19:08:16]process_json_proto returns [19:08:16]Send response to host [19:08:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":807030.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":48587.32,"shift.sale.total_cash":29743.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}}} [19:08:16]free response buf [19:08:16]execute_script done [19:08:16]execute_script returns [19:08:16]free content buf [19:08:16]Sock 9.Close socket [19:08:16]Sock 9.Thread stoped [19:08:16]accept exits with 7 [19:08:16]New connection [19:08:16]New thread 3066850660 created [19:08:16]Thread 3066707300 joined [19:08:16]Waiting for new connection... [19:08:16] Sock 7.Parse request [19:08:16]Sock 7.Check first char [19:08:16]Sock 7.First char is OK [19:08:16]request: POST /json_proto HTTP/1.0 [19:08:16]Method: POST [19:08:16]URL: /json_proto [19:08:16]Method is POST - this is cgi request [19:08:16]url: /json_proto [19:08:16]query_string will be loaded in cgi processing [19:08:16]execute_cgi json_proto POST (null) [19:08:16]execute_cgi path=json_proto method=POST [19:08:16]POST find Content-Length [19:08:16]Host: 172.17.52.132:8080 [19:08:16]Content-Length: 331 [19:08:16]Content-Type: application/json [19:08:16] [19:08:16]POST finish read [19:08:16]Found Content-Length = 331 [19:08:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:08:16]execute_script... [19:08:16]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" ] } } [19:08:16]POST & json_proto [19:08:16]process_json_proto [19:08:16]json parsed OK: [19:08:16]protocol is kg_v1.0 [19:08:16]action value=get_value [19:08:16]process_action get_value [19:08:16]cmd_get_value [19:08:16]process_action get_value done [19:08:16]requested_data is exist [19:08:16]produce_requested_data [19:08:16]requested_item fm.sale.total is exist - process it [19:08:16]SAM_PROTO_GetFMData [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 13 03 00 [19:08:16]Write to MH i2c: E2 08 00 2C 34 80 13 03 00 00 00 00 00 DF [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:16]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:08:16]Read from MH i2c: E2 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 FD 00 [19:08:16]MH_I2C_Read... [19:08:16]Read from MH i2c: E2 FD 00 2C 34 00 BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 EF [19:08:16]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [19:08:16]wFMCommunicate OK [19:08:16]wFMCommunicate request_size=4 [19:08:16]MH_SAM_APDU [19:08:16]CAPDU: 80 17 00 00 [19:08:16]Write to MH i2c: E2 08 00 2D 34 80 17 00 00 00 00 00 00 E1 [19:08:16]Write i2c OK [19:08:16]MH_I2C_Read... [19:08:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 FD 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 FD 00 2D 34 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F6 [19:08:17]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:08:17]wFMCommunicate OK [19:08:17]wFMCommunicate request_size=4 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 17 00 00 [19:08:17]Write to MH i2c: E2 08 00 2E 34 80 17 00 00 00 00 00 00 E2 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]OFD Sender: No OFD packet to send [19:08:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 FD 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 FD 00 2E 34 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 14 [19:08:17]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:08:17]wFMCommunicate OK [19:08:17]wFMCommunicate request_size=4 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 17 00 00 [19:08:17]Write to MH i2c: E2 08 00 2F 34 80 17 00 00 00 00 00 00 E3 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:17]Read from MH i2c: E2 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 FD 00 [19:08:17]MH_I2C_Read... [19:08:17]Read from MH i2c: E2 FD 00 2F 34 00 04 F7 03 00 00 EF 03 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 90 00 5E [19:08:17]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [19:08:17]wFMCommunicate OK [19:08:17]wFMCommunicate request_size=4 [19:08:17]MH_SAM_APDU [19:08:17]CAPDU: 80 17 00 00 [19:08:17]Write to MH i2c: E2 08 00 30 34 80 17 00 00 00 00 00 00 E4 [19:08:17]Write i2c OK [19:08:17]MH_I2C_Read... [19:08:18]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [19:08:18]Read from MH i2c: E2 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 DB 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 DB 00 30 34 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [19:08:18]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:08:18]wFMCommunicate OK [19:08:18]SAM_PROTO_GetFMData done [19:08:18]requested_item fm.sale_refund.total is exist - process it [19:08:18]requested_item fm.buy.total is exist - process it [19:08:18]requested_item shift.sale.total is exist - process it [19:08:18]SAM_PROTO_GetShiftData [19:08:18]wFMCommunicate request_size=4 [19:08:18]MH_SAM_APDU [19:08:18]CAPDU: 80 13 02 00 [19:08:18]Write to MH i2c: E2 08 00 31 34 80 13 02 00 00 00 00 00 E3 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:18]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:08:18]Read from MH i2c: E2 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 FD 00 [19:08:18]MH_I2C_Read... [19:08:18]Read from MH i2c: E2 FD 00 31 34 00 AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 90 [19:08:18]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:08:18]wFMCommunicate OK [19:08:18]wFMCommunicate request_size=4 [19:08:18]MH_SAM_APDU [19:08:18]CAPDU: 80 17 00 00 [19:08:18]Write to MH i2c: E2 08 00 32 34 80 17 00 00 00 00 00 00 E6 [19:08:18]Write i2c OK [19:08:18]MH_I2C_Read... [19:08:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:19]Read from MH i2c: E2 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 FD 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 FD 00 32 34 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 08 [19:08:19]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:08:19]wFMCommunicate OK [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 17 00 00 [19:08:19]Write to MH i2c: E2 08 00 33 34 80 17 00 00 00 00 00 00 E7 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:19]Read from MH i2c: E2 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 FD 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 FD 00 33 34 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 9E [19:08:19]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:08:19]wFMCommunicate OK [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 17 00 00 [19:08:19]Write to MH i2c: E2 08 00 34 34 80 17 00 00 00 00 00 00 E8 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:19]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:19]Read from MH i2c: E2 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 FD 00 [19:08:19]MH_I2C_Read... [19:08:19]Read from MH i2c: E2 FD 00 34 34 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 5A [19:08:19]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:08:19]wFMCommunicate OK [19:08:19]wFMCommunicate request_size=4 [19:08:19]MH_SAM_APDU [19:08:19]CAPDU: 80 17 00 00 [19:08:19]Write to MH i2c: E2 08 00 35 34 80 17 00 00 00 00 00 00 E9 [19:08:19]Write i2c OK [19:08:19]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 CB 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 CB 00 35 34 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D2 [19:08:20]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_GetShiftData done [19:08:20]requested_item shift.sale.total_cash is exist - process it [19:08:20]requested_item shift.sale_refund.total is exist - process it [19:08:20]requested_item shift.sale_refund.total_cash is exist - process it [19:08:20]requested_item shift.buy.total is exist - process it [19:08:20]requested_item shift.buy.total_cash is exist - process it [19:08:20]produce_requested_data done [19:08:20]produce_requested_data return {"fm.sale.total":807030.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":48587.32,"shift.sale.total_cash":29743.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} [19:08:20]process_action_free get_value [19:08:20]json_value_free [19:08:20]json_value_free done [19:08:20]process_json_proto returns [19:08:20]Send response to host [19:08:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":807030.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":48587.32,"shift.sale.total_cash":29743.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}}} [19:08:20]free response buf [19:08:20]execute_script done [19:08:20]execute_script returns [19:08:20]free content buf [19:08:20]Sock 7.Close socket [19:08:20]Sock 7.Thread stoped [19:08:20]accept exits with 9 [19:08:20]New connection [19:08:20]New thread 3066707300 created [19:08:20]Thread 3066850660 joined [19:08:20]Waiting for new connection... [19:08:20] Sock 9.Parse request [19:08:20]Sock 9.Check first char [19:08:20]Sock 9.First char is OK [19:08:20]request: POST /json_proto HTTP/1.0 [19:08:20]Method: POST [19:08:20]URL: /json_proto [19:08:20]Method is POST - this is cgi request [19:08:20]url: /json_proto [19:08:20]query_string will be loaded in cgi processing [19:08:20]execute_cgi json_proto POST (null) [19:08:20]execute_cgi path=json_proto method=POST [19:08:20]POST find Content-Length [19:08:20]Host: 172.17.52.132:8080 [19:08:20]Content-Length: 263 [19:08:20]Content-Type: application/json [19:08:20] [19:08:20]POST finish read [19:08:20]Found Content-Length = 263 [19:08:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:20]execute_script... [19:08:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:08:20]POST & json_proto [19:08:20]process_json_proto [19:08:20]json parsed OK: [19:08:20]protocol is kg_v1.0 [19:08:20]action value=x_report [19:08:20]process_action x_report [19:08:20]cmd_x_report [19:08:20]MH_GetDate [19:08:20]Write to MH i2c: F0 00 00 36 34 59 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: F0 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: F0 09 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: F0 09 00 36 34 00 29 B2 12 67 5A BE F6 66 2A [19:08:20]GetLastDocTimeStamp 1729278204 [19:08:20]current date 1729278505 [19:08:20]FM_GetShiftState [19:08:20]SAM_PROTO_GetShiftState [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 13 01 00 [19:08:20]Write to MH i2c: E2 08 00 37 34 80 13 01 00 00 00 00 00 E8 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:20]Read from MH i2c: E2 0E 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 0E 00 37 34 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 86 [19:08:20]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_GetShiftState done [19:08:20]FM_GetShiftState done [19:08:20]KKMCreateXReportDocument [19:08:20]Load OK [19:08:20]Malloc new data [19:08:20]MH_GetDate [19:08:20]Write to MH i2c: F0 00 00 38 34 5B [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: F0 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: F0 09 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: F0 09 00 38 34 00 2A B2 12 67 5A BE F6 66 2D [19:08:20]Malloc new data [19:08:20]Malloc new data [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 11 00 00 [19:08:20]Write to MH i2c: E2 08 00 39 34 80 11 00 00 00 00 00 00 E7 [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 17 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 17 00 39 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 2F [19:08:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_GetFieldsCounters [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 13 00 00 [19:08:20]Write to MH i2c: E2 08 00 3A 34 80 13 00 00 00 00 00 00 EA [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:20]Read from MH i2c: E2 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 62 00 [19:08:20]MH_I2C_Read... [19:08:20]Read from MH i2c: E2 62 00 3A 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 6E [19:08:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 [19:08:20]wFMCommunicate OK [19:08:20]SAM_PROTO_GetFieldsCounters done [19:08:20]Malloc new data [19:08:20]Malloc new data [19:08:20]Malloc new data [19:08:20]KKMCreateXReportDocument OK [19:08:20]KKMSetXReportData OK [19:08:20]KKMPrepareXReportFMData [19:08:20]SAM_PROTO_GetShiftData [19:08:20]wFMCommunicate request_size=4 [19:08:20]MH_SAM_APDU [19:08:20]CAPDU: 80 13 02 00 [19:08:20]Write to MH i2c: E2 08 00 3B 34 80 13 02 00 00 00 00 00 ED [19:08:20]Write i2c OK [19:08:20]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 FD 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 FD 00 3B 34 00 AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 9A [19:08:21]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:08:21]wFMCommunicate OK [19:08:21]wFMCommunicate request_size=4 [19:08:21]MH_SAM_APDU [19:08:21]CAPDU: 80 17 00 00 [19:08:21]Write to MH i2c: E2 08 00 3C 34 80 17 00 00 00 00 00 00 F0 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:21]Read from MH i2c: E2 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 FD 00 [19:08:21]MH_I2C_Read... [19:08:21]Read from MH i2c: E2 FD 00 3C 34 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 12 [19:08:21]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:08:21]wFMCommunicate OK [19:08:21]wFMCommunicate request_size=4 [19:08:21]MH_SAM_APDU [19:08:21]CAPDU: 80 17 00 00 [19:08:21]Write to MH i2c: E2 08 00 3D 34 80 17 00 00 00 00 00 00 F1 [19:08:21]Write i2c OK [19:08:21]MH_I2C_Read... [19:08:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:22]Read from MH i2c: E2 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 FD 00 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 FD 00 3D 34 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 A8 [19:08:22]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:08:22]wFMCommunicate OK [19:08:22]wFMCommunicate request_size=4 [19:08:22]MH_SAM_APDU [19:08:22]CAPDU: 80 17 00 00 [19:08:22]Write to MH i2c: E2 08 00 3E 34 80 17 00 00 00 00 00 00 F2 [19:08:22]OFD Sender: No OFD packet to send [19:08:22]Write i2c OK [19:08:22]MH_I2C_Read... [19:08:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:22]Read from MH i2c: E2 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 FD 00 [19:08:22]MH_I2C_Read... [19:08:22]Read from MH i2c: E2 FD 00 3E 34 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 64 [19:08:22]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:08:22]wFMCommunicate OK [19:08:22]wFMCommunicate request_size=4 [19:08:22]MH_SAM_APDU [19:08:22]CAPDU: 80 17 00 00 [19:08:22]Write to MH i2c: E2 08 00 3F 34 80 17 00 00 00 00 00 00 F3 [19:08:22]Write i2c OK [19:08:22]MH_I2C_Read... [19:08:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:08:23]Read from MH i2c: E2 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 CB 00 [19:08:23]MH_I2C_Read... [19:08:23]Read from MH i2c: E2 CB 00 3F 34 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DC [19:08:23]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:08:23]wFMCommunicate OK [19:08:23]SAM_PROTO_GetShiftData done [19:08:23]1194 (1194) - Ñчетчики итогов Ñмены [19:08:23] 1134 (4) - 130 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [19:08:23] 1129 (155) - Ñчетчики операций «приход» [19:08:23] 1135 (4) - 130 - количеÑтво чеков по признаку раÑчетов [19:08:23] 1201 (3) - 48587.32 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [19:08:23] 1136 (3) - 29743.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [19:08:23] 1138 (3) - 18844.32 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [19:08:23] 1024 (122) - Ñуммы налогов [19:08:23] 1006 (9) - Ñуммы ÐДС [19:08:23] 1010 (1) - 0% - код Ñтавки ÐДС [19:08:23] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:08:23] 1006 (12) - Ñуммы ÐДС [19:08:23] 1010 (1) - 12% - код Ñтавки ÐДС [19:08:23] 1011 (3) - 5160.28 - Ñумма ÐДС по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 0% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (11) - Ñуммы ÐСП [19:08:23] 1014 (1) - 1% - код Ñтавки ÐСП [19:08:23] 1015 (2) - 429.90 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 2% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 3% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 5% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 0,50% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 1,50% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1130 (141) - Ñчетчики операций «возврат прихода» [19:08:23] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [19:08:23] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [19:08:23] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [19:08:23] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [19:08:23] 1024 (117) - Ñуммы налогов [19:08:23] 1006 (9) - Ñуммы ÐДС [19:08:23] 1010 (1) - 0% - код Ñтавки ÐДС [19:08:23] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:08:23] 1006 (9) - Ñуммы ÐДС [19:08:23] 1010 (1) - 12% - код Ñтавки ÐДС [19:08:23] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 0% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 1% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 2% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 3% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 5% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 0,50% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 1,50% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1131 (141) - Ñчетчики операций «раÑход» [19:08:23] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [19:08:23] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [19:08:23] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [19:08:23] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [19:08:23] 1024 (117) - Ñуммы налогов [19:08:23] 1006 (9) - Ñуммы ÐДС [19:08:23] 1010 (1) - 0% - код Ñтавки ÐДС [19:08:23] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:08:23] 1006 (9) - Ñуммы ÐДС [19:08:23] 1010 (1) - 12% - код Ñтавки ÐДС [19:08:23] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 0% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 1% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 2% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 3% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 5% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 0,50% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 1,50% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1132 (141) - Ñчетчики операций «возврат раÑхода» [19:08:23] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [19:08:23] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [19:08:23] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [19:08:23] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [19:08:23] 1024 (117) - Ñуммы налогов [19:08:23] 1006 (9) - Ñуммы ÐДС [19:08:23] 1010 (1) - 0% - код Ñтавки ÐДС [19:08:23] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:08:23] 1006 (9) - Ñуммы ÐДС [19:08:23] 1010 (1) - 12% - код Ñтавки ÐДС [19:08:23] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 0% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 1% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 2% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 3% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 5% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 0,50% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1007 (9) - Ñуммы ÐСП [19:08:23] 1014 (1) - 1,50% - код Ñтавки ÐСП [19:08:23] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:08:23] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1194 (04AA) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1134 (046E) [19:08:23]Malloc new data [19:08:23]Processing tag 1129 (0469) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1135 (046F) [19:08:23]Malloc new data [19:08:23]Processing tag 1201 (04B1) [19:08:23]Malloc new data [19:08:23]Processing tag 1136 (0470) [19:08:23]Malloc new data [19:08:23]Processing tag 1138 (0472) [19:08:23]Malloc new data [19:08:23]Processing tag 1024 (0400) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1006 (03EE) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1010 (03F2) [19:08:23]Malloc new data [19:08:23]Processing tag 1011 (03F3) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1006 (03EE) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1010 (03F2) [19:08:23]Malloc new data [19:08:23]Processing tag 1011 (03F3) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]SetTLVBufToDocument err=0 [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1130 (046A) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1135 (046F) [19:08:23]Malloc new data [19:08:23]Processing tag 1201 (04B1) [19:08:23]Malloc new data [19:08:23]Processing tag 1136 (0470) [19:08:23]Malloc new data [19:08:23]Processing tag 1138 (0472) [19:08:23]Malloc new data [19:08:23]Processing tag 1024 (0400) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1006 (03EE) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1010 (03F2) [19:08:23]Malloc new data [19:08:23]Processing tag 1011 (03F3) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1006 (03EE) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1010 (03F2) [19:08:23]Malloc new data [19:08:23]Processing tag 1011 (03F3) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1007 (03EF) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1014 (03F6) [19:08:23]Malloc new data [19:08:23]Processing tag 1015 (03F7) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]SetTLVBufToDocument err=0 [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1131 (046B) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1135 (046F) [19:08:23]Malloc new data [19:08:23]Processing tag 1201 (04B1) [19:08:23]Malloc new data [19:08:23]Processing tag 1136 (0470) [19:08:23]Malloc new data [19:08:23]Processing tag 1138 (0472) [19:08:23]Malloc new data [19:08:23]Processing tag 1024 (0400) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1006 (03EE) [19:08:23]Load OK [19:08:23]SetTLVBufToDocument [19:08:23]Processing tag 1010 (03F2) [19:08:23]Malloc new data [19:08:23]Processing tag 1011 (03F3) [19:08:23]Malloc new data [19:08:23]SetTLVBufToDocument err=0 [19:08:23]Processing tag 1006 (03EE) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1010 (03F2) [19:08:24]Malloc new data [19:08:24]Processing tag 1011 (03F3) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]SetTLVBufToDocument err=0 [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1132 (046C) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1135 (046F) [19:08:24]Malloc new data [19:08:24]Processing tag 1201 (04B1) [19:08:24]Malloc new data [19:08:24]Processing tag 1136 (0470) [19:08:24]Malloc new data [19:08:24]Processing tag 1138 (0472) [19:08:24]Malloc new data [19:08:24]Processing tag 1024 (0400) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1006 (03EE) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1010 (03F2) [19:08:24]Malloc new data [19:08:24]Processing tag 1011 (03F3) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1006 (03EE) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1010 (03F2) [19:08:24]Malloc new data [19:08:24]Processing tag 1011 (03F3) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1007 (03EF) [19:08:24]Load OK [19:08:24]SetTLVBufToDocument [19:08:24]Processing tag 1014 (03F6) [19:08:24]Malloc new data [19:08:24]Processing tag 1015 (03F7) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]SetTLVBufToDocument err=0 [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Processing tag 1133 (046D) [19:08:24]Malloc new data [19:08:24]SetTLVBufToDocument err=0 [19:08:24]SetTLVBufToDocument err=0 [19:08:24]Malloc new data [19:08:24]SAM_PROTO_GetFMData [19:08:24]wFMCommunicate request_size=4 [19:08:24]MH_SAM_APDU [19:08:24]CAPDU: 80 13 03 00 [19:08:24]Write to MH i2c: E2 08 00 40 34 80 13 03 00 00 00 00 00 F3 [19:08:24]Write i2c OK [19:08:24]MH_I2C_Read... [19:08:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:08:24]Read from MH i2c: E2 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 FD 00 [19:08:24]MH_I2C_Read... [19:08:24]Read from MH i2c: E2 FD 00 40 34 00 BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 03 [19:08:24]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [19:08:25]wFMCommunicate OK [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 17 00 00 [19:08:25]Write to MH i2c: E2 08 00 41 34 80 17 00 00 00 00 00 00 F5 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 FD 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 FD 00 41 34 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 0A [19:08:25]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:08:25]wFMCommunicate OK [19:08:25]wFMCommunicate request_size=4 [19:08:25]MH_SAM_APDU [19:08:25]CAPDU: 80 17 00 00 [19:08:25]Write to MH i2c: E2 08 00 42 34 80 17 00 00 00 00 00 00 F6 [19:08:25]Write i2c OK [19:08:25]MH_I2C_Read... [19:08:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:25]Read from MH i2c: E2 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 FD 00 [19:08:25]MH_I2C_Read... [19:08:25]Read from MH i2c: E2 FD 00 42 34 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 28 [19:08:25]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:08:26]wFMCommunicate OK [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 17 00 00 [19:08:26]Write to MH i2c: E2 08 00 43 34 80 17 00 00 00 00 00 00 F7 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 FD 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 FD 00 43 34 00 04 F7 03 00 00 EF 03 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 90 00 72 [19:08:26]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [19:08:26]wFMCommunicate OK [19:08:26]wFMCommunicate request_size=4 [19:08:26]MH_SAM_APDU [19:08:26]CAPDU: 80 17 00 00 [19:08:26]Write to MH i2c: E2 08 00 44 34 80 17 00 00 00 00 00 00 F8 [19:08:26]Write i2c OK [19:08:26]MH_I2C_Read... [19:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [19:08:26]Read from MH i2c: E2 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 DB 00 [19:08:26]MH_I2C_Read... [19:08:26]Read from MH i2c: E2 DB 00 44 34 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DA [19:08:27]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:08:27]wFMCommunicate OK [19:08:27]SAM_PROTO_GetFMData done [19:08:27]FM_GetFMData:85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [19:08:27]01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:08:27]oper:6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:08:27]total:2B 6E CF 04 [19:08:27]Malloc new data [19:08:27]oper:6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:08:28]total:58 F6 01 [19:08:28]Malloc new data [19:08:28]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 [19:08:28]total: [19:08:28]Malloc new data [19:08:28]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 [19:08:28]total: [19:08:28]Malloc new data [19:08:28]KKMPrepareXReportFMData err=0 [19:08:28]Ð¥ отчет ИÐÐ: 02508201610067 КаÑÑир: Ðуралиева Ð. 18.10.2024 19:08 Смена: 10 РÐМ: 0000000000207295 ЗÐМ: 0300000191 СÐО: Общий режим Ð’Ñего чеков: 130 ИТОГИ ПРИХОД Чеков: 130 Общий итог: 48587.32 Итого наличными: 29743.00 Итого безнал.: 18844.32 ÐДС 0% : 0.00 ÐДС 12% : 5160.28 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 429.90 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ РÐСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ ВОЗВРÐТ РÐСХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 Сумма внеÑений: 0.00 Сумма выплат: 0.00 Ðал. в каÑÑе: 29743.00 ÐС Приход: 807030.19 ÐС Возвр.Прихода: 1286.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФМ: 0000000002342820 [19:08:28]StoreToDocumentArchive [19:08:28]MH_GetDate [19:08:28]Write to MH i2c: F0 00 00 45 34 68 [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: F0 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: F0 09 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: F0 09 00 45 34 00 31 B2 12 67 5A BE F6 66 41 [19:08:28]shift 10 fd 1729278513 [19:08:28]Create dir for shift 0010 [19:08:28]save to /storage/0010/doc_1729278513 [19:08:28]save last doc name /storage/0010/doc_1729278513 to /storage/kkm_last_doc_name [19:08:28]save OK [19:08:28]Clear old archive folders... [19:08:28]NVStorageSaveData kkm_last_timestamp [19:08:28]File name is /storage/kkm_last_timestamp [19:08:28]Write 4 bytes [19:08:28]NVStorageSaveData done [19:08:28]ExternCall_PrintAddStr [19:08:28]wPrintStart [19:08:28]Write to MH i2c: 01 00 00 46 34 7A [19:08:28]Write i2c OK [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 07 00 [19:08:28]MH_I2C_Read... [19:08:28]Read from MH i2c: 01 07 00 46 34 00 00 00 00 00 FF 0F 8F [19:08:28]RasterBufferAndPrint [19:08:28]line Ð¥ отчет [19:08:28]line ИÐÐ: 02508201610067 [19:08:28]line КаÑÑир: Ðуралиева Ð. [19:08:28]line 18.10.2024 19:08 [19:08:28]line Смена: 10 [19:08:28]line РÐМ: 0000000000207295 [19:08:28]line ЗÐМ: 0300000191 [19:08:28]line СÐО: Общий режим [19:08:28]line Ð’Ñего чеков: 130 [19:08:28]line ИТОГИ ПРИХОД [19:08:28]line Чеков: 130 [19:08:28]line Общий итог: 48587.32 [19:08:28]line Итого наличными: 29743.00 [19:08:28]line Итого безнал.: 18844.32 [19:08:28]line ÐДС 0% : 0.00 [19:08:28]line ÐДС 12% : 5160.28 [19:08:28]line ÐСП 0% : 0.00 [19:08:28]line ÐСП 1,50% : 0.00 [19:08:28]line ÐСП 0,50% : 0.00 [19:08:28]line ÐСП 5% : 0.00 [19:08:28]line ÐСП 3% : 0.00 [19:08:28]line ÐСП 2% : 0.00 [19:08:28]line ÐСП 1% : 429.90 [19:08:28]line ИТОГИ ВОЗВРÐТ ПРИХОДР[19:08:28]line Чеков: 0 [19:08:28]line Общий итог: 0.00 [19:08:28]line Итого наличными: 0.00 [19:08:28]line Итого безнал.: 0.00 [19:08:28]line ÐДС 0% : 0.00 [19:08:28]line ÐДС 12% : 0.00 [19:08:28]line ÐСП 0% : 0.00 [19:08:28]line ÐСП 1,50% : 0.00 [19:08:28]line ÐСП 0,50% : 0.00 [19:08:28]line ÐСП 5% : 0.00 [19:08:28]line ÐСП 3% : 0.00 [19:08:28]line ÐСП 2% : 0.00 [19:08:28]line ÐСП 1% : 0.00 [19:08:28]line ИТОГИ РÐСХОД [19:08:28]line Чеков: 0 [19:08:28]line Общий итог: 0.00 [19:08:28]line Итого наличными: 0.00 [19:08:28]line Итого безнал.: 0.00 [19:08:28]line ÐДС 0% : 0.00 [19:08:28]line ÐДС 12% : 0.00 [19:08:28]line ÐСП 0% : 0.00 [19:08:28]line ÐСП 1,50% : 0.00 [19:08:28]line ÐСП 0,50% : 0.00 [19:08:28]line ÐСП 5% : 0.00 [19:08:28]line ÐСП 3% : 0.00 [19:08:28]line ÐСП 2% : 0.00 [19:08:28]line ÐСП 1% : 0.00 [19:08:28]line ИТОГИ ВОЗВРÐТ РÐСХОДР[19:08:28]line Чеков: 0 [19:08:28]line Общий итог: 0.00 [19:08:28]line Итого наличными: 0.00 [19:08:28]line Итого безнал.: 0.00 [19:08:28]line ÐДС 0% : 0.00 [19:08:28]line ÐДС 12% : 0.00 [19:08:28]line ÐСП 0% : 0.00 [19:08:28]line ÐСП 1,50% : 0.00 [19:08:28]line ÐСП 0,50% : 0.00 [19:08:28]line ÐСП 5% : 0.00 [19:08:28]line ÐСП 3% : 0.00 [19:08:28]line ÐСП 2% : 0.00 [19:08:28]line ÐСП 1% : 0.00 [19:08:28]line Сумма внеÑений: 0.00 [19:08:28]line Сумма выплат: 0.00 [19:08:28]line Ðал. в каÑÑе: 29743.00 [19:08:28]line ÐС Приход: 807030.19 [19:08:28]line ÐС Возвр.Прихода: 1286.00 [19:08:28]line ÐС РаÑход: 0.00 [19:08:28]line ÐС Возвр.РаÑхода: 0.00 [19:08:28]line ФМ: 0000000002342820 [19:08:28]written 0, free lines is 4095 [19:08:29]Write to MH i2c: 01 00 00 91 34 C5 [19:08:29]Write i2c OK [19:08:29]MH_I2C_Read... [19:08:29]Read from MH i2c: 01 [19:08:29]MH_I2C_Read... [19:08:29]Read from MH i2c: 01 07 00 [19:08:29]MH_I2C_Read... [19:08:29]Read from MH i2c: 01 07 00 91 34 00 00 00 00 00 4B 0A 21 [19:08:29]RasterBufferAndPrint [19:08:29]line [19:08:29]line [19:08:29]line [19:08:29]line [19:08:29]line [19:08:29]written 0, free lines is 2666 [19:08:29]MH_Cut [19:08:29]Write to MH i2c: D1 01 00 98 34 01 9E [19:08:29]Write i2c OK [19:08:29]MH_I2C_Read... [19:08:29]Read from MH i2c: D1 [19:08:29]MH_I2C_Read... [19:08:29]Read from MH i2c: D1 01 00 [19:08:29]MH_I2C_Read... [19:08:29]Read from MH i2c: D1 01 00 98 34 00 9D [19:08:29]Write to MH i2c: 01 00 00 99 34 CD [19:08:29]Write i2c OK [19:08:29]MH_I2C_Read... [19:08:30]*** Cut start [19:08:30]*** Partial cut [19:08:30]*** CUTSNS_PIN = 1 [19:08:30]*** CUTSNS_PIN = 0 [19:08:30]*** Brake cut motor [19:08:30]Read from MH i2c: 01 [19:08:30]MH_I2C_Read... [19:08:30]*** Stop cut motor [19:08:30]*** Cut end [19:08:30]Read from MH i2c: 01 07 00 [19:08:30]MH_I2C_Read... [19:08:30]Read from MH i2c: 01 07 00 99 34 00 00 00 00 00 FF 0F E2 [19:08:30]process_action x_report done [19:08:30]requested_data is exist [19:08:30]produce_requested_data [19:08:30]requested_item fd.num is exist - process it [19:08:30]SAM_PROTO_GetFieldsCounters [19:08:30]wFMCommunicate request_size=4 [19:08:30]MH_SAM_APDU [19:08:30]CAPDU: 80 13 00 00 [19:08:30]Write to MH i2c: E2 08 00 9A 34 80 13 00 00 00 00 00 00 4A [19:08:30]Write i2c OK [19:08:30]MH_I2C_Read... [19:08:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:08:31]Read from MH i2c: E2 [19:08:31]MH_I2C_Read... [19:08:31]Read from MH i2c: E2 62 00 [19:08:31]MH_I2C_Read... [19:08:31]Read from MH i2c: E2 62 00 9A 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 CE [19:08:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 [19:08:31]wFMCommunicate OK [19:08:31]SAM_PROTO_GetFieldsCounters done [19:08:31]requested_item shift.num is exist - process it [19:08:31]requested_item shift.opened is exist - process it [19:08:31]req_shift_opened [19:08:31]FM_GetShiftState [19:08:31]SAM_PROTO_GetShiftState [19:08:31]wFMCommunicate request_size=4 [19:08:31]MH_SAM_APDU [19:08:31]CAPDU: 80 13 01 00 [19:08:31]Write to MH i2c: E2 08 00 9B 34 80 13 01 00 00 00 00 00 4C [19:08:31]Write i2c OK [19:08:31]MH_I2C_Read... [19:08:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:08:31]Read from MH i2c: E2 [19:08:31]MH_I2C_Read... [19:08:31]Read from MH i2c: E2 0E 00 [19:08:31]MH_I2C_Read... [19:08:31]Read from MH i2c: E2 0E 00 9B 34 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 EA [19:08:31]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:08:31]wFMCommunicate OK [19:08:31]SAM_PROTO_GetShiftState done [19:08:31]FM_GetShiftState done [19:08:31]req_shift_opened done [19:08:31]requested_item shift.open_date is exist - process it [19:08:31]req_shift_open_date [19:08:31]req_shift_open_date done [19:08:31]produce_requested_data done [19:08:31]produce_requested_data return {"fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:08:31]process_action_free x_report [19:08:31]json_value_free [19:08:31]json_value_free done [19:08:31]process_json_proto returns [19:08:31]Send response to host [19:08:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:08:31]free response buf [19:08:31]execute_script done [19:08:31]execute_script returns [19:08:31]free content buf [19:08:31]Sock 9.Close socket [19:08:31]Sock 9.Thread stoped [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:42]OFD Sender: No OFD packet to send [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]OFD Sender: No OFD packet to send [19:10:12]OFD Sender: No OFD packet to send [19:10:17]OFD Sender: No OFD packet to send [19:10:22]OFD Sender: No OFD packet to send [19:10:27]OFD Sender: No OFD packet to send [19:10:32]OFD Sender: No OFD packet to send [19:10:37]OFD Sender: No OFD packet to send [19:10:42]OFD Sender: No OFD packet to send [19:10:47]OFD Sender: No OFD packet to send [19:10:52]OFD Sender: No OFD packet to send [19:10:57]OFD Sender: No OFD packet to send [19:11:02]OFD Sender: No OFD packet to send [19:11:07]OFD Sender: No OFD packet to send [19:11:12]OFD Sender: No OFD packet to send [19:11:17]OFD Sender: No OFD packet to send [19:11:22]OFD Sender: No OFD packet to send [19:11:27]OFD Sender: No OFD packet to send [19:11:32]OFD Sender: No OFD packet to send [19:11:37]OFD Sender: No OFD packet to send [19:11:42]OFD Sender: No OFD packet to send [19:11:47]OFD Sender: No OFD packet to send [19:11:52]OFD Sender: No OFD packet to send [19:11:57]OFD Sender: No OFD packet to send [19:12:02]OFD Sender: No OFD packet to send [19:12:07]OFD Sender: No OFD packet to send [19:12:12]OFD Sender: No OFD packet to send [19:12:17]OFD Sender: No OFD packet to send [19:12:22]OFD Sender: No OFD packet to send [19:12:27]OFD Sender: No OFD packet to send [19:12:32]OFD Sender: No OFD packet to send [19:12:37]OFD Sender: No OFD packet to send [19:12:42]OFD Sender: No OFD packet to send [19:12:47]OFD Sender: No OFD packet to send [19:12:52]OFD Sender: No OFD packet to send [19:12:57]OFD Sender: No OFD packet to send [19:13:02]OFD Sender: No OFD packet to send [19:13:07]OFD Sender: No OFD packet to send [19:13:12]OFD Sender: No OFD packet to send [19:13:17]OFD Sender: No OFD packet to send [19:13:22]OFD Sender: No OFD packet to send [19:13:27]OFD Sender: No OFD packet to send [19:13:32]OFD Sender: No OFD packet to send [19:13:37]OFD Sender: No OFD packet to send [19:13:42]OFD Sender: No OFD packet to send [19:13:47]OFD Sender: No OFD packet to send [19:13:52]OFD Sender: No OFD packet to send [19:13:57]OFD Sender: No OFD packet to send [19:14:02]OFD Sender: No OFD packet to send [19:14:07]OFD Sender: No OFD packet to send [19:14:12]OFD Sender: No OFD packet to send [19:14: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:33]accept exits with 7 [19:18:33]New connection [19:18:33]New thread 3066850660 created [19:18:33]Thread 3066707300 joined [19:18:33]Waiting for new connection... [19:18:33] Sock 7.Parse request [19:18:33]Sock 7.Check first char [19:18:33]Sock 7.First char is OK [19:18:33]request: POST /json_proto HTTP/1.0 [19:18:33]Method: POST [19:18:33]URL: /json_proto [19:18:33]Method is POST - this is cgi request [19:18:33]url: /json_proto [19:18:33]query_string will be loaded in cgi processing [19:18:33]execute_cgi json_proto POST (null) [19:18:33]execute_cgi path=json_proto method=POST [19:18:33]POST find Content-Length [19:18:33]Host: 172.17.52.132:8080 [19:18:33]Content-Length: 215 [19:18:33]Content-Type: application/json [19:18:33] [19:18:33]POST finish read [19:18:33]Found Content-Length = 215 [19:18:33]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" ] } } [19:18:33]execute_script... [19:18:33]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" ] } } [19:18:33]POST & json_proto [19:18:33]process_json_proto [19:18:33]json parsed OK: [19:18:33]protocol is kg_v1.0 [19:18:33]action value=get_value [19:18:33]process_action get_value [19:18:33]cmd_get_value [19:18:33]process_action get_value done [19:18:33]requested_data is exist [19:18:33]produce_requested_data [19:18:33]requested_item kkm.sn is exist - process it [19:18:33]requested_item kkm.ver is exist - process it [19:18:33]requested_item fm.sn is exist - process it [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 11 00 00 [19:18:33]Write to MH i2c: E2 08 00 9C 34 80 11 00 00 00 00 00 00 4A [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:33]Read from MH i2c: E2 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 17 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 17 00 9C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 92 [19:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:18:33]wFMCommunicate OK [19:18:33]requested_item fd.num is exist - process it [19:18:33]SAM_PROTO_GetFieldsCounters [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 13 00 00 [19:18:33]Write to MH i2c: E2 08 00 9D 34 80 13 00 00 00 00 00 00 4D [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:33]Read from MH i2c: E2 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 62 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 62 00 9D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 D1 [19:18:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 [19:18:33]wFMCommunicate OK [19:18:33]SAM_PROTO_GetFieldsCounters done [19:18:33]requested_item shift.num is exist - process it [19:18:33]requested_item shift.opened is exist - process it [19:18:33]req_shift_opened [19:18:33]FM_GetShiftState [19:18:33]SAM_PROTO_GetShiftState [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 13 01 00 [19:18:33]Write to MH i2c: E2 08 00 9E 34 80 13 01 00 00 00 00 00 4F [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:33]Read from MH i2c: E2 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 0E 00 [19:18:33]MH_I2C_Read... [19:18:33]Read from MH i2c: E2 0E 00 9E 34 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 ED [19:18:33]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:18:33]wFMCommunicate OK [19:18:33]SAM_PROTO_GetShiftState done [19:18:33]FM_GetShiftState done [19:18:33]req_shift_opened done [19:18:33]requested_item shift.open_date is exist - process it [19:18:33]req_shift_open_date [19:18:33]req_shift_open_date done [19:18:33]produce_requested_data done [19:18:33]produce_requested_data return {"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:18:33]process_action_free get_value [19:18:33]json_value_free [19:18:33]json_value_free done [19:18:33]process_json_proto returns [19:18:33]Send response to host [19:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:18:33]free response buf [19:18:33]execute_script done [19:18:33]execute_script returns [19:18:33]free content buf [19:18:33]Sock 7.Close socket [19:18:33]Sock 7.Thread stoped [19:18:33]accept exits with 9 [19:18:33]New connection [19:18:33]New thread 3066707300 created [19:18:33]Thread 3066850660 joined [19:18:33]Waiting for new connection... [19:18:33] Sock 9.Parse request [19:18:33]Sock 9.Check first char [19:18:33]Sock 9.First char is OK [19:18:33]request: POST /json_proto HTTP/1.0 [19:18:33]Method: POST [19:18:33]URL: /json_proto [19:18:33]Method is POST - this is cgi request [19:18:33]url: /json_proto [19:18:33]query_string will be loaded in cgi processing [19:18:33]execute_cgi json_proto POST (null) [19:18:33]execute_cgi path=json_proto method=POST [19:18:33]POST find Content-Length [19:18:33]Host: 172.17.52.132:8080 [19:18:33]Content-Length: 331 [19:18:33]Content-Type: application/json [19:18:33] [19:18:33]POST finish read [19:18:33]Found Content-Length = 331 [19:18:33]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" ] } } [19:18:33]execute_script... [19:18:33]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" ] } } [19:18:33]POST & json_proto [19:18:33]process_json_proto [19:18:33]json parsed OK: [19:18:33]protocol is kg_v1.0 [19:18:33]action value=get_value [19:18:33]process_action get_value [19:18:33]cmd_get_value [19:18:33]process_action get_value done [19:18:33]requested_data is exist [19:18:33]produce_requested_data [19:18:33]requested_item fm.sale.total is exist - process it [19:18:33]SAM_PROTO_GetFMData [19:18:33]wFMCommunicate request_size=4 [19:18:33]MH_SAM_APDU [19:18:33]CAPDU: 80 13 03 00 [19:18:33]Write to MH i2c: E2 08 00 9F 34 80 13 03 00 00 00 00 00 52 [19:18:33]Write i2c OK [19:18:33]MH_I2C_Read... [19:18:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:18:34]Read from MH i2c: E2 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 FD 00 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 FD 00 9F 34 00 BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 62 [19:18:34]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [19:18:34]wFMCommunicate OK [19:18:34]wFMCommunicate request_size=4 [19:18:34]MH_SAM_APDU [19:18:34]CAPDU: 80 17 00 00 [19:18:34]Write to MH i2c: E2 08 00 A0 34 80 17 00 00 00 00 00 00 54 [19:18:34]Write i2c OK [19:18:34]MH_I2C_Read... [19:18:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:34]Read from MH i2c: E2 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 FD 00 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 FD 00 A0 34 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 69 [19:18:34]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:18:34]wFMCommunicate OK [19:18:34]wFMCommunicate request_size=4 [19:18:34]MH_SAM_APDU [19:18:34]CAPDU: 80 17 00 00 [19:18:34]Write to MH i2c: E2 08 00 A1 34 80 17 00 00 00 00 00 00 55 [19:18:34]Write i2c OK [19:18:34]MH_I2C_Read... [19:18:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:34]Read from MH i2c: E2 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 FD 00 [19:18:34]MH_I2C_Read... [19:18:34]Read from MH i2c: E2 FD 00 A1 34 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 87 [19:18:34]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:18:34]wFMCommunicate OK [19:18:34]wFMCommunicate request_size=4 [19:18:34]MH_SAM_APDU [19:18:34]CAPDU: 80 17 00 00 [19:18:34]Write to MH i2c: E2 08 00 A2 34 80 17 00 00 00 00 00 00 56 [19:18:34]Write i2c OK [19:18:34]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 FD 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 FD 00 A2 34 00 04 F7 03 00 00 EF 03 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 90 00 D1 [19:18:35]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [19:18:35]wFMCommunicate OK [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 17 00 00 [19:18:35]Write to MH i2c: E2 08 00 A3 34 80 17 00 00 00 00 00 00 57 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 DB 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 DB 00 A3 34 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 39 [19:18:35]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:18:35]wFMCommunicate OK [19:18:35]SAM_PROTO_GetFMData done [19:18:35]requested_item fm.sale_refund.total is exist - process it [19:18:35]requested_item fm.buy.total is exist - process it [19:18:35]requested_item shift.sale.total is exist - process it [19:18:35]SAM_PROTO_GetShiftData [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 13 02 00 [19:18:35]Write to MH i2c: E2 08 00 A4 34 80 13 02 00 00 00 00 00 56 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:18:35]Read from MH i2c: E2 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 FD 00 [19:18:35]MH_I2C_Read... [19:18:35]Read from MH i2c: E2 FD 00 A4 34 00 AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 03 [19:18:35]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:18:35]wFMCommunicate OK [19:18:35]wFMCommunicate request_size=4 [19:18:35]MH_SAM_APDU [19:18:35]CAPDU: 80 17 00 00 [19:18:35]Write to MH i2c: E2 08 00 A5 34 80 17 00 00 00 00 00 00 59 [19:18:35]Write i2c OK [19:18:35]MH_I2C_Read... [19:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:36]Read from MH i2c: E2 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: E2 FD 00 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: E2 FD 00 A5 34 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 7B [19:18:36]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:18:36]wFMCommunicate OK [19:18:36]wFMCommunicate request_size=4 [19:18:36]MH_SAM_APDU [19:18:36]CAPDU: 80 17 00 00 [19:18:36]Write to MH i2c: E2 08 00 A6 34 80 17 00 00 00 00 00 00 5A [19:18:36]Write i2c OK [19:18:36]MH_I2C_Read... [19:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:36]Read from MH i2c: E2 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: E2 FD 00 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: E2 FD 00 A6 34 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 11 [19:18:36]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:18:36]wFMCommunicate OK [19:18:36]wFMCommunicate request_size=4 [19:18:36]MH_SAM_APDU [19:18:36]CAPDU: 80 17 00 00 [19:18:36]Write to MH i2c: E2 08 00 A7 34 80 17 00 00 00 00 00 00 5B [19:18:36]Write i2c OK [19:18:36]MH_I2C_Read... [19:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:36]Read from MH i2c: E2 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: E2 FD 00 [19:18:36]MH_I2C_Read... [19:18:36]Read from MH i2c: E2 FD 00 A7 34 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 CD [19:18:36]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:18:36]wFMCommunicate OK [19:18:36]wFMCommunicate request_size=4 [19:18:36]MH_SAM_APDU [19:18:36]CAPDU: 80 17 00 00 [19:18:36]Write to MH i2c: E2 08 00 A8 34 80 17 00 00 00 00 00 00 5C [19:18:36]Write i2c OK [19:18:36]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 CB 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 CB 00 A8 34 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 45 [19:18:37]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:18:37]wFMCommunicate OK [19:18:37]SAM_PROTO_GetShiftData done [19:18:37]requested_item shift.sale.total_cash is exist - process it [19:18:37]requested_item shift.sale_refund.total is exist - process it [19:18:37]requested_item shift.sale_refund.total_cash is exist - process it [19:18:37]requested_item shift.buy.total is exist - process it [19:18:37]requested_item shift.buy.total_cash is exist - process it [19:18:37]produce_requested_data done [19:18:37]produce_requested_data return {"fm.sale.total":807030.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":48587.32,"shift.sale.total_cash":29743.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} [19:18:37]process_action_free get_value [19:18:37]json_value_free [19:18:37]json_value_free done [19:18:37]process_json_proto returns [19:18:37]Send response to host [19:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":807030.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":48587.32,"shift.sale.total_cash":29743.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}}} [19:18:37]free response buf [19:18:37]execute_script done [19:18:37]execute_script returns [19:18:37]free content buf [19:18:37]Sock 9.Close socket [19:18:37]Sock 9.Thread stoped [19:18:37]accept exits with 7 [19:18:37]New connection [19:18:37]New thread 3066850660 created [19:18:37]Thread 3066707300 joined [19:18:37]Waiting for new connection... [19:18:37] Sock 7.Parse request [19:18:37]Sock 7.Check first char [19:18:37]Sock 7.First char is OK [19:18:37]request: POST /json_proto HTTP/1.0 [19:18:37]Method: POST [19:18:37]URL: /json_proto [19:18:37]Method is POST - this is cgi request [19:18:37]url: /json_proto [19:18:37]query_string will be loaded in cgi processing [19:18:37]execute_cgi json_proto POST (null) [19:18:37]execute_cgi path=json_proto method=POST [19:18:37]POST find Content-Length [19:18:37]Host: 172.17.52.132:8080 [19:18:37]Content-Length: 331 [19:18:37]Content-Type: application/json [19:18:37] [19:18:37]POST finish read [19:18:37]Found Content-Length = 331 [19:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:18:37]execute_script... [19:18:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [19:18:37]POST & json_proto [19:18:37]process_json_proto [19:18:37]json parsed OK: [19:18:37]protocol is kg_v1.0 [19:18:37]action value=get_value [19:18:37]process_action get_value [19:18:37]cmd_get_value [19:18:37]process_action get_value done [19:18:37]requested_data is exist [19:18:37]produce_requested_data [19:18:37]requested_item fm.sale.total is exist - process it [19:18:37]SAM_PROTO_GetFMData [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 13 03 00 [19:18:37]Write to MH i2c: E2 08 00 A9 34 80 13 03 00 00 00 00 00 5C [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 FD 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 FD 00 A9 34 00 BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 6C [19:18:37]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [19:18:37]wFMCommunicate OK [19:18:37]wFMCommunicate request_size=4 [19:18:37]MH_SAM_APDU [19:18:37]CAPDU: 80 17 00 00 [19:18:37]Write to MH i2c: E2 08 00 AA 34 80 17 00 00 00 00 00 00 5E [19:18:37]Write i2c OK [19:18:37]MH_I2C_Read... [19:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:37]Read from MH i2c: E2 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 FD 00 [19:18:37]MH_I2C_Read... [19:18:37]Read from MH i2c: E2 FD 00 AA 34 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 73 [19:18:38]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 OFD Sender: No OFD packet to send [19:18:38]90 00 [19:18:38]wFMCommunicate OK [19:18:38]wFMCommunicate request_size=4 [19:18:38]MH_SAM_APDU [19:18:38]CAPDU: 80 17 00 00 [19:18:38]Write to MH i2c: E2 08 00 AB 34 80 17 00 00 00 00 00 00 5F [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:38]Read from MH i2c: E2 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 FD 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 FD 00 AB 34 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 91 [19:18:38]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:18:38]wFMCommunicate OK [19:18:38]wFMCommunicate request_size=4 [19:18:38]MH_SAM_APDU [19:18:38]CAPDU: 80 17 00 00 [19:18:38]Write to MH i2c: E2 08 00 AC 34 80 17 00 00 00 00 00 00 60 [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:38]Read from MH i2c: E2 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 FD 00 [19:18:38]MH_I2C_Read... [19:18:38]Read from MH i2c: E2 FD 00 AC 34 00 04 F7 03 00 00 EF 03 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 90 00 DB [19:18:38]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [19:18:38]wFMCommunicate OK [19:18:38]wFMCommunicate request_size=4 [19:18:38]MH_SAM_APDU [19:18:38]CAPDU: 80 17 00 00 [19:18:38]Write to MH i2c: E2 08 00 AD 34 80 17 00 00 00 00 00 00 61 [19:18:38]Write i2c OK [19:18:38]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 DB 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 DB 00 AD 34 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 43 [19:18:39]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:18:39]wFMCommunicate OK [19:18:39]SAM_PROTO_GetFMData done [19:18:39]requested_item fm.sale_refund.total is exist - process it [19:18:39]requested_item fm.buy.total is exist - process it [19:18:39]requested_item shift.sale.total is exist - process it [19:18:39]SAM_PROTO_GetShiftData [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 13 02 00 [19:18:39]Write to MH i2c: E2 08 00 AE 34 80 13 02 00 00 00 00 00 60 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:18:39]Read from MH i2c: E2 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 FD 00 [19:18:39]MH_I2C_Read... [19:18:39]Read from MH i2c: E2 FD 00 AE 34 00 AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 0D [19:18:39]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:18:39]wFMCommunicate OK [19:18:39]wFMCommunicate request_size=4 [19:18:39]MH_SAM_APDU [19:18:39]CAPDU: 80 17 00 00 [19:18:39]Write to MH i2c: E2 08 00 AF 34 80 17 00 00 00 00 00 00 63 [19:18:39]Write i2c OK [19:18:39]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 FD 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 FD 00 AF 34 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 85 [19:18:40]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:18:40]wFMCommunicate OK [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 17 00 00 [19:18:40]Write to MH i2c: E2 08 00 B0 34 80 17 00 00 00 00 00 00 64 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:40]Read from MH i2c: E2 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 FD 00 [19:18:40]MH_I2C_Read... [19:18:40]Read from MH i2c: E2 FD 00 B0 34 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 1B [19:18:40]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:18:40]wFMCommunicate OK [19:18:40]wFMCommunicate request_size=4 [19:18:40]MH_SAM_APDU [19:18:40]CAPDU: 80 17 00 00 [19:18:40]Write to MH i2c: E2 08 00 B1 34 80 17 00 00 00 00 00 00 65 [19:18:40]Write i2c OK [19:18:40]MH_I2C_Read... [19:18:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:41]Read from MH i2c: E2 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 FD 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 FD 00 B1 34 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 D7 [19:18:41]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:18:41]wFMCommunicate OK [19:18:41]wFMCommunicate request_size=4 [19:18:41]MH_SAM_APDU [19:18:41]CAPDU: 80 17 00 00 [19:18:41]Write to MH i2c: E2 08 00 B2 34 80 17 00 00 00 00 00 00 66 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:18:41]Read from MH i2c: E2 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 CB 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 CB 00 B2 34 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 4F [19:18:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:18:41]wFMCommunicate OK [19:18:41]SAM_PROTO_GetShiftData done [19:18:41]requested_item shift.sale.total_cash is exist - process it [19:18:41]requested_item shift.sale_refund.total is exist - process it [19:18:41]requested_item shift.sale_refund.total_cash is exist - process it [19:18:41]requested_item shift.buy.total is exist - process it [19:18:41]requested_item shift.buy.total_cash is exist - process it [19:18:41]produce_requested_data done [19:18:41]produce_requested_data return {"fm.sale.total":807030.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":48587.32,"shift.sale.total_cash":29743.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} [19:18:41]process_action_free get_value [19:18:41]json_value_free [19:18:41]json_value_free done [19:18:41]process_json_proto returns [19:18:41]Send response to host [19:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":807030.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":48587.32,"shift.sale.total_cash":29743.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}}} [19:18:41]free response buf [19:18:41]execute_script done [19:18:41]execute_script returns [19:18:41]free content buf [19:18:41]Sock 7.Close socket [19:18:41]Sock 7.Thread stoped [19:18:41]accept exits with 9 [19:18:41]New connection [19:18:41]New thread 3066707300 created [19:18:41]Thread 3066850660 joined [19:18:41]Waiting for new connection... [19:18:41] Sock 9.Parse request [19:18:41]Sock 9.Check first char [19:18:41]Sock 9.First char is OK [19:18:41]request: POST /json_proto HTTP/1.0 [19:18:41]Method: POST [19:18:41]URL: /json_proto [19:18:41]Method is POST - this is cgi request [19:18:41]url: /json_proto [19:18:41]query_string will be loaded in cgi processing [19:18:41]execute_cgi json_proto POST (null) [19:18:41]execute_cgi path=json_proto method=POST [19:18:41]POST find Content-Length [19:18:41]Host: 172.17.52.132:8080 [19:18:41]Content-Length: 263 [19:18:41]Content-Type: application/json [19:18:41] [19:18:41]POST finish read [19:18:41]Found Content-Length = 263 [19:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:41]execute_script... [19:18:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:41]POST & json_proto [19:18:41]process_json_proto [19:18:41]json parsed OK: [19:18:41]protocol is kg_v1.0 [19:18:41]action value=x_report [19:18:41]process_action x_report [19:18:41]cmd_x_report [19:18:41]MH_GetDate [19:18:41]Write to MH i2c: F0 00 00 B3 34 D6 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 09 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 09 00 B3 34 00 97 B4 12 67 5A BE F6 66 17 [19:18:41]GetLastDocTimeStamp 1729278506 [19:18:41]current date 1729279127 [19:18:41]FM_GetShiftState [19:18:41]SAM_PROTO_GetShiftState [19:18:41]wFMCommunicate request_size=4 [19:18:41]MH_SAM_APDU [19:18:41]CAPDU: 80 13 01 00 [19:18:41]Write to MH i2c: E2 08 00 B4 34 80 13 01 00 00 00 00 00 65 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 [19:18:41]MH_I2C_Read... [19:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:41]Read from MH i2c: E2 0E 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 0E 00 B4 34 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 03 [19:18:41]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:18:41]wFMCommunicate OK [19:18:41]SAM_PROTO_GetShiftState done [19:18:41]FM_GetShiftState done [19:18:41]KKMCreateXReportDocument [19:18:41]Load OK [19:18:41]Malloc new data [19:18:41]MH_GetDate [19:18:41]Write to MH i2c: F0 00 00 B5 34 D8 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 09 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: F0 09 00 B5 34 00 97 B4 12 67 5A BE F6 66 19 [19:18:41]Malloc new data [19:18:41]Malloc new data [19:18:41]wFMCommunicate request_size=4 [19:18:41]MH_SAM_APDU [19:18:41]CAPDU: 80 11 00 00 [19:18:41]Write to MH i2c: E2 08 00 B6 34 80 11 00 00 00 00 00 00 64 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:41]Read from MH i2c: E2 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 17 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 17 00 B6 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 AC [19:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:18:41]wFMCommunicate OK [19:18:41]SAM_PROTO_GetFieldsCounters [19:18:41]wFMCommunicate request_size=4 [19:18:41]MH_SAM_APDU [19:18:41]CAPDU: 80 13 00 00 [19:18:41]Write to MH i2c: E2 08 00 B7 34 80 13 00 00 00 00 00 00 67 [19:18:41]Write i2c OK [19:18:41]MH_I2C_Read... [19:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:41]Read from MH i2c: E2 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 62 00 [19:18:41]MH_I2C_Read... [19:18:41]Read from MH i2c: E2 62 00 B7 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 EB [19:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 [19:18:42]wFMCommunicate OK [19:18:42]SAM_PROTO_GetFieldsCounters done [19:18:42]Malloc new data [19:18:42]Malloc new data [19:18:42]Malloc new data [19:18:42]KKMCreateXReportDocument OK [19:18:42]KKMSetXReportData OK [19:18:42]KKMPrepareXReportFMData [19:18:42]SAM_PROTO_GetShiftData [19:18:42]wFMCommunicate request_size=4 [19:18:42]MH_SAM_APDU [19:18:42]CAPDU: 80 13 02 00 [19:18:42]Write to MH i2c: E2 08 00 B8 34 80 13 02 00 00 00 00 00 6A [19:18:42]Write i2c OK [19:18:42]MH_I2C_Read... [19:18:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [19:18:42]Read from MH i2c: E2 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 FD 00 [19:18:42]MH_I2C_Read... [19:18:42]Read from MH i2c: E2 FD 00 B8 34 00 AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 17 [19:18:42]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 82 00 00 00 69 04 9B 00 6F 04 04 00 82 00 00 00 B1 04 03 00 6C 23 4A 70 04 03 00 5C 62 2D 72 04 03 00 10 C1 1C 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 BC DF 07 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 EE A7 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [19:18:42]wFMCommunicate OK [19:18:42]wFMCommunicate request_size=4 [19:18:42]MH_SAM_APDU [19:18:42]CAPDU: 80 17 00 00 [19:18:42]Write to MH i2c: E2 08 00 B9 34 80 17 00 00 00 00 00 00 6D [19:18:42]Write i2c OK [19:18:42]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 FD 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 FD 00 B9 34 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 8F [19:18:43]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [19:18:43]wFMCommunicate OK [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 17 00 00 [19:18:43]Write to MH i2c: E2 08 00 BA 34 80 17 00 00 00 00 00 00 6E [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]OFD Sender: No OFD packet to send [19:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 FD 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 FD 00 BA 34 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 25 [19:18:43]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [19:18:43]wFMCommunicate OK [19:18:43]wFMCommunicate request_size=4 [19:18:43]MH_SAM_APDU [19:18:43]CAPDU: 80 17 00 00 [19:18:43]Write to MH i2c: E2 08 00 BB 34 80 17 00 00 00 00 00 00 6F [19:18:43]Write i2c OK [19:18:43]MH_I2C_Read... [19:18:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:43]Read from MH i2c: E2 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 FD 00 [19:18:43]MH_I2C_Read... [19:18:43]Read from MH i2c: E2 FD 00 BB 34 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 E1 [19:18:44]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [19:18:44]wFMCommunicate OK [19:18:44]wFMCommunicate request_size=4 [19:18:44]MH_SAM_APDU [19:18:44]CAPDU: 80 17 00 00 [19:18:44]Write to MH i2c: E2 08 00 BC 34 80 17 00 00 00 00 00 00 70 [19:18:44]Write i2c OK [19:18:44]MH_I2C_Read... [19:18:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [19:18:44]Read from MH i2c: E2 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 CB 00 [19:18:44]MH_I2C_Read... [19:18:44]Read from MH i2c: E2 CB 00 BC 34 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 59 [19:18:44]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [19:18:44]wFMCommunicate OK [19:18:44]SAM_PROTO_GetShiftData done [19:18:44]1194 (1194) - Ñчетчики итогов Ñмены [19:18:44] 1134 (4) - 130 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [19:18:44] 1129 (155) - Ñчетчики операций «приход» [19:18:44] 1135 (4) - 130 - количеÑтво чеков по признаку раÑчетов [19:18:44] 1201 (3) - 48587.32 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [19:18:44] 1136 (3) - 29743.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [19:18:44] 1138 (3) - 18844.32 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [19:18:44] 1024 (122) - Ñуммы налогов [19:18:44] 1006 (9) - Ñуммы ÐДС [19:18:44] 1010 (1) - 0% - код Ñтавки ÐДС [19:18:44] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:18:44] 1006 (12) - Ñуммы ÐДС [19:18:44] 1010 (1) - 12% - код Ñтавки ÐДС [19:18:44] 1011 (3) - 5160.28 - Ñумма ÐДС по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 0% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (11) - Ñуммы ÐСП [19:18:44] 1014 (1) - 1% - код Ñтавки ÐСП [19:18:44] 1015 (2) - 429.90 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 2% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 3% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 5% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 0,50% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 1,50% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1130 (141) - Ñчетчики операций «возврат прихода» [19:18:44] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [19:18:44] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [19:18:44] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [19:18:44] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [19:18:44] 1024 (117) - Ñуммы налогов [19:18:44] 1006 (9) - Ñуммы ÐДС [19:18:44] 1010 (1) - 0% - код Ñтавки ÐДС [19:18:44] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:18:44] 1006 (9) - Ñуммы ÐДС [19:18:44] 1010 (1) - 12% - код Ñтавки ÐДС [19:18:44] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 0% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 1% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 2% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 3% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 5% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 0,50% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 1,50% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1131 (141) - Ñчетчики операций «раÑход» [19:18:44] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [19:18:44] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [19:18:44] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [19:18:44] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [19:18:44] 1024 (117) - Ñуммы налогов [19:18:44] 1006 (9) - Ñуммы ÐДС [19:18:44] 1010 (1) - 0% - код Ñтавки ÐДС [19:18:44] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:18:44] 1006 (9) - Ñуммы ÐДС [19:18:44] 1010 (1) - 12% - код Ñтавки ÐДС [19:18:44] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 0% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 1% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 2% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 3% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 5% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 0,50% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 1,50% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1132 (141) - Ñчетчики операций «возврат раÑхода» [19:18:44] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [19:18:44] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [19:18:44] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [19:18:44] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [19:18:44] 1024 (117) - Ñуммы налогов [19:18:44] 1006 (9) - Ñуммы ÐДС [19:18:44] 1010 (1) - 0% - код Ñтавки ÐДС [19:18:44] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:18:44] 1006 (9) - Ñуммы ÐДС [19:18:44] 1010 (1) - 12% - код Ñтавки ÐДС [19:18:44] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 0% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 1% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 2% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 3% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 5% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 0,50% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1007 (9) - Ñуммы ÐСП [19:18:44] 1014 (1) - 1,50% - код Ñтавки ÐСП [19:18:44] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [19:18:44] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [19:18:44]SetTLVBufToDocument [19:18:44]Processing tag 1194 (04AA) [19:18:44]Load OK [19:18:44]SetTLVBufToDocument [19:18:44]Processing tag 1134 (046E) [19:18:44]Malloc new data [19:18:44]Processing tag 1129 (0469) [19:18:44]Load OK [19:18:44]SetTLVBufToDocument [19:18:44]Processing tag 1135 (046F) [19:18:44]Malloc new data [19:18:44]Processing tag 1201 (04B1) [19:18:44]Malloc new data [19:18:44]Processing tag 1136 (0470) [19:18:44]Malloc new data [19:18:44]Processing tag 1138 (0472) [19:18:44]Malloc new data [19:18:44]Processing tag 1024 (0400) [19:18:44]Load OK [19:18:44]SetTLVBufToDocument [19:18:44]Processing tag 1006 (03EE) [19:18:44]Load OK [19:18:44]SetTLVBufToDocument [19:18:44]Processing tag 1010 (03F2) [19:18:44]Malloc new data [19:18:44]Processing tag 1011 (03F3) [19:18:44]Malloc new data [19:18:44]SetTLVBufToDocument err=0 [19:18:44]Processing tag 1006 (03EE) [19:18:44]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1010 (03F2) [19:18:45]Malloc new data [19:18:45]Processing tag 1011 (03F3) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1130 (046A) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1135 (046F) [19:18:45]Malloc new data [19:18:45]Processing tag 1201 (04B1) [19:18:45]Malloc new data [19:18:45]Processing tag 1136 (0470) [19:18:45]Malloc new data [19:18:45]Processing tag 1138 (0472) [19:18:45]Malloc new data [19:18:45]Processing tag 1024 (0400) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1006 (03EE) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1010 (03F2) [19:18:45]Malloc new data [19:18:45]Processing tag 1011 (03F3) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1006 (03EE) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1010 (03F2) [19:18:45]Malloc new data [19:18:45]Processing tag 1011 (03F3) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1131 (046B) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1135 (046F) [19:18:45]Malloc new data [19:18:45]Processing tag 1201 (04B1) [19:18:45]Malloc new data [19:18:45]Processing tag 1136 (0470) [19:18:45]Malloc new data [19:18:45]Processing tag 1138 (0472) [19:18:45]Malloc new data [19:18:45]Processing tag 1024 (0400) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1006 (03EE) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1010 (03F2) [19:18:45]Malloc new data [19:18:45]Processing tag 1011 (03F3) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1006 (03EE) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1010 (03F2) [19:18:45]Malloc new data [19:18:45]Processing tag 1011 (03F3) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1132 (046C) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1135 (046F) [19:18:45]Malloc new data [19:18:45]Processing tag 1201 (04B1) [19:18:45]Malloc new data [19:18:45]Processing tag 1136 (0470) [19:18:45]Malloc new data [19:18:45]Processing tag 1138 (0472) [19:18:45]Malloc new data [19:18:45]Processing tag 1024 (0400) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1006 (03EE) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1010 (03F2) [19:18:45]Malloc new data [19:18:45]Processing tag 1011 (03F3) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1006 (03EE) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1010 (03F2) [19:18:45]Malloc new data [19:18:45]Processing tag 1011 (03F3) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1007 (03EF) [19:18:45]Load OK [19:18:45]SetTLVBufToDocument [19:18:45]Processing tag 1014 (03F6) [19:18:45]Malloc new data [19:18:45]Processing tag 1015 (03F7) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Processing tag 1133 (046D) [19:18:45]Malloc new data [19:18:45]SetTLVBufToDocument err=0 [19:18:45]SetTLVBufToDocument err=0 [19:18:45]Malloc new data [19:18:45]SAM_PROTO_GetFMData [19:18:45]wFMCommunicate request_size=4 [19:18:45]MH_SAM_APDU [19:18:45]CAPDU: 80 13 03 00 [19:18:45]Write to MH i2c: E2 08 00 BD 34 80 13 03 00 00 00 00 00 70 [19:18:45]Write i2c OK [19:18:45]MH_I2C_Read... [19:18:46]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [19:18:46]Read from MH i2c: E2 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 FD 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 FD 00 BD 34 00 BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 80 [19:18:46]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [19:18:46]wFMCommunicate OK [19:18:46]wFMCommunicate request_size=4 [19:18:46]MH_SAM_APDU [19:18:46]CAPDU: 80 17 00 00 [19:18:46]Write to MH i2c: E2 08 00 BE 34 80 17 00 00 00 00 00 00 72 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:46]Read from MH i2c: E2 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 FD 00 [19:18:46]MH_I2C_Read... [19:18:46]Read from MH i2c: E2 FD 00 BE 34 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 87 [19:18:46]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [19:18:46]wFMCommunicate OK [19:18:46]wFMCommunicate request_size=4 [19:18:46]MH_SAM_APDU [19:18:46]CAPDU: 80 17 00 00 [19:18:46]Write to MH i2c: E2 08 00 BF 34 80 17 00 00 00 00 00 00 73 [19:18:46]Write i2c OK [19:18:46]MH_I2C_Read... [19:18:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:47]Read from MH i2c: E2 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 FD 00 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 FD 00 BF 34 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A5 [19:18:47]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [19:18:47]wFMCommunicate OK [19:18:47]wFMCommunicate request_size=4 [19:18:47]MH_SAM_APDU [19:18:47]CAPDU: 80 17 00 00 [19:18:47]Write to MH i2c: E2 08 00 C0 34 80 17 00 00 00 00 00 00 74 [19:18:47]Write i2c OK [19:18:47]MH_I2C_Read... [19:18:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [19:18:47]Read from MH i2c: E2 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 FD 00 [19:18:47]MH_I2C_Read... [19:18:47]Read from MH i2c: E2 FD 00 C0 34 00 04 F7 03 00 00 EF 03 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 90 00 EF [19:18:47]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [19:18:48]wFMCommunicate OK [19:18:48]wFMCommunicate request_size=4 [19:18:48]MH_SAM_APDU [19:18:48]CAPDU: 80 17 00 00 [19:18:48]Write to MH i2c: E2 08 00 C1 34 80 17 00 00 00 00 00 00 75 [19:18:48]Write i2c OK [19:18:48]MH_I2C_Read... [19:18:48]OFD Sender: No OFD packet to send [19:18:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [19:18:48]Read from MH i2c: E2 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 DB 00 [19:18:48]MH_I2C_Read... [19:18:48]Read from MH i2c: E2 DB 00 C1 34 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 57 [19:18:48]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [19:18:48]wFMCommunicate OK [19:18:48]SAM_PROTO_GetFMData done [19:18:48]FM_GetFMData:85 04 BA 04 6E 04 04 00 9D 09 00 00 69 04 9F 00 6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:18:49]oper:6F 04 04 00 95 09 00 00 B1 04 04 00 2B 6E CF 04 70 04 04 00 7C 06 93 03 72 04 04 00 AF 67 3C 01 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 87 C7 82 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 0A E5 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:18:49]total:2B 6E CF 04 [19:18:49]Malloc new data [19:18:49]oper:6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [19:18:49]total:58 F6 01 [19:18:49]Malloc new data [19:18:49]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 [19:18:49]total: [19:18:49]Malloc new data [19:18:49]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 [19:18:49]total: [19:18:49]Malloc new data [19:18:49]KKMPrepareXReportFMData err=0 [19:18:49]Ð¥ отчет ИÐÐ: 02508201610067 КаÑÑир: Ðуралиева Ð. 18.10.2024 19:18 Смена: 10 РÐМ: 0000000000207295 ЗÐМ: 0300000191 СÐО: Общий режим Ð’Ñего чеков: 130 ИТОГИ ПРИХОД Чеков: 130 Общий итог: 48587.32 Итого наличными: 29743.00 Итого безнал.: 18844.32 ÐДС 0% : 0.00 ÐДС 12% : 5160.28 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 429.90 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ РÐСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ ВОЗВРÐТ РÐСХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 Сумма внеÑений: 0.00 Сумма выплат: 0.00 Ðал. в каÑÑе: 29743.00 ÐС Приход: 807030.19 ÐС Возвр.Прихода: 1286.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФМ: 0000000002342820 [19:18:49]StoreToDocumentArchive [19:18:49]MH_GetDate [19:18:49]Write to MH i2c: F0 00 00 C2 34 E5 [19:18:49]Write i2c OK [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: F0 [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: F0 09 00 [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: F0 09 00 C2 34 00 9F B4 12 67 5A BE F6 66 2E [19:18:49]shift 10 fd 1729279135 [19:18:49]save to /storage/0010/doc_1729279135 [19:18:49]save last doc name /storage/0010/doc_1729279135 to /storage/kkm_last_doc_name [19:18:49]save OK [19:18:49]Clear old archive folders... [19:18:49]NVStorageSaveData kkm_last_timestamp [19:18:49]File name is /storage/kkm_last_timestamp [19:18:49]Write 4 bytes [19:18:49]NVStorageSaveData done [19:18:49]ExternCall_PrintAddStr [19:18:49]wPrintStart [19:18:49]Write to MH i2c: 01 00 00 C3 34 F7 [19:18:49]Write i2c OK [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: 01 [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: 01 07 00 [19:18:49]MH_I2C_Read... [19:18:49]Read from MH i2c: 01 07 00 C3 34 00 00 00 00 00 FF 0F 0C [19:18:49]RasterBufferAndPrint [19:18:49]line Ð¥ отчет [19:18:49]line ИÐÐ: 02508201610067 [19:18:49]line КаÑÑир: Ðуралиева Ð. [19:18:49]line 18.10.2024 19:18 [19:18:49]line Смена: 10 [19:18:49]line РÐМ: 0000000000207295 [19:18:49]line ЗÐМ: 0300000191 [19:18:49]line СÐО: Общий режим [19:18:49]line Ð’Ñего чеков: 130 [19:18:49]line ИТОГИ ПРИХОД [19:18:49]line Чеков: 130 [19:18:49]line Общий итог: 48587.32 [19:18:49]line Итого наличными: 29743.00 [19:18:49]line Итого безнал.: 18844.32 [19:18:49]line ÐДС 0% : 0.00 [19:18:49]line ÐДС 12% : 5160.28 [19:18:49]line ÐСП 0% : 0.00 [19:18:49]line ÐСП 1,50% : 0.00 [19:18:49]line ÐСП 0,50% : 0.00 [19:18:49]line ÐСП 5% : 0.00 [19:18:49]line ÐСП 3% : 0.00 [19:18:49]line ÐСП 2% : 0.00 [19:18:49]line ÐСП 1% : 429.90 [19:18:49]line ИТОГИ ВОЗВРÐТ ПРИХОДР[19:18:49]line Чеков: 0 [19:18:49]line Общий итог: 0.00 [19:18:49]line Итого наличными: 0.00 [19:18:49]line Итого безнал.: 0.00 [19:18:49]line ÐДС 0% : 0.00 [19:18:49]line ÐДС 12% : 0.00 [19:18:49]line ÐСП 0% : 0.00 [19:18:49]line ÐСП 1,50% : 0.00 [19:18:49]line ÐСП 0,50% : 0.00 [19:18:49]line ÐСП 5% : 0.00 [19:18:49]line ÐСП 3% : 0.00 [19:18:49]line ÐСП 2% : 0.00 [19:18:49]line ÐСП 1% : 0.00 [19:18:49]line ИТОГИ РÐСХОД [19:18:49]line Чеков: 0 [19:18:49]line Общий итог: 0.00 [19:18:49]line Итого наличными: 0.00 [19:18:49]line Итого безнал.: 0.00 [19:18:49]line ÐДС 0% : 0.00 [19:18:49]line ÐДС 12% : 0.00 [19:18:49]line ÐСП 0% : 0.00 [19:18:49]line ÐСП 1,50% : 0.00 [19:18:49]line ÐСП 0,50% : 0.00 [19:18:49]line ÐСП 5% : 0.00 [19:18:49]line ÐСП 3% : 0.00 [19:18:49]line ÐСП 2% : 0.00 [19:18:49]line ÐСП 1% : 0.00 [19:18:49]line ИТОГИ ВОЗВРÐТ РÐСХОДР[19:18:49]line Чеков: 0 [19:18:49]line Общий итог: 0.00 [19:18:49]line Итого наличными: 0.00 [19:18:49]line Итого безнал.: 0.00 [19:18:49]line ÐДС 0% : 0.00 [19:18:49]line ÐДС 12% : 0.00 [19:18:49]line ÐСП 0% : 0.00 [19:18:49]line ÐСП 1,50% : 0.00 [19:18:49]line ÐСП 0,50% : 0.00 [19:18:49]line ÐСП 5% : 0.00 [19:18:49]line ÐСП 3% : 0.00 [19:18:49]line ÐСП 2% : 0.00 [19:18:49]line ÐСП 1% : 0.00 [19:18:49]line Сумма внеÑений: 0.00 [19:18:49]line Сумма выплат: 0.00 [19:18:49]line Ðал. в каÑÑе: 29743.00 [19:18:49]line ÐС Приход: 807030.19 [19:18:49]line ÐС Возвр.Прихода: 1286.00 [19:18:49]line ÐС РаÑход: 0.00 [19:18:49]line ÐС Возвр.РаÑхода: 0.00 [19:18:49]line ФМ: 0000000002342820 [19:18:49]written 0, free lines is 4095 [19:18:50]Write to MH i2c: 01 00 00 0E 35 43 [19:18:50]Write i2c OK [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: 01 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: 01 07 00 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: 01 07 00 0E 35 00 00 00 00 00 46 0A 9A [19:18:50]RasterBufferAndPrint [19:18:50]line [19:18:50]line [19:18:50]line [19:18:50]line [19:18:50]line [19:18:50]written 0, free lines is 2661 [19:18:50]MH_Cut [19:18:50]Write to MH i2c: D1 01 00 15 35 01 1C [19:18:50]Write i2c OK [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: D1 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: D1 01 00 [19:18:50]MH_I2C_Read... [19:18:50]Read from MH i2c: D1 01 00 15 35 00 1B [19:18:50]Write to MH i2c: 01 00 00 16 35 4B [19:18:50]Write i2c OK [19:18:50]MH_I2C_Read... [19:18:51]*** Cut start [19:18:51]*** Partial cut [19:18:51]*** CUTSNS_PIN = 1 [19:18:51]*** CUTSNS_PIN = 0 [19:18:51]*** Brake cut motor [19:18:52]Read from MH i2c: 01 [19:18:52]MH_I2C_Read... [19:18:52]*** Stop cut motor [19:18:52]*** Cut end [19:18:52]Read from MH i2c: 01 07 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: 01 07 00 16 35 00 00 00 00 00 FF 0F 60 [19:18:52]process_action x_report done [19:18:52]requested_data is exist [19:18:52]produce_requested_data [19:18:52]requested_item fd.num is exist - process it [19:18:52]SAM_PROTO_GetFieldsCounters [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 13 00 00 [19:18:52]Write to MH i2c: E2 08 00 17 35 80 13 00 00 00 00 00 00 C8 [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 62 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 62 00 17 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 4C [19:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 C9 09 00 00 0E 04 04 00 16 00 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 [19:18:52]wFMCommunicate OK [19:18:52]SAM_PROTO_GetFieldsCounters done [19:18:52]requested_item shift.num is exist - process it [19:18:52]requested_item shift.opened is exist - process it [19:18:52]req_shift_opened [19:18:52]FM_GetShiftState [19:18:52]SAM_PROTO_GetShiftState [19:18:52]wFMCommunicate request_size=4 [19:18:52]MH_SAM_APDU [19:18:52]CAPDU: 80 13 01 00 [19:18:52]Write to MH i2c: E2 08 00 18 35 80 13 01 00 00 00 00 00 CA [19:18:52]Write i2c OK [19:18:52]MH_I2C_Read... [19:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:52]Read from MH i2c: E2 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 0E 00 [19:18:52]MH_I2C_Read... [19:18:52]Read from MH i2c: E2 0E 00 18 35 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 68 [19:18:52]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:18:52]wFMCommunicate OK [19:18:52]SAM_PROTO_GetShiftState done [19:18:52]FM_GetShiftState done [19:18:52]req_shift_opened done [19:18:52]requested_item shift.open_date is exist - process it [19:18:52]req_shift_open_date [19:18:52]req_shift_open_date done [19:18:52]produce_requested_data done [19:18:52]produce_requested_data return {"fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:18:52]process_action_free x_report [19:18:52]json_value_free [19:18:52]json_value_free done [19:18:52]process_json_proto returns [19:18:52]Send response to host [19:18:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2505,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:18:52]free response buf [19:18:52]execute_script done [19:18:52]execute_script returns [19:18:52]free content buf [19:18:52]Sock 9.Close socket [19:18:52]Sock 9.Thread stoped [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:43]OFD Sender: No OFD packet to send [19:20:48]OFD Sender: No OFD packet to send [19:20:53]OFD Sender: No OFD packet to send [19:20:58]OFD Sender: No OFD packet to send [19:21:03]OFD Sender: No OFD packet to send [19:21:08]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:53]OFD Sender: No OFD packet to send [19:24:58]OFD Sender: No OFD packet to send [19:25:03]OFD Sender: No OFD packet to send [19:25:08]OFD Sender: No OFD packet to send [19:25:13]OFD Sender: No OFD packet to send [19:25:18]OFD Sender: No OFD packet to send [19:25:23]OFD Sender: No OFD packet to send [19:25:28]OFD Sender: No OFD packet to send [19:25:33]OFD Sender: No OFD packet to send [19:25:38]OFD Sender: No OFD packet to send [19:25:43]OFD Sender: No OFD packet to send [19:25:48]OFD Sender: No OFD packet to send [19:25:53]OFD Sender: No OFD packet to send [19:25:58]OFD Sender: No OFD packet to send [19:26:03]OFD Sender: No OFD packet to send [19:26:08]OFD Sender: No OFD packet to send [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:50]accept exits with 7 [19:28:50]New connection [19:28:50]New thread 3066850660 created [19:28:50]Thread 3066707300 joined [19:28:50]Waiting for new connection... [19:28:50] Sock 7.Parse request [19:28:50]Sock 7.Check first char [19:28:50]Sock 7.First char is OK [19:28:50]request: POST /json_proto HTTP/1.0 [19:28:50]Method: POST [19:28:50]URL: /json_proto [19:28:50]Method is POST - this is cgi request [19:28:50]url: /json_proto [19:28:50]query_string will be loaded in cgi processing [19:28:50]execute_cgi json_proto POST (null) [19:28:50]execute_cgi path=json_proto method=POST [19:28:50]POST find Content-Length [19:28:50]Host: 172.17.52.132:8080 [19:28:50]Content-Length: 870 [19:28:50]Content-Type: application/json [19:28:50] [19:28:50]POST finish read [19:28:50]Found Content-Length = 870 [19:28:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99897", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:50]execute_script... [19:28: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 : (3)99897", "tax_sys" : 0, "items" : [ { "code": "4700025313937", "name": "\u0412\u041E\u0414\u041A\u0410 \u041C\u042F\u0413\u041A\u0410\u042F 0,1\u043B", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 264.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:28:50]POST & json_proto [19:28:50]process_json_proto [19:28:50]json parsed OK: [19:28:50]protocol is kg_v1.0 [19:28:50]action value=close_receipt [19:28:50]process_action close_receipt [19:28:50]cmd_close_receipt [19:28:50]MH_GetDate [19:28:50]Write to MH i2c: F0 00 00 19 35 3D [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: F0 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: F0 09 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: F0 09 00 19 35 00 F8 B6 12 67 5A BE F6 66 E1 [19:28:50]GetLastDocTimeStamp 1729279127 [19:28:50]current date 1729279736 [19:28:50]FM_GetShiftState [19:28:50]SAM_PROTO_GetShiftState [19:28:50]wFMCommunicate request_size=4 [19:28:50]MH_SAM_APDU [19:28:50]CAPDU: 80 13 01 00 [19:28:50]Write to MH i2c: E2 08 00 1A 35 80 13 01 00 00 00 00 00 CC [19:28:50]Write i2c OK [19:28:50]MH_I2C_Read... [19:28:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:50]Read from MH i2c: E2 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 0E 00 [19:28:50]MH_I2C_Read... [19:28:50]Read from MH i2c: E2 0E 00 1A 35 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 6A [19:28:50]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:28:50]wFMCommunicate OK [19:28:50]SAM_PROTO_GetShiftState done [19:28:50]FM_GetShiftState done [19:28:50]opened in 1729209717 [19:28:50]opened+sec_in_day 1729296117 [19:28:50]quantity*price = 12000 [19:28:50]sum+1 = 12001 [19:28:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 1.000 * 144.00 = 144.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 264.00 ÐСП 1% : 2.33 ÐДС 12% : 28.03 Ðаличными: 264.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 131 18.10.2024 19:28 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2506 ФПД: 229821810215755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192856&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2506&fm=229821810215755&tin=02508201610067®Number=0000000000207295&sum=26400 0 [19:28:51]StoreToDocumentArchive [19:28:51]shift 22 fd 2506 [19:28:51]save to /storage/0022/doc_00002506 [19:28:51]save last doc name /storage/0022/doc_00002506 to /storage/kkm_last_doc_name [19:28:51]save OK [19:28:51]Clear old archive folders... [19:28:51]Remove dir /storage/0010 [19:28:51]opendir ok [19:28:51]file . [19:28:51]file .. [19:28:51]file doc_1729278513 [19:28:51]remove file /storage/0010/doc_1729278513 [19:28:51]file doc_1729279135 [19:28:51]remove file /storage/0010/doc_1729279135 [19:28:51]remove dir /storage/0010 [19:28:51]ProcessDocumentItem done err = 0, tmpTLVsize=374 [19:28:51]tlvbuf is 013E2B40 [19:28:51]SAM_PROTO_ClearQueue [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 09 00 00 [19:28:51]Write to MH i2c: E2 08 00 27 35 80 09 00 00 00 00 00 00 CE [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 27 35 00 90 00 D0 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]SAM_PROTO_ClearQueue done [19:28:51]KKMCreateOFDPacket [19:28:51]OFDProtocolAddRootSTLVToBuf [19:28:51]FM_MakeSignedData [19:28:51]FM_MakeSignedData [19:28:51]SAM_PROTO_SignData [19:28:51]wFMCommunicate request_size=4 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 01 02 [19:28:51]Write to MH i2c: E2 08 00 28 35 80 0D 01 02 00 00 00 00 D6 [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:28:51]Read from MH i2c: E2 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 [19:28:51]MH_I2C_Read... [19:28:51]Read from MH i2c: E2 03 00 28 35 00 90 00 D1 [19:28:51]RAPDU: 90 00 [19:28:51]wFMCommunicate OK [19:28:51]wFMCommunicate request_size=255 [19:28:51]MH_SAM_APDU [19:28:51]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 [19:28:51]Write to MH i2c: E2 02 01 29 35 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 00 00 EC [19:28:51]Write i2c OK [19:28:51]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 29 35 00 90 00 D2 [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]wFMCommunicate request_size=133 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 F8 B6 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CA 09 00 00 35 04 06 00 D1 05 8F 5C 0B 4B [19:28:52]Write to MH i2c: E2 88 00 2A 35 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 F8 B6 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CA 09 00 00 35 04 06 00 D1 05 8F 5C 0B 4B 00 00 29 [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 03 00 2A 35 00 90 00 D3 [19:28:52]RAPDU: 90 00 [19:28:52]wFMCommunicate OK [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 0D 03 02 [19:28:52]Write to MH i2c: E2 08 00 2B 35 80 0D 03 02 00 00 00 00 DB [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0B 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 0B 00 2B 35 00 00 8D FB 95 37 26 3C B9 90 00 4B [19:28:52]RAPDU: 00 8D FB 95 37 26 3C B9 90 00 [19:28:52]wFMCommunicate OK [19:28:52]SAM_PROTO_SignData done [19:28:52]FM_MakeSignedData done [19:28:52]CreateOFDProtocolMessage [19:28:52]wFMCommunicate request_size=4 [19:28:52]MH_SAM_APDU [19:28:52]CAPDU: 80 11 00 00 [19:28:52]Write to MH i2c: E2 08 00 2C 35 80 11 00 00 00 00 00 00 DB [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:52]Read from MH i2c: E2 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 17 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: E2 17 00 2C 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 23 [19:28:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:28:52]wFMCommunicate OK [19:28:52]CreateOFDProtocolMessage done [19:28:52]OFDSenderStorePacket 2506 [19:28:52]StoreOFDPacket docnum=2506 [19:28:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 8A 01 00 00 12 33 82 01 16 0B 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 F8 B6 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CA 09 00 00 35 04 06 00 D1 05 8F 5C 0B 4B 00 8D FB 95 37 26 3C B9 [19:28:52]CheckFolder [19:28:52]dirname=/storage/ofd_packets [19:28:52]CheckFolder done [19:28:52]ProducePacketName [19:28:52]name=ofd_packets/00002506 [19:28:52]NVStorageSaveData ofd_packets/00002506 [19:28:52]File name is /storage/ofd_packets/00002506 [19:28:52]Write 424 bytes [19:28:52]NVStorageSaveData done [19:28:52]OFDSenderStorePacket done [19:28:52]KKMCreateOFDPacket done [19:28:52]NVStorageSaveData kkm_last_timestamp [19:28:52]File name is /storage/kkm_last_timestamp [19:28:52]Write 4 bytes [19:28:52]NVStorageSaveData done [19:28:52]ExternCall_PrintAddStr [19:28:52]wPrintStart [19:28:52]Write to MH i2c: 01 00 00 2D 35 62 [19:28:52]OFD Sender: Processing packet 2506 [packets to send 1, broken 0] [19:28:52]ProducePacketName [19:28:52]name=ofd_packets/00002506 [19:28:52]OFD Sender: To server: ‡•öpG, [19:28:52]CommunicateWithHost lk.salyk.kg:30040 [19:28:52]ConnectInit lk.salyk.kg [19:28:52]Write i2c OK [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 [19:28:52]MH_I2C_Read... [19:28:52]Read from MH i2c: 01 07 00 2D 35 00 00 00 00 00 FF 0F 77 [19:28:52]RasterBufferAndPrint [19:28:52]line Счет N : (3)99897 [19:28:52]line ИÐÐ: 02508201610067 [19:28:52]line Контрольно-КаÑÑовый Чек [19:28:52]line ПРОДÐЖР[19:28:52]line Товар: 4700025313937 [19:28:52]line ВОДКРМЯГКÐЯ 0,1л [19:28:52]line 2.000 * 60.00 [19:28:52]line = 120.00 [19:28:52]line ÐДС 12% ÐСП 1% [19:28:52]line > о реализуемом товаре [19:28:52]line Товар: 48747059 [19:28:52]line Сигареты Winston Legend Blue [19:28:52]line 1.000 * 144.00 [19:28:52]line = 144.00 [19:28:52]line ÐДС 12% ÐСП 1% [19:28:52]line > о реализуемом товаре [19:28:52]line ИТОГО: 264.00 [19:28:52]line ÐСП 1% : 2.33 [19:28:52]line ÐДС 12% : 28.03 [19:28:52]line Ðаличными: 264.00 [19:28:52]line Безнал.: 0.00 [19:28:52]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [19:28:52]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [19:28:52]line СÐО: Общий режим [19:28:52]line Чек 131 18.10.2024 19:28 [19:28:52]line Смена: 22 ФФД: 1.0 [19:28:52]line ЗÐМ: 0300000191 [19:28:52]line РÐМ: 0000000000207295 [19:28:52]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [19:28:52]line ФМ: 0000000002342820 [19:28:52]line ФД: 2506 [19:28:52]line ФПД: 229821810215755 [19:28:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192856&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2506&fm=229821810215755&tin=02508201610067®Number=0000000000207295&sum=26400 [19:28:52]line 0 [19:28:52]written 0, free lines is 4095 [19:28:52]Connected sock=10 [19:28:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 8A 01 00 00 12 33 82 01 16 0B 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 32 35 33 31 33 39 33 37 06 04 1D 00 D0 92 D0 9E D0 94 D0 9A D0 90 20 D0 9C D0 AF D0 93 D0 9A D0 90 D0 AF 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 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 20 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 0A 00 00 00 00 07 04 06 00 20 67 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 F8 B6 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CA 09 00 00 35 04 06 00 D1 05 8F 5C 0B 4B 00 8D FB 95 37 26 3C B9 [19:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CF B6 47 00 D9 33 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CA 09 00 00 F4 03 04 00 5B 62 12 67 B6 04 01 00 00 EE 5E 7E 9F 81 5B 68 DD [19:28:53]CommunicateWithHost err = 0 [19:28:53]CheckOFDResponse [19:28:53]1017 (14) - 77093643461234 [19:28:53]1041 (16) - 0000000002342820 [19:28:53]1040 (4) - 2506 [19:28:53]1012 (4) - 18.10.2024 13:27 [19:28:53]1206 (1) - 0 [19:28:53]OFD Sender: Remove packet 2506 [19:28:53]ProducePacketName [19:28:53]name=ofd_packets/00002506 [19:28:53]NVStorageDeleteData [19:28:53]Write to MH i2c: 01 00 00 5C 35 91 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: 01 07 00 5C 35 00 00 00 00 00 46 0C EA [19:28:53]RasterBufferAndPrint [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]line [19:28:53]written 0, free lines is 3147 [19:28:53]MH_Cut [19:28:53]Write to MH i2c: D1 01 00 63 35 01 6A [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 01 00 [19:28:53]MH_I2C_Read... [19:28:53]Read from MH i2c: D1 01 00 63 35 00 69 [19:28:53]Write to MH i2c: 01 00 00 64 35 99 [19:28:53]Write i2c OK [19:28:53]MH_I2C_Read... [19:28:53]OFD Sender: No OFD packet to send [19:28:54]*** Cut start [19:28:54]*** Partial cut [19:28:54]*** CUTSNS_PIN = 1 [19:28:54]*** CUTSNS_PIN = 0 [19:28:54]*** Brake cut motor [19:28:54]Read from MH i2c: 01 [19:28:54]MH_I2C_Read... [19:28:54]*** Stop cut motor [19:28:54]*** Cut end [19:28:54]Read from MH i2c: 01 07 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: 01 07 00 64 35 00 00 00 00 00 FF 0F AE [19:28:54]process_action close_receipt done [19:28:54]requested_data is exist [19:28:54]produce_requested_data [19:28:54]requested_item fm.sn is exist - process it [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 11 00 00 [19:28:54]Write to MH i2c: E2 08 00 65 35 80 11 00 00 00 00 00 00 14 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:28:54]Read from MH i2c: E2 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 [19:28:54]MH_I2C_Read... [19:28:54]Read from MH i2c: E2 17 00 65 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 5C [19:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:28:54]wFMCommunicate OK [19:28:54]requested_item fd.num is exist - process it [19:28:54]SAM_PROTO_GetFieldsCounters [19:28:54]wFMCommunicate request_size=4 [19:28:54]MH_SAM_APDU [19:28:54]CAPDU: 80 13 00 00 [19:28:54]Write to MH i2c: E2 08 00 66 35 80 13 00 00 00 00 00 00 17 [19:28:54]Write i2c OK [19:28:54]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 62 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 62 00 66 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CA 09 00 00 0E 04 04 00 16 00 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 9F [19:28:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CA 09 00 00 0E 04 04 00 16 00 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 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_GetFieldsCounters done [19:28:55]requested_item shift.num is exist - process it [19:28:55]requested_item shift.opened is exist - process it [19:28:55]req_shift_opened [19:28:55]FM_GetShiftState [19:28:55]SAM_PROTO_GetShiftState [19:28:55]wFMCommunicate request_size=4 [19:28:55]MH_SAM_APDU [19:28:55]CAPDU: 80 13 01 00 [19:28:55]Write to MH i2c: E2 08 00 67 35 80 13 01 00 00 00 00 00 19 [19:28:55]Write i2c OK [19:28:55]MH_I2C_Read... [19:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:28:55]Read from MH i2c: E2 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0E 00 [19:28:55]MH_I2C_Read... [19:28:55]Read from MH i2c: E2 0E 00 67 35 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B7 [19:28:55]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:28:55]wFMCommunicate OK [19:28:55]SAM_PROTO_GetShiftState done [19:28:55]FM_GetShiftState done [19:28:55]req_shift_opened done [19:28:55]requested_item shift.open_date is exist - process it [19:28:55]req_shift_open_date [19:28:55]req_shift_open_date done [19:28:55]produce_requested_data done [19:28:55]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2506,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:28:55]process_action_free close_receipt [19:28:55]json_value_free [19:28:55]json_value_free done [19:28:55]process_json_proto returns [19:28:55]Send response to host [19:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2506,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:28:55]free response buf [19:28:55]execute_script done [19:28:55]execute_script returns [19:28:55]free content buf [19:28:55]Sock 7.Close socket [19:28:55]Sock 7.Thread stoped [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:30]accept exits with 9 [19:29:30]New connection [19:29:30]New thread 3066707300 created [19:29:30]Thread 3066850660 joined [19:29:30]Waiting for new connection... [19:29:30] Sock 9.Parse request [19:29:30]Sock 9.Check first char [19:29:30]Sock 9.First char is OK [19:29:30]request: POST /json_proto HTTP/1.0 [19:29:30]Method: POST [19:29:30]URL: /json_proto [19:29:30]Method is POST - this is cgi request [19:29:30]url: /json_proto [19:29:30]query_string will be loaded in cgi processing [19:29:30]execute_cgi json_proto POST (null) [19:29:30]execute_cgi path=json_proto method=POST [19:29:30]POST find Content-Length [19:29:30]Host: 172.17.52.132:8080 [19:29:30]Content-Length: 677 [19:29:30]Content-Type: application/json [19:29:30] [19:29:30]POST finish read [19:29:30]Found Content-Length = 677 [19:29:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475704", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:30]execute_script... [19:29:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475704", "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" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:29:30]POST & json_proto [19:29:30]process_json_proto [19:29:30]json parsed OK: [19:29:30]protocol is kg_v1.0 [19:29:30]action value=close_receipt [19:29:30]process_action close_receipt [19:29:30]cmd_close_receipt [19:29:30]MH_GetDate [19:29:30]Write to MH i2c: F0 00 00 68 35 8C [19:29:30]Write i2c OK [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: F0 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: F0 09 00 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: F0 09 00 68 35 00 20 B7 12 67 5A BE F6 66 59 [19:29:30]GetLastDocTimeStamp 1729279736 [19:29:30]current date 1729279776 [19:29:30]FM_GetShiftState [19:29:30]SAM_PROTO_GetShiftState [19:29:30]wFMCommunicate request_size=4 [19:29:30]MH_SAM_APDU [19:29:30]CAPDU: 80 13 01 00 [19:29:30]Write to MH i2c: E2 08 00 69 35 80 13 01 00 00 00 00 00 1B [19:29:30]Write i2c OK [19:29:30]MH_I2C_Read... [19:29:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:30]Read from MH i2c: E2 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: E2 0E 00 [19:29:30]MH_I2C_Read... [19:29:30]Read from MH i2c: E2 0E 00 69 35 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B9 [19:29:30]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:29:30]wFMCommunicate OK [19:29:30]SAM_PROTO_GetShiftState done [19:29:30]FM_GetShiftState done [19:29:30]opened in 1729209717 [19:29:30]opened+sec_in_day 1729296117 [19:29:30]quantity*price = 30038 [19:29:30]sum+1 = 30039 [19:29:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.38 ИТОГО: 300.00 ВнеÑено: 300.00 СДÐЧÐ: 0.00 ÐСП 1% : 2.66 ÐДС 12% : 31.90 Ðаличными: 300.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 132 18.10.2024 19:29 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2507 ФПД: 122997987334697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192936&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2507&fm=122997987334697&tin=02508201610067®Number=0000000000207295&sum=30000 [19:29:31]StoreToDocumentArchive [19:29:31]shift 22 fd 2507 [19:29:31]save to /storage/0022/doc_00002507 [19:29:31]save last doc name /storage/0022/doc_00002507 to /storage/kkm_last_doc_name [19:29:31]save OK [19:29:31]Clear old archive folders... [19:29:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:29:31]tlvbuf is 01403B40 [19:29:31]SAM_PROTO_ClearQueue [19:29:31]wFMCommunicate request_size=4 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 09 00 00 [19:29:31]Write to MH i2c: E2 08 00 76 35 80 09 00 00 00 00 00 00 1D [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:29:31]Read from MH i2c: E2 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 76 35 00 90 00 1F [19:29:31]RAPDU: 90 00 [19:29:31]wFMCommunicate OK [19:29:31]SAM_PROTO_ClearQueue done [19:29:31]KKMCreateOFDPacket [19:29:31]OFDProtocolAddRootSTLVToBuf [19:29:31]FM_MakeSignedData [19:29:31]FM_MakeSignedData [19:29:31]SAM_PROTO_SignData [19:29:31]wFMCommunicate request_size=4 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 0D 01 02 [19:29:31]Write to MH i2c: E2 08 00 77 35 80 0D 01 02 00 00 00 00 25 [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:29:31]Read from MH i2c: E2 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 77 35 00 90 00 20 [19:29:31]RAPDU: 90 00 [19:29:31]wFMCommunicate OK [19:29:31]wFMCommunicate request_size=255 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 20 B7 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CB 09 00 00 35 04 06 00 6F [19:29:31]Write to MH i2c: E2 02 01 78 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 20 B7 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CB 09 00 00 35 04 06 00 6F 00 00 CA [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:31]Read from MH i2c: E2 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 78 35 00 90 00 21 [19:29:31]RAPDU: 90 00 [19:29:31]wFMCommunicate OK [19:29:31]wFMCommunicate request_size=10 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 0D 02 02 05 DD B3 57 DA 29 [19:29:31]Write to MH i2c: E2 0D 00 79 35 80 0D 02 02 05 00 DD B3 57 DA 29 00 00 1C [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:29:31]Read from MH i2c: E2 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 [19:29:31]MH_I2C_Read... [19:29:31]Read from MH i2c: E2 03 00 79 35 00 90 00 22 [19:29:31]RAPDU: 90 00 [19:29:31]wFMCommunicate OK [19:29:31]wFMCommunicate request_size=4 [19:29:31]MH_SAM_APDU [19:29:31]CAPDU: 80 0D 03 02 [19:29:31]Write to MH i2c: E2 08 00 7A 35 80 0D 03 02 00 00 00 00 2A [19:29:31]Write i2c OK [19:29:31]MH_I2C_Read... [19:29:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:29:32]Read from MH i2c: E2 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 0B 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 0B 00 7A 35 00 11 29 21 B3 7B AC E3 FD 90 00 40 [19:29:32]RAPDU: 11 29 21 B3 7B AC E3 FD 90 00 [19:29:32]wFMCommunicate OK [19:29:32]SAM_PROTO_SignData done [19:29:32]FM_MakeSignedData done [19:29:32]CreateOFDProtocolMessage [19:29:32]wFMCommunicate request_size=4 [19:29:32]MH_SAM_APDU [19:29:32]CAPDU: 80 11 00 00 [19:29:32]Write to MH i2c: E2 08 00 7B 35 80 11 00 00 00 00 00 00 2A [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:32]Read from MH i2c: E2 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 17 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: E2 17 00 7B 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 72 [19:29:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:29:32]wFMCommunicate OK [19:29:32]CreateOFDProtocolMessage done [19:29:32]OFDSenderStorePacket 2507 [19:29:32]StoreOFDPacket docnum=2507 [19:29:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 8D 0D 07 01 E1 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 20 B7 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CB 09 00 00 35 04 06 00 6F DD B3 57 DA 29 11 29 21 B3 7B AC E3 FD [19:29:32]CheckFolder [19:29:32]dirname=/storage/ofd_packets [19:29:32]CheckFolder done [19:29:32]ProducePacketName [19:29:32]name=ofd_packets/00002507 [19:29:32]NVStorageSaveData ofd_packets/00002507 [19:29:32]File name is /storage/ofd_packets/00002507 [19:29:32]Write 301 bytes [19:29:32]NVStorageSaveData done [19:29:32]OFDSenderStorePacket done [19:29:32]KKMCreateOFDPacket done [19:29:32]NVStorageSaveData kkm_last_timestamp [19:29:32]File name is /storage/kkm_last_timestamp [19:29:32]Write 4 bytes [19:29:32]NVStorageSaveData done [19:29:32]OFD Sender: Processing packet 2507 [packets to send 1, broken 0] [19:29:32]ProducePacketName [19:29:32]name=ofd_packets/00002507 [19:29:32]OFD Sender: To server: ‡•öpG, [19:29:32]CommunicateWithHost lk.salyk.kg:30040 [19:29:32]ConnectInit lk.salyk.kg [19:29:32]ExternCall_PrintAddStr [19:29:32]wPrintStart [19:29:32]Write to MH i2c: 01 00 00 7C 35 B1 [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 07 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 07 00 7C 35 00 00 00 00 00 FF 0F C6 [19:29:32]RasterBufferAndPrint [19:29:32]line Счет N : (1)475704 [19:29:32]line ИÐÐ: 02508201610067 [19:29:32]line Контрольно-КаÑÑовый Чек [19:29:32]line ПРОДÐЖР[19:29:32]line ТРК (МРК, ГÐК) : 12 [19:29:32]line Товар: 2710124130 [19:29:32]line Ðи-92-К-5 [19:29:32]line 4.490 * 66.90 [19:29:32]line = 300.38 [19:29:32]line ÐДС 12% ÐСП 1% [19:29:32]line > о реализуемом товаре [19:29:32]line ОКРУГЛЕÐИЕ: -0.38 [19:29:32]line ИТОГО: 300.00 [19:29:32]line ВнеÑено: 300.00 [19:29:32]line СДÐЧÐ: 0.00 [19:29:32]line ÐСП 1% : 2.66 [19:29:32]line ÐДС 12% : 31.90 [19:29:32]line Ðаличными: 300.00 [19:29:32]line Безнал.: 0.00 [19:29:32]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [19:29:32]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [19:29:32]line СÐО: Общий режим [19:29:32]line Чек 132 18.10.2024 19:29 [19:29:32]line Смена: 22 ФФД: 1.0 [19:29:32]line ЗÐМ: 0300000191 [19:29:32]line РÐМ: 0000000000207295 [19:29:32]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [19:29:32]line ФМ: 0000000002342820 [19:29:32]line ФД: 2507 [19:29:32]line ФПД: 122997987334697 [19:29:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T192936&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2507&fm=122997987334697&tin=02508201610067®Number=0000000000207295&sum=30000 [19:29:32]Connected sock=11 [19:29:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 8D 0D 07 01 E1 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 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 00 00 00 F4 03 04 00 20 B7 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CB 09 00 00 35 04 06 00 6F DD B3 57 DA 29 11 29 21 B3 7B AC E3 FD [19:29:32]written 0, free lines is 4095 [19:29:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 58 78 47 00 45 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CB 09 00 00 F4 03 04 00 83 62 12 67 B6 04 01 00 00 CC 8A 99 B2 C9 A9 7A 4C [19:29:32]CommunicateWithHost err = 0 [19:29:32]CheckOFDResponse [19:29:32]1017 (14) - 77093643461234 [19:29:32]1041 (16) - 0000000002342820 [19:29:32]1040 (4) - 2507 [19:29:32]1012 (4) - 18.10.2024 13:28 [19:29:32]1206 (1) - 0 [19:29:32]OFD Sender: Remove packet 2507 [19:29:32]ProducePacketName [19:29:32]name=ofd_packets/00002507 [19:29:32]NVStorageDeleteData [19:29:32]Write to MH i2c: 01 00 00 A7 35 DC [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 07 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: 01 07 00 A7 35 00 00 00 00 00 AF 0C 9E [19:29:32]RasterBufferAndPrint [19:29:32]line [19:29:32]line [19:29:32]line [19:29:32]line [19:29:32]line [19:29:32]written 0, free lines is 3253 [19:29:32]MH_Cut [19:29:32]Write to MH i2c: D1 01 00 AE 35 01 B5 [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: D1 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: D1 01 00 [19:29:32]MH_I2C_Read... [19:29:32]Read from MH i2c: D1 01 00 AE 35 00 B4 [19:29:32]Write to MH i2c: 01 00 00 AF 35 E4 [19:29:32]Write i2c OK [19:29:32]MH_I2C_Read... [19:29:33]OFD Sender: No OFD packet to send [19:29:33]*** Cut start [19:29:33]*** Partial cut [19:29:33]*** CUTSNS_PIN = 1 [19:29:33]*** CUTSNS_PIN = 0 [19:29:34]*** Brake cut motor [19:29:34]Read from MH i2c: 01 [19:29:34]*** Stop cut motor [19:29:34]*** Cut end [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: 01 07 00 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: 01 07 00 AF 35 00 00 00 00 00 FF 0F F9 [19:29:34]process_action close_receipt done [19:29:34]requested_data is exist [19:29:34]produce_requested_data [19:29:34]requested_item fm.sn is exist - process it [19:29:34]wFMCommunicate request_size=4 [19:29:34]MH_SAM_APDU [19:29:34]CAPDU: 80 11 00 00 [19:29:34]Write to MH i2c: E2 08 00 B0 35 80 11 00 00 00 00 00 00 5F [19:29:34]Write i2c OK [19:29:34]MH_I2C_Read... [19:29:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:29:34]Read from MH i2c: E2 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 17 00 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 17 00 B0 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 A7 [19:29:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:29:34]wFMCommunicate OK [19:29:34]requested_item fd.num is exist - process it [19:29:34]SAM_PROTO_GetFieldsCounters [19:29:34]wFMCommunicate request_size=4 [19:29:34]MH_SAM_APDU [19:29:34]CAPDU: 80 13 00 00 [19:29:34]Write to MH i2c: E2 08 00 B1 35 80 13 00 00 00 00 00 00 62 [19:29:34]Write i2c OK [19:29:34]MH_I2C_Read... [19:29:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:29:34]Read from MH i2c: E2 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 62 00 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 62 00 B1 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CB 09 00 00 0E 04 04 00 16 00 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 EE [19:29:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CB 09 00 00 0E 04 04 00 16 00 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 [19:29:34]wFMCommunicate OK [19:29:34]SAM_PROTO_GetFieldsCounters done [19:29:34]requested_item shift.num is exist - process it [19:29:34]requested_item shift.opened is exist - process it [19:29:34]req_shift_opened [19:29:34]FM_GetShiftState [19:29:34]SAM_PROTO_GetShiftState [19:29:34]wFMCommunicate request_size=4 [19:29:34]MH_SAM_APDU [19:29:34]CAPDU: 80 13 01 00 [19:29:34]Write to MH i2c: E2 08 00 B2 35 80 13 01 00 00 00 00 00 64 [19:29:34]Write i2c OK [19:29:34]MH_I2C_Read... [19:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:29:34]Read from MH i2c: E2 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 0E 00 [19:29:34]MH_I2C_Read... [19:29:34]Read from MH i2c: E2 0E 00 B2 35 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 02 [19:29:34]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:29:34]wFMCommunicate OK [19:29:34]SAM_PROTO_GetShiftState done [19:29:34]FM_GetShiftState done [19:29:34]req_shift_opened done [19:29:34]requested_item shift.open_date is exist - process it [19:29:34]req_shift_open_date [19:29:34]req_shift_open_date done [19:29:34]produce_requested_data done [19:29:34]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2507,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:29:34]process_action_free close_receipt [19:29:34]json_value_free [19:29:34]json_value_free done [19:29:34]process_json_proto returns [19:29:34]Send response to host [19:29:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2507,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:29:34]free response buf [19:29:34]execute_script done [19:29:34]execute_script returns [19:29:34]free content buf [19:29:34]Sock 9.Close socket [19:29:34]Sock 9.Thread stoped [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:46]accept exits with 7 [19:32:46]New connection [19:32:46]New thread 3066850660 created [19:32:46]Thread 3066707300 joined [19:32:46]Waiting for new connection... [19:32:46] Sock 7.Parse request [19:32:46]Sock 7.Check first char [19:32:46]Sock 7.First char is OK [19:32:46]request: POST /json_proto HTTP/1.0 [19:32:46]Method: POST [19:32:46]URL: /json_proto [19:32:46]Method is POST - this is cgi request [19:32:46]url: /json_proto [19:32:46]query_string will be loaded in cgi processing [19:32:46]execute_cgi json_proto POST (null) [19:32:46]execute_cgi path=json_proto method=POST [19:32:46]POST find Content-Length [19:32:46]Host: 172.17.52.132:8080 [19:32:46]Content-Length: 622 [19:32:46]Content-Type: application/json [19:32:46] [19:32:46]POST finish read [19:32:46]Found Content-Length = 622 [19:32:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99898", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:46]execute_script... [19: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 : (3)99898", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:32:46]POST & json_proto [19:32:46]process_json_proto [19:32:46]json parsed OK: [19:32:46]protocol is kg_v1.0 [19:32:46]action value=close_receipt [19:32:46]process_action close_receipt [19:32:46]cmd_close_receipt [19:32:46]MH_GetDate [19:32:46]Write to MH i2c: F0 00 00 B3 35 D7 [19:32:46]Write i2c OK [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: F0 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: F0 09 00 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: F0 09 00 B3 35 00 E4 B7 12 67 5A BE F6 66 68 [19:32:46]GetLastDocTimeStamp 1729279776 [19:32:46]current date 1729279972 [19:32:46]FM_GetShiftState [19:32:46]SAM_PROTO_GetShiftState [19:32:46]wFMCommunicate request_size=4 [19:32:46]MH_SAM_APDU [19:32:46]CAPDU: 80 13 01 00 [19:32:46]Write to MH i2c: E2 08 00 B4 35 80 13 01 00 00 00 00 00 66 [19:32:46]Write i2c OK [19:32:46]MH_I2C_Read... [19:32:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:46]Read from MH i2c: E2 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: E2 0E 00 [19:32:46]MH_I2C_Read... [19:32:46]Read from MH i2c: E2 0E 00 B4 35 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 04 [19:32:46]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:32:46]wFMCommunicate OK [19:32:46]SAM_PROTO_GetShiftState done [19:32:46]FM_GetShiftState done [19:32:46]opened in 1729209717 [19:32:46]opened+sec_in_day 1729296117 [19:32:46]quantity*price = 14400 [19:32:46]sum+1 = 14401 [19:32:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 ÐСП 1% : 1.27 ÐДС 12% : 15.29 Ðаличными: 144.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 133 18.10.2024 19:32 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2508 ФПД: 246131243800831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T193252&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2508&fm=246131243800831&tin=02508201610067®Number=0000000000207295&sum=14400 0 [19:32:47]StoreToDocumentArchive [19:32:47]shift 22 fd 2508 [19:32:47]save to /storage/0022/doc_00002508 [19:32:47]save last doc name /storage/0022/doc_00002508 to /storage/kkm_last_doc_name [19:32:47]save OK [19:32:47]Clear old archive folders... [19:32:47]ProcessDocumentItem done err = 0, tmpTLVsize=275 [19:32:47]tlvbuf is 013C3E40 [19:32:47]SAM_PROTO_ClearQueue [19:32:47]wFMCommunicate request_size=4 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 09 00 00 [19:32:47]Write to MH i2c: E2 08 00 C1 35 80 09 00 00 00 00 00 00 68 [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:32:47]Read from MH i2c: E2 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 03 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 03 00 C1 35 00 90 00 6A [19:32:47]RAPDU: 90 00 [19:32:47]wFMCommunicate OK [19:32:47]SAM_PROTO_ClearQueue done [19:32:47]KKMCreateOFDPacket [19:32:47]OFDProtocolAddRootSTLVToBuf [19:32:47]FM_MakeSignedData [19:32:47]FM_MakeSignedData [19:32:47]SAM_PROTO_SignData [19:32:47]wFMCommunicate request_size=4 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 0D 01 02 [19:32:47]Write to MH i2c: E2 08 00 C2 35 80 0D 01 02 00 00 00 00 70 [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:32:47]Read from MH i2c: E2 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 03 00 [19:32:47]MH_I2C_Read... [19:32:47]Read from MH i2c: E2 03 00 C2 35 00 90 00 6B [19:32:47]RAPDU: 90 00 [19:32:47]wFMCommunicate OK [19:32:47]wFMCommunicate request_size=255 [19:32:47]MH_SAM_APDU [19:32:47]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E4 B7 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 [19:32:47]Write to MH i2c: E2 02 01 C3 35 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E4 B7 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 00 00 24 [19:32:47]Write i2c OK [19:32:47]MH_I2C_Read... [19:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:48]Read from MH i2c: E2 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: E2 03 00 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: E2 03 00 C3 35 00 90 00 6C [19:32:48]RAPDU: 90 00 [19:32:48]wFMCommunicate OK [19:32:48]wFMCommunicate request_size=34 [19:32:48]MH_SAM_APDU [19:32:48]CAPDU: 80 0D 02 02 1D 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CC 09 00 00 35 04 06 00 DF DA E5 5A D8 FF [19:32:48]Write to MH i2c: E2 25 00 C4 35 80 0D 02 02 1D 00 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CC 09 00 00 35 04 06 00 DF DA E5 5A D8 FF 00 00 CD [19:32:48]Write i2c OK [19:32:48]MH_I2C_Read... [19:32:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:32:48]Read from MH i2c: E2 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: E2 03 00 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: E2 03 00 C4 35 00 90 00 6D [19:32:48]RAPDU: 90 00 [19:32:48]wFMCommunicate OK [19:32:48]wFMCommunicate request_size=4 [19:32:48]MH_SAM_APDU [19:32:48]CAPDU: 80 0D 03 02 [19:32:48]Write to MH i2c: E2 08 00 C5 35 80 0D 03 02 00 00 00 00 75 [19:32:48]Write i2c OK [19:32:48]MH_I2C_Read... [19:32:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:32:48]Read from MH i2c: E2 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: E2 0B 00 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: E2 0B 00 C5 35 00 23 00 FE DC 24 25 E4 68 90 00 08 [19:32:48]RAPDU: 23 00 FE DC 24 25 E4 68 90 00 [19:32:48]wFMCommunicate OK [19:32:48]SAM_PROTO_SignData done [19:32:48]FM_MakeSignedData done [19:32:48]CreateOFDProtocolMessage [19:32:48]wFMCommunicate request_size=4 [19:32:48]MH_SAM_APDU [19:32:48]CAPDU: 80 11 00 00 [19:32:48]Write to MH i2c: E2 08 00 C6 35 80 11 00 00 00 00 00 00 75 [19:32:48]Write i2c OK [19:32:48]MH_I2C_Read... [19:32:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:48]Read from MH i2c: E2 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: E2 17 00 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: E2 17 00 C6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 BD [19:32:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:32:48]wFMCommunicate OK [19:32:48]CreateOFDProtocolMessage done [19:32:48]OFDSenderStorePacket 2508 [19:32:48]StoreOFDPacket docnum=2508 [19:32:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 27 01 00 00 E4 BA 1F 01 21 EB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E4 B7 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CC 09 00 00 35 04 06 00 DF DA E5 5A D8 FF 23 00 FE DC 24 25 E4 68 [19:32:48]CheckFolder [19:32:48]dirname=/storage/ofd_packets [19:32:48]CheckFolder done [19:32:48]ProducePacketName [19:32:48]name=ofd_packets/00002508 [19:32:48]NVStorageSaveData ofd_packets/00002508 [19:32:48]File name is /storage/ofd_packets/00002508 [19:32:48]Write 325 bytes [19:32:48]NVStorageSaveData done [19:32:48]OFDSenderStorePacket done [19:32:48]KKMCreateOFDPacket done [19:32:48]NVStorageSaveData kkm_last_timestamp [19:32:48]File name is /storage/kkm_last_timestamp [19:32:48]Write 4 bytes [19:32:48]NVStorageSaveData done [19:32:48]ExternCall_PrintAddStr [19:32:48]wPrintStart [19:32:48]Write to MH i2c: 01 00 00 C7 35 FC [19:32:48]Write i2c OK [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: 01 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: 01 07 00 [19:32:48]MH_I2C_Read... [19:32:48]Read from MH i2c: 01 07 00 C7 35 00 00 00 00 00 FF 0F 11 [19:32:48]RasterBufferAndPrint [19:32:48]line Счет N : (3)99898 [19:32:48]line ИÐÐ: 02508201610067 [19:32:48]line Контрольно-КаÑÑовый Чек [19:32:48]line ПРОДÐЖР[19:32:48]line Товар: 48743587 [19:32:48]line Сигареты Winston XStyle Silver [19:32:48]line 1.000 * 144.00 [19:32:48]line = 144.00 [19:32:48]line ÐДС 12% ÐСП 1% [19:32:48]line > о реализуемом товаре [19:32:48]line ИТОГО: 144.00 [19:32:48]line ÐСП 1% : 1.27 [19:32:48]line ÐДС 12% : 15.29 [19:32:48]line Ðаличными: 144.00 [19:32:48]line Безнал.: 0.00 [19:32:48]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [19:32:48]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [19:32:48]line СÐО: Общий режим [19:32:48]line Чек 133 18.10.2024 19:32 [19:32:48]line Смена: 22 ФФД: 1.0 [19:32:48]line ЗÐМ: 0300000191 [19:32:48]line РÐМ: 0000000000207295 [19:32:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [19:32:48]line ФМ: 0000000002342820 [19:32:48]line ФД: 2508 [19:32:48]line ФПД: 246131243800831 [19:32:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T193252&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2508&fm=246131243800831&tin=02508201610067®Number=0000000000207295&sum=14400 [19:32:48]line 0 [19:32:48]OFD Sender: Processing packet 2508 [packets to send 1, broken 0] [19:32:48]ProducePacketName [19:32:48]name=ofd_packets/00002508 [19:32:48]OFD Sender: To server: ‡•öpG, [19:32:48]CommunicateWithHost lk.salyk.kg:30040 [19:32:48]ConnectInit lk.salyk.kg [19:32:48]written 0, free lines is 4095 [19:32:48]Connected sock=10 [19:32:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 27 01 00 00 E4 BA 1F 01 21 EB 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 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 58 53 74 79 6C 65 20 53 69 6C 76 65 72 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 E4 B7 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CC 09 00 00 35 04 06 00 DF DA E5 5A D8 FF 23 00 FE DC 24 25 E4 68 [19:32:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 7D 3D 47 00 AF 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CC 09 00 00 F4 03 04 00 47 63 12 67 B6 04 01 00 00 45 D3 56 21 A0 C3 2A CB [19:32:48]CommunicateWithHost err = 0 [19:32:48]CheckOFDResponse [19:32:48]1017 (14) - 77093643461234 [19:32:48]1041 (16) - 0000000002342820 [19:32:48]1040 (4) - 2508 [19:32:48]1012 (4) - 18.10.2024 13:31 [19:32:48]1206 (1) - 0 [19:32:48]OFD Sender: Remove packet 2508 [19:32:48]ProducePacketName [19:32:48]name=ofd_packets/00002508 [19:32:48]NVStorageDeleteData [19:32:49]Write to MH i2c: 01 00 00 F0 35 25 [19:32:49]Write i2c OK [19:32:49]MH_I2C_Read... [19:32:49]Read from MH i2c: 01 [19:32:49]MH_I2C_Read... [19:32:49]Read from MH i2c: 01 07 00 [19:32:49]MH_I2C_Read... [19:32:49]Read from MH i2c: 01 07 00 F0 35 00 00 00 00 00 C3 0C FB [19:32:49]RasterBufferAndPrint [19:32:49]line [19:32:49]line [19:32:49]line [19:32:49]line [19:32:49]line [19:32:49]written 0, free lines is 3272 [19:32:49]MH_Cut [19:32:49]Write to MH i2c: D1 01 00 F7 35 01 FE [19:32:49]Write i2c OK [19:32:49]MH_I2C_Read... [19:32:49]Read from MH i2c: D1 [19:32:49]MH_I2C_Read... [19:32:49]Read from MH i2c: D1 01 00 [19:32:49]MH_I2C_Read... [19:32:49]Read from MH i2c: D1 01 00 F7 35 00 FD [19:32:49]Write to MH i2c: 01 00 00 F8 35 2D [19:32:49]Write i2c OK [19:32:49]MH_I2C_Read... [19:32:49]OFD Sender: No OFD packet to send [19:32:49]*** Cut start [19:32:49]*** Partial cut [19:32:49]*** CUTSNS_PIN = 1 [19:32:49]*** CUTSNS_PIN = 0 [19:32:50]*** Brake cut motor [19:32:50]Read from MH i2c: 01 [19:32:50]MH_I2C_Read... [19:32:50]*** Stop cut motor [19:32:50]*** Cut end [19:32:50]Read from MH i2c: 01 07 00 [19:32:50]MH_I2C_Read... [19:32:50]Read from MH i2c: 01 07 00 F8 35 00 00 00 00 00 FF 0F 42 [19:32:50]process_action close_receipt done [19:32:50]requested_data is exist [19:32:50]produce_requested_data [19:32:50]requested_item fm.sn is exist - process it [19:32:50]wFMCommunicate request_size=4 [19:32:50]MH_SAM_APDU [19:32:50]CAPDU: 80 11 00 00 [19:32:50]Write to MH i2c: E2 08 00 F9 35 80 11 00 00 00 00 00 00 A8 [19:32:50]Write i2c OK [19:32:50]MH_I2C_Read... [19:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:32:50]Read from MH i2c: E2 [19:32:50]MH_I2C_Read... [19:32:50]Read from MH i2c: E2 17 00 [19:32:50]MH_I2C_Read... [19:32:50]Read from MH i2c: E2 17 00 F9 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F0 [19:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:32:50]wFMCommunicate OK [19:32:50]requested_item fd.num is exist - process it [19:32:50]SAM_PROTO_GetFieldsCounters [19:32:50]wFMCommunicate request_size=4 [19:32:50]MH_SAM_APDU [19:32:50]CAPDU: 80 13 00 00 [19:32:50]Write to MH i2c: E2 08 00 FA 35 80 13 00 00 00 00 00 00 AB [19:32:50]Write i2c OK [19:32:50]MH_I2C_Read... [19:32:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:32:50]Read from MH i2c: E2 [19:32:50]MH_I2C_Read... [19:32:50]Read from MH i2c: E2 62 00 [19:32:50]MH_I2C_Read... [19:32:50]Read from MH i2c: E2 62 00 FA 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CC 09 00 00 0E 04 04 00 16 00 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 3B [19:32:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CC 09 00 00 0E 04 04 00 16 00 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 [19:32:50]wFMCommunicate OK [19:32:50]SAM_PROTO_GetFieldsCounters done [19:32:50]requested_item shift.num is exist - process it [19:32:50]requested_item shift.opened is exist - process it [19:32:50]req_shift_opened [19:32:50]FM_GetShiftState [19:32:50]SAM_PROTO_GetShiftState [19:32:50]wFMCommunicate request_size=4 [19:32:50]MH_SAM_APDU [19:32:50]CAPDU: 80 13 01 00 [19:32:50]Write to MH i2c: E2 08 00 FB 35 80 13 01 00 00 00 00 00 AD [19:32:50]Write i2c OK [19:32:50]MH_I2C_Read... [19:32:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:32:50]Read from MH i2c: E2 [19:32:50]MH_I2C_Read... [19:32:50]Read from MH i2c: E2 0E 00 [19:32:50]MH_I2C_Read... [19:32:50]Read from MH i2c: E2 0E 00 FB 35 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 4B [19:32:50]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:32:50]wFMCommunicate OK [19:32:50]SAM_PROTO_GetShiftState done [19:32:50]FM_GetShiftState done [19:32:50]req_shift_opened done [19:32:50]requested_item shift.open_date is exist - process it [19:32:50]req_shift_open_date [19:32:50]req_shift_open_date done [19:32:50]produce_requested_data done [19:32:50]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2508,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:32:50]process_action_free close_receipt [19:32:50]json_value_free [19:32:50]json_value_free done [19:32:50]process_json_proto returns [19:32:50]Send response to host [19:32:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2508,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:32:50]free response buf [19:32:50]execute_script done [19:32:50]execute_script returns [19:32:50]free content buf [19:32:50]Sock 7.Close socket [19:32:50]Sock 7.Thread stoped [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:04]OFD Sender: No OFD packet to send [19:33:09]OFD Sender: No OFD packet to send [19:33:14]OFD Sender: No OFD packet to send [19:33:19]OFD Sender: No OFD packet to send [19:33:24]OFD Sender: No OFD packet to send [19:33:29]OFD Sender: No OFD packet to send [19:33:34]OFD Sender: No OFD packet to send [19:33:39]OFD Sender: No OFD packet to send [19:33:44]OFD Sender: No OFD packet to send [19:33:49]OFD Sender: No OFD packet to send [19:33:54]OFD Sender: No OFD packet to send [19:33:59]OFD Sender: No OFD packet to send [19:34:04]OFD Sender: No OFD packet to send [19:34:09]OFD Sender: No OFD packet to send [19:34:14]OFD Sender: No OFD packet to send [19:34:19]OFD Sender: No OFD packet to send [19:34:24]OFD Sender: No OFD packet to send [19:34:29]OFD Sender: No OFD packet to send [19:34:34]OFD Sender: No OFD packet to send [19:34:39]OFD Sender: No OFD packet to send [19:34:44]OFD Sender: No OFD packet to send [19:34:49]OFD Sender: No OFD packet to send [19:34:54]OFD Sender: No OFD packet to send [19:34:59]OFD Sender: No OFD packet to send [19:35:04]OFD Sender: No OFD packet to send [19:35:09]OFD Sender: No OFD packet to send [19:35:14]OFD Sender: No OFD packet to send [19:35:19]OFD Sender: No OFD packet to send [19:35:24]OFD Sender: No OFD packet to send [19:35:29]OFD Sender: No OFD packet to send [19:35:34]OFD Sender: No OFD packet to send [19:35:39]OFD Sender: No OFD packet to send [19:35:44]OFD Sender: No OFD packet to send [19:35:49]OFD Sender: No OFD packet to send [19:35:54]OFD Sender: No OFD packet to send [19:35:59]OFD Sender: No OFD packet to send [19:36:04]OFD Sender: No OFD packet to send [19:36:09]OFD Sender: No OFD packet to send [19:36:14]OFD Sender: No OFD packet to send [19:36:19]OFD Sender: No OFD packet to send [19:36:24]OFD Sender: No OFD packet to send [19:36:29]OFD Sender: No OFD packet to send [19:36:34]OFD Sender: No OFD packet to send [19:36:39]OFD Sender: No OFD packet to send [19:36:44]OFD Sender: No OFD packet to send [19:36:49]OFD Sender: No OFD packet to send [19:36:54]OFD Sender: No OFD packet to send [19:36:59]OFD Sender: No OFD packet to send [19:37:04]OFD Sender: No OFD packet to send [19:37:09]OFD Sender: No OFD packet to send [19:37:14]OFD Sender: No OFD packet to send [19:37:19]OFD Sender: No OFD packet to send [19:37:24]OFD Sender: No OFD packet to send [19:37:29]OFD Sender: No OFD packet to send [19:37:34]OFD Sender: No OFD packet to send [19:37:39]OFD Sender: No OFD packet to send [19:37:44]OFD Sender: No OFD packet to send [19:37:49]OFD Sender: No OFD packet to send [19:37:54]OFD Sender: No OFD packet to send [19:37:59]OFD Sender: No OFD packet to send [19:38:04]OFD Sender: No OFD packet to send [19:38:09]OFD Sender: No OFD packet to send [19:38:14]OFD Sender: No OFD packet to send [19:38:19]OFD Sender: No OFD packet to send [19:38:24]OFD Sender: No OFD packet to send [19:38:29]OFD Sender: No OFD packet to send [19:38:34]OFD Sender: No OFD packet to send [19:38:39]OFD Sender: No OFD packet to send [19:38:44]OFD Sender: No OFD packet to send [19:38:49]OFD Sender: No OFD packet to send [19:38:54]OFD Sender: No OFD packet to send [19:38:59]OFD Sender: No OFD packet to send [19:39:04]OFD Sender: No OFD packet to send [19:39:09]OFD Sender: No OFD packet to send [19:39:14]OFD Sender: No OFD packet to send [19:39:19]OFD Sender: No OFD packet to send [19:39:24]OFD Sender: No OFD packet to send [19:39:29]OFD Sender: No OFD packet to send [19:39:34]OFD Sender: No OFD packet to send [19:39:39]OFD Sender: No OFD packet to send [19:39:44]OFD Sender: No OFD packet to send [19:39:49]OFD Sender: No OFD packet to send [19:39:54]OFD Sender: No OFD packet to send [19:39:59]OFD Sender: No OFD packet to send [19:40:04]OFD Sender: No OFD packet to send [19:40:09]OFD Sender: No OFD packet to send [19:40:14]OFD Sender: No OFD packet to send [19:40:19]OFD Sender: No OFD packet to send [19:40:24]OFD Sender: No OFD packet to send [19:40:29]OFD Sender: No OFD packet to send [19:40:34]OFD Sender: No OFD packet to send [19:40:39]OFD Sender: No OFD packet to send [19:40:44]OFD Sender: No OFD packet to send [19:40:49]OFD Sender: No OFD packet to send [19:40:54]OFD Sender: No OFD packet to send [19:40:59]OFD Sender: No OFD packet to send [19:41:04]OFD Sender: No OFD packet to send [19:41:09]OFD Sender: No OFD packet to send [19:41:14]OFD Sender: No OFD packet to send [19:41:19]OFD Sender: No OFD packet to send [19:41:24]OFD Sender: No OFD packet to send [19:41:29]OFD Sender: No OFD packet to send [19:41:34]OFD Sender: No OFD packet to send [19:41:39]OFD Sender: No OFD packet to send [19:41:44]OFD Sender: No OFD packet to send [19:41:49]OFD Sender: No OFD packet to send [19:41:54]OFD Sender: No OFD packet to send [19:41:59]OFD Sender: No OFD packet to send [19:42:04]OFD Sender: No OFD packet to send [19:42:09]OFD Sender: No OFD packet to send [19:42:14]OFD Sender: No OFD packet to send [19:42:19]OFD Sender: No OFD packet to send [19:42:24]OFD Sender: No OFD packet to send [19:42:29]OFD Sender: No OFD packet to send [19:42:34]OFD Sender: No OFD packet to send [19:42:39]OFD Sender: No OFD packet to send [19:42:44]OFD Sender: No OFD packet to send [19:42:49]OFD Sender: No OFD packet to send [19:42:54]OFD Sender: No OFD packet to send [19:42:59]OFD Sender: No OFD packet to send [19:43:04]OFD Sender: No OFD packet to send [19:43:09]OFD Sender: No OFD packet to send [19:43:14]OFD Sender: No OFD packet to send [19:43:19]OFD Sender: No OFD packet to send [19:43:24]OFD Sender: No OFD packet to send [19:43:29]OFD Sender: No OFD packet to send [19:43:34]OFD Sender: No OFD packet to send [19:43:39]OFD Sender: No OFD packet to send [19:43:44]OFD Sender: No OFD packet to send [19:43:49]OFD Sender: No OFD packet to send [19:43:54]OFD Sender: No OFD packet to send [19:43:59]OFD Sender: No OFD packet to send [19:44:04]OFD Sender: No OFD packet to send [19:44:09]OFD Sender: No OFD packet to send [19:44:14]OFD Sender: No OFD packet to send [19:44:15]accept exits with 9 [19:44:15]New connection [19:44:15]New thread 3066707300 created [19:44:15]Thread 3066850660 joined [19:44:15]Waiting for new connection... [19:44:15] Sock 9.Parse request [19:44:15]Sock 9.Check first char [19:44:15]Sock 9.First char is OK [19:44:15]request: POST /json_proto HTTP/1.0 [19:44:15]Method: POST [19:44:15]URL: /json_proto [19:44:15]Method is POST - this is cgi request [19:44:15]url: /json_proto [19:44:15]query_string will be loaded in cgi processing [19:44:15]execute_cgi json_proto POST (null) [19:44:15]execute_cgi path=json_proto method=POST [19:44:15]POST find Content-Length [19:44:15]Host: 172.17.52.132:8080 [19:44:15]Content-Length: 904 [19:44:15]Content-Type: application/json [19:44:15] [19:44:15]POST finish read [19:44:15]Found Content-Length = 904 [19:44:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99899", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:15]execute_script... [19:44: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)99899", "tax_sys" : 0, "items" : [ { "code": "42113270", "name": "\u0416\u0435\u0432 Orbit \u0430\u0440\u0431\u0443\u0437", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:15]POST & json_proto [19:44:15]process_json_proto [19:44:15]json parsed OK: [19:44:15]protocol is kg_v1.0 [19:44:15]action value=close_receipt [19:44:15]process_action close_receipt [19:44:15]cmd_close_receipt [19:44:15]MH_GetDate [19:44:15]Write to MH i2c: F0 00 00 FC 35 20 [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 09 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: F0 09 00 FC 35 00 95 BA 12 67 5A BE F6 66 65 [19:44:15]GetLastDocTimeStamp 1729279972 [19:44:15]current date 1729280661 [19:44:15]FM_GetShiftState [19:44:15]SAM_PROTO_GetShiftState [19:44:15]wFMCommunicate request_size=4 [19:44:15]MH_SAM_APDU [19:44:15]CAPDU: 80 13 01 00 [19:44:15]Write to MH i2c: E2 08 00 FD 35 80 13 01 00 00 00 00 00 AF [19:44:15]Write i2c OK [19:44:15]MH_I2C_Read... [19:44:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:15]Read from MH i2c: E2 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 0E 00 [19:44:15]MH_I2C_Read... [19:44:15]Read from MH i2c: E2 0E 00 FD 35 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 4D [19:44:15]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:44:15]wFMCommunicate OK [19:44:15]SAM_PROTO_GetShiftState done [19:44:15]FM_GetShiftState done [19:44:15]opened in 1729209717 [19:44:15]opened+sec_in_day 1729296117 [19:44:15]quantity*price = 4500 [19:44:15]sum+1 = 4501 [19:44:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521148 Ðапиток MAXI чай зел лимон 0.45л 1.000 * 70.00 = 70.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 115.00 ÐСП 1% : 1.02 ÐДС 12% : 12.21 Ðаличными: 115.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 134 18.10.2024 19:44 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2509 ФПД: 202766698370742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T194421&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2509&fm=202766698370742&tin=02508201610067®Number=0000000000207295&sum=11500 0 [19:44:16]StoreToDocumentArchive [19:44:16]shift 22 fd 2509 [19:44:16]save to /storage/0022/doc_00002509 [19:44:16]save last doc name /storage/0022/doc_00002509 to /storage/kkm_last_doc_name [19:44:16]save OK [19:44:16]Clear old archive folders... [19:44:16]ProcessDocumentItem done err = 0, tmpTLVsize=383 [19:44:16]tlvbuf is 013E0C80 [19:44:16]SAM_PROTO_ClearQueue [19:44:16]wFMCommunicate request_size=4 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 09 00 00 [19:44:16]Write to MH i2c: E2 08 00 0A 36 80 09 00 00 00 00 00 00 B2 [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:16]Read from MH i2c: E2 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 [19:44:16]MH_I2C_Read... [19:44:16]Read from MH i2c: E2 03 00 0A 36 00 90 00 B4 [19:44:16]RAPDU: 90 00 [19:44:16]wFMCommunicate OK [19:44:16]SAM_PROTO_ClearQueue done [19:44:16]KKMCreateOFDPacket [19:44:16]OFDProtocolAddRootSTLVToBuf [19:44:16]FM_MakeSignedData [19:44:16]FM_MakeSignedData [19:44:16]SAM_PROTO_SignData [19:44:16]wFMCommunicate request_size=4 [19:44:16]MH_SAM_APDU [19:44:16]CAPDU: 80 0D 01 02 [19:44:16]Write to MH i2c: E2 08 00 0B 36 80 0D 01 02 00 00 00 00 BA [19:44:16]Write i2c OK [19:44:16]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 0B 36 00 90 00 B5 [19:44:17]RAPDU: 90 00 [19:44:17]wFMCommunicate OK [19:44:17]wFMCommunicate request_size=255 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 0D 02 02 FA 03 00 7F 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 [19:44:17]Write to MH i2c: E2 02 01 0C 36 80 0D 02 02 FA 00 03 00 7F 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 25 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 0C 36 00 90 00 B6 [19:44:17]RAPDU: 90 00 [19:44:17]wFMCommunicate OK [19:44:17]wFMCommunicate request_size=142 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 0D 02 02 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 95 BA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CD 09 00 00 35 04 06 00 B8 6A 4D 07 56 B6 [19:44:17]Write to MH i2c: E2 91 00 0D 36 80 0D 02 02 89 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 95 BA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CD 09 00 00 35 04 06 00 B8 6A 4D 07 56 B6 00 00 8E [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 03 00 0D 36 00 90 00 B7 [19:44:17]RAPDU: 90 00 [19:44:17]wFMCommunicate OK [19:44:17]wFMCommunicate request_size=4 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 0D 03 02 [19:44:17]Write to MH i2c: E2 08 00 0E 36 80 0D 03 02 00 00 00 00 BF [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 0B 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 0B 00 0E 36 00 4B EE 0E B0 81 51 52 13 90 00 EE [19:44:17]RAPDU: 4B EE 0E B0 81 51 52 13 90 00 [19:44:17]wFMCommunicate OK [19:44:17]SAM_PROTO_SignData done [19:44:17]FM_MakeSignedData done [19:44:17]CreateOFDProtocolMessage [19:44:17]wFMCommunicate request_size=4 [19:44:17]MH_SAM_APDU [19:44:17]CAPDU: 80 11 00 00 [19:44:17]Write to MH i2c: E2 08 00 0F 36 80 11 00 00 00 00 00 00 BF [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:17]Read from MH i2c: E2 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 17 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: E2 17 00 0F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 07 [19:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:44:17]wFMCommunicate OK [19:44:17]CreateOFDProtocolMessage done [19:44:17]OFDSenderStorePacket 2509 [19:44:17]StoreOFDPacket docnum=2509 [19:44:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 93 01 00 00 88 D9 8B 01 16 01 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 95 BA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CD 09 00 00 35 04 06 00 B8 6A 4D 07 56 B6 4B EE 0E B0 81 51 52 13 [19:44:17]CheckFolder [19:44:17]dirname=/storage/ofd_packets [19:44:17]CheckFolder done [19:44:17]ProducePacketName [19:44:17]name=ofd_packets/00002509 [19:44:17]NVStorageSaveData ofd_packets/00002509 [19:44:17]File name is /storage/ofd_packets/00002509 [19:44:17]Write 433 bytes [19:44:17]NVStorageSaveData done [19:44:17]OFDSenderStorePacket done [19:44:17]KKMCreateOFDPacket done [19:44:17]NVStorageSaveData kkm_last_timestamp [19:44:17]File name is /storage/kkm_last_timestamp [19:44:17]Write 4 bytes [19:44:17]NVStorageSaveData done [19:44:17]ExternCall_PrintAddStr [19:44:17]wPrintStart [19:44:17]Write to MH i2c: 01 00 00 10 36 46 [19:44:17]Write i2c OK [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 07 00 [19:44:17]MH_I2C_Read... [19:44:17]Read from MH i2c: 01 07 00 10 36 00 00 00 00 00 FF 0F 5B [19:44:17]RasterBufferAndPrint [19:44:17]line Счет N : (3)99899 [19:44:17]line ИÐÐ: 02508201610067 [19:44:17]line Контрольно-КаÑÑовый Чек [19:44:17]line ПРОДÐЖР[19:44:17]line Товар: 42113270 [19:44:17]line Жев Orbit арбуз [19:44:17]line 1.000 * 45.00 [19:44:17]line = 45.00 [19:44:17]line ÐДС 12% ÐСП 1% [19:44:17]line > о реализуемом товаре [19:44:17]line Товар: 4870202521148 [19:44:17]line Ðапиток MAXI чай зел лимон 0.45л [19:44:17]line 1.000 * 70.00 [19:44:17]line = 70.00 [19:44:17]line ÐДС 12% ÐСП 1% [19:44:17]line > о реализуемом товаре [19:44:17]line ИТОГО: 115.00 [19:44:17]line ÐСП 1% : 1.02 [19:44:17]line ÐДС 12% : 12.21 [19:44:17]line Ðаличными: 115.00 [19:44:17]line Безнал.: 0.00 [19:44:17]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [19:44:17]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [19:44:17]line СÐО: Общий режим [19:44:17]line Чек 134 18.10.2024 19:44 [19:44:17]line Смена: 22 ФФД: 1.0 [19:44:17]line ЗÐМ: 0300000191 [19:44:17]line РÐМ: 0000000000207295 [19:44:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [19:44:17]line ФМ: 0000000002342820 [19:44:17]line ФД: 2509 [19:44:17]line ФПД: 202766698370742 [19:44:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T194421&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2509&fm=202766698370742&tin=02508201610067®Number=0000000000207295&sum=11500 [19:44:17]OFD Sender: Processing packet 2509 [packets to send 1, broken 0] [19:44:17]ProducePacketName [19:44:17]name=ofd_packets/00002509 [19:44:17]OFD Sender: To server: ‡•öpG, [19:44:17]CommunicateWithHost lk.salyk.kg:30040 [19:44:17]ConnectInit lk.salyk.kg [19:44:17]line 0 [19:44:17]written 0, free lines is 4095 [19:44:18]Connected sock=10 [19:44:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 93 01 00 00 88 D9 8B 01 16 01 5A 03 01 00 03 00 7F 01 1E 04 01 00 01 23 04 56 00 8A 04 08 00 34 32 31 31 33 32 37 30 06 04 17 00 D0 96 D0 B5 D0 B2 20 4F 72 62 69 74 20 D0 B0 D1 80 D0 B1 D1 83 D0 B7 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 EC 2C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 95 BA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CD 09 00 00 35 04 06 00 B8 6A 4D 07 56 B6 4B EE 0E B0 81 51 52 13 [19:44:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 20 D4 47 00 41 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CD 09 00 00 F4 03 04 00 F8 65 12 67 B6 04 01 00 00 3B 05 74 3B 68 2A 77 1C [19:44:18]CommunicateWithHost err = 0 [19:44:18]CheckOFDResponse [19:44:18]1017 (14) - 77093643461234 [19:44:18]1041 (16) - 0000000002342820 [19:44:18]1040 (4) - 2509 [19:44:18]1012 (4) - 18.10.2024 13:43 [19:44:18]1206 (1) - 0 [19:44:18]OFD Sender: Remove packet 2509 [19:44:18]ProducePacketName [19:44:18]name=ofd_packets/00002509 [19:44:18]NVStorageDeleteData [19:44:18]Write to MH i2c: 01 00 00 3F 36 75 [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: 01 07 00 3F 36 00 00 00 00 00 3D 0C C5 [19:44:18]RasterBufferAndPrint [19:44:18]line [19:44:18]line [19:44:18]line [19:44:18]line [19:44:18]line [19:44:18]written 0, free lines is 3139 [19:44:18]MH_Cut [19:44:18]Write to MH i2c: D1 01 00 46 36 01 4E [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: D1 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: D1 01 00 [19:44:18]MH_I2C_Read... [19:44:18]Read from MH i2c: D1 01 00 46 36 00 4D [19:44:18]Write to MH i2c: 01 00 00 47 36 7D [19:44:18]Write i2c OK [19:44:18]MH_I2C_Read... [19:44:18]OFD Sender: No OFD packet to send [19:44:19]*** Cut start [19:44:19]*** Partial cut [19:44:19]*** CUTSNS_PIN = 1 [19:44:19]*** CUTSNS_PIN = 0 [19:44:19]*** Brake cut motor [19:44:20]Read from MH i2c: 01 [19:44:20]MH_I2C_Read... [19:44:20]*** Stop cut motor [19:44:20]*** Cut end [19:44:20]Read from MH i2c: 01 07 00 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: 01 07 00 47 36 00 00 00 00 00 FF 0F 92 [19:44:20]process_action close_receipt done [19:44:20]requested_data is exist [19:44:20]produce_requested_data [19:44:20]requested_item fm.sn is exist - process it [19:44:20]wFMCommunicate request_size=4 [19:44:20]MH_SAM_APDU [19:44:20]CAPDU: 80 11 00 00 [19:44:20]Write to MH i2c: E2 08 00 48 36 80 11 00 00 00 00 00 00 F8 [19:44:20]Write i2c OK [19:44:20]MH_I2C_Read... [19:44:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:20]Read from MH i2c: E2 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 17 00 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 17 00 48 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 40 [19:44:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:44:20]wFMCommunicate OK [19:44:20]requested_item fd.num is exist - process it [19:44:20]SAM_PROTO_GetFieldsCounters [19:44:20]wFMCommunicate request_size=4 [19:44:20]MH_SAM_APDU [19:44:20]CAPDU: 80 13 00 00 [19:44:20]Write to MH i2c: E2 08 00 49 36 80 13 00 00 00 00 00 00 FB [19:44:20]Write i2c OK [19:44:20]MH_I2C_Read... [19:44:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:20]Read from MH i2c: E2 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 62 00 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 62 00 49 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CD 09 00 00 0E 04 04 00 16 00 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 8F [19:44:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CD 09 00 00 0E 04 04 00 16 00 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 [19:44:20]wFMCommunicate OK [19:44:20]SAM_PROTO_GetFieldsCounters done [19:44:20]requested_item shift.num is exist - process it [19:44:20]requested_item shift.opened is exist - process it [19:44:20]req_shift_opened [19:44:20]FM_GetShiftState [19:44:20]SAM_PROTO_GetShiftState [19:44:20]wFMCommunicate request_size=4 [19:44:20]MH_SAM_APDU [19:44:20]CAPDU: 80 13 01 00 [19:44:20]Write to MH i2c: E2 08 00 4A 36 80 13 01 00 00 00 00 00 FD [19:44:20]Write i2c OK [19:44:20]MH_I2C_Read... [19:44:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:20]Read from MH i2c: E2 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 0E 00 [19:44:20]MH_I2C_Read... [19:44:20]Read from MH i2c: E2 0E 00 4A 36 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 9B [19:44:20]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:44:20]wFMCommunicate OK [19:44:20]SAM_PROTO_GetShiftState done [19:44:20]FM_GetShiftState done [19:44:20]req_shift_opened done [19:44:20]requested_item shift.open_date is exist - process it [19:44:20]req_shift_open_date [19:44:20]req_shift_open_date done [19:44:20]produce_requested_data done [19:44:20]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2509,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:44:20]process_action_free close_receipt [19:44:20]json_value_free [19:44:20]json_value_free done [19:44:20]process_json_proto returns [19:44:20]Send response to host [19:44:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2509,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:44:20]free response buf [19:44:20]execute_script done [19:44:20]execute_script returns [19:44:20]free content buf [19:44:20]Sock 9.Close socket [19:44:20]Sock 9.Thread stoped [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:36]accept exits with 7 [19:44:36]New connection [19:44:36]New thread 3066850660 created [19:44:36]Thread 3066707300 joined [19:44:36]Waiting for new connection... [19:44:36] Sock 7.Parse request [19:44:36]Sock 7.Check first char [19:44:36]Sock 7.First char is OK [19:44:36]request: POST /json_proto HTTP/1.0 [19:44:36]Method: POST [19:44:36]URL: /json_proto [19:44:36]Method is POST - this is cgi request [19:44:36]url: /json_proto [19:44:36]query_string will be loaded in cgi processing [19:44:36]execute_cgi json_proto POST (null) [19:44:36]execute_cgi path=json_proto method=POST [19:44:36]POST find Content-Length [19:44:36]Host: 172.17.52.132:8080 [19:44:36]Content-Length: 632 [19:44:36]Content-Type: application/json [19:44:36] [19:44:36]POST finish read [19:44:36]Found Content-Length = 632 [19:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99900", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:36]execute_script... [19:44:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99900", "tax_sys" : 0, "items" : [ { "code": "48746717", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Caster + Dream M", "price" : 147.00, "quantity" : 1.000, "sum" : 147.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 147.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:44:36]POST & json_proto [19:44:36]process_json_proto [19:44:36]json parsed OK: [19:44:36]protocol is kg_v1.0 [19:44:36]action value=close_receipt [19:44:36]process_action close_receipt [19:44:36]cmd_close_receipt [19:44:36]MH_GetDate [19:44:36]Write to MH i2c: F0 00 00 4B 36 70 [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: F0 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: F0 09 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: F0 09 00 4B 36 00 AA BA 12 67 5A BE F6 66 CA [19:44:36]GetLastDocTimeStamp 1729280661 [19:44:36]current date 1729280682 [19:44:36]FM_GetShiftState [19:44:36]SAM_PROTO_GetShiftState [19:44:36]wFMCommunicate request_size=4 [19:44:36]MH_SAM_APDU [19:44:36]CAPDU: 80 13 01 00 [19:44:36]Write to MH i2c: E2 08 00 4C 36 80 13 01 00 00 00 00 00 FF [19:44:36]Write i2c OK [19:44:36]MH_I2C_Read... [19:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:36]Read from MH i2c: E2 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 0E 00 [19:44:36]MH_I2C_Read... [19:44:36]Read from MH i2c: E2 0E 00 4C 36 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 9D [19:44:36]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:44:36]wFMCommunicate OK [19:44:36]SAM_PROTO_GetShiftState done [19:44:36]FM_GetShiftState done [19:44:36]opened in 1729209717 [19:44:36]opened+sec_in_day 1729296117 [19:44:36]quantity*price = 14700 [19:44:36]sum+1 = 14701 [19:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 147.00 ÐСП 1% : 1.30 ÐДС 12% : 15.61 Ðаличными: 147.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 135 18.10.2024 19:44 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2510 ФПД: 241338590759108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T194442&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2510&fm=241338590759108&tin=02508201610067®Number=0000000000207295&sum=14700 0 [19:44:37]StoreToDocumentArchive [19:44:37]shift 22 fd 2510 [19:44:37]save to /storage/0022/doc_00002510 [19:44:37]save last doc name /storage/0022/doc_00002510 to /storage/kkm_last_doc_name [19:44:37]save OK [19:44:37]Clear old archive folders... [19:44:37]ProcessDocumentItem done err = 0, tmpTLVsize=285 [19:44:37]tlvbuf is 01382630 [19:44:37]SAM_PROTO_ClearQueue [19:44:37]wFMCommunicate request_size=4 [19:44:37]MH_SAM_APDU [19:44:37]CAPDU: 80 09 00 00 [19:44:37]Write to MH i2c: E2 08 00 59 36 80 09 00 00 00 00 00 00 01 [19:44:37]Write i2c OK [19:44:37]MH_I2C_Read... [19:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:44:37]Read from MH i2c: E2 [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: E2 03 00 [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: E2 03 00 59 36 00 90 00 03 [19:44:37]RAPDU: 90 00 [19:44:37]wFMCommunicate OK [19:44:37]SAM_PROTO_ClearQueue done [19:44:37]KKMCreateOFDPacket [19:44:37]OFDProtocolAddRootSTLVToBuf [19:44:37]FM_MakeSignedData [19:44:37]FM_MakeSignedData [19:44:37]SAM_PROTO_SignData [19:44:37]wFMCommunicate request_size=4 [19:44:37]MH_SAM_APDU [19:44:37]CAPDU: 80 0D 01 02 [19:44:37]Write to MH i2c: E2 08 00 5A 36 80 0D 01 02 00 00 00 00 09 [19:44:37]Write i2c OK [19:44:37]MH_I2C_Read... [19:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:44:37]Read from MH i2c: E2 [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: E2 03 00 [19:44:37]MH_I2C_Read... [19:44:37]Read from MH i2c: E2 03 00 5A 36 00 90 00 04 [19:44:37]RAPDU: 90 00 [19:44:37]wFMCommunicate OK [19:44:37]wFMCommunicate request_size=255 [19:44:37]MH_SAM_APDU [19:44:37]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 36 37 31 37 06 04 30 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 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 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 19 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 87 00 00 00 F4 03 04 00 AA BA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 [19:44:37]Write to MH i2c: E2 02 01 5B 36 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 36 37 31 37 06 04 30 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 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 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 19 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 87 00 00 00 F4 03 04 00 AA BA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 00 00 E0 [19:44:37]Write i2c OK [19:44:37]MH_I2C_Read... [19:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:38]Read from MH i2c: E2 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 03 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 03 00 5B 36 00 90 00 05 [19:44:38]RAPDU: 90 00 [19:44:38]wFMCommunicate OK [19:44:38]wFMCommunicate request_size=44 [19:44:38]MH_SAM_APDU [19:44:38]CAPDU: 80 0D 02 02 27 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CE 09 00 00 35 04 06 00 DB 7F 04 F9 08 C4 [19:44:38]Write to MH i2c: E2 2F 00 5C 36 80 0D 02 02 27 00 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CE 09 00 00 35 04 06 00 DB 7F 04 F9 08 C4 00 00 1A [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:44:38]Read from MH i2c: E2 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 03 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 03 00 5C 36 00 90 00 06 [19:44:38]RAPDU: 90 00 [19:44:38]wFMCommunicate OK [19:44:38]wFMCommunicate request_size=4 [19:44:38]MH_SAM_APDU [19:44:38]CAPDU: 80 0D 03 02 [19:44:38]Write to MH i2c: E2 08 00 5D 36 80 0D 03 02 00 00 00 00 0E [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:44:38]Read from MH i2c: E2 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 0B 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 0B 00 5D 36 00 65 0E 1B 23 A5 82 77 1F 90 00 7D [19:44:38]RAPDU: 65 0E 1B 23 A5 82 77 1F 90 00 [19:44:38]wFMCommunicate OK [19:44:38]SAM_PROTO_SignData done [19:44:38]FM_MakeSignedData done [19:44:38]CreateOFDProtocolMessage [19:44:38]wFMCommunicate request_size=4 [19:44:38]MH_SAM_APDU [19:44:38]CAPDU: 80 11 00 00 [19:44:38]Write to MH i2c: E2 08 00 5E 36 80 11 00 00 00 00 00 00 0E [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:38]Read from MH i2c: E2 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 17 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: E2 17 00 5E 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 56 [19:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:44:38]wFMCommunicate OK [19:44:38]CreateOFDProtocolMessage done [19:44:38]OFDSenderStorePacket 2510 [19:44:38]StoreOFDPacket docnum=2510 [19:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 31 01 00 00 31 07 29 01 56 AF 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 36 37 31 37 06 04 30 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 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 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 19 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 87 00 00 00 F4 03 04 00 AA BA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CE 09 00 00 35 04 06 00 DB 7F 04 F9 08 C4 65 0E 1B 23 A5 82 77 1F [19:44:38]CheckFolder [19:44:38]dirname=/storage/ofd_packets [19:44:38]CheckFolder done [19:44:38]ProducePacketName [19:44:38]name=ofd_packets/00002510 [19:44:38]NVStorageSaveData ofd_packets/00002510 [19:44:38]File name is /storage/ofd_packets/00002510 [19:44:38]Write 335 bytes [19:44:38]NVStorageSaveData done [19:44:38]OFDSenderStorePacket done [19:44:38]KKMCreateOFDPacket done [19:44:38]NVStorageSaveData kkm_last_timestamp [19:44:38]File name is /storage/kkm_last_timestamp [19:44:38]Write 4 bytes [19:44:38]NVStorageSaveData done [19:44:38]ExternCall_PrintAddStr [19:44:38]wPrintStart [19:44:38]Write to MH i2c: 01 00 00 5F 36 95 [19:44:38]Write i2c OK [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: 01 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: 01 07 00 [19:44:38]MH_I2C_Read... [19:44:38]Read from MH i2c: 01 07 00 5F 36 00 00 00 00 00 FF 0F AA [19:44:38]RasterBufferAndPrint [19:44:38]line Счет N : (3)99900 [19:44:38]line ИÐÐ: 02508201610067 [19:44:38]line Контрольно-КаÑÑовый Чек [19:44:38]line ПРОДÐЖР[19:44:38]line Товар: 48746717 [19:44:38]line Сигареты Winston XStyle Caster + Dream M [19:44:38]line 1.000 * 147.00 [19:44:38]line = 147.00 [19:44:38]line ÐДС 12% ÐСП 1% [19:44:38]line > о реализуемом товаре [19:44:38]line ИТОГО: 147.00 [19:44:38]line ÐСП 1% : 1.30 [19:44:38]line ÐДС 12% : 15.61 [19:44:38]line Ðаличными: 147.00 [19:44:38]line Безнал.: 0.00 [19:44:38]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [19:44:38]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [19:44:38]line СÐО: Общий режим [19:44:38]line Чек 135 18.10.2024 19:44 [19:44:38]line Смена: 22 ФФД: 1.0 [19:44:38]line ЗÐМ: 0300000191 [19:44:38]line РÐМ: 0000000000207295 [19:44:38]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [19:44:38]line ФМ: 0000000002342820 [19:44:38]line ФД: 2510 [19:44:38]line ФПД: 241338590759108 [19:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T194442&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2510&fm=241338590759108&tin=02508201610067®Number=0000000000207295&sum=14700 [19:44:38]line 0 [19:44:38]OFD Sender: Processing packet 2510 [packets to send 1, broken 0] [19:44:38]ProducePacketName [19:44:38]name=ofd_packets/00002510 [19:44:38]OFD Sender: To server: ‡•öpG, [19:44:38]CommunicateWithHost lk.salyk.kg:30040 [19:44:38]ConnectInit lk.salyk.kg [19:44:38]written 0, free lines is 4095 [19:44:38]Connected sock=11 [19:44:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 31 01 00 00 31 07 29 01 56 AF 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 36 37 31 37 06 04 30 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 58 53 74 79 6C 65 20 43 61 73 74 65 72 20 2B 20 44 72 65 61 6D 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 6C 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 19 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 87 00 00 00 F4 03 04 00 AA BA 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CE 09 00 00 35 04 06 00 DB 7F 04 F9 08 C4 65 0E 1B 23 A5 82 77 1F [19:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 9D 7D 47 00 AB 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 32 33 34 32 38 32 30 10 04 04 00 CE 09 00 00 F4 03 04 00 0D 66 12 67 B6 04 01 00 00 A9 BA C9 6B 73 23 A2 E5 [19:44:38]CommunicateWithHost err = 0 [19:44:38]CheckOFDResponse [19:44:38]1017 (14) - 77093643461234 [19:44:38]1041 (16) - 0000000002342820 [19:44:38]1040 (4) - 2510 [19:44:38]1012 (4) - 18.10.2024 13:43 [19:44:38]1206 (1) - 0 [19:44:38]OFD Sender: Remove packet 2510 [19:44:38]ProducePacketName [19:44:38]name=ofd_packets/00002510 [19:44:38]NVStorageDeleteData [19:44:39]Write to MH i2c: 01 00 00 88 36 BE [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: 01 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: 01 07 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: 01 07 00 88 36 00 00 00 00 00 BE 0C 8F [19:44:39]RasterBufferAndPrint [19:44:39]line [19:44:39]line [19:44:39]line [19:44:39]line [19:44:39]line [19:44:39]written 0, free lines is 3265 [19:44:39]MH_Cut [19:44:39]Write to MH i2c: D1 01 00 8F 36 01 97 [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: D1 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: D1 01 00 [19:44:39]MH_I2C_Read... [19:44:39]Read from MH i2c: D1 01 00 8F 36 00 96 [19:44:39]Write to MH i2c: 01 00 00 90 36 C6 [19:44:39]Write i2c OK [19:44:39]MH_I2C_Read... [19:44:39]OFD Sender: No OFD packet to send [19:44:39]*** Cut start [19:44:39]*** Partial cut [19:44:39]*** CUTSNS_PIN = 1 [19:44:39]*** CUTSNS_PIN = 0 [19:44:40]*** Brake cut motor [19:44:40]Read from MH i2c: 01 [19:44:40]MH_I2C_Read... [19:44:40]*** Stop cut motor [19:44:40]*** Cut end [19:44:40]Read from MH i2c: 01 07 00 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: 01 07 00 90 36 00 00 00 00 00 FF 0F DB [19:44:40]process_action close_receipt done [19:44:40]requested_data is exist [19:44:40]produce_requested_data [19:44:40]requested_item fm.sn is exist - process it [19:44:40]wFMCommunicate request_size=4 [19:44:40]MH_SAM_APDU [19:44:40]CAPDU: 80 11 00 00 [19:44:40]Write to MH i2c: E2 08 00 91 36 80 11 00 00 00 00 00 00 41 [19:44:40]Write i2c OK [19:44:40]MH_I2C_Read... [19:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:44:40]Read from MH i2c: E2 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: E2 17 00 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: E2 17 00 91 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 89 [19:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:44:40]wFMCommunicate OK [19:44:40]requested_item fd.num is exist - process it [19:44:40]SAM_PROTO_GetFieldsCounters [19:44:40]wFMCommunicate request_size=4 [19:44:40]MH_SAM_APDU [19:44:40]CAPDU: 80 13 00 00 [19:44:40]Write to MH i2c: E2 08 00 92 36 80 13 00 00 00 00 00 00 44 [19:44:40]Write i2c OK [19:44:40]MH_I2C_Read... [19:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:44:40]Read from MH i2c: E2 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: E2 62 00 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: E2 62 00 92 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CE 09 00 00 0E 04 04 00 16 00 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 DC [19:44:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CE 09 00 00 0E 04 04 00 16 00 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 [19:44:40]wFMCommunicate OK [19:44:40]SAM_PROTO_GetFieldsCounters done [19:44:40]requested_item shift.num is exist - process it [19:44:40]requested_item shift.opened is exist - process it [19:44:40]req_shift_opened [19:44:40]FM_GetShiftState [19:44:40]SAM_PROTO_GetShiftState [19:44:40]wFMCommunicate request_size=4 [19:44:40]MH_SAM_APDU [19:44:40]CAPDU: 80 13 01 00 [19:44:40]Write to MH i2c: E2 08 00 93 36 80 13 01 00 00 00 00 00 46 [19:44:40]Write i2c OK [19:44:40]MH_I2C_Read... [19:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:44:40]Read from MH i2c: E2 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: E2 0E 00 [19:44:40]MH_I2C_Read... [19:44:40]Read from MH i2c: E2 0E 00 93 36 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E4 [19:44:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:44:40]wFMCommunicate OK [19:44:40]SAM_PROTO_GetShiftState done [19:44:40]FM_GetShiftState done [19:44:40]req_shift_opened done [19:44:40]requested_item shift.open_date is exist - process it [19:44:40]req_shift_open_date [19:44:40]req_shift_open_date done [19:44:40]produce_requested_data done [19:44:40]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2510,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:44:40]process_action_free close_receipt [19:44:40]json_value_free [19:44:40]json_value_free done [19:44:40]process_json_proto returns [19:44:40]Send response to host [19:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2510,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:44:40]free response buf [19:44:40]execute_script done [19:44:40]execute_script returns [19:44:40]free content buf [19:44:40]Sock 7.Close socket [19:44:40]Sock 7.Thread stoped [19:44:44]OFD Sender: No OFD packet to send [19:44:49]OFD Sender: No OFD packet to send [19:44:54]OFD Sender: No OFD packet to send [19:44:59]OFD Sender: No OFD packet to send [19:45:04]OFD Sender: No OFD packet to send [19:45:09]OFD Sender: No OFD packet to send [19:45:14]OFD Sender: No OFD packet to send [19:45:19]OFD Sender: No OFD packet to send [19:45:24]OFD Sender: No OFD packet to send [19:45:29]OFD Sender: No OFD packet to send [19:45:34]OFD Sender: No OFD packet to send [19:45:39]OFD Sender: No OFD packet to send [19:45:44]OFD Sender: No OFD packet to send [19:45:49]OFD Sender: No OFD packet to send [19:45:54]OFD Sender: No OFD packet to send [19:45:59]OFD Sender: No OFD packet to send [19:46:04]OFD Sender: No OFD packet to send [19:46:09]OFD Sender: No OFD packet to send [19:46:14]OFD Sender: No OFD packet to send [19:46:19]OFD Sender: No OFD packet to send [19:46:24]OFD Sender: No OFD packet to send [19:46:29]OFD Sender: No OFD packet to send [19:46:34]OFD Sender: No OFD packet to send [19:46:39]OFD Sender: No OFD packet to send [19:46:44]OFD Sender: No OFD packet to send [19:46:49]OFD Sender: No OFD packet to send [19:46:54]OFD Sender: No OFD packet to send [19:46:59]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:49]OFD Sender: No OFD packet to send [19:48:54]OFD Sender: No OFD packet to send [19:48:59]OFD Sender: No OFD packet to send [19:49:04]OFD Sender: No OFD packet to send [19:49:09]OFD Sender: No OFD packet to send [19:49:14]OFD Sender: No OFD packet to send [19:49:19]OFD Sender: No OFD packet to send [19:49:24]OFD Sender: No OFD packet to send [19:49:29]OFD Sender: No OFD packet to send [19:49:34]OFD Sender: No OFD packet to send [19:49:39]OFD Sender: No OFD packet to send [19:49:44]OFD Sender: No OFD packet to send [19:49:49]OFD Sender: No OFD packet to send [19:49:54]OFD Sender: No OFD packet to send [19:49:59]OFD Sender: No OFD packet to send [19:50:04]OFD Sender: No OFD packet to send [19:50:09]OFD Sender: No OFD packet to send [19:50:14]OFD Sender: No OFD packet to send [19:50:19]OFD Sender: No OFD packet to send [19:50:24]OFD Sender: No OFD packet to send [19:50:29]OFD Sender: No OFD packet to send [19:50:34]OFD Sender: No OFD packet to send [19:50:39]OFD Sender: No OFD packet to send [19:50:44]OFD Sender: No OFD packet to send [19:50:49]OFD Sender: No OFD packet to send [19:50:54]OFD Sender: No OFD packet to send [19:50:59]OFD Sender: No OFD packet to send [19:51:04]OFD Sender: No OFD packet to send [19:51:09]OFD Sender: No OFD packet to send [19:51:14]OFD Sender: No OFD packet to send [19:51:19]OFD Sender: No OFD packet to send [19:51:24]OFD Sender: No OFD packet to send [19:51:29]OFD Sender: No OFD packet to send [19:51:34]OFD Sender: No OFD packet to send [19:51:39]OFD Sender: No OFD packet to send [19:51:44]OFD Sender: No OFD packet to send [19:51:49]OFD Sender: No OFD packet to send [19:51:54]OFD Sender: No OFD packet to send [19:51:59]OFD Sender: No OFD packet to send [19:52:04]OFD Sender: No OFD packet to send [19:52:09]OFD Sender: No OFD packet to send [19:52:14]OFD Sender: No OFD packet to send [19:52:19]OFD Sender: No OFD packet to send [19:52:24]OFD Sender: No OFD packet to send [19:52:29]OFD Sender: No OFD packet to send [19:52:34]OFD Sender: No OFD packet to send [19:52:39]OFD Sender: No OFD packet to send [19:52:44]OFD Sender: No OFD packet to send [19:52:49]OFD Sender: No OFD packet to send [19:52:54]OFD Sender: No OFD packet to send [19:52:59]OFD Sender: No OFD packet to send [19:53:04]OFD Sender: No OFD packet to send [19:53:09]OFD Sender: No OFD packet to send [19:53:14]OFD Sender: No OFD packet to send [19:53:19]OFD Sender: No OFD packet to send [19:53:24]OFD Sender: No OFD packet to send [19:53:29]OFD Sender: No OFD packet to send [19:53:34]OFD Sender: No OFD packet to send [19:53:39]OFD Sender: No OFD packet to send [19:53:44]OFD Sender: No OFD packet to send [19:53:49]OFD Sender: No OFD packet to send [19:53:54]OFD Sender: No OFD packet to send [19:53:59]OFD Sender: No OFD packet to send [19:54:04]OFD Sender: No OFD packet to send [19:54:09]OFD Sender: No OFD packet to send [19:54:14]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:49]OFD Sender: No OFD packet to send [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:30]OFD Sender: No OFD packet to send [19:57:35]OFD Sender: No OFD packet to send [19:57:40]OFD Sender: No OFD packet to send [19:57:45]OFD Sender: No OFD packet to send [19:57:50]OFD Sender: No OFD packet to send [19:57:55]OFD Sender: No OFD packet to send [19:58:00]OFD Sender: No OFD packet to send [19:58:05]OFD Sender: No OFD packet to send [19:58:07]accept exits with 9 [19:58:07]New connection [19:58:07]New thread 3066707300 created [19:58:07]Thread 3066850660 joined [19:58:07]Waiting for new connection... [19:58:07] Sock 9.Parse request [19:58:07]Sock 9.Check first char [19:58:07]Sock 9.First char is OK [19:58:07]request: POST /json_proto HTTP/1.0 [19:58:07]Method: POST [19:58:07]URL: /json_proto [19:58:07]Method is POST - this is cgi request [19:58:07]url: /json_proto [19:58:07]query_string will be loaded in cgi processing [19:58:07]execute_cgi json_proto POST (null) [19:58:07]execute_cgi path=json_proto method=POST [19:58:07]POST find Content-Length [19:58:07]Host: 172.17.52.132:8080 [19:58:07]Content-Length: 677 [19:58:07]Content-Type: application/json [19:58:07] [19:58:07]POST finish read [19:58:07]Found Content-Length = 677 [19:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475727", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:07]execute_script... [19:58: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)475727", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:07]POST & json_proto [19:58:07]process_json_proto [19:58:07]json parsed OK: [19:58:07]protocol is kg_v1.0 [19:58:07]action value=close_receipt [19:58:07]process_action close_receipt [19:58:07]cmd_close_receipt [19:58:07]MH_GetDate [19:58:07]Write to MH i2c: F0 00 00 94 36 B9 [19:58:07]Write i2c OK [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: F0 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: F0 09 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: F0 09 00 94 36 00 D5 BD 12 67 5A BE F6 66 41 [19:58:07]GetLastDocTimeStamp 1729280682 [19:58:07]current date 1729281493 [19:58:07]FM_GetShiftState [19:58:07]SAM_PROTO_GetShiftState [19:58:07]wFMCommunicate request_size=4 [19:58:07]MH_SAM_APDU [19:58:07]CAPDU: 80 13 01 00 [19:58:07]Write to MH i2c: E2 08 00 95 36 80 13 01 00 00 00 00 00 48 [19:58:07]Write i2c OK [19:58:07]MH_I2C_Read... [19:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:07]Read from MH i2c: E2 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 0E 00 [19:58:07]MH_I2C_Read... [19:58:07]Read from MH i2c: E2 0E 00 95 36 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E6 [19:58:07]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:58:07]wFMCommunicate OK [19:58:07]SAM_PROTO_GetShiftState done [19:58:07]FM_GetShiftState done [19:58:07]opened in 1729209717 [19:58:07]opened+sec_in_day 1729296117 [19:58:07]quantity*price = 50041 [19:58:07]sum+1 = 50042 [19:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.41 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 136 18.10.2024 19:58 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2511 ФПД: 139609420148131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T195813&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2511&fm=139609420148131&tin=02508201610067®Number=0000000000207295&sum=50000 [19:58:08]StoreToDocumentArchive [19:58:08]shift 22 fd 2511 [19:58:08]save to /storage/0022/doc_00002511 [19:58:08]save last doc name /storage/0022/doc_00002511 to /storage/kkm_last_doc_name [19:58:08]save OK [19:58:08]Clear old archive folders... [19:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:08]tlvbuf is 01447870 [19:58:08]SAM_PROTO_ClearQueue [19:58:08]wFMCommunicate request_size=4 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 09 00 00 [19:58:08]Write to MH i2c: E2 08 00 A2 36 80 09 00 00 00 00 00 00 4A [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 03 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 03 00 A2 36 00 90 00 4C [19:58:08]RAPDU: 90 00 [19:58:08]wFMCommunicate OK [19:58:08]SAM_PROTO_ClearQueue done [19:58:08]KKMCreateOFDPacket [19:58:08]OFDProtocolAddRootSTLVToBuf [19:58:08]FM_MakeSignedData [19:58:08]FM_MakeSignedData [19:58:08]SAM_PROTO_SignData [19:58:08]wFMCommunicate request_size=4 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 0D 01 02 [19:58:08]Write to MH i2c: E2 08 00 A3 36 80 0D 01 02 00 00 00 00 52 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 03 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 03 00 A3 36 00 90 00 4D [19:58:08]RAPDU: 90 00 [19:58:08]wFMCommunicate OK [19:58:08]wFMCommunicate request_size=255 [19:58:08]MH_SAM_APDU [19:58: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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 D5 BD 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CF 09 00 00 35 04 06 00 7E [19:58:08]Write to MH i2c: E2 02 01 A4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 D5 BD 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CF 09 00 00 35 04 06 00 7E 00 00 D5 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 03 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 03 00 A4 36 00 90 00 4E [19:58:08]RAPDU: 90 00 [19:58:08]wFMCommunicate OK [19:58:08]wFMCommunicate request_size=10 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 0D 02 02 05 F9 59 E5 2D A3 [19:58:08]Write to MH i2c: E2 0D 00 A5 36 80 0D 02 02 05 00 F9 59 E5 2D A3 00 00 66 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 03 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 03 00 A5 36 00 90 00 4F [19:58:08]RAPDU: 90 00 [19:58:08]wFMCommunicate OK [19:58:08]wFMCommunicate request_size=4 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 0D 03 02 [19:58:08]Write to MH i2c: E2 08 00 A6 36 80 0D 03 02 00 00 00 00 57 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:08]Read from MH i2c: E2 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 0B 00 [19:58:08]MH_I2C_Read... [19:58:08]Read from MH i2c: E2 0B 00 A6 36 00 9B 62 60 13 16 A2 C9 4B 90 00 94 [19:58:08]RAPDU: 9B 62 60 13 16 A2 C9 4B 90 00 [19:58:08]wFMCommunicate OK [19:58:08]SAM_PROTO_SignData done [19:58:08]FM_MakeSignedData done [19:58:08]CreateOFDProtocolMessage [19:58:08]wFMCommunicate request_size=4 [19:58:08]MH_SAM_APDU [19:58:08]CAPDU: 80 11 00 00 [19:58:08]Write to MH i2c: E2 08 00 A7 36 80 11 00 00 00 00 00 00 57 [19:58:08]Write i2c OK [19:58:08]MH_I2C_Read... [19:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:09]Read from MH i2c: E2 [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: E2 17 00 [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: E2 17 00 A7 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 9F [19:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:58:09]wFMCommunicate OK [19:58:09]CreateOFDProtocolMessage done [19:58:09]OFDSenderStorePacket 2511 [19:58:09]StoreOFDPacket docnum=2511 [19:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 B6 ED 07 01 82 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 D5 BD 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CF 09 00 00 35 04 06 00 7E F9 59 E5 2D A3 9B 62 60 13 16 A2 C9 4B [19:58:09]CheckFolder [19:58:09]dirname=/storage/ofd_packets [19:58:09]CheckFolder done [19:58:09]ProducePacketName [19:58:09]name=ofd_packets/00002511 [19:58:09]NVStorageSaveData ofd_packets/00002511 [19:58:09]File name is /storage/ofd_packets/00002511 [19:58:09]Write 301 bytes [19:58:09]NVStorageSaveData done [19:58:09]OFDSenderStorePacket done [19:58:09]KKMCreateOFDPacket done [19:58:09]NVStorageSaveData kkm_last_timestamp [19:58:09]File name is /storage/kkm_last_timestamp [19:58:09]Write 4 bytes [19:58:09]NVStorageSaveData done [19:58:09]ExternCall_PrintAddStr [19:58:09]wPrintStart [19:58:09]Write to MH i2c: 01 00 00 A8 36 DE [19:58:09]Write i2c OK [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: 01 [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: 01 07 00 [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: 01 07 00 A8 36 00 00 00 00 00 FF 0F F3 [19:58:09]RasterBufferAndPrint [19:58:09]line Счет N : (1)475727 [19:58:09]line ИÐÐ: 02508201610067 [19:58:09]line Контрольно-КаÑÑовый Чек [19:58:09]line ПРОДÐЖР[19:58:09]line ТРК (МРК, ГÐК) : 22 [19:58:09]line Товар: 2710124130 [19:58:09]line Ðи-92-К-5 [19:58:09]line 7.480 * 66.90 [19:58:09]line = 500.41 [19:58:09]line ÐДС 12% ÐСП 1% [19:58:09]line > о реализуемом товаре [19:58:09]line ОКРУГЛЕÐИЕ: -0.41 [19:58:09]line ИТОГО: 500.00 [19:58:09]line ВнеÑено: 500.00 [19:58:09]line СДÐЧÐ: 0.00 [19:58:09]line ÐСП 1% : 4.43 [19:58:09]line ÐДС 12% : 53.14 [19:58:09]line Ðаличными: 500.00 [19:58:09]line Безнал.: 0.00 [19:58:09]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [19:58:09]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [19:58:09]line СÐО: Общий режим [19:58:09]line Чек 136 18.10.2024 19:58 [19:58:09]line Смена: 22 ФФД: 1.0 [19:58:09]line ЗÐМ: 0300000191 [19:58:09]line РÐМ: 0000000000207295 [19:58:09]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [19:58:09]line ФМ: 0000000002342820 [19:58:09]line ФД: 2511 [19:58:09]line ФПД: 139609420148131 [19:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T195813&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2511&fm=139609420148131&tin=02508201610067®Number=0000000000207295&sum=50000 [19:58:09]OFD Sender: Processing packet 2511 [packets to send 1, broken 0] [19:58:09]ProducePacketName [19:58:09]name=ofd_packets/00002511 [19:58:09]OFD Sender: To server: ‡•öpG, [19:58:09]CommunicateWithHost lk.salyk.kg:30040 [19:58:09]ConnectInit lk.salyk.kg [19:58:09]written 0, free lines is 4095 [19:58:09]Connected sock=10 [19:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 B6 ED 07 01 82 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 D5 BD 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CF 09 00 00 35 04 06 00 7E F9 59 E5 2D A3 9B 62 60 13 16 A2 C9 4B [19:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 99 3D 47 00 97 C2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 CF 09 00 00 F4 03 04 00 38 69 12 67 B6 04 01 00 00 97 43 A8 48 ED 2D AC 7B [19:58:09]CommunicateWithHost err = 0 [19:58:09]CheckOFDResponse [19:58:09]1017 (14) - 77093643461234 [19:58:09]1041 (16) - 0000000002342820 [19:58:09]1040 (4) - 2511 [19:58:09]1012 (4) - 18.10.2024 13:57 [19:58:09]1206 (1) - 0 [19:58:09]OFD Sender: Remove packet 2511 [19:58:09]ProducePacketName [19:58:09]name=ofd_packets/00002511 [19:58:09]NVStorageDeleteData [19:58:09]Write to MH i2c: 01 00 00 D3 36 09 [19:58:09]Write i2c OK [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: 01 [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: 01 07 00 [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: 01 07 00 D3 36 00 00 00 00 00 9B 0C B7 [19:58:09]RasterBufferAndPrint [19:58:09]line [19:58:09]line [19:58:09]line [19:58:09]line [19:58:09]line [19:58:09]written 0, free lines is 3233 [19:58:09]MH_Cut [19:58:09]Write to MH i2c: D1 01 00 DA 36 01 E2 [19:58:09]Write i2c OK [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: D1 [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: D1 01 00 [19:58:09]MH_I2C_Read... [19:58:09]Read from MH i2c: D1 01 00 DA 36 00 E1 [19:58:09]Write to MH i2c: 01 00 00 DB 36 11 [19:58:09]Write i2c OK [19:58:09]MH_I2C_Read... [19:58:10]OFD Sender: No OFD packet to send [19:58:10]*** Cut start [19:58:10]*** Partial cut [19:58:10]*** CUTSNS_PIN = 1 [19:58:10]*** CUTSNS_PIN = 0 [19:58:11]*** Brake cut motor [19:58:11]Read from MH i2c: 01 [19:58:11]MH_I2C_Read... [19:58:11]*** Stop cut motor [19:58:11]*** Cut end [19:58:11]Read from MH i2c: 01 07 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: 01 07 00 DB 36 00 00 00 00 00 FF 0F 26 [19:58:11]process_action close_receipt done [19:58:11]requested_data is exist [19:58:11]produce_requested_data [19:58:11]requested_item fm.sn is exist - process it [19:58:11]wFMCommunicate request_size=4 [19:58:11]MH_SAM_APDU [19:58:11]CAPDU: 80 11 00 00 [19:58:11]Write to MH i2c: E2 08 00 DC 36 80 11 00 00 00 00 00 00 8C [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:11]Read from MH i2c: E2 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 17 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 17 00 DC 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D4 [19:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [19:58:11]wFMCommunicate OK [19:58:11]requested_item fd.num is exist - process it [19:58:11]SAM_PROTO_GetFieldsCounters [19:58:11]wFMCommunicate request_size=4 [19:58:11]MH_SAM_APDU [19:58:11]CAPDU: 80 13 00 00 [19:58:11]Write to MH i2c: E2 08 00 DD 36 80 13 00 00 00 00 00 00 8F [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:11]Read from MH i2c: E2 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 62 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 62 00 DD 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CF 09 00 00 0E 04 04 00 16 00 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 2B [19:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 CF 09 00 00 0E 04 04 00 16 00 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 [19:58:11]wFMCommunicate OK [19:58:11]SAM_PROTO_GetFieldsCounters done [19:58:11]requested_item shift.num is exist - process it [19:58:11]requested_item shift.opened is exist - process it [19:58:11]req_shift_opened [19:58:11]FM_GetShiftState [19:58:11]SAM_PROTO_GetShiftState [19:58:11]wFMCommunicate request_size=4 [19:58:11]MH_SAM_APDU [19:58:11]CAPDU: 80 13 01 00 [19:58:11]Write to MH i2c: E2 08 00 DE 36 80 13 01 00 00 00 00 00 91 [19:58:11]Write i2c OK [19:58:11]MH_I2C_Read... [19:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:11]Read from MH i2c: E2 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 0E 00 [19:58:11]MH_I2C_Read... [19:58:11]Read from MH i2c: E2 0E 00 DE 36 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2F [19:58:11]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [19:58:11]wFMCommunicate OK [19:58:11]SAM_PROTO_GetShiftState done [19:58:11]FM_GetShiftState done [19:58:11]req_shift_opened done [19:58:11]requested_item shift.open_date is exist - process it [19:58:11]req_shift_open_date [19:58:11]req_shift_open_date done [19:58:11]produce_requested_data done [19:58:11]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2511,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [19:58:11]process_action_free close_receipt [19:58:11]json_value_free [19:58:11]json_value_free done [19:58:11]process_json_proto returns [19:58:11]Send response to host [19:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2511,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [19:58:11]free response buf [19:58:11]execute_script done [19:58:11]execute_script returns [19:58:11]free content buf [19:58:11]Sock 9.Close socket [19:58:11]Sock 9.Thread stoped [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:15]OFD Sender: No OFD packet to send [20:00:20]OFD Sender: No OFD packet to send [20:00:25]OFD Sender: No OFD packet to send [20:00:30]OFD Sender: No OFD packet to send [20:00:35]OFD Sender: No OFD packet to send [20:00:40]OFD Sender: No OFD packet to send [20:00:45]OFD Sender: No OFD packet to send [20:00:50]OFD Sender: No OFD packet to send [20:00:55]OFD Sender: No OFD packet to send [20:01:00]OFD Sender: No OFD packet to send [20:01:05]OFD Sender: No OFD packet to send [20:01:10]OFD Sender: No OFD packet to send [20:01:15]OFD Sender: No OFD packet to send [20:01:17]accept exits with 7 [20:01:17]New connection [20:01:17]New thread 3066850660 created [20:01:17]Thread 3066707300 joined [20:01:17]Waiting for new connection... [20:01:17] Sock 7.Parse request [20:01:17]Sock 7.Check first char [20:01:17]Sock 7.First char is OK [20:01:17]request: POST /json_proto HTTP/1.0 [20:01:17]Method: POST [20:01:17]URL: /json_proto [20:01:17]Method is POST - this is cgi request [20:01:17]url: /json_proto [20:01:17]query_string will be loaded in cgi processing [20:01:17]execute_cgi json_proto POST (null) [20:01:17]execute_cgi path=json_proto method=POST [20:01:17]POST find Content-Length [20:01:17]Host: 172.17.52.132:8080 [20:01:17]Content-Length: 615 [20:01:17]Content-Type: application/json [20:01:17] [20:01:17]POST finish read [20:01:17]Found Content-Length = 615 [20:01:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99901", "tax_sys" : 0, "items" : [ { "code": "080432400432", "name": "\u0412\u0438\u0441\u043A\u0438 CHIVAS REGAL 12YO 1\u043B", "price" : 5600.00, "quantity" : 1.000, "sum" : 5600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 5600.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:17]execute_script... [20:01:17]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99901", "tax_sys" : 0, "items" : [ { "code": "080432400432", "name": "\u0412\u0438\u0441\u043A\u0438 CHIVAS REGAL 12YO 1\u043B", "price" : 5600.00, "quantity" : 1.000, "sum" : 5600.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 5600.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:01:17]POST & json_proto [20:01:17]process_json_proto [20:01:17]json parsed OK: [20:01:17]protocol is kg_v1.0 [20:01:17]action value=close_receipt [20:01:17]process_action close_receipt [20:01:17]cmd_close_receipt [20:01:17]MH_GetDate [20:01:17]Write to MH i2c: F0 00 00 DF 36 04 [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: F0 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: F0 09 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: F0 09 00 DF 36 00 93 BE 12 67 5A BE F6 66 4B [20:01:17]GetLastDocTimeStamp 1729281493 [20:01:17]current date 1729281683 [20:01:17]FM_GetShiftState [20:01:17]SAM_PROTO_GetShiftState [20:01:17]wFMCommunicate request_size=4 [20:01:17]MH_SAM_APDU [20:01:17]CAPDU: 80 13 01 00 [20:01:17]Write to MH i2c: E2 08 00 E0 36 80 13 01 00 00 00 00 00 93 [20:01:17]Write i2c OK [20:01:17]MH_I2C_Read... [20:01:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:17]Read from MH i2c: E2 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 0E 00 [20:01:17]MH_I2C_Read... [20:01:17]Read from MH i2c: E2 0E 00 E0 36 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 31 [20:01:17]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:01:17]wFMCommunicate OK [20:01:17]SAM_PROTO_GetShiftState done [20:01:17]FM_GetShiftState done [20:01:17]opened in 1729209717 [20:01:17]opened+sec_in_day 1729296117 [20:01:17]quantity*price = 560000 [20:01:17]sum+1 = 560001 [20:01:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5600.00 ÐСП 1% : 49.56 ÐДС 12% : 594.69 Ðаличными: 5600.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 137 18.10.2024 20:01 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2512 ФПД: 124237714102320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200123&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2512&fm=124237714102320&tin=02508201610067®Number=0000000000207295&sum=560000 0 [20:01:18]StoreToDocumentArchive [20:01:18]shift 22 fd 2512 [20:01:18]save to /storage/0022/doc_00002512 [20:01:18]save last doc name /storage/0022/doc_00002512 to /storage/kkm_last_doc_name [20:01:18]save OK [20:01:18]Clear old archive folders... [20:01:18]ProcessDocumentItem done err = 0, tmpTLVsize=273 [20:01:18]tlvbuf is 013C4150 [20:01:18]SAM_PROTO_ClearQueue [20:01:18]wFMCommunicate request_size=4 [20:01:18]MH_SAM_APDU [20:01:18]CAPDU: 80 09 00 00 [20:01:18]Write to MH i2c: E2 08 00 ED 36 80 09 00 00 00 00 00 00 95 [20:01:18]Write i2c OK [20:01:18]MH_I2C_Read... [20:01:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:01:18]Read from MH i2c: E2 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: E2 03 00 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: E2 03 00 ED 36 00 90 00 97 [20:01:18]RAPDU: 90 00 [20:01:18]wFMCommunicate OK [20:01:18]SAM_PROTO_ClearQueue done [20:01:18]KKMCreateOFDPacket [20:01:18]OFDProtocolAddRootSTLVToBuf [20:01:18]FM_MakeSignedData [20:01:18]FM_MakeSignedData [20:01:18]SAM_PROTO_SignData [20:01:18]wFMCommunicate request_size=4 [20:01:18]MH_SAM_APDU [20:01:18]CAPDU: 80 0D 01 02 [20:01:18]Write to MH i2c: E2 08 00 EE 36 80 0D 01 02 00 00 00 00 9D [20:01:18]Write i2c OK [20:01:18]MH_I2C_Read... [20:01:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:01:18]Read from MH i2c: E2 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: E2 03 00 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: E2 03 00 EE 36 00 90 00 98 [20:01:18]RAPDU: 90 00 [20:01:18]wFMCommunicate OK [20:01:18]wFMCommunicate request_size=255 [20:01:18]MH_SAM_APDU [20:01:18]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0C 00 30 38 30 34 33 32 34 30 30 34 33 32 06 04 20 00 D0 92 D0 B8 D1 81 D0 BA D0 B8 20 43 48 49 56 41 53 20 52 45 47 41 4C 20 31 32 59 4F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 8B 08 00 00 00 13 04 06 00 80 8B 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 8B 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D E8 00 00 00 00 07 04 06 00 80 8B 08 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 93 BE 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 [20:01:18]Write to MH i2c: E2 02 01 EF 36 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0C 00 30 38 30 34 33 32 34 30 30 34 33 32 06 04 20 00 D0 92 D0 B8 D1 81 D0 BA D0 B8 20 43 48 49 56 41 53 20 52 45 47 41 4C 20 31 32 59 4F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 8B 08 00 00 00 13 04 06 00 80 8B 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 8B 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D E8 00 00 00 00 07 04 06 00 80 8B 08 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 93 BE 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 B5 [20:01:18]Write i2c OK [20:01:18]MH_I2C_Read... [20:01:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:18]Read from MH i2c: E2 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: E2 03 00 [20:01:18]MH_I2C_Read... [20:01:18]Read from MH i2c: E2 03 00 EF 36 00 90 00 99 [20:01:18]RAPDU: 90 00 [20:01:18]wFMCommunicate OK [20:01:18]wFMCommunicate request_size=32 [20:01:18]MH_SAM_APDU [20:01:18]CAPDU: 80 0D 02 02 1B 30 30 32 33 34 32 38 32 30 10 04 04 00 D0 09 00 00 35 04 06 00 70 FE 58 D1 18 30 [20:01:18]Write to MH i2c: E2 23 00 F0 36 80 0D 02 02 1B 00 30 30 32 33 34 32 38 32 30 10 04 04 00 D0 09 00 00 35 04 06 00 70 FE 58 D1 18 30 00 00 AA [20:01:18]Write i2c OK [20:01:18]MH_I2C_Read... [20:01:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:01:19]Read from MH i2c: E2 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 03 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 03 00 F0 36 00 90 00 9A [20:01:19]RAPDU: 90 00 [20:01:19]wFMCommunicate OK [20:01:19]wFMCommunicate request_size=4 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 0D 03 02 [20:01:19]Write to MH i2c: E2 08 00 F1 36 80 0D 03 02 00 00 00 00 A2 [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:01:19]Read from MH i2c: E2 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 0B 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 0B 00 F1 36 00 F0 AF D9 58 53 6A 8A 83 90 00 3D [20:01:19]RAPDU: F0 AF D9 58 53 6A 8A 83 90 00 [20:01:19]wFMCommunicate OK [20:01:19]SAM_PROTO_SignData done [20:01:19]FM_MakeSignedData done [20:01:19]CreateOFDProtocolMessage [20:01:19]wFMCommunicate request_size=4 [20:01:19]MH_SAM_APDU [20:01:19]CAPDU: 80 11 00 00 [20:01:19]Write to MH i2c: E2 08 00 F2 36 80 11 00 00 00 00 00 00 A2 [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:19]Read from MH i2c: E2 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 17 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: E2 17 00 F2 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EA [20:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:01:19]wFMCommunicate OK [20:01:19]CreateOFDProtocolMessage done [20:01:19]OFDSenderStorePacket 2512 [20:01:19]StoreOFDPacket docnum=2512 [20:01:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 5A C5 1D 01 AB 1E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0C 00 30 38 30 34 33 32 34 30 30 34 33 32 06 04 20 00 D0 92 D0 B8 D1 81 D0 BA D0 B8 20 43 48 49 56 41 53 20 52 45 47 41 4C 20 31 32 59 4F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 8B 08 00 00 00 13 04 06 00 80 8B 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 8B 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D E8 00 00 00 00 07 04 06 00 80 8B 08 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 93 BE 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D0 09 00 00 35 04 06 00 70 FE 58 D1 18 30 F0 AF D9 58 53 6A 8A 83 [20:01:19]CheckFolder [20:01:19]dirname=/storage/ofd_packets [20:01:19]CheckFolder done [20:01:19]ProducePacketName [20:01:19]name=ofd_packets/00002512 [20:01:19]NVStorageSaveData ofd_packets/00002512 [20:01:19]File name is /storage/ofd_packets/00002512 [20:01:19]Write 323 bytes [20:01:19]NVStorageSaveData done [20:01:19]OFDSenderStorePacket done [20:01:19]KKMCreateOFDPacket done [20:01:19]NVStorageSaveData kkm_last_timestamp [20:01:19]File name is /storage/kkm_last_timestamp [20:01:19]Write 4 bytes [20:01:19]NVStorageSaveData done [20:01:19]ExternCall_PrintAddStr [20:01:19]wPrintStart [20:01:19]Write to MH i2c: 01 00 00 F3 36 29 [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: 01 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: 01 07 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: 01 07 00 F3 36 00 00 00 00 00 FF 0F 3E [20:01:19]RasterBufferAndPrint [20:01:19]line Счет N : (3)99901 [20:01:19]line ИÐÐ: 02508201610067 [20:01:19]line Контрольно-КаÑÑовый Чек [20:01:19]line ПРОДÐЖР[20:01:19]line Товар: 080432400432 [20:01:19]line ВиÑки CHIVAS REGAL 12YO 1л [20:01:19]line 1.000 * 5600.00 [20:01:19]line = 5600.00 [20:01:19]line ÐДС 12% ÐСП 1% [20:01:19]line > о реализуемом товаре [20:01:19]line ИТОГО: 5600.00 [20:01:19]line ÐСП 1% : 49.56 [20:01:19]line ÐДС 12% : 594.69 [20:01:19]line Ðаличными: 5600.00 [20:01:19]line Безнал.: 0.00 [20:01:19]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:01:19]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:01:19]line СÐО: Общий режим [20:01:19]line Чек 137 18.10.2024 20:01 [20:01:19]line Смена: 22 ФФД: 1.0 [20:01:19]line ЗÐМ: 0300000191 [20:01:19]line РÐМ: 0000000000207295 [20:01:19]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:01:19]line ФМ: 0000000002342820 [20:01:19]line ФД: 2512 [20:01:19]line ФПД: 124237714102320 [20:01:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200123&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2512&fm=124237714102320&tin=02508201610067®Number=0000000000207295&sum=560000 [20:01:19]line 0 [20:01:19]OFD Sender: Processing packet 2512 [packets to send 1, broken 0] [20:01:19]ProducePacketName [20:01:19]name=ofd_packets/00002512 [20:01:19]OFD Sender: To server: ‡•öpG, [20:01:19]CommunicateWithHost lk.salyk.kg:30040 [20:01:19]ConnectInit lk.salyk.kg [20:01:19]written 0, free lines is 4095 [20:01:19]Connected sock=10 [20:01:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 5A C5 1D 01 AB 1E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0C 00 30 38 30 34 33 32 34 30 30 34 33 32 06 04 20 00 D0 92 D0 B8 D1 81 D0 BA D0 B8 20 43 48 49 56 41 53 20 52 45 47 41 4C 20 31 32 59 4F 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 8B 08 00 00 00 13 04 06 00 80 8B 08 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 8B 08 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 13 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4D E8 00 00 00 00 07 04 06 00 80 8B 08 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 93 BE 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D0 09 00 00 35 04 06 00 70 FE 58 D1 18 30 F0 AF D9 58 53 6A 8A 83 [20:01:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 53 61 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 32 33 34 32 38 32 30 10 04 04 00 D0 09 00 00 F4 03 04 00 F6 69 12 67 B6 04 01 00 00 95 EE E8 02 B4 C0 CE 91 [20:01:19]CommunicateWithHost err = 0 [20:01:19]CheckOFDResponse [20:01:19]1017 (14) - 77093643461234 [20:01:19]1041 (16) - 0000000002342820 [20:01:19]1040 (4) - 2512 [20:01:19]1012 (4) - 18.10.2024 14:00 [20:01:19]1206 (1) - 0 [20:01:19]OFD Sender: Remove packet 2512 [20:01:19]ProducePacketName [20:01:19]name=ofd_packets/00002512 [20:01:19]NVStorageDeleteData [20:01:19]Write to MH i2c: 01 00 00 1B 37 52 [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: 01 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: 01 07 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: 01 07 00 1B 37 00 00 00 00 00 D7 0C 3C [20:01:19]RasterBufferAndPrint [20:01:19]line [20:01:19]line [20:01:19]line [20:01:19]line [20:01:19]line [20:01:19]written 0, free lines is 3291 [20:01:19]MH_Cut [20:01:19]Write to MH i2c: D1 01 00 22 37 01 2B [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: D1 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: D1 01 00 [20:01:19]MH_I2C_Read... [20:01:19]Read from MH i2c: D1 01 00 22 37 00 2A [20:01:19]Write to MH i2c: 01 00 00 23 37 5A [20:01:19]Write i2c OK [20:01:19]MH_I2C_Read... [20:01:20]OFD Sender: No OFD packet to send [20:01:20]*** Cut start [20:01:20]*** Partial cut [20:01:20]*** CUTSNS_PIN = 1 [20:01:20]*** CUTSNS_PIN = 0 [20:01:21]*** Brake cut motor [20:01:21]Read from MH i2c: 01 [20:01:21]MH_I2C_Read... [20:01:21]*** Stop cut motor [20:01:21]*** Cut end [20:01:21]Read from MH i2c: 01 07 00 [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: 01 07 00 23 37 00 00 00 00 00 FF 0F 6F [20:01:21]process_action close_receipt done [20:01:21]requested_data is exist [20:01:21]produce_requested_data [20:01:21]requested_item fm.sn is exist - process it [20:01:21]wFMCommunicate request_size=4 [20:01:21]MH_SAM_APDU [20:01:21]CAPDU: 80 11 00 00 [20:01:21]Write to MH i2c: E2 08 00 24 37 80 11 00 00 00 00 00 00 D5 [20:01:21]Write i2c OK [20:01:21]MH_I2C_Read... [20:01:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:01:21]Read from MH i2c: E2 [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: E2 17 00 [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: E2 17 00 24 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 1D [20:01:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:01:21]wFMCommunicate OK [20:01:21]requested_item fd.num is exist - process it [20:01:21]SAM_PROTO_GetFieldsCounters [20:01:21]wFMCommunicate request_size=4 [20:01:21]MH_SAM_APDU [20:01:21]CAPDU: 80 13 00 00 [20:01:21]Write to MH i2c: E2 08 00 25 37 80 13 00 00 00 00 00 00 D8 [20:01:21]Write i2c OK [20:01:21]MH_I2C_Read... [20:01:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:01:21]Read from MH i2c: E2 [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: E2 62 00 [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: E2 62 00 25 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D0 09 00 00 0E 04 04 00 16 00 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 78 [20:01:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D0 09 00 00 0E 04 04 00 16 00 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 [20:01:21]wFMCommunicate OK [20:01:21]SAM_PROTO_GetFieldsCounters done [20:01:21]requested_item shift.num is exist - process it [20:01:21]requested_item shift.opened is exist - process it [20:01:21]req_shift_opened [20:01:21]FM_GetShiftState [20:01:21]SAM_PROTO_GetShiftState [20:01:21]wFMCommunicate request_size=4 [20:01:21]MH_SAM_APDU [20:01:21]CAPDU: 80 13 01 00 [20:01:21]Write to MH i2c: E2 08 00 26 37 80 13 01 00 00 00 00 00 DA [20:01:21]Write i2c OK [20:01:21]MH_I2C_Read... [20:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:01:21]Read from MH i2c: E2 [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: E2 0E 00 [20:01:21]MH_I2C_Read... [20:01:21]Read from MH i2c: E2 0E 00 26 37 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 78 [20:01:21]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:01:21]wFMCommunicate OK [20:01:21]SAM_PROTO_GetShiftState done [20:01:21]FM_GetShiftState done [20:01:21]req_shift_opened done [20:01:21]requested_item shift.open_date is exist - process it [20:01:21]req_shift_open_date [20:01:21]req_shift_open_date done [20:01:21]produce_requested_data done [20:01:21]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2512,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:01:21]process_action_free close_receipt [20:01:21]json_value_free [20:01:21]json_value_free done [20:01:21]process_json_proto returns [20:01:21]Send response to host [20:01:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2512,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:01:21]free response buf [20:01:21]execute_script done [20:01:21]execute_script returns [20:01:21]free content buf [20:01:21]Sock 7.Close socket [20:01:21]Sock 7.Thread stoped [20:01:25]OFD Sender: No OFD packet to send [20:01:30]OFD Sender: No OFD packet to send [20:01:35]OFD Sender: No OFD packet to send [20:01:40]OFD Sender: No OFD packet to send [20:01:45]OFD Sender: No OFD packet to send [20:01:50]OFD Sender: No OFD packet to send [20:01:55]OFD Sender: No OFD packet to send [20:02:00]OFD Sender: No OFD packet to send [20:02:05]OFD Sender: No OFD packet to send [20:02:10]OFD Sender: No OFD packet to send [20:02:15]OFD Sender: No OFD packet to send [20:02:20]OFD Sender: No OFD packet to send [20:02:25]OFD Sender: No OFD packet to send [20:02:30]OFD Sender: No OFD packet to send [20:02:35]OFD Sender: No OFD packet to send [20:02:40]OFD Sender: No OFD packet to send [20:02:45]OFD Sender: No OFD packet to send [20:02:50]OFD Sender: No OFD packet to send [20:02:55]OFD Sender: No OFD packet to send [20:03:00]OFD Sender: No OFD packet to send [20:03:05]OFD Sender: No OFD packet to send [20:03:10]OFD Sender: No OFD packet to send [20:03:15]OFD Sender: No OFD packet to send [20:03:20]OFD Sender: No OFD packet to send [20:03:25]OFD Sender: No OFD packet to send [20:03:30]OFD Sender: No OFD packet to send [20:03:35]OFD Sender: No OFD packet to send [20:03:40]OFD Sender: No OFD packet to send [20:03:45]OFD Sender: No OFD packet to send [20:03:50]OFD Sender: No OFD packet to send [20:03:55]OFD Sender: No OFD packet to send [20:04:00]OFD Sender: No OFD packet to send [20:04:05]OFD Sender: No OFD packet to send [20:04:10]OFD Sender: No OFD packet to send [20:04:15]OFD Sender: No OFD packet to send [20:04:20]OFD Sender: No OFD packet to send [20:04:25]OFD Sender: No OFD packet to send [20:04:30]OFD Sender: No OFD packet to send [20:04:35]OFD Sender: No OFD packet to send [20:04:40]OFD Sender: No OFD packet to send [20:04:45]OFD Sender: No OFD packet to send [20:04:50]OFD Sender: No OFD packet to send [20:04:55]OFD Sender: No OFD packet to send [20:05:00]OFD Sender: No OFD packet to send [20:05:05]OFD Sender: No OFD packet to send [20:05:10]OFD Sender: No OFD packet to send [20:05:15]OFD Sender: No OFD packet to send [20:05:20]OFD Sender: No OFD packet to send [20:05:25]OFD Sender: No OFD packet to send [20:05:30]OFD Sender: No OFD packet to send [20:05:35]OFD Sender: No OFD packet to send [20:05:40]OFD Sender: No OFD packet to send [20:05:45]OFD Sender: No OFD packet to send [20:05:50]OFD Sender: No OFD packet to send [20:05:55]OFD Sender: No OFD packet to send [20:06:00]OFD Sender: No OFD packet to send [20:06:05]OFD Sender: No OFD packet to send [20:06:10]OFD Sender: No OFD packet to send [20:06:15]OFD Sender: No OFD packet to send [20:06:20]OFD Sender: No OFD packet to send [20:06:25]OFD Sender: No OFD packet to send [20:06:30]OFD Sender: No OFD packet to send [20:06:33]accept exits with 9 [20:06:33]New connection [20:06:33]New thread 3066707300 created [20:06:33]Thread 3066850660 joined [20:06:33]Waiting for new connection... [20:06:33] Sock 9.Parse request [20:06:33]Sock 9.Check first char [20:06:33]Sock 9.First char is OK [20:06:33]request: POST /json_proto HTTP/1.0 [20:06:33]Method: POST [20:06:33]URL: /json_proto [20:06:33]Method is POST - this is cgi request [20:06:33]url: /json_proto [20:06:33]query_string will be loaded in cgi processing [20:06:33]execute_cgi json_proto POST (null) [20:06:33]execute_cgi path=json_proto method=POST [20:06:33]POST find Content-Length [20:06:33]Host: 172.17.52.132:8080 [20:06:33]Content-Length: 627 [20:06:33]Content-Type: application/json [20:06:33] [20:06:33]POST finish read [20:06:33]Found Content-Length = 627 [20:06:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99902", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:33]execute_script... [20:06: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 : (3)99902", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:33]POST & json_proto [20:06:33]process_json_proto [20:06:33]json parsed OK: [20:06:33]protocol is kg_v1.0 [20:06:33]action value=close_receipt [20:06:33]process_action close_receipt [20:06:33]cmd_close_receipt [20:06:33]MH_GetDate [20:06:33]Write to MH i2c: F0 00 00 27 37 4D [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: F0 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: F0 09 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: F0 09 00 27 37 00 CF BF 12 67 5A BE F6 66 D1 [20:06:33]GetLastDocTimeStamp 1729281683 [20:06:33]current date 1729281999 [20:06:33]FM_GetShiftState [20:06:33]SAM_PROTO_GetShiftState [20:06:33]wFMCommunicate request_size=4 [20:06:33]MH_SAM_APDU [20:06:33]CAPDU: 80 13 01 00 [20:06:33]Write to MH i2c: E2 08 00 28 37 80 13 01 00 00 00 00 00 DC [20:06:33]Write i2c OK [20:06:33]MH_I2C_Read... [20:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:33]Read from MH i2c: E2 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 0E 00 [20:06:33]MH_I2C_Read... [20:06:33]Read from MH i2c: E2 0E 00 28 37 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 7A [20:06:33]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:06:33]wFMCommunicate OK [20:06:33]SAM_PROTO_GetShiftState done [20:06:33]FM_GetShiftState done [20:06:33]opened in 1729209717 [20:06:33]opened+sec_in_day 1729296117 [20:06:33]quantity*price = 27800 [20:06:33]sum+1 = 27801 [20:06:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 ÐСП 1% : 2.46 ÐДС 12% : 29.52 Ðаличными: 278.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 138 18.10.2024 20:06 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2513 ФПД: 86651467817939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200639&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2513&fm=86651467817939&tin=02508201610067®Number=0000000000207295&sum=27800 0 [20:06:34]StoreToDocumentArchive [20:06:34]shift 22 fd 2513 [20:06:34]save to /storage/0022/doc_00002513 [20:06:34]save last doc name /storage/0022/doc_00002513 to /storage/kkm_last_doc_name [20:06:34]save OK [20:06:34]Clear old archive folders... [20:06:34]ProcessDocumentItem done err = 0, tmpTLVsize=280 [20:06:34]tlvbuf is 01400120 [20:06:34]SAM_PROTO_ClearQueue [20:06:34]wFMCommunicate request_size=4 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 09 00 00 [20:06:34]Write to MH i2c: E2 08 00 35 37 80 09 00 00 00 00 00 00 DE [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 35 37 00 90 00 E0 [20:06:34]RAPDU: 90 00 [20:06:34]wFMCommunicate OK [20:06:34]SAM_PROTO_ClearQueue done [20:06:34]KKMCreateOFDPacket [20:06:34]OFDProtocolAddRootSTLVToBuf [20:06:34]FM_MakeSignedData [20:06:34]FM_MakeSignedData [20:06:34]SAM_PROTO_SignData [20:06:34]wFMCommunicate request_size=4 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 0D 01 02 [20:06:34]Write to MH i2c: E2 08 00 36 37 80 0D 01 02 00 00 00 00 E6 [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:34]Read from MH i2c: E2 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 [20:06:34]MH_I2C_Read... [20:06:34]Read from MH i2c: E2 03 00 36 37 00 90 00 E1 [20:06:34]RAPDU: 90 00 [20:06:34]wFMCommunicate OK [20:06:34]wFMCommunicate request_size=255 [20:06:34]MH_SAM_APDU [20:06:34]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 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 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CF BF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 [20:06:34]Write to MH i2c: E2 02 01 37 37 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 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 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CF BF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 00 00 15 [20:06:34]Write i2c OK [20:06:34]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 37 37 00 90 00 E2 [20:06:35]RAPDU: 90 00 [20:06:35]wFMCommunicate OK [20:06:35]wFMCommunicate request_size=39 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D1 09 00 00 35 04 06 00 4E CF 1D F5 63 D3 [20:06:35]Write to MH i2c: E2 2A 00 38 37 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D1 09 00 00 35 04 06 00 4E CF 1D F5 63 D3 00 00 D8 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 03 00 38 37 00 90 00 E3 [20:06:35]RAPDU: 90 00 [20:06:35]wFMCommunicate OK [20:06:35]wFMCommunicate request_size=4 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 0D 03 02 [20:06:35]Write to MH i2c: E2 08 00 39 37 80 0D 03 02 00 00 00 00 EB [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 0B 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 0B 00 39 37 00 75 6F 48 6B 43 B8 1D 6F 90 00 0A [20:06:35]RAPDU: 75 6F 48 6B 43 B8 1D 6F 90 00 [20:06:35]wFMCommunicate OK [20:06:35]SAM_PROTO_SignData done [20:06:35]FM_MakeSignedData done [20:06:35]CreateOFDProtocolMessage [20:06:35]wFMCommunicate request_size=4 [20:06:35]MH_SAM_APDU [20:06:35]CAPDU: 80 11 00 00 [20:06:35]Write to MH i2c: E2 08 00 3A 37 80 11 00 00 00 00 00 00 EB [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:35]Read from MH i2c: E2 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 17 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: E2 17 00 3A 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 33 [20:06:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:06:35]wFMCommunicate OK [20:06:35]CreateOFDProtocolMessage done [20:06:35]OFDSenderStorePacket 2513 [20:06:35]StoreOFDPacket docnum=2513 [20:06:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 7A C1 24 01 78 D4 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 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 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CF BF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D1 09 00 00 35 04 06 00 4E CF 1D F5 63 D3 75 6F 48 6B 43 B8 1D 6F [20:06:35]CheckFolder [20:06:35]dirname=/storage/ofd_packets [20:06:35]CheckFolder done [20:06:35]ProducePacketName [20:06:35]name=ofd_packets/00002513 [20:06:35]NVStorageSaveData ofd_packets/00002513 [20:06:35]File name is /storage/ofd_packets/00002513 [20:06:35]Write 330 bytes [20:06:35]NVStorageSaveData done [20:06:35]OFDSenderStorePacket done [20:06:35]KKMCreateOFDPacket done [20:06:35]NVStorageSaveData kkm_last_timestamp [20:06:35]File name is /storage/kkm_last_timestamp [20:06:35]Write 4 bytes [20:06:35]NVStorageSaveData done [20:06:35]ExternCall_PrintAddStr [20:06:35]wPrintStart [20:06:35]Write to MH i2c: 01 00 00 3B 37 72 [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 07 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 07 00 3B 37 00 00 00 00 00 FF 0F 87 [20:06:35]RasterBufferAndPrint [20:06:35]line Счет N : (3)99902 [20:06:35]line ИÐÐ: 02508201610067 [20:06:35]line Контрольно-КаÑÑовый Чек [20:06:35]line ПРОДÐЖР[20:06:35]line Товар: 48741231 [20:06:35]line Сигареты Winston Super Slims Silver [20:06:35]line 2.000 * 139.00 [20:06:35]line = 278.00 [20:06:35]line ÐДС 12% ÐСП 1% [20:06:35]line > о реализуемом товаре [20:06:35]line ИТОГО: 278.00 [20:06:35]line ÐСП 1% : 2.46 [20:06:35]line ÐДС 12% : 29.52 [20:06:35]line Ðаличными: 278.00 [20:06:35]line Безнал.: 0.00 [20:06:35]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:06:35]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:06:35]line СÐО: Общий режим [20:06:35]line Чек 138 18.10.2024 20:06 [20:06:35]line Смена: 22 ФФД: 1.0 [20:06:35]line ЗÐМ: 0300000191 [20:06:35]line РÐМ: 0000000000207295 [20:06:35]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:06:35]line ФМ: 0000000002342820 [20:06:35]line ФД: 2513 [20:06:35]line ФПД: 86651467817939 [20:06:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T200639&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2513&fm=86651467817939&tin=02508201610067®Number=0000000000207295&sum=27800 [20:06:35]line 0 [20:06:35]OFD Sender: Processing packet 2513 [packets to send 1, broken 0] [20:06:35]ProducePacketName [20:06:35]name=ofd_packets/00002513 [20:06:35]OFD Sender: To server: ‡•öpG, [20:06:35]CommunicateWithHost lk.salyk.kg:30040 [20:06:35]ConnectInit lk.salyk.kg [20:06:35]written 0, free lines is 4095 [20:06:35]Connected sock=10 [20:06:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 7A C1 24 01 78 D4 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 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 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 CF BF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D1 09 00 00 35 04 06 00 4E CF 1D F5 63 D3 75 6F 48 6B 43 B8 1D 6F [20:06:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 AE EE 47 00 E7 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 32 33 34 32 38 32 30 10 04 04 00 D1 09 00 00 F4 03 04 00 32 6B 12 67 B6 04 01 00 00 76 E5 CF 26 AE 90 BF 0D [20:06:35]CommunicateWithHost err = 0 [20:06:35]CheckOFDResponse [20:06:35]1017 (14) - 77093643461234 [20:06:35]1041 (16) - 0000000002342820 [20:06:35]1040 (4) - 2513 [20:06:35]1012 (4) - 18.10.2024 14:05 [20:06:35]1206 (1) - 0 [20:06:35]OFD Sender: Remove packet 2513 [20:06:35]ProducePacketName [20:06:35]name=ofd_packets/00002513 [20:06:35]NVStorageDeleteData [20:06:35]Write to MH i2c: 01 00 00 64 37 9B [20:06:35]Write i2c OK [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 07 00 [20:06:35]MH_I2C_Read... [20:06:35]Read from MH i2c: 01 07 00 64 37 00 00 00 00 00 B4 0C 62 [20:06:35]RasterBufferAndPrint [20:06:35]line [20:06:35]line [20:06:35]line [20:06:35]line [20:06:35]line [20:06:35]written 0, free lines is 3257 [20:06:35]MH_Cut [20:06:35]Write to MH i2c: D1 01 00 6B 37 01 74 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: D1 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: D1 01 00 [20:06:36]MH_I2C_Read... [20:06:36]Read from MH i2c: D1 01 00 6B 37 00 73 [20:06:36]Write to MH i2c: 01 00 00 6C 37 A3 [20:06:36]Write i2c OK [20:06:36]MH_I2C_Read... [20:06:36]OFD Sender: No OFD packet to send [20:06:36]*** Cut start [20:06:36]*** Partial cut [20:06:36]*** CUTSNS_PIN = 1 [20:06:36]*** CUTSNS_PIN = 0 [20:06:37]*** Brake cut motor [20:06:37]Read from MH i2c: 01 [20:06:37]MH_I2C_Read... [20:06:37]*** Stop cut motor [20:06:37]*** Cut end [20:06:37]Read from MH i2c: 01 07 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: 01 07 00 6C 37 00 00 00 00 00 FF 0F B8 [20:06:37]process_action close_receipt done [20:06:37]requested_data is exist [20:06:37]produce_requested_data [20:06:37]requested_item fm.sn is exist - process it [20:06:37]wFMCommunicate request_size=4 [20:06:37]MH_SAM_APDU [20:06:37]CAPDU: 80 11 00 00 [20:06:37]Write to MH i2c: E2 08 00 6D 37 80 11 00 00 00 00 00 00 1E [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:37]Read from MH i2c: E2 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 17 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 17 00 6D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 66 [20:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:06:37]wFMCommunicate OK [20:06:37]requested_item fd.num is exist - process it [20:06:37]SAM_PROTO_GetFieldsCounters [20:06:37]wFMCommunicate request_size=4 [20:06:37]MH_SAM_APDU [20:06:37]CAPDU: 80 13 00 00 [20:06:37]Write to MH i2c: E2 08 00 6E 37 80 13 00 00 00 00 00 00 21 [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:37]Read from MH i2c: E2 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 62 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 62 00 6E 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D1 09 00 00 0E 04 04 00 16 00 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 C5 [20:06:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D1 09 00 00 0E 04 04 00 16 00 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 [20:06:37]wFMCommunicate OK [20:06:37]SAM_PROTO_GetFieldsCounters done [20:06:37]requested_item shift.num is exist - process it [20:06:37]requested_item shift.opened is exist - process it [20:06:37]req_shift_opened [20:06:37]FM_GetShiftState [20:06:37]SAM_PROTO_GetShiftState [20:06:37]wFMCommunicate request_size=4 [20:06:37]MH_SAM_APDU [20:06:37]CAPDU: 80 13 01 00 [20:06:37]Write to MH i2c: E2 08 00 6F 37 80 13 01 00 00 00 00 00 23 [20:06:37]Write i2c OK [20:06:37]MH_I2C_Read... [20:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:37]Read from MH i2c: E2 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 0E 00 [20:06:37]MH_I2C_Read... [20:06:37]Read from MH i2c: E2 0E 00 6F 37 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C1 [20:06:37]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:06:37]wFMCommunicate OK [20:06:37]SAM_PROTO_GetShiftState done [20:06:37]FM_GetShiftState done [20:06:37]req_shift_opened done [20:06:37]requested_item shift.open_date is exist - process it [20:06:37]req_shift_open_date [20:06:37]req_shift_open_date done [20:06:37]produce_requested_data done [20:06:37]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2513,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:06:37]process_action_free close_receipt [20:06:37]json_value_free [20:06:37]json_value_free done [20:06:37]process_json_proto returns [20:06:37]Send response to host [20:06:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2513,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:06:37]free response buf [20:06:37]execute_script done [20:06:37]execute_script returns [20:06:37]free content buf [20:06:37]Sock 9.Close socket [20:06:37]Sock 9.Thread stoped [20:06:41]OFD Sender: No OFD packet to send [20:06:46]OFD Sender: No OFD packet to send [20:06:51]OFD Sender: No OFD packet to send [20:06:56]OFD Sender: No OFD packet to send [20:07:01]OFD Sender: No OFD packet to send [20:07:06]OFD Sender: No OFD packet to send [20:07:11]OFD Sender: No OFD packet to send [20:07:16]OFD Sender: No OFD packet to send [20:07:21]OFD Sender: No OFD packet to send [20:07:26]OFD Sender: No OFD packet to send [20:07:31]OFD Sender: No OFD packet to send [20:07:36]OFD Sender: No OFD packet to send [20:07:41]OFD Sender: No OFD packet to send [20:07:46]OFD Sender: No OFD packet to send [20:07:51]OFD Sender: No OFD packet to send [20:07:56]OFD Sender: No OFD packet to send [20:08:01]OFD Sender: No OFD packet to send [20:08:06]OFD Sender: No OFD packet to send [20:08:11]OFD Sender: No OFD packet to send [20:08:16]OFD Sender: No OFD packet to send [20:08:21]OFD Sender: No OFD packet to send [20:08:26]OFD Sender: No OFD packet to send [20:08: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]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:16]OFD Sender: No OFD packet to send [20:14:21]OFD Sender: No OFD packet to send [20:14:26]OFD Sender: No OFD packet to send [20:14:31]OFD Sender: No OFD packet to send [20:14:36]OFD Sender: No OFD packet to send [20:14:41]OFD Sender: No OFD packet to send [20:14:46]OFD Sender: No OFD packet to send [20:14:51]OFD Sender: No OFD packet to send [20:14:56]OFD Sender: No OFD packet to send [20:15:01]OFD Sender: No OFD packet to send [20:15:06]OFD Sender: No OFD packet to send [20:15:11]OFD Sender: No OFD packet to send [20:15:15]accept exits with 7 [20:15:15]New connection [20:15:15]New thread 3066850660 created [20:15:15]Thread 3066707300 joined [20:15:15]Waiting for new connection... [20:15:15] Sock 7.Parse request [20:15:15]Sock 7.Check first char [20:15:15]Sock 7.First char is OK [20:15:15]request: POST /json_proto HTTP/1.0 [20:15:15]Method: POST [20:15:15]URL: /json_proto [20:15:15]Method is POST - this is cgi request [20:15:15]url: /json_proto [20:15:15]query_string will be loaded in cgi processing [20:15:15]execute_cgi json_proto POST (null) [20:15:15]execute_cgi path=json_proto method=POST [20:15:15]POST find Content-Length [20:15:15]Host: 172.17.52.132:8080 [20:15:15]Content-Length: 697 [20:15:15]Content-Type: application/json [20:15:15] [20:15:15]POST finish read [20:15:15]Found Content-Length = 697 [20:15:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99903", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:15]execute_script... [20:15:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99903", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:15:15]POST & json_proto [20:15:15]process_json_proto [20:15:15]json parsed OK: [20:15:15]protocol is kg_v1.0 [20:15:15]action value=close_receipt [20:15:15]process_action close_receipt [20:15:15]cmd_close_receipt [20:15:15]MH_GetDate [20:15:15]Write to MH i2c: F0 00 00 70 37 96 [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: F0 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: F0 09 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: F0 09 00 70 37 00 D9 C1 12 67 5A BE F6 66 26 [20:15:15]GetLastDocTimeStamp 1729281999 [20:15:15]current date 1729282521 [20:15:15]FM_GetShiftState [20:15:15]SAM_PROTO_GetShiftState [20:15:15]wFMCommunicate request_size=4 [20:15:15]MH_SAM_APDU [20:15:15]CAPDU: 80 13 01 00 [20:15:15]Write to MH i2c: E2 08 00 71 37 80 13 01 00 00 00 00 00 25 [20:15:15]Write i2c OK [20:15:15]MH_I2C_Read... [20:15:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:15]Read from MH i2c: E2 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 0E 00 [20:15:15]MH_I2C_Read... [20:15:15]Read from MH i2c: E2 0E 00 71 37 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C3 [20:15:15]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:15:15]wFMCommunicate OK [20:15:15]SAM_PROTO_GetShiftState done [20:15:15]FM_GetShiftState done [20:15:15]opened in 1729209717 [20:15:15]opened+sec_in_day 1729296117 [20:15:15]quantity*price = 19000 [20:15:15]sum+1 = 19001 [20:15:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 ÐСП 1% : 1.68 ÐДС 12% : 20.18 Ðаличными: 190.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 139 18.10.2024 20:15 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2514 ФПД: 99029164758451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T201521&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2514&fm=99029164758451&tin=02508201610067®Number=0000000000207295&sum=19000 0 [20:15:16]StoreToDocumentArchive [20:15:16]shift 22 fd 2514 [20:15:16]save to /storage/0022/doc_00002514 [20:15:16]save last doc name /storage/0022/doc_00002514 to /storage/kkm_last_doc_name [20:15:16]save OK [20:15:16]Clear old archive folders... [20:15:16]ProcessDocumentItem done err = 0, tmpTLVsize=299 [20:15:16]tlvbuf is B6D8F460 [20:15:16]SAM_PROTO_ClearQueue [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 09 00 00 [20:15:16]Write to MH i2c: E2 08 00 7E 37 80 09 00 00 00 00 00 00 27 [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 7E 37 00 90 00 29 [20:15:16]RAPDU: 90 00 [20:15:16]wFMCommunicate OK [20:15:16]SAM_PROTO_ClearQueue done [20:15:16]KKMCreateOFDPacket [20:15:16]OFDProtocolAddRootSTLVToBuf [20:15:16]FM_MakeSignedData [20:15:16]FM_MakeSignedData [20:15:16]SAM_PROTO_SignData [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 0D 01 02 [20:15:16]Write to MH i2c: E2 08 00 7F 37 80 0D 01 02 00 00 00 00 2F [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 7F 37 00 90 00 2A [20:15:16]RAPDU: 90 00 [20:15:16]wFMCommunicate OK [20:15:16]wFMCommunicate request_size=255 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D9 C1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 [20:15:16]Write to MH i2c: E2 02 01 80 37 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D9 C1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 0C [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]OFD Sender: No OFD packet to send [20:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 80 37 00 90 00 2B [20:15:16]RAPDU: 90 00 [20:15:16]wFMCommunicate OK [20:15:16]wFMCommunicate request_size=58 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D2 09 00 00 35 04 06 00 5A 11 06 30 15 B3 [20:15:16]Write to MH i2c: E2 3D 00 81 37 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D2 09 00 00 35 04 06 00 5A 11 06 30 15 B3 00 00 5A [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:15:16]Read from MH i2c: E2 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 [20:15:16]MH_I2C_Read... [20:15:16]Read from MH i2c: E2 03 00 81 37 00 90 00 2C [20:15:16]RAPDU: 90 00 [20:15:16]wFMCommunicate OK [20:15:16]wFMCommunicate request_size=4 [20:15:16]MH_SAM_APDU [20:15:16]CAPDU: 80 0D 03 02 [20:15:16]Write to MH i2c: E2 08 00 82 37 80 0D 03 02 00 00 00 00 34 [20:15:16]Write i2c OK [20:15:16]MH_I2C_Read... [20:15:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:15:17]Read from MH i2c: E2 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: E2 0B 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: E2 0B 00 82 37 00 27 0F 21 50 A0 A9 E4 91 90 00 9A [20:15:17]RAPDU: 27 0F 21 50 A0 A9 E4 91 90 00 [20:15:17]wFMCommunicate OK [20:15:17]SAM_PROTO_SignData done [20:15:17]FM_MakeSignedData done [20:15:17]CreateOFDProtocolMessage [20:15:17]wFMCommunicate request_size=4 [20:15:17]MH_SAM_APDU [20:15:17]CAPDU: 80 11 00 00 [20:15:17]Write to MH i2c: E2 08 00 83 37 80 11 00 00 00 00 00 00 34 [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:17]Read from MH i2c: E2 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: E2 17 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: E2 17 00 83 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 7C [20:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:15:17]wFMCommunicate OK [20:15:17]CreateOFDProtocolMessage done [20:15:17]OFDSenderStorePacket 2514 [20:15:17]StoreOFDPacket docnum=2514 [20:15:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3F 01 00 00 2C 1B 37 01 ED 8C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D9 C1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D2 09 00 00 35 04 06 00 5A 11 06 30 15 B3 27 0F 21 50 A0 A9 E4 91 [20:15:17]CheckFolder [20:15:17]dirname=/storage/ofd_packets [20:15:17]CheckFolder done [20:15:17]ProducePacketName [20:15:17]name=ofd_packets/00002514 [20:15:17]NVStorageSaveData ofd_packets/00002514 [20:15:17]File name is /storage/ofd_packets/00002514 [20:15:17]Write 349 bytes [20:15:17]NVStorageSaveData done [20:15:17]OFDSenderStorePacket done [20:15:17]KKMCreateOFDPacket done [20:15:17]NVStorageSaveData kkm_last_timestamp [20:15:17]File name is /storage/kkm_last_timestamp [20:15:17]Write 4 bytes [20:15:17]NVStorageSaveData done [20:15:17]ExternCall_PrintAddStr [20:15:17]wPrintStart [20:15:17]Write to MH i2c: 01 00 00 84 37 BB [20:15:17]OFD Sender: Processing packet 2514 [packets to send 1, broken 0] [20:15:17]ProducePacketName [20:15:17]name=ofd_packets/00002514 [20:15:17]OFD Sender: To server: ‡•öpG, [20:15:17]CommunicateWithHost lk.salyk.kg:30040 [20:15:17]ConnectInit lk.salyk.kg [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 84 37 00 00 00 00 00 FF 0F D0 [20:15:17]RasterBufferAndPrint [20:15:17]line Счет N : (3)99903 [20:15:17]line ИÐÐ: 02508201610067 [20:15:17]line Контрольно-КаÑÑовый Чек [20:15:17]line ПРОДÐЖР[20:15:17]line Товар: 4700000480364 [20:15:17]line Ðапиток Ñнерг Nitro Ñкзотик 0.45 ж/б [20:15:17]line 2.000 * 95.00 [20:15:17]line = 190.00 [20:15:17]line ÐДС 12% ÐСП 1% [20:15:17]line > о реализуемом товаре [20:15:17]line ИТОГО: 190.00 [20:15:17]line ÐСП 1% : 1.68 [20:15:17]line ÐДС 12% : 20.18 [20:15:17]line Ðаличными: 190.00 [20:15:17]line Безнал.: 0.00 [20:15:17]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:15:17]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:15:17]line СÐО: Общий режим [20:15:17]line Чек 139 18.10.2024 20:15 [20:15:17]line Смена: 22 ФФД: 1.0 [20:15:17]line ЗÐМ: 0300000191 [20:15:17]line РÐМ: 0000000000207295 [20:15:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:15:17]line ФМ: 0000000002342820 [20:15:17]line ФД: 2514 [20:15:17]line ФПД: 99029164758451 [20:15:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T201521&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2514&fm=99029164758451&tin=02508201610067®Number=0000000000207295&sum=19000 [20:15:17]line 0 [20:15:17]Connected sock=10 [20:15:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3F 01 00 00 2C 1B 37 01 ED 8C 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 D9 C1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D2 09 00 00 35 04 06 00 5A 11 06 30 15 B3 27 0F 21 50 A0 A9 E4 91 [20:15:17]written 0, free lines is 4095 [20:15:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B4 94 47 00 80 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 32 33 34 32 38 32 30 10 04 04 00 D2 09 00 00 F4 03 04 00 3C 6D 12 67 B6 04 01 00 00 52 11 41 E4 43 DC D7 10 [20:15:17]CommunicateWithHost err = 0 [20:15:17]CheckOFDResponse [20:15:17]1017 (14) - 77093643461234 [20:15:17]1041 (16) - 0000000002342820 [20:15:17]1040 (4) - 2514 [20:15:17]1012 (4) - 18.10.2024 14:14 [20:15:17]1206 (1) - 0 [20:15:17]OFD Sender: Remove packet 2514 [20:15:17]ProducePacketName [20:15:17]name=ofd_packets/00002514 [20:15:17]NVStorageDeleteData [20:15:17]Write to MH i2c: 01 00 00 AD 37 E4 [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: 01 07 00 AD 37 00 00 00 00 00 B5 0C AC [20:15:17]RasterBufferAndPrint [20:15:17]line [20:15:17]line [20:15:17]line [20:15:17]line [20:15:17]line [20:15:17]written 0, free lines is 3258 [20:15:17]MH_Cut [20:15:17]Write to MH i2c: D1 01 00 B4 37 01 BD [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: D1 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: D1 01 00 [20:15:17]MH_I2C_Read... [20:15:17]Read from MH i2c: D1 01 00 B4 37 00 BC [20:15:17]Write to MH i2c: 01 00 00 B5 37 EC [20:15:17]Write i2c OK [20:15:17]MH_I2C_Read... [20:15:18]OFD Sender: No OFD packet to send [20:15:18]*** Cut start [20:15:18]*** Partial cut [20:15:18]*** CUTSNS_PIN = 1 [20:15:18]*** CUTSNS_PIN = 0 [20:15:19]*** Brake cut motor [20:15:19]Read from MH i2c: 01 [20:15:19]MH_I2C_Read... [20:15:19]*** Stop cut motor [20:15:19]*** Cut end [20:15:19]Read from MH i2c: 01 07 00 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: 01 07 00 B5 37 00 00 00 00 00 FF 0F 01 [20:15:19]process_action close_receipt done [20:15:19]requested_data is exist [20:15:19]produce_requested_data [20:15:19]requested_item fm.sn is exist - process it [20:15:19]wFMCommunicate request_size=4 [20:15:19]MH_SAM_APDU [20:15:19]CAPDU: 80 11 00 00 [20:15:19]Write to MH i2c: E2 08 00 B6 37 80 11 00 00 00 00 00 00 67 [20:15:19]Write i2c OK [20:15:19]MH_I2C_Read... [20:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:15:19]Read from MH i2c: E2 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: E2 17 00 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: E2 17 00 B6 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 AF [20:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:15:19]wFMCommunicate OK [20:15:19]requested_item fd.num is exist - process it [20:15:19]SAM_PROTO_GetFieldsCounters [20:15:19]wFMCommunicate request_size=4 [20:15:19]MH_SAM_APDU [20:15:19]CAPDU: 80 13 00 00 [20:15:19]Write to MH i2c: E2 08 00 B7 37 80 13 00 00 00 00 00 00 6A [20:15:19]Write i2c OK [20:15:19]MH_I2C_Read... [20:15:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:15:19]Read from MH i2c: E2 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: E2 62 00 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: E2 62 00 B7 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D2 09 00 00 0E 04 04 00 16 00 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 12 [20:15:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D2 09 00 00 0E 04 04 00 16 00 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 [20:15:19]wFMCommunicate OK [20:15:19]SAM_PROTO_GetFieldsCounters done [20:15:19]requested_item shift.num is exist - process it [20:15:19]requested_item shift.opened is exist - process it [20:15:19]req_shift_opened [20:15:19]FM_GetShiftState [20:15:19]SAM_PROTO_GetShiftState [20:15:19]wFMCommunicate request_size=4 [20:15:19]MH_SAM_APDU [20:15:19]CAPDU: 80 13 01 00 [20:15:19]Write to MH i2c: E2 08 00 B8 37 80 13 01 00 00 00 00 00 6C [20:15:19]Write i2c OK [20:15:19]MH_I2C_Read... [20:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:15:19]Read from MH i2c: E2 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: E2 0E 00 [20:15:19]MH_I2C_Read... [20:15:19]Read from MH i2c: E2 0E 00 B8 37 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 0A [20:15:19]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:15:19]wFMCommunicate OK [20:15:19]SAM_PROTO_GetShiftState done [20:15:19]FM_GetShiftState done [20:15:19]req_shift_opened done [20:15:19]requested_item shift.open_date is exist - process it [20:15:19]req_shift_open_date [20:15:19]req_shift_open_date done [20:15:19]produce_requested_data done [20:15:19]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2514,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:15:19]process_action_free close_receipt [20:15:19]json_value_free [20:15:19]json_value_free done [20:15:19]process_json_proto returns [20:15:19]Send response to host [20:15:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2514,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:15:19]free response buf [20:15:19]execute_script done [20:15:19]execute_script returns [20:15:19]free content buf [20:15:19]Sock 7.Close socket [20:15:19]Sock 7.Thread stoped [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:22]accept exits with 9 [20:18:22]New connection [20:18:22]New thread 3066707300 created [20:18:22]Thread 3066850660 joined [20:18:22]Waiting for new connection... [20:18:22] Sock 9.Parse request [20:18:22]Sock 9.Check first char [20:18:22]Sock 9.First char is OK [20:18:22]request: POST /json_proto HTTP/1.0 [20:18:22]Method: POST [20:18:22]URL: /json_proto [20:18:22]Method is POST - this is cgi request [20:18:22]url: /json_proto [20:18:22]query_string will be loaded in cgi processing [20:18:22]execute_cgi json_proto POST (null) [20:18:22]execute_cgi path=json_proto method=POST [20:18:22]POST find Content-Length [20:18:22]Host: 172.17.52.132:8080 [20:18:22]Content-Length: 215 [20:18:22]Content-Type: application/json [20:18:22] [20:18:22]POST finish read [20:18:22]Found Content-Length = 215 [20:18:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:22]execute_script... [20:18:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:22]POST & json_proto [20:18:22]process_json_proto [20:18:22]json parsed OK: [20:18:22]protocol is kg_v1.0 [20:18:22]action value=get_value [20:18:22]process_action get_value [20:18:22]cmd_get_value [20:18:22]process_action get_value done [20:18:22]requested_data is exist [20:18:22]produce_requested_data [20:18:22]requested_item kkm.sn is exist - process it [20:18:22]requested_item kkm.ver is exist - process it [20:18:22]requested_item fm.sn is exist - process it [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 11 00 00 [20:18:22]Write to MH i2c: E2 08 00 B9 37 80 11 00 00 00 00 00 00 6A [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:22]Read from MH i2c: E2 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 17 00 [20:18:22]MH_I2C_Read... [20:18:22]Read from MH i2c: E2 17 00 B9 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 B2 [20:18:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:18:22]wFMCommunicate OK [20:18:22]requested_item fd.num is exist - process it [20:18:22]SAM_PROTO_GetFieldsCounters [20:18:22]wFMCommunicate request_size=4 [20:18:22]MH_SAM_APDU [20:18:22]CAPDU: 80 13 00 00 [20:18:22]Write to MH i2c: E2 08 00 BA 37 80 13 00 00 00 00 00 00 6D [20:18:22]Write i2c OK [20:18:22]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 62 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 62 00 BA 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D2 09 00 00 0E 04 04 00 16 00 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [20:18:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D2 09 00 00 0E 04 04 00 16 00 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 [20:18:23]wFMCommunicate OK [20:18:23]SAM_PROTO_GetFieldsCounters done [20:18:23]requested_item shift.num is exist - process it [20:18:23]requested_item shift.opened is exist - process it [20:18:23]req_shift_opened [20:18:23]FM_GetShiftState [20:18:23]SAM_PROTO_GetShiftState [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 13 01 00 [20:18:23]Write to MH i2c: E2 08 00 BB 37 80 13 01 00 00 00 00 00 6F [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 0E 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 0E 00 BB 37 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 0D [20:18:23]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:18:23]wFMCommunicate OK [20:18:23]SAM_PROTO_GetShiftState done [20:18:23]FM_GetShiftState done [20:18:23]req_shift_opened done [20:18:23]requested_item shift.open_date is exist - process it [20:18:23]req_shift_open_date [20:18:23]req_shift_open_date done [20:18:23]produce_requested_data done [20:18:23]produce_requested_data return {"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2514,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:18:23]process_action_free get_value [20:18:23]json_value_free [20:18:23]json_value_free done [20:18:23]process_json_proto returns [20:18:23]Send response to host [20:18:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2514,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:18:23]free response buf [20:18:23]execute_script done [20:18:23]execute_script returns [20:18:23]free content buf [20:18:23]Sock 9.Close socket [20:18:23]Sock 9.Thread stoped [20:18:23]accept exits with 7 [20:18:23]New connection [20:18:23]New thread 3066850660 created [20:18:23]Thread 3066707300 joined [20:18:23]Waiting for new connection... [20:18:23] Sock 7.Parse request [20:18:23]Sock 7.Check first char [20:18:23]Sock 7.First char is OK [20:18:23]request: POST /json_proto HTTP/1.0 [20:18:23]Method: POST [20:18:23]URL: /json_proto [20:18:23]Method is POST - this is cgi request [20:18:23]url: /json_proto [20:18:23]query_string will be loaded in cgi processing [20:18:23]execute_cgi json_proto POST (null) [20:18:23]execute_cgi path=json_proto method=POST [20:18:23]POST find Content-Length [20:18:23]Host: 172.17.52.132:8080 [20:18:23]Content-Length: 331 [20:18:23]Content-Type: application/json [20:18:23] [20:18:23]POST finish read [20:18:23]Found Content-Length = 331 [20:18:23]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" ] } } [20:18:23]execute_script... [20:18:23]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" ] } } [20:18:23]POST & json_proto [20:18:23]process_json_proto [20:18:23]json parsed OK: [20:18:23]protocol is kg_v1.0 [20:18:23]action value=get_value [20:18:23]process_action get_value [20:18:23]cmd_get_value [20:18:23]process_action get_value done [20:18:23]requested_data is exist [20:18:23]produce_requested_data [20:18:23]requested_item fm.sale.total is exist - process it [20:18:23]SAM_PROTO_GetFMData [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 13 03 00 [20:18:23]Write to MH i2c: E2 08 00 BC 37 80 13 03 00 00 00 00 00 72 [20:18:23]OFD Sender: No OFD packet to send [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:23]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:18:23]Read from MH i2c: E2 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 FD 00 [20:18:23]MH_I2C_Read... [20:18:23]Read from MH i2c: E2 FD 00 BC 37 00 BE 04 85 04 BA 04 6E 04 04 00 A6 09 00 00 69 04 9F 00 6F 04 04 00 9E 09 00 00 B1 04 04 00 B3 EE DA 04 70 04 04 00 04 87 9E 03 72 04 04 00 AF 67 3C 01 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 40 00 84 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 19 FF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 D8 [20:18:23]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 A6 09 00 00 69 04 9F 00 6F 04 04 00 9E 09 00 00 B1 04 04 00 B3 EE DA 04 70 04 04 00 04 87 9E 03 72 04 04 00 AF 67 3C 01 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 40 00 84 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 19 FF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [20:18:23]wFMCommunicate OK [20:18:23]wFMCommunicate request_size=4 [20:18:23]MH_SAM_APDU [20:18:23]CAPDU: 80 17 00 00 [20:18:23]Write to MH i2c: E2 08 00 BD 37 80 17 00 00 00 00 00 00 74 [20:18:23]Write i2c OK [20:18:23]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 FD 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 FD 00 BD 37 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 89 [20:18:24]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:18:24]wFMCommunicate OK [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 17 00 00 [20:18:24]Write to MH i2c: E2 08 00 BE 37 80 17 00 00 00 00 00 00 75 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 FD 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 FD 00 BE 37 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 A7 [20:18:24]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [20:18:24]wFMCommunicate OK [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 17 00 00 [20:18:24]Write to MH i2c: E2 08 00 BF 37 80 17 00 00 00 00 00 00 76 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 FD 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 FD 00 BF 37 00 04 F7 03 00 00 EF 03 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 90 00 F1 [20:18:24]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [20:18:24]wFMCommunicate OK [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 17 00 00 [20:18:24]Write to MH i2c: E2 08 00 C0 37 80 17 00 00 00 00 00 00 77 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [20:18:24]Read from MH i2c: E2 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 DB 00 [20:18:24]MH_I2C_Read... [20:18:24]Read from MH i2c: E2 DB 00 C0 37 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 59 [20:18:24]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:18:24]wFMCommunicate OK [20:18:24]SAM_PROTO_GetFMData done [20:18:24]requested_item fm.sale_refund.total is exist - process it [20:18:24]requested_item fm.buy.total is exist - process it [20:18:24]requested_item shift.sale.total is exist - process it [20:18:24]SAM_PROTO_GetShiftData [20:18:24]wFMCommunicate request_size=4 [20:18:24]MH_SAM_APDU [20:18:24]CAPDU: 80 13 02 00 [20:18:24]Write to MH i2c: E2 08 00 C1 37 80 13 02 00 00 00 00 00 76 [20:18:24]Write i2c OK [20:18:24]MH_I2C_Read... [20:18:25]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:18:25]Read from MH i2c: E2 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 FD 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 FD 00 C1 37 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 F4 A3 55 70 04 03 00 E4 E2 38 72 04 03 00 10 C1 1C 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 75 18 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 78 [20:18:25]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 F4 A3 55 70 04 03 00 E4 E2 38 72 04 03 00 10 C1 1C 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 75 18 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [20:18:25]wFMCommunicate OK [20:18:25]wFMCommunicate request_size=4 [20:18:25]MH_SAM_APDU [20:18:25]CAPDU: 80 17 00 00 [20:18:25]Write to MH i2c: E2 08 00 C2 37 80 17 00 00 00 00 00 00 79 [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:25]Read from MH i2c: E2 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 FD 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 FD 00 C2 37 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 9B [20:18:25]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [20:18:25]wFMCommunicate OK [20:18:25]wFMCommunicate request_size=4 [20:18:25]MH_SAM_APDU [20:18:25]CAPDU: 80 17 00 00 [20:18:25]Write to MH i2c: E2 08 00 C3 37 80 17 00 00 00 00 00 00 7A [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:25]Read from MH i2c: E2 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 FD 00 [20:18:25]MH_I2C_Read... [20:18:25]Read from MH i2c: E2 FD 00 C3 37 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 31 [20:18:25]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [20:18:25]wFMCommunicate OK [20:18:25]wFMCommunicate request_size=4 [20:18:25]MH_SAM_APDU [20:18:25]CAPDU: 80 17 00 00 [20:18:25]Write to MH i2c: E2 08 00 C4 37 80 17 00 00 00 00 00 00 7B [20:18:25]Write i2c OK [20:18:25]MH_I2C_Read... [20:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:26]Read from MH i2c: E2 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 FD 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 FD 00 C4 37 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 ED [20:18:26]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [20:18:26]wFMCommunicate OK [20:18:26]wFMCommunicate request_size=4 [20:18:26]MH_SAM_APDU [20:18:26]CAPDU: 80 17 00 00 [20:18:26]Write to MH i2c: E2 08 00 C5 37 80 17 00 00 00 00 00 00 7C [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [20:18:26]Read from MH i2c: E2 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 CB 00 [20:18:26]MH_I2C_Read... [20:18:26]Read from MH i2c: E2 CB 00 C5 37 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 65 [20:18:26]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:18:26]wFMCommunicate OK [20:18:26]SAM_PROTO_GetShiftData done [20:18:26]requested_item shift.sale.total_cash is exist - process it [20:18:26]requested_item shift.sale_refund.total is exist - process it [20:18:26]requested_item shift.sale_refund.total_cash is exist - process it [20:18:26]requested_item shift.buy.total is exist - process it [20:18:26]requested_item shift.buy.total_cash is exist - process it [20:18:26]produce_requested_data done [20:18:26]produce_requested_data return {"fm.sale.total":814568.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":56125.32,"shift.sale.total_cash":37281.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} [20:18:26]process_action_free get_value [20:18:26]json_value_free [20:18:26]json_value_free done [20:18:26]process_json_proto returns [20:18:26]Send response to host [20:18:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":814568.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":56125.32,"shift.sale.total_cash":37281.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}}} [20:18:26]free response buf [20:18:26]execute_script done [20:18:26]execute_script returns [20:18:26]free content buf [20:18:26]Sock 7.Close socket [20:18:26]Sock 7.Thread stoped [20:18:26]accept exits with 9 [20:18:26]New connection [20:18:26]New thread 3066707300 created [20:18:26]Thread 3066850660 joined [20:18:26]Waiting for new connection... [20:18:26] Sock 9.Parse request [20:18:26]Sock 9.Check first char [20:18:26]Sock 9.First char is OK [20:18:26]request: POST /json_proto HTTP/1.0 [20:18:26]Method: POST [20:18:26]URL: /json_proto [20:18:26]Method is POST - this is cgi request [20:18:26]url: /json_proto [20:18:26]query_string will be loaded in cgi processing [20:18:26]execute_cgi json_proto POST (null) [20:18:26]execute_cgi path=json_proto method=POST [20:18:26]POST find Content-Length [20:18:26]Host: 172.17.52.132:8080 [20:18:26]Content-Length: 331 [20:18:26]Content-Type: application/json [20:18:26] [20:18:26]POST finish read [20:18:26]Found Content-Length = 331 [20:18:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:18:26]execute_script... [20:18:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:18:26]POST & json_proto [20:18:26]process_json_proto [20:18:26]json parsed OK: [20:18:26]protocol is kg_v1.0 [20:18:26]action value=get_value [20:18:26]process_action get_value [20:18:26]cmd_get_value [20:18:26]process_action get_value done [20:18:26]requested_data is exist [20:18:26]produce_requested_data [20:18:26]requested_item fm.sale.total is exist - process it [20:18:26]SAM_PROTO_GetFMData [20:18:26]wFMCommunicate request_size=4 [20:18:26]MH_SAM_APDU [20:18:26]CAPDU: 80 13 03 00 [20:18:26]Write to MH i2c: E2 08 00 C6 37 80 13 03 00 00 00 00 00 7C [20:18:26]Write i2c OK [20:18:26]MH_I2C_Read... [20:18:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:18:27]Read from MH i2c: E2 [20:18:27]MH_I2C_Read... [20:18:27]Read from MH i2c: E2 FD 00 [20:18:27]MH_I2C_Read... [20:18:27]Read from MH i2c: E2 FD 00 C6 37 00 BE 04 85 04 BA 04 6E 04 04 00 A6 09 00 00 69 04 9F 00 6F 04 04 00 9E 09 00 00 B1 04 04 00 B3 EE DA 04 70 04 04 00 04 87 9E 03 72 04 04 00 AF 67 3C 01 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 40 00 84 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 19 FF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 E2 [20:18:27]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 A6 09 00 00 69 04 9F 00 6F 04 04 00 9E 09 00 00 B1 04 04 00 B3 EE DA 04 70 04 04 00 04 87 9E 03 72 04 04 00 AF 67 3C 01 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 40 00 84 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 19 FF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [20:18:27]wFMCommunicate OK [20:18:27]wFMCommunicate request_size=4 [20:18:27]MH_SAM_APDU [20:18:27]CAPDU: 80 17 00 00 [20:18:27]Write to MH i2c: E2 08 00 C7 37 80 17 00 00 00 00 00 00 7E [20:18:27]Write i2c OK [20:18:27]MH_I2C_Read... [20:18:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:27]Read from MH i2c: E2 [20:18:27]MH_I2C_Read... [20:18:27]Read from MH i2c: E2 FD 00 [20:18:27]MH_I2C_Read... [20:18:27]Read from MH i2c: E2 FD 00 C7 37 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 93 [20:18:27]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:18:27]wFMCommunicate OK [20:18:27]wFMCommunicate request_size=4 [20:18:27]MH_SAM_APDU [20:18:27]CAPDU: 80 17 00 00 [20:18:27]Write to MH i2c: E2 08 00 C8 37 80 17 00 00 00 00 00 00 7F [20:18:27]Write i2c OK [20:18:27]MH_I2C_Read... [20:18:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:27]Read from MH i2c: E2 [20:18:27]MH_I2C_Read... [20:18:27]Read from MH i2c: E2 FD 00 [20:18:27]MH_I2C_Read... [20:18:27]Read from MH i2c: E2 FD 00 C8 37 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 B1 [20:18:27]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [20:18:27]wFMCommunicate OK [20:18:27]wFMCommunicate request_size=4 [20:18:27]MH_SAM_APDU [20:18:27]CAPDU: 80 17 00 00 [20:18:27]Write to MH i2c: E2 08 00 C9 37 80 17 00 00 00 00 00 00 80 [20:18:27]Write i2c OK [20:18:27]MH_I2C_Read... [20:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:28]Read from MH i2c: E2 [20:18:28]MH_I2C_Read... [20:18:28]Read from MH i2c: E2 FD 00 [20:18:28]MH_I2C_Read... [20:18:28]Read from MH i2c: E2 FD 00 C9 37 00 04 F7 03 00 00 EF 03 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 90 00 FB [20:18:28]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [20:18:28]wFMCommunicate OK [20:18:28]wFMCommunicate request_size=4 [20:18:28]MH_SAM_APDU [20:18:28]CAPDU: 80 17 00 00 [20:18:28]Write to MH i2c: E2 08 00 CA 37 80 17 00 00 00 00 00 00 81 [20:18:28]Write i2c OK [20:18:28]MH_I2C_Read... [20:18:28]OFD Sender: No OFD packet to send [20:18:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [20:18:28]Read from MH i2c: E2 [20:18:28]MH_I2C_Read... [20:18:28]Read from MH i2c: E2 DB 00 [20:18:28]MH_I2C_Read... [20:18:28]Read from MH i2c: E2 DB 00 CA 37 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [20:18:28]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:18:28]wFMCommunicate OK [20:18:28]SAM_PROTO_GetFMData done [20:18:28]requested_item fm.sale_refund.total is exist - process it [20:18:28]requested_item fm.buy.total is exist - process it [20:18:28]requested_item shift.sale.total is exist - process it [20:18:28]SAM_PROTO_GetShiftData [20:18:28]wFMCommunicate request_size=4 [20:18:28]MH_SAM_APDU [20:18:28]CAPDU: 80 13 02 00 [20:18:28]Write to MH i2c: E2 08 00 CB 37 80 13 02 00 00 00 00 00 80 [20:18:28]Write i2c OK [20:18:28]MH_I2C_Read... [20:18:29]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:18:29]Read from MH i2c: E2 [20:18:29]MH_I2C_Read... [20:18:29]Read from MH i2c: E2 FD 00 [20:18:29]MH_I2C_Read... [20:18:29]Read from MH i2c: E2 FD 00 CB 37 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 F4 A3 55 70 04 03 00 E4 E2 38 72 04 03 00 10 C1 1C 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 75 18 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 82 [20:18:29]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 F4 A3 55 70 04 03 00 E4 E2 38 72 04 03 00 10 C1 1C 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 75 18 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [20:18:29]wFMCommunicate OK [20:18:29]wFMCommunicate request_size=4 [20:18:29]MH_SAM_APDU [20:18:29]CAPDU: 80 17 00 00 [20:18:29]Write to MH i2c: E2 08 00 CC 37 80 17 00 00 00 00 00 00 83 [20:18:29]Write i2c OK [20:18:29]MH_I2C_Read... [20:18:29]Read from MH i2c: E2 [20:18:29]MH_I2C_Read... [20:18:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:29]Read from MH i2c: E2 FD 00 [20:18:29]MH_I2C_Read... [20:18:29]Read from MH i2c: E2 FD 00 CC 37 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 A5 [20:18:29]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [20:18:29]wFMCommunicate OK [20:18:29]wFMCommunicate request_size=4 [20:18:29]MH_SAM_APDU [20:18:29]CAPDU: 80 17 00 00 [20:18:29]Write to MH i2c: E2 08 00 CD 37 80 17 00 00 00 00 00 00 84 [20:18:29]Write i2c OK [20:18:29]MH_I2C_Read... [20:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:30]Read from MH i2c: E2 [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: E2 FD 00 [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: E2 FD 00 CD 37 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 3B [20:18:30]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [20:18:30]wFMCommunicate OK [20:18:30]wFMCommunicate request_size=4 [20:18:30]MH_SAM_APDU [20:18:30]CAPDU: 80 17 00 00 [20:18:30]Write to MH i2c: E2 08 00 CE 37 80 17 00 00 00 00 00 00 85 [20:18:30]Write i2c OK [20:18:30]MH_I2C_Read... [20:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:30]Read from MH i2c: E2 [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: E2 FD 00 [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: E2 FD 00 CE 37 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 F7 [20:18:30]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [20:18:30]wFMCommunicate OK [20:18:30]wFMCommunicate request_size=4 [20:18:30]MH_SAM_APDU [20:18:30]CAPDU: 80 17 00 00 [20:18:30]Write to MH i2c: E2 08 00 CF 37 80 17 00 00 00 00 00 00 86 [20:18:30]Write i2c OK [20:18:30]MH_I2C_Read... [20:18:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [20:18:30]Read from MH i2c: E2 [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: E2 CB 00 [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: E2 CB 00 CF 37 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6F [20:18:30]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:18:30]wFMCommunicate OK [20:18:30]SAM_PROTO_GetShiftData done [20:18:30]requested_item shift.sale.total_cash is exist - process it [20:18:30]requested_item shift.sale_refund.total is exist - process it [20:18:30]requested_item shift.sale_refund.total_cash is exist - process it [20:18:30]requested_item shift.buy.total is exist - process it [20:18:30]requested_item shift.buy.total_cash is exist - process it [20:18:30]produce_requested_data done [20:18:30]produce_requested_data return {"fm.sale.total":814568.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":56125.32,"shift.sale.total_cash":37281.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} [20:18:30]process_action_free get_value [20:18:30]json_value_free [20:18:30]json_value_free done [20:18:30]process_json_proto returns [20:18:30]Send response to host [20:18:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":814568.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":56125.32,"shift.sale.total_cash":37281.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}}} [20:18:30]free response buf [20:18:30]execute_script done [20:18:30]execute_script returns [20:18:30]free content buf [20:18:30]Sock 9.Close socket [20:18:30]Sock 9.Thread stoped [20:18:30]accept exits with 7 [20:18:30]New connection [20:18:30]New thread 3066850660 created [20:18:30]Thread 3066707300 joined [20:18:30]Waiting for new connection... [20:18:30] Sock 7.Parse request [20:18:30]Sock 7.Check first char [20:18:30]Sock 7.First char is OK [20:18:30]request: POST /json_proto HTTP/1.0 [20:18:30]Method: POST [20:18:30]URL: /json_proto [20:18:30]Method is POST - this is cgi request [20:18:30]url: /json_proto [20:18:30]query_string will be loaded in cgi processing [20:18:30]execute_cgi json_proto POST (null) [20:18:30]execute_cgi path=json_proto method=POST [20:18:30]POST find Content-Length [20:18:30]Host: 172.17.52.132:8080 [20:18:30]Content-Length: 263 [20:18:30]Content-Type: application/json [20:18:30] [20:18:30]POST finish read [20:18:30]Found Content-Length = 263 [20:18:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:30]execute_script... [20:18:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:30]POST & json_proto [20:18:30]process_json_proto [20:18:30]json parsed OK: [20:18:30]protocol is kg_v1.0 [20:18:30]action value=x_report [20:18:30]process_action x_report [20:18:30]cmd_x_report [20:18:30]MH_GetDate [20:18:30]Write to MH i2c: F0 00 00 D0 37 F6 [20:18:30]Write i2c OK [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: F0 [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: F0 09 00 [20:18:30]MH_I2C_Read... [20:18:30]Read from MH i2c: F0 09 00 D0 37 00 9C C2 12 67 5A BE F6 66 4A [20:18:30]GetLastDocTimeStamp 1729282521 [20:18:30]current date 1729282716 [20:18:30]FM_GetShiftState [20:18:30]SAM_PROTO_GetShiftState [20:18:30]wFMCommunicate request_size=4 [20:18:30]MH_SAM_APDU [20:18:30]CAPDU: 80 13 01 00 [20:18:30]Write to MH i2c: E2 08 00 D1 37 80 13 01 00 00 00 00 00 85 [20:18:30]Write i2c OK [20:18:30]MH_I2C_Read... [20:18:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:31]Read from MH i2c: E2 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: E2 0E 00 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: E2 0E 00 D1 37 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 23 [20:18:31]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:18:31]wFMCommunicate OK [20:18:31]SAM_PROTO_GetShiftState done [20:18:31]FM_GetShiftState done [20:18:31]KKMCreateXReportDocument [20:18:31]Load OK [20:18:31]Malloc new data [20:18:31]MH_GetDate [20:18:31]Write to MH i2c: F0 00 00 D2 37 F8 [20:18:31]Write i2c OK [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: F0 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: F0 09 00 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: F0 09 00 D2 37 00 9C C2 12 67 5A BE F6 66 4C [20:18:31]Malloc new data [20:18:31]Malloc new data [20:18:31]wFMCommunicate request_size=4 [20:18:31]MH_SAM_APDU [20:18:31]CAPDU: 80 11 00 00 [20:18:31]Write to MH i2c: E2 08 00 D3 37 80 11 00 00 00 00 00 00 84 [20:18:31]Write i2c OK [20:18:31]MH_I2C_Read... [20:18:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:31]Read from MH i2c: E2 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: E2 17 00 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: E2 17 00 D3 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CC [20:18:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:18:31]wFMCommunicate OK [20:18:31]SAM_PROTO_GetFieldsCounters [20:18:31]wFMCommunicate request_size=4 [20:18:31]MH_SAM_APDU [20:18:31]CAPDU: 80 13 00 00 [20:18:31]Write to MH i2c: E2 08 00 D4 37 80 13 00 00 00 00 00 00 87 [20:18:31]Write i2c OK [20:18:31]MH_I2C_Read... [20:18:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:31]Read from MH i2c: E2 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: E2 62 00 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: E2 62 00 D4 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D2 09 00 00 0E 04 04 00 16 00 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 2F [20:18:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D2 09 00 00 0E 04 04 00 16 00 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 [20:18:31]wFMCommunicate OK [20:18:31]SAM_PROTO_GetFieldsCounters done [20:18:31]Malloc new data [20:18:31]Malloc new data [20:18:31]Malloc new data [20:18:31]KKMCreateXReportDocument OK [20:18:31]KKMSetXReportData OK [20:18:31]KKMPrepareXReportFMData [20:18:31]SAM_PROTO_GetShiftData [20:18:31]wFMCommunicate request_size=4 [20:18:31]MH_SAM_APDU [20:18:31]CAPDU: 80 13 02 00 [20:18:31]Write to MH i2c: E2 08 00 D5 37 80 13 02 00 00 00 00 00 8A [20:18:31]Write i2c OK [20:18:31]MH_I2C_Read... [20:18:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:18:31]Read from MH i2c: E2 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: E2 FD 00 [20:18:31]MH_I2C_Read... [20:18:31]Read from MH i2c: E2 FD 00 D5 37 00 AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 F4 A3 55 70 04 03 00 E4 E2 38 72 04 03 00 10 C1 1C 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 75 18 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 8C [20:18:31]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8B 00 00 00 69 04 9B 00 6F 04 04 00 8B 00 00 00 B1 04 03 00 F4 A3 55 70 04 03 00 E4 E2 38 72 04 03 00 10 C1 1C 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 75 18 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 FD C1 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [20:18:31]wFMCommunicate OK [20:18:31]wFMCommunicate request_size=4 [20:18:31]MH_SAM_APDU [20:18:31]CAPDU: 80 17 00 00 [20:18:31]Write to MH i2c: E2 08 00 D6 37 80 17 00 00 00 00 00 00 8D [20:18:31]Write i2c OK [20:18:31]MH_I2C_Read... [20:18:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:32]Read from MH i2c: E2 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: E2 FD 00 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: E2 FD 00 D6 37 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 AF [20:18:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [20:18:32]wFMCommunicate OK [20:18:32]wFMCommunicate request_size=4 [20:18:32]MH_SAM_APDU [20:18:32]CAPDU: 80 17 00 00 [20:18:32]Write to MH i2c: E2 08 00 D7 37 80 17 00 00 00 00 00 00 8E [20:18:32]Write i2c OK [20:18:32]MH_I2C_Read... [20:18:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:32]Read from MH i2c: E2 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: E2 FD 00 [20:18:32]MH_I2C_Read... [20:18:32]Read from MH i2c: E2 FD 00 D7 37 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 45 [20:18:32]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [20:18:32]wFMCommunicate OK [20:18:32]wFMCommunicate request_size=4 [20:18:32]MH_SAM_APDU [20:18:32]CAPDU: 80 17 00 00 [20:18:32]Write to MH i2c: E2 08 00 D8 37 80 17 00 00 00 00 00 00 8F [20:18:32]Write i2c OK [20:18:32]MH_I2C_Read... [20:18:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:33]Read from MH i2c: E2 [20:18:33]MH_I2C_Read... [20:18:33]Read from MH i2c: E2 FD 00 [20:18:33]MH_I2C_Read... [20:18:33]Read from MH i2c: E2 FD 00 D8 37 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 01 [20:18:33]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [20:18:33]wFMCommunicate OK [20:18:33]wFMCommunicate request_size=4 [20:18:33]MH_SAM_APDU [20:18:33]CAPDU: 80 17 00 00 [20:18:33]Write to MH i2c: E2 08 00 D9 37 80 17 00 00 00 00 00 00 90 [20:18:33]Write i2c OK [20:18:33]MH_I2C_Read... [20:18:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [20:18:33]OFD Sender: No OFD packet to send [20:18:33]Read from MH i2c: E2 [20:18:33]MH_I2C_Read... [20:18:33]Read from MH i2c: E2 CB 00 [20:18:33]MH_I2C_Read... [20:18:33]Read from MH i2c: E2 CB 00 D9 37 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 79 [20:18:33]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:18:33]wFMCommunicate OK [20:18:33]SAM_PROTO_GetShiftData done [20:18:33]1194 (1194) - Ñчетчики итогов Ñмены [20:18:33] 1134 (4) - 139 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [20:18:33] 1129 (155) - Ñчетчики операций «приход» [20:18:33] 1135 (4) - 139 - количеÑтво чеков по признаку раÑчетов [20:18:33] 1201 (3) - 56125.32 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [20:18:33] 1136 (3) - 37281.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [20:18:33] 1138 (3) - 18844.32 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [20:18:33] 1024 (122) - Ñуммы налогов [20:18:33] 1006 (9) - Ñуммы ÐДС [20:18:33] 1010 (1) - 0% - код Ñтавки ÐДС [20:18:33] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:18:33] 1006 (12) - Ñуммы ÐДС [20:18:33] 1010 (1) - 12% - код Ñтавки ÐДС [20:18:33] 1011 (3) - 5960.85 - Ñумма ÐДС по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 0% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (11) - Ñуммы ÐСП [20:18:33] 1014 (1) - 1% - код Ñтавки ÐСП [20:18:33] 1015 (2) - 496.61 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 2% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 3% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 5% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 0,50% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 1,50% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1130 (141) - Ñчетчики операций «возврат прихода» [20:18:33] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [20:18:33] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [20:18:33] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [20:18:33] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [20:18:33] 1024 (117) - Ñуммы налогов [20:18:33] 1006 (9) - Ñуммы ÐДС [20:18:33] 1010 (1) - 0% - код Ñтавки ÐДС [20:18:33] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:18:33] 1006 (9) - Ñуммы ÐДС [20:18:33] 1010 (1) - 12% - код Ñтавки ÐДС [20:18:33] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 0% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 1% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 2% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 3% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 5% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 0,50% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 1,50% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1131 (141) - Ñчетчики операций «раÑход» [20:18:33] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [20:18:33] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [20:18:33] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [20:18:33] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [20:18:33] 1024 (117) - Ñуммы налогов [20:18:33] 1006 (9) - Ñуммы ÐДС [20:18:33] 1010 (1) - 0% - код Ñтавки ÐДС [20:18:33] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:18:33] 1006 (9) - Ñуммы ÐДС [20:18:33] 1010 (1) - 12% - код Ñтавки ÐДС [20:18:33] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 0% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 1% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 2% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 3% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 5% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 0,50% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1007 (9) - Ñуммы ÐСП [20:18:33] 1014 (1) - 1,50% - код Ñтавки ÐСП [20:18:33] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:33] 1132 (141) - Ñчетчики операций «возврат раÑхода» [20:18:34] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [20:18:34] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [20:18:34] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [20:18:34] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [20:18:34] 1024 (117) - Ñуммы налогов [20:18:34] 1006 (9) - Ñуммы ÐДС [20:18:34] 1010 (1) - 0% - код Ñтавки ÐДС [20:18:34] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:18:34] 1006 (9) - Ñуммы ÐДС [20:18:34] 1010 (1) - 12% - код Ñтавки ÐДС [20:18:34] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:18:34] 1007 (9) - Ñуммы ÐСП [20:18:34] 1014 (1) - 0% - код Ñтавки ÐСП [20:18:34] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:34] 1007 (9) - Ñуммы ÐСП [20:18:34] 1014 (1) - 1% - код Ñтавки ÐСП [20:18:34] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:34] 1007 (9) - Ñуммы ÐСП [20:18:34] 1014 (1) - 2% - код Ñтавки ÐСП [20:18:34] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:34] 1007 (9) - Ñуммы ÐСП [20:18:34] 1014 (1) - 3% - код Ñтавки ÐСП [20:18:34] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:34] 1007 (9) - Ñуммы ÐСП [20:18:34] 1014 (1) - 5% - код Ñтавки ÐСП [20:18:34] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:34] 1007 (9) - Ñуммы ÐСП [20:18:34] 1014 (1) - 0,50% - код Ñтавки ÐСП [20:18:34] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:34] 1007 (9) - Ñуммы ÐСП [20:18:34] 1014 (1) - 1,50% - код Ñтавки ÐСП [20:18:34] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:18:34] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1194 (04AA) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1134 (046E) [20:18:34]Malloc new data [20:18:34]Processing tag 1129 (0469) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1135 (046F) [20:18:34]Malloc new data [20:18:34]Processing tag 1201 (04B1) [20:18:34]Malloc new data [20:18:34]Processing tag 1136 (0470) [20:18:34]Malloc new data [20:18:34]Processing tag 1138 (0472) [20:18:34]Malloc new data [20:18:34]Processing tag 1024 (0400) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1006 (03EE) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1010 (03F2) [20:18:34]Malloc new data [20:18:34]Processing tag 1011 (03F3) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1006 (03EE) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1010 (03F2) [20:18:34]Malloc new data [20:18:34]Processing tag 1011 (03F3) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1130 (046A) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1135 (046F) [20:18:34]Malloc new data [20:18:34]Processing tag 1201 (04B1) [20:18:34]Malloc new data [20:18:34]Processing tag 1136 (0470) [20:18:34]Malloc new data [20:18:34]Processing tag 1138 (0472) [20:18:34]Malloc new data [20:18:34]Processing tag 1024 (0400) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1006 (03EE) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1010 (03F2) [20:18:34]Malloc new data [20:18:34]Processing tag 1011 (03F3) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1006 (03EE) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1010 (03F2) [20:18:34]Malloc new data [20:18:34]Processing tag 1011 (03F3) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1131 (046B) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1135 (046F) [20:18:34]Malloc new data [20:18:34]Processing tag 1201 (04B1) [20:18:34]Malloc new data [20:18:34]Processing tag 1136 (0470) [20:18:34]Malloc new data [20:18:34]Processing tag 1138 (0472) [20:18:34]Malloc new data [20:18:34]Processing tag 1024 (0400) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1006 (03EE) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1010 (03F2) [20:18:34]Malloc new data [20:18:34]Processing tag 1011 (03F3) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1006 (03EE) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1010 (03F2) [20:18:34]Malloc new data [20:18:34]Processing tag 1011 (03F3) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1132 (046C) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1135 (046F) [20:18:34]Malloc new data [20:18:34]Processing tag 1201 (04B1) [20:18:34]Malloc new data [20:18:34]Processing tag 1136 (0470) [20:18:34]Malloc new data [20:18:34]Processing tag 1138 (0472) [20:18:34]Malloc new data [20:18:34]Processing tag 1024 (0400) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1006 (03EE) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1010 (03F2) [20:18:34]Malloc new data [20:18:34]Processing tag 1011 (03F3) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1006 (03EE) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1010 (03F2) [20:18:34]Malloc new data [20:18:34]Processing tag 1011 (03F3) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1007 (03EF) [20:18:34]Load OK [20:18:34]SetTLVBufToDocument [20:18:34]Processing tag 1014 (03F6) [20:18:34]Malloc new data [20:18:34]Processing tag 1015 (03F7) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Processing tag 1133 (046D) [20:18:34]Malloc new data [20:18:34]SetTLVBufToDocument err=0 [20:18:34]SetTLVBufToDocument err=0 [20:18:34]Malloc new data [20:18:34]SAM_PROTO_GetFMData [20:18:34]wFMCommunicate request_size=4 [20:18:34]MH_SAM_APDU [20:18:34]CAPDU: 80 13 03 00 [20:18:34]Write to MH i2c: E2 08 00 DA 37 80 13 03 00 00 00 00 00 90 [20:18:34]Write i2c OK [20:18:34]MH_I2C_Read... [20:18:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:18:35]Read from MH i2c: E2 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: E2 FD 00 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: E2 FD 00 DA 37 00 BE 04 85 04 BA 04 6E 04 04 00 A6 09 00 00 69 04 9F 00 6F 04 04 00 9E 09 00 00 B1 04 04 00 B3 EE DA 04 70 04 04 00 04 87 9E 03 72 04 04 00 AF 67 3C 01 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 40 00 84 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 19 FF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 F6 [20:18:35]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 A6 09 00 00 69 04 9F 00 6F 04 04 00 9E 09 00 00 B1 04 04 00 B3 EE DA 04 70 04 04 00 04 87 9E 03 72 04 04 00 AF 67 3C 01 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 40 00 84 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 19 FF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [20:18:35]wFMCommunicate OK [20:18:35]wFMCommunicate request_size=4 [20:18:35]MH_SAM_APDU [20:18:35]CAPDU: 80 17 00 00 [20:18:35]Write to MH i2c: E2 08 00 DB 37 80 17 00 00 00 00 00 00 92 [20:18:35]Write i2c OK [20:18:35]MH_I2C_Read... [20:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:35]Read from MH i2c: E2 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: E2 FD 00 [20:18:35]MH_I2C_Read... [20:18:35]Read from MH i2c: E2 FD 00 DB 37 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 A7 [20:18:36]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:18:36]wFMCommunicate OK [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 17 00 00 [20:18:36]Write to MH i2c: E2 08 00 DC 37 80 17 00 00 00 00 00 00 93 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 FD 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 FD 00 DC 37 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 C5 [20:18:36]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [20:18:36]wFMCommunicate OK [20:18:36]wFMCommunicate request_size=4 [20:18:36]MH_SAM_APDU [20:18:36]CAPDU: 80 17 00 00 [20:18:36]Write to MH i2c: E2 08 00 DD 37 80 17 00 00 00 00 00 00 94 [20:18:36]Write i2c OK [20:18:36]MH_I2C_Read... [20:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:18:36]Read from MH i2c: E2 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 FD 00 [20:18:36]MH_I2C_Read... [20:18:36]Read from MH i2c: E2 FD 00 DD 37 00 04 F7 03 00 00 EF 03 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 90 00 0F [20:18:37]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [20:18:37]wFMCommunicate OK [20:18:37]wFMCommunicate request_size=4 [20:18:37]MH_SAM_APDU [20:18:37]CAPDU: 80 17 00 00 [20:18:37]Write to MH i2c: E2 08 00 DE 37 80 17 00 00 00 00 00 00 95 [20:18:37]Write i2c OK [20:18:37]MH_I2C_Read... [20:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [20:18:37]Read from MH i2c: E2 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 DB 00 [20:18:37]MH_I2C_Read... [20:18:37]Read from MH i2c: E2 DB 00 DE 37 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 77 [20:18:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:18:37]wFMCommunicate OK [20:18:37]SAM_PROTO_GetFMData done [20:18:37]FM_GetFMData:85 04 BA 04 6E 04 04 00 A6 09 00 00 69 04 9F 00 6F 04 04 00 9E 09 00 00 B1 04 04 00 B3 EE DA 04 70 04 04 00 04 87 9E 03 72 04 04 00 AF 67 3C 01 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 40 00 84 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 19 FF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:18:38]oper:6F 04 04 00 9E 09 00 00 B1 04 04 00 B3 EE DA 04 70 04 04 00 04 87 9E 03 72 04 04 00 AF 67 3C 01 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 40 00 84 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 19 FF 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:18:38]total:B3 EE DA 04 [20:18:38]Malloc new data [20:18:38]oper:6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:18:38]total:58 F6 01 [20:18:38]Malloc new data [20:18:38]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 [20:18:38]total: [20:18:38]Malloc new data [20:18:38]oper:6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 OFD Sender: No OFD packet to send [20:18:38]00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:18:38]total: [20:18:38]Malloc new data [20:18:38]KKMPrepareXReportFMData err=0 [20:18:38]Ð¥ отчет ИÐÐ: 02508201610067 КаÑÑир: Ðуралиева Ð. 18.10.2024 20:18 Смена: 10 РÐМ: 0000000000207295 ЗÐМ: 0300000191 СÐО: Общий режим Ð’Ñего чеков: 139 ИТОГИ ПРИХОД Чеков: 139 Общий итог: 56125.32 Итого наличными: 37281.00 Итого безнал.: 18844.32 ÐДС 0% : 0.00 ÐДС 12% : 5960.85 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 496.61 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ РÐСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ ВОЗВРÐТ РÐСХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 Сумма внеÑений: 0.00 Сумма выплат: 0.00 Ðал. в каÑÑе: 37281.00 ÐС Приход: 814568.19 ÐС Возвр.Прихода: 1286.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФМ: 0000000002342820 [20:18:38]StoreToDocumentArchive [20:18:38]MH_GetDate [20:18:38]Write to MH i2c: F0 00 00 DF 37 05 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 09 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: F0 09 00 DF 37 00 A4 C2 12 67 5A BE F6 66 61 [20:18:38]shift 10 fd 1729282724 [20:18:38]Create dir for shift 0010 [20:18:38]save to /storage/0010/doc_1729282724 [20:18:38]save last doc name /storage/0010/doc_1729282724 to /storage/kkm_last_doc_name [20:18:38]save OK [20:18:38]Clear old archive folders... [20:18:38]NVStorageSaveData kkm_last_timestamp [20:18:38]File name is /storage/kkm_last_timestamp [20:18:38]Write 4 bytes [20:18:38]NVStorageSaveData done [20:18:38]ExternCall_PrintAddStr [20:18:38]wPrintStart [20:18:38]Write to MH i2c: 01 00 00 E0 37 17 [20:18:38]Write i2c OK [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 07 00 [20:18:38]MH_I2C_Read... [20:18:38]Read from MH i2c: 01 07 00 E0 37 00 00 00 00 00 FF 0F 2C [20:18:38]RasterBufferAndPrint [20:18:38]line Ð¥ отчет [20:18:38]line ИÐÐ: 02508201610067 [20:18:38]line КаÑÑир: Ðуралиева Ð. [20:18:38]line 18.10.2024 20:18 [20:18:38]line Смена: 10 [20:18:38]line РÐМ: 0000000000207295 [20:18:38]line ЗÐМ: 0300000191 [20:18:38]line СÐО: Общий режим [20:18:38]line Ð’Ñего чеков: 139 [20:18:38]line ИТОГИ ПРИХОД [20:18:38]line Чеков: 139 [20:18:38]line Общий итог: 56125.32 [20:18:38]line Итого наличными: 37281.00 [20:18:38]line Итого безнал.: 18844.32 [20:18:38]line ÐДС 0% : 0.00 [20:18:38]line ÐДС 12% : 5960.85 [20:18:38]line ÐСП 0% : 0.00 [20:18:38]line ÐСП 1,50% : 0.00 [20:18:38]line ÐСП 0,50% : 0.00 [20:18:38]line ÐСП 5% : 0.00 [20:18:38]line ÐСП 3% : 0.00 [20:18:38]line ÐСП 2% : 0.00 [20:18:38]line ÐСП 1% : 496.61 [20:18:38]line ИТОГИ ВОЗВРÐТ ПРИХОДР[20:18:38]line Чеков: 0 [20:18:38]line Общий итог: 0.00 [20:18:38]line Итого наличными: 0.00 [20:18:38]line Итого безнал.: 0.00 [20:18:38]line ÐДС 0% : 0.00 [20:18:38]line ÐДС 12% : 0.00 [20:18:38]line ÐСП 0% : 0.00 [20:18:38]line ÐСП 1,50% : 0.00 [20:18:38]line ÐСП 0,50% : 0.00 [20:18:38]line ÐСП 5% : 0.00 [20:18:38]line ÐСП 3% : 0.00 [20:18:38]line ÐСП 2% : 0.00 [20:18:38]line ÐСП 1% : 0.00 [20:18:38]line ИТОГИ РÐСХОД [20:18:38]line Чеков: 0 [20:18:38]line Общий итог: 0.00 [20:18:38]line Итого наличными: 0.00 [20:18:38]line Итого безнал.: 0.00 [20:18:38]line ÐДС 0% : 0.00 [20:18:38]line ÐДС 12% : 0.00 [20:18:38]line ÐСП 0% : 0.00 [20:18:38]line ÐСП 1,50% : 0.00 [20:18:38]line ÐСП 0,50% : 0.00 [20:18:38]line ÐСП 5% : 0.00 [20:18:38]line ÐСП 3% : 0.00 [20:18:38]line ÐСП 2% : 0.00 [20:18:38]line ÐСП 1% : 0.00 [20:18:38]line ИТОГИ ВОЗВРÐТ РÐСХОДР[20:18:38]line Чеков: 0 [20:18:38]line Общий итог: 0.00 [20:18:38]line Итого наличными: 0.00 [20:18:38]line Итого безнал.: 0.00 [20:18:38]line ÐДС 0% : 0.00 [20:18:38]line ÐДС 12% : 0.00 [20:18:38]line ÐСП 0% : 0.00 [20:18:38]line ÐСП 1,50% : 0.00 [20:18:38]line ÐСП 0,50% : 0.00 [20:18:38]line ÐСП 5% : 0.00 [20:18:38]line ÐСП 3% : 0.00 [20:18:38]line ÐСП 2% : 0.00 [20:18:38]line ÐСП 1% : 0.00 [20:18:38]line Сумма внеÑений: 0.00 [20:18:38]line Сумма выплат: 0.00 [20:18:38]line Ðал. в каÑÑе: 37281.00 [20:18:38]line ÐС Приход: 814568.19 [20:18:38]line ÐС Возвр.Прихода: 1286.00 [20:18:38]line ÐС РаÑход: 0.00 [20:18:38]line ÐС Возвр.РаÑхода: 0.00 [20:18:38]line ФМ: 0000000002342820 [20:18:38]written 0, free lines is 4095 [20:18:39]Write to MH i2c: 01 00 00 2B 38 63 [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 07 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: 01 07 00 2B 38 00 00 00 00 00 4A 0A BE [20:18:39]RasterBufferAndPrint [20:18:39]line [20:18:39]line [20:18:39]line [20:18:39]line [20:18:39]line [20:18:39]written 0, free lines is 2665 [20:18:39]MH_Cut [20:18:39]Write to MH i2c: D1 01 00 32 38 01 3C [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: D1 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: D1 01 00 [20:18:39]MH_I2C_Read... [20:18:39]Read from MH i2c: D1 01 00 32 38 00 3B [20:18:39]Write to MH i2c: 01 00 00 33 38 6B [20:18:39]Write i2c OK [20:18:39]MH_I2C_Read... [20:18:40]*** Cut start [20:18:40]*** Partial cut [20:18:40]*** CUTSNS_PIN = 1 [20:18:41]*** CUTSNS_PIN = 0 [20:18:41]*** Brake cut motor [20:18:41]Read from MH i2c: 01 [20:18:41]MH_I2C_Read... [20:18:41]*** Stop cut motor [20:18:41]*** Cut end [20:18:41]Read from MH i2c: 01 07 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: 01 07 00 33 38 00 00 00 00 00 FF 0F 80 [20:18:41]process_action x_report done [20:18:41]requested_data is exist [20:18:41]produce_requested_data [20:18:41]requested_item fd.num is exist - process it [20:18:41]SAM_PROTO_GetFieldsCounters [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 13 00 00 [20:18:41]Write to MH i2c: E2 08 00 34 38 80 13 00 00 00 00 00 00 E8 [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 62 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 62 00 34 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D2 09 00 00 0E 04 04 00 16 00 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 90 [20:18:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D2 09 00 00 0E 04 04 00 16 00 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 [20:18:41]wFMCommunicate OK [20:18:41]SAM_PROTO_GetFieldsCounters done [20:18:41]requested_item shift.num is exist - process it [20:18:41]requested_item shift.opened is exist - process it [20:18:41]req_shift_opened [20:18:41]FM_GetShiftState [20:18:41]SAM_PROTO_GetShiftState [20:18:41]wFMCommunicate request_size=4 [20:18:41]MH_SAM_APDU [20:18:41]CAPDU: 80 13 01 00 [20:18:41]Write to MH i2c: E2 08 00 35 38 80 13 01 00 00 00 00 00 EA [20:18:41]Write i2c OK [20:18:41]MH_I2C_Read... [20:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:41]Read from MH i2c: E2 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 0E 00 [20:18:41]MH_I2C_Read... [20:18:41]Read from MH i2c: E2 0E 00 35 38 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 88 [20:18:41]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:18:42]wFMCommunicate OK [20:18:42]SAM_PROTO_GetShiftState done [20:18:42]FM_GetShiftState done [20:18:42]req_shift_opened done [20:18:42]requested_item shift.open_date is exist - process it [20:18:42]req_shift_open_date [20:18:42]req_shift_open_date done [20:18:42]produce_requested_data done [20:18:42]produce_requested_data return {"fd.num":2514,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:18:42]process_action_free x_report [20:18:42]json_value_free [20:18:42]json_value_free done [20:18:42]process_json_proto returns [20:18:42]Send response to host [20:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2514,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:18:42]free response buf [20:18:42]execute_script done [20:18:42]execute_script returns [20:18:42]free content buf [20:18:42]Sock 7.Close socket [20:18:42]Sock 7.Thread stoped [20:18:42]accept exits with 9 [20:18:42]New connection [20:18:42]New thread 3066707300 created [20:18:42]Thread 3066850660 joined [20:18:42]Waiting for new connection... [20:18:42] Sock 9.Parse request [20:18:42]Sock 9.Check first char [20:18:42]Sock 9.First char is OK [20:18:42]request: POST /json_proto HTTP/1.0 [20:18:42]Method: POST [20:18:42]URL: /json_proto [20:18:42]Method is POST - this is cgi request [20:18:42]url: /json_proto [20:18:42]query_string will be loaded in cgi processing [20:18:42]execute_cgi json_proto POST (null) [20:18:42]execute_cgi path=json_proto method=POST [20:18:42]POST find Content-Length [20:18:42]Host: 172.17.52.132:8080 [20:18:42]Content-Length: 623 [20:18:42]Content-Type: application/json [20:18:42] [20:18:42]POST finish read [20:18:42]Found Content-Length = 623 [20:18:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99904", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:42]execute_script... [20:18: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)99904", "tax_sys" : 0, "items" : [ { "code": "48747073", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Royal Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:42]POST & json_proto [20:18:42]process_json_proto [20:18:42]json parsed OK: [20:18:42]protocol is kg_v1.0 [20:18:42]action value=close_receipt [20:18:42]process_action close_receipt [20:18:42]cmd_close_receipt [20:18:42]MH_GetDate [20:18:42]Write to MH i2c: F0 00 00 36 38 5D [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: F0 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: F0 09 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: F0 09 00 36 38 00 A8 C2 12 67 5A BE F6 66 BD [20:18:42]GetLastDocTimeStamp 1729282716 [20:18:42]current date 1729282728 [20:18:42]FM_GetShiftState [20:18:42]SAM_PROTO_GetShiftState [20:18:42]wFMCommunicate request_size=4 [20:18:42]MH_SAM_APDU [20:18:42]CAPDU: 80 13 01 00 [20:18:42]Write to MH i2c: E2 08 00 37 38 80 13 01 00 00 00 00 00 EC [20:18:42]Write i2c OK [20:18:42]MH_I2C_Read... [20:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:42]Read from MH i2c: E2 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 0E 00 [20:18:42]MH_I2C_Read... [20:18:42]Read from MH i2c: E2 0E 00 37 38 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 8A [20:18:42]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:18:42]wFMCommunicate OK [20:18:42]SAM_PROTO_GetShiftState done [20:18:42]FM_GetShiftState done [20:18:42]opened in 1729209717 [20:18:42]opened+sec_in_day 1729296117 [20:18:42]quantity*price = 15400 [20:18:42]sum+1 = 15401 [20:18:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 154.00 ÐСП 1% : 1.36 ÐДС 12% : 16.35 Ðаличными: 154.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 140 18.10.2024 20:18 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2515 ФПД: 151191394980587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T201848&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2515&fm=151191394980587&tin=02508201610067®Number=0000000000207295&sum=15400 0 [20:18:44]StoreToDocumentArchive [20:18:44]shift 22 fd 2515 [20:18:44]save to /storage/0022/doc_00002515 [20:18:44]save last doc name /storage/0022/doc_00002515 to /storage/kkm_last_doc_name [20:18:44]save OK [20:18:44]Clear old archive folders... [20:18:44]Remove dir /storage/0010 [20:18:44]opendir ok [20:18:44]file . [20:18:44]file .. [20:18:44]file doc_1729282724 [20:18:44]remove file /storage/0010/doc_1729282724 [20:18:44]remove dir /storage/0010 [20:18:44]ProcessDocumentItem done err = 0, tmpTLVsize=276 [20:18:44]tlvbuf is 0141C5C0 [20:18:44]SAM_PROTO_ClearQueue [20:18:44]wFMCommunicate request_size=4 [20:18:44]MH_SAM_APDU [20:18:44]CAPDU: 80 09 00 00 [20:18:44]Write to MH i2c: E2 08 00 44 38 80 09 00 00 00 00 00 00 EE [20:18:44]Write i2c OK [20:18:44]MH_I2C_Read... [20:18:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:44]Read from MH i2c: E2 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 03 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 03 00 44 38 00 90 00 F0 [20:18:44]RAPDU: 90 00 [20:18:44]wFMCommunicate OK [20:18:44]SAM_PROTO_ClearQueue done [20:18:44]KKMCreateOFDPacket [20:18:44]OFDProtocolAddRootSTLVToBuf [20:18:44]FM_MakeSignedData [20:18:44]FM_MakeSignedData [20:18:44]SAM_PROTO_SignData [20:18:44]wFMCommunicate request_size=4 [20:18:44]MH_SAM_APDU [20:18:44]CAPDU: 80 0D 01 02 [20:18:44]Write to MH i2c: E2 08 00 45 38 80 0D 01 02 00 00 00 00 F6 [20:18:44]Write i2c OK [20:18:44]MH_I2C_Read... [20:18:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:44]Read from MH i2c: E2 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 03 00 [20:18:44]MH_I2C_Read... [20:18:44]Read from MH i2c: E2 03 00 45 38 00 90 00 F1 [20:18:44]RAPDU: 90 00 [20:18:44]wFMCommunicate OK [20:18:44]wFMCommunicate request_size=255 [20:18:44]MH_SAM_APDU [20:18:44]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 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 A8 C2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 [20:18:44]Write to MH i2c: E2 02 01 46 38 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 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 A8 C2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 00 00 A8 [20:18:44]Write i2c OK [20:18:44]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 46 38 00 90 00 F2 [20:18:45]RAPDU: 90 00 [20:18:45]wFMCommunicate OK [20:18:45]wFMCommunicate request_size=35 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D3 09 00 00 35 04 06 00 89 81 FD 64 12 EB [20:18:45]Write to MH i2c: E2 26 00 47 38 80 0D 02 02 1E 00 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D3 09 00 00 35 04 06 00 89 81 FD 64 12 EB 00 00 25 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 03 00 47 38 00 90 00 F3 [20:18:45]RAPDU: 90 00 [20:18:45]wFMCommunicate OK [20:18:45]wFMCommunicate request_size=4 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 0D 03 02 [20:18:45]Write to MH i2c: E2 08 00 48 38 80 0D 03 02 00 00 00 00 FB [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 0B 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 0B 00 48 38 00 0A 55 EB 28 C1 F5 A3 19 90 00 E0 [20:18:45]RAPDU: 0A 55 EB 28 C1 F5 A3 19 90 00 [20:18:45]wFMCommunicate OK [20:18:45]SAM_PROTO_SignData done [20:18:45]FM_MakeSignedData done [20:18:45]CreateOFDProtocolMessage [20:18:45]wFMCommunicate request_size=4 [20:18:45]MH_SAM_APDU [20:18:45]CAPDU: 80 11 00 00 [20:18:45]Write to MH i2c: E2 08 00 49 38 80 11 00 00 00 00 00 00 FB [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 [20:18:45]MH_I2C_Read... [20:18:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:45]Read from MH i2c: E2 17 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: E2 17 00 49 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 43 [20:18:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:18:45]wFMCommunicate OK [20:18:45]CreateOFDProtocolMessage done [20:18:45]OFDSenderStorePacket 2515 [20:18:45]StoreOFDPacket docnum=2515 [20:18:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 2E 5E 20 01 74 D0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 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 A8 C2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D3 09 00 00 35 04 06 00 89 81 FD 64 12 EB 0A 55 EB 28 C1 F5 A3 19 [20:18:45]CheckFolder [20:18:45]dirname=/storage/ofd_packets [20:18:45]CheckFolder done [20:18:45]ProducePacketName [20:18:45]name=ofd_packets/00002515 [20:18:45]NVStorageSaveData ofd_packets/00002515 [20:18:45]File name is /storage/ofd_packets/00002515 [20:18:45]Write 326 bytes [20:18:45]NVStorageSaveData done [20:18:45]OFDSenderStorePacket done [20:18:45]KKMCreateOFDPacket done [20:18:45]NVStorageSaveData kkm_last_timestamp [20:18:45]File name is /storage/kkm_last_timestamp [20:18:45]Write 4 bytes [20:18:45]NVStorageSaveData done [20:18:45]ExternCall_PrintAddStr [20:18:45]wPrintStart [20:18:45]Write to MH i2c: 01 00 00 4A 38 82 [20:18:45]Write i2c OK [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: 01 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: 01 07 00 [20:18:45]MH_I2C_Read... [20:18:45]Read from MH i2c: 01 07 00 4A 38 00 00 00 00 00 FF 0F 97 [20:18:45]RasterBufferAndPrint [20:18:45]line Счет N : (3)99904 [20:18:45]line ИÐÐ: 02508201610067 [20:18:45]line Контрольно-КаÑÑовый Чек [20:18:45]line ПРОДÐЖР[20:18:45]line Товар: 48747073 [20:18:45]line Сигареты Richmond Royal Edition [20:18:45]line 1.000 * 154.00 [20:18:45]line = 154.00 [20:18:45]line ÐДС 12% ÐСП 1% [20:18:45]line > о реализуемом товаре [20:18:45]line ИТОГО: 154.00 [20:18:45]line ÐСП 1% : 1.36 [20:18:45]line ÐДС 12% : 16.35 [20:18:45]line Ðаличными: 154.00 [20:18:45]line Безнал.: 0.00 [20:18:45]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:18:45]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:18:45]line СÐО: Общий режим [20:18:45]line Чек 140 18.10.2024 20:18 [20:18:45]line Смена: 22 ФФД: 1.0 [20:18:45]line ЗÐМ: 0300000191 [20:18:45]line РÐМ: 0000000000207295 [20:18:45]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:18:45]line ФМ: 0000000002342820 [20:18:45]line ФД: 2515 [20:18:45]line ФПД: 151191394980587 [20:18:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T201848&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2515&fm=151191394980587&tin=02508201610067®Number=0000000000207295&sum=15400 [20:18:45]line 0 [20:18:45]OFD Sender: Processing packet 2515 [packets to send 1, broken 0] [20:18:45]ProducePacketName [20:18:45]name=ofd_packets/00002515 [20:18:45]OFD Sender: To server: ‡•öpG, [20:18:45]CommunicateWithHost lk.salyk.kg:30040 [20:18:45]ConnectInit lk.salyk.kg [20:18:45]written 0, free lines is 4095 [20:18:45]Connected sock=10 [20:18:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 2E 5E 20 01 74 D0 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 37 30 37 33 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 6F 79 61 6C 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 00 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 A8 C2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D3 09 00 00 35 04 06 00 89 81 FD 64 12 EB 0A 55 EB 28 C1 F5 A3 19 [20:18:46]Write to MH i2c: 01 00 00 73 38 AB [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: 01 07 00 73 38 00 00 00 00 00 13 0D D2 [20:18:46]RasterBufferAndPrint [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]line [20:18:46]written 0, free lines is 3379 [20:18:46]MH_Cut [20:18:46]Write to MH i2c: D1 01 00 7A 38 01 84 [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 01 00 [20:18:46]MH_I2C_Read... [20:18:46]Read from MH i2c: D1 01 00 7A 38 00 83 [20:18:46]Write to MH i2c: 01 00 00 7B 38 B3 [20:18:46]Write i2c OK [20:18:46]MH_I2C_Read... [20:18:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 C0 9B 47 00 EC 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 32 33 34 32 38 32 30 10 04 04 00 D3 09 00 00 F4 03 04 00 0C 6E 12 67 B6 04 01 00 00 FF 72 27 94 11 1B 09 FE [20:18:46]CommunicateWithHost err = 0 [20:18:46]CheckOFDResponse [20:18:46]1017 (14) - 77093643461234 [20:18:46]1041 (16) - 0000000002342820 [20:18:46]1040 (4) - 2515 [20:18:46]1012 (4) - 18.10.2024 14:17 [20:18:46]1206 (1) - 0 [20:18:46]OFD Sender: Remove packet 2515 [20:18:46]ProducePacketName [20:18:46]name=ofd_packets/00002515 [20:18:46]NVStorageDeleteData [20:18:46]*** Cut start [20:18:46]*** Partial cut [20:18:46]*** CUTSNS_PIN = 1 [20:18:47]OFD Sender: No OFD packet to send [20:18:47]*** CUTSNS_PIN = 0 [20:18:47]*** Brake cut motor [20:18:47]Read from MH i2c: 01 [20:18:47]MH_I2C_Read... [20:18:47]*** Stop cut motor [20:18:47]*** Cut end [20:18:47]Read from MH i2c: 01 07 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: 01 07 00 7B 38 00 00 00 00 00 FF 0F C8 [20:18:47]process_action close_receipt done [20:18:47]requested_data is exist [20:18:47]produce_requested_data [20:18:47]requested_item fm.sn is exist - process it [20:18:47]wFMCommunicate request_size=4 [20:18:47]MH_SAM_APDU [20:18:47]CAPDU: 80 11 00 00 [20:18:47]Write to MH i2c: E2 08 00 7C 38 80 11 00 00 00 00 00 00 2E [20:18:47]Write i2c OK [20:18:47]MH_I2C_Read... [20:18:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:47]Read from MH i2c: E2 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 17 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 17 00 7C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 76 [20:18:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:18:47]wFMCommunicate OK [20:18:47]requested_item fd.num is exist - process it [20:18:47]SAM_PROTO_GetFieldsCounters [20:18:47]wFMCommunicate request_size=4 [20:18:47]MH_SAM_APDU [20:18:47]CAPDU: 80 13 00 00 [20:18:47]Write to MH i2c: E2 08 00 7D 38 80 13 00 00 00 00 00 00 31 [20:18:47]Write i2c OK [20:18:47]MH_I2C_Read... [20:18:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:47]Read from MH i2c: E2 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 62 00 [20:18:47]MH_I2C_Read... [20:18:47]Read from MH i2c: E2 62 00 7D 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D3 09 00 00 0E 04 04 00 16 00 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 DD [20:18:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D3 09 00 00 0E 04 04 00 16 00 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 [20:18:48]wFMCommunicate OK [20:18:48]SAM_PROTO_GetFieldsCounters done [20:18:48]requested_item shift.num is exist - process it [20:18:48]requested_item shift.opened is exist - process it [20:18:48]req_shift_opened [20:18:48]FM_GetShiftState [20:18:48]SAM_PROTO_GetShiftState [20:18:48]wFMCommunicate request_size=4 [20:18:48]MH_SAM_APDU [20:18:48]CAPDU: 80 13 01 00 [20:18:48]Write to MH i2c: E2 08 00 7E 38 80 13 01 00 00 00 00 00 33 [20:18:48]Write i2c OK [20:18:48]MH_I2C_Read... [20:18:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:48]Read from MH i2c: E2 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 0E 00 [20:18:48]MH_I2C_Read... [20:18:48]Read from MH i2c: E2 0E 00 7E 38 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D1 [20:18:48]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:18:48]wFMCommunicate OK [20:18:48]SAM_PROTO_GetShiftState done [20:18:48]FM_GetShiftState done [20:18:48]req_shift_opened done [20:18:48]requested_item shift.open_date is exist - process it [20:18:48]req_shift_open_date [20:18:48]req_shift_open_date done [20:18:48]produce_requested_data done [20:18:48]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2515,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:18:48]process_action_free close_receipt [20:18:48]json_value_free [20:18:48]json_value_free done [20:18:48]process_json_proto returns [20:18:48]Send response to host [20:18:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2515,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:18:48]free response buf [20:18:48]execute_script done [20:18:48]execute_script returns [20:18:48]free content buf [20:18:48]Sock 9.Close socket [20:18:48]Sock 9.Thread stoped [20:18:52]OFD Sender: No OFD packet to send [20:18:57]OFD Sender: No OFD packet to send [20:19:02]OFD Sender: No OFD packet to send [20:19:07]OFD Sender: No OFD packet to send [20:19:12]OFD Sender: No OFD packet to send [20:19:14]accept exits with 7 [20:19:14]New connection [20:19:14]New thread 3066850660 created [20:19:14]Thread 3066707300 joined [20:19:14]Waiting for new connection... [20:19:14] Sock 7.Parse request [20:19:14]Sock 7.Check first char [20:19:14]Sock 7.First char is OK [20:19:14]request: POST /json_proto HTTP/1.0 [20:19:14]Method: POST [20:19:14]URL: /json_proto [20:19:14]Method is POST - this is cgi request [20:19:14]url: /json_proto [20:19:14]query_string will be loaded in cgi processing [20:19:14]execute_cgi json_proto POST (null) [20:19:14]execute_cgi path=json_proto method=POST [20:19:14]POST find Content-Length [20:19:14]Host: 172.17.52.132:8080 [20:19:14]Content-Length: 677 [20:19:14]Content-Type: application/json [20:19:14] [20:19:14]POST finish read [20:19:14]Found Content-Length = 677 [20:19:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)475745", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:14]execute_script... [20:19: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)475745", "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" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:14]POST & json_proto [20:19:14]process_json_proto [20:19:14]json parsed OK: [20:19:14]protocol is kg_v1.0 [20:19:14]action value=close_receipt [20:19:14]process_action close_receipt [20:19:14]cmd_close_receipt [20:19:14]MH_GetDate [20:19:14]Write to MH i2c: F0 00 00 7F 38 A6 [20:19:14]Write i2c OK [20:19:14]MH_I2C_Read... [20:19:14]Read from MH i2c: F0 [20:19:14]MH_I2C_Read... [20:19:14]Read from MH i2c: F0 09 00 [20:19:14]MH_I2C_Read... [20:19:14]Read from MH i2c: F0 09 00 7F 38 00 C8 C2 12 67 5A BE F6 66 26 [20:19:14]GetLastDocTimeStamp 1729282728 [20:19:14]current date 1729282760 [20:19:14]FM_GetShiftState [20:19:14]SAM_PROTO_GetShiftState [20:19:14]wFMCommunicate request_size=4 [20:19:14]MH_SAM_APDU [20:19:14]CAPDU: 80 13 01 00 [20:19:14]Write to MH i2c: E2 08 00 80 38 80 13 01 00 00 00 00 00 35 [20:19:14]Write i2c OK [20:19:14]MH_I2C_Read... [20:19:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:14]Read from MH i2c: E2 [20:19:14]MH_I2C_Read... [20:19:14]Read from MH i2c: E2 0E 00 [20:19:14]MH_I2C_Read... [20:19:14]Read from MH i2c: E2 0E 00 80 38 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 D3 [20:19:14]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:19:14]wFMCommunicate OK [20:19:14]SAM_PROTO_GetShiftState done [20:19:14]FM_GetShiftState done [20:19:14]opened in 1729209717 [20:19:14]opened+sec_in_day 1729296117 [20:19:14]quantity*price = 50041 [20:19:14]sum+1 = 50042 [20:19:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕÐИЕ: -0.41 ИТОГО: 500.00 ВнеÑено: 500.00 СДÐЧÐ: 0.00 ÐСП 1% : 4.43 ÐДС 12% : 53.14 Ðаличными: 500.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 141 18.10.2024 20:19 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2516 ФПД: 178136493117780 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T201920&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2516&fm=178136493117780&tin=02508201610067®Number=0000000000207295&sum=50000 [20:19:15]StoreToDocumentArchive [20:19:15]shift 22 fd 2516 [20:19:15]save to /storage/0022/doc_00002516 [20:19:15]save last doc name /storage/0022/doc_00002516 to /storage/kkm_last_doc_name [20:19:15]save OK [20:19:15]Clear old archive folders... [20:19:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:19:15]tlvbuf is 0141C050 [20:19:15]SAM_PROTO_ClearQueue [20:19:15]wFMCommunicate request_size=4 [20:19:15]MH_SAM_APDU [20:19:15]CAPDU: 80 09 00 00 [20:19:15]Write to MH i2c: E2 08 00 8D 38 80 09 00 00 00 00 00 00 37 [20:19:15]Write i2c OK [20:19:15]MH_I2C_Read... [20:19:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:15]Read from MH i2c: E2 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 03 00 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 03 00 8D 38 00 90 00 39 [20:19:15]RAPDU: 90 00 [20:19:15]wFMCommunicate OK [20:19:15]SAM_PROTO_ClearQueue done [20:19:15]KKMCreateOFDPacket [20:19:15]OFDProtocolAddRootSTLVToBuf [20:19:15]FM_MakeSignedData [20:19:15]FM_MakeSignedData [20:19:15]SAM_PROTO_SignData [20:19:15]wFMCommunicate request_size=4 [20:19:15]MH_SAM_APDU [20:19:15]CAPDU: 80 0D 01 02 [20:19:15]Write to MH i2c: E2 08 00 8E 38 80 0D 01 02 00 00 00 00 3F [20:19:15]Write i2c OK [20:19:15]MH_I2C_Read... [20:19:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:15]Read from MH i2c: E2 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 03 00 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 03 00 8E 38 00 90 00 3A [20:19:15]RAPDU: 90 00 [20:19:15]wFMCommunicate OK [20:19:15]wFMCommunicate request_size=255 [20:19:15]MH_SAM_APDU [20:19:15]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 35 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C8 C2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D4 09 00 00 35 04 06 00 A2 [20:19:15]Write to MH i2c: E2 02 01 8F 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C8 C2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D4 09 00 00 35 04 06 00 A2 00 00 E8 [20:19:15]Write i2c OK [20:19:15]MH_I2C_Read... [20:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:15]Read from MH i2c: E2 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 03 00 [20:19:15]MH_I2C_Read... [20:19:15]Read from MH i2c: E2 03 00 8F 38 00 90 00 3B [20:19:15]RAPDU: 90 00 [20:19:15]wFMCommunicate OK [20:19:15]wFMCommunicate request_size=10 [20:19:15]MH_SAM_APDU [20:19:15]CAPDU: 80 0D 02 02 05 03 A2 64 D1 54 [20:19:15]Write to MH i2c: E2 0D 00 90 38 80 0D 02 02 05 00 03 A2 64 D1 54 00 00 7A [20:19:15]Write i2c OK [20:19:15]MH_I2C_Read... [20:19:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:16]Read from MH i2c: E2 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: E2 03 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: E2 03 00 90 38 00 90 00 3C [20:19:16]RAPDU: 90 00 [20:19:16]wFMCommunicate OK [20:19:16]wFMCommunicate request_size=4 [20:19:16]MH_SAM_APDU [20:19:16]CAPDU: 80 0D 03 02 [20:19:16]Write to MH i2c: E2 08 00 91 38 80 0D 03 02 00 00 00 00 44 [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:16]Read from MH i2c: E2 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: E2 0B 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: E2 0B 00 91 38 00 92 84 97 45 70 F0 B7 06 90 00 54 [20:19:16]RAPDU: 92 84 97 45 70 F0 B7 06 90 00 [20:19:16]wFMCommunicate OK [20:19:16]SAM_PROTO_SignData done [20:19:16]FM_MakeSignedData done [20:19:16]CreateOFDProtocolMessage [20:19:16]wFMCommunicate request_size=4 [20:19:16]MH_SAM_APDU [20:19:16]CAPDU: 80 11 00 00 [20:19:16]Write to MH i2c: E2 08 00 92 38 80 11 00 00 00 00 00 00 44 [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:16]Read from MH i2c: E2 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: E2 17 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: E2 17 00 92 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 8C [20:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:19:16]wFMCommunicate OK [20:19:16]CreateOFDProtocolMessage done [20:19:16]OFDSenderStorePacket 2516 [20:19:16]StoreOFDPacket docnum=2516 [20:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 CB 53 07 01 B4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C8 C2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D4 09 00 00 35 04 06 00 A2 03 A2 64 D1 54 92 84 97 45 70 F0 B7 06 [20:19:16]CheckFolder [20:19:16]dirname=/storage/ofd_packets [20:19:16]CheckFolder done [20:19:16]ProducePacketName [20:19:16]name=ofd_packets/00002516 [20:19:16]NVStorageSaveData ofd_packets/00002516 [20:19:16]File name is /storage/ofd_packets/00002516 [20:19:16]Write 301 bytes [20:19:16]NVStorageSaveData done [20:19:16]OFDSenderStorePacket done [20:19:16]KKMCreateOFDPacket done [20:19:16]NVStorageSaveData kkm_last_timestamp [20:19:16]File name is /storage/kkm_last_timestamp [20:19:16]Write 4 bytes [20:19:16]NVStorageSaveData done [20:19:16]ExternCall_PrintAddStr [20:19:16]wPrintStart [20:19:16]Write to MH i2c: 01 00 00 93 38 CB [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 07 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 07 00 93 38 00 00 00 00 00 FF 0F E0 [20:19:16]RasterBufferAndPrint [20:19:16]line Счет N : (1)475745 [20:19:16]line ИÐÐ: 02508201610067 [20:19:16]line Контрольно-КаÑÑовый Чек [20:19:16]line ПРОДÐЖР[20:19:16]line ТРК (МРК, ГÐК) : 22 [20:19:16]line Товар: 2710124130 [20:19:16]line Ðи-92-К-5 [20:19:16]line 7.480 * 66.90 [20:19:16]line = 500.41 [20:19:16]line ÐДС 12% ÐСП 1% [20:19:16]line > о реализуемом товаре [20:19:16]line ОКРУГЛЕÐИЕ: -0.41 [20:19:16]line ИТОГО: 500.00 [20:19:16]line ВнеÑено: 500.00 [20:19:16]line СДÐЧÐ: 0.00 [20:19:16]line ÐСП 1% : 4.43 [20:19:16]line ÐДС 12% : 53.14 [20:19:16]line Ðаличными: 500.00 [20:19:16]line Безнал.: 0.00 [20:19:16]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:19:16]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:19:16]line СÐО: Общий режим [20:19:16]line Чек 141 18.10.2024 20:19 [20:19:16]line Смена: 22 ФФД: 1.0 [20:19:16]line ЗÐМ: 0300000191 [20:19:16]line РÐМ: 0000000000207295 [20:19:16]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:19:16]line ФМ: 0000000002342820 [20:19:16]line ФД: 2516 [20:19:16]line ФПД: 178136493117780 [20:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T201920&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2516&fm=178136493117780&tin=02508201610067®Number=0000000000207295&sum=50000 [20:19:16]written 0, free lines is 4095 [20:19:16]OFD Sender: Processing packet 2516 [packets to send 1, broken 0] [20:19:16]ProducePacketName [20:19:16]name=ofd_packets/00002516 [20:19:16]OFD Sender: To server: ‡•öpG, [20:19:16]CommunicateWithHost lk.salyk.kg:30040 [20:19:16]ConnectInit lk.salyk.kg [20:19:16]Connected sock=10 [20:19:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0F 01 00 00 CB 53 07 01 B4 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 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 C8 C2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D4 09 00 00 35 04 06 00 A2 03 A2 64 D1 54 92 84 97 45 70 F0 B7 06 [20:19:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 05 70 47 00 00 D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D4 09 00 00 F4 03 04 00 2B 6E 12 67 B6 04 01 00 00 65 AE 12 5D BE EC BF 4C [20:19:16]CommunicateWithHost err = 0 [20:19:16]CheckOFDResponse [20:19:16]1017 (14) - 77093643461234 [20:19:16]1041 (16) - 0000000002342820 [20:19:16]1040 (4) - 2516 [20:19:16]1012 (4) - 18.10.2024 14:18 [20:19:16]1206 (1) - 0 [20:19:16]OFD Sender: Remove packet 2516 [20:19:16]ProducePacketName [20:19:16]name=ofd_packets/00002516 [20:19:16]NVStorageDeleteData [20:19:16]Write to MH i2c: 01 00 00 BE 38 F6 [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 07 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: 01 07 00 BE 38 00 00 00 00 00 FE 0C 07 [20:19:16]RasterBufferAndPrint [20:19:16]line [20:19:16]line [20:19:16]line [20:19:16]line [20:19:16]line [20:19:16]written 0, free lines is 3350 [20:19:16]MH_Cut [20:19:16]Write to MH i2c: D1 01 00 C5 38 01 CF [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: D1 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: D1 01 00 [20:19:16]MH_I2C_Read... [20:19:16]Read from MH i2c: D1 01 00 C5 38 00 CE [20:19:16]Write to MH i2c: 01 00 00 C6 38 FE [20:19:16]Write i2c OK [20:19:16]MH_I2C_Read... [20:19:17]OFD Sender: No OFD packet to send [20:19:17]*** Cut start [20:19:17]*** Partial cut [20:19:17]*** CUTSNS_PIN = 1 [20:19:17]*** CUTSNS_PIN = 0 [20:19:17]*** Brake cut motor [20:19:18]Read from MH i2c: 01 [20:19:18]MH_I2C_Read... [20:19:18]*** Stop cut motor [20:19:18]*** Cut end [20:19:18]Read from MH i2c: 01 07 00 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: 01 07 00 C6 38 00 00 00 00 00 FF 0F 13 [20:19:18]process_action close_receipt done [20:19:18]requested_data is exist [20:19:18]produce_requested_data [20:19:18]requested_item fm.sn is exist - process it [20:19:18]wFMCommunicate request_size=4 [20:19:18]MH_SAM_APDU [20:19:18]CAPDU: 80 11 00 00 [20:19:18]Write to MH i2c: E2 08 00 C7 38 80 11 00 00 00 00 00 00 79 [20:19:18]Write i2c OK [20:19:18]MH_I2C_Read... [20:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:18]Read from MH i2c: E2 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: E2 17 00 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: E2 17 00 C7 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C1 [20:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:19:18]wFMCommunicate OK [20:19:18]requested_item fd.num is exist - process it [20:19:18]SAM_PROTO_GetFieldsCounters [20:19:18]wFMCommunicate request_size=4 [20:19:18]MH_SAM_APDU [20:19:18]CAPDU: 80 13 00 00 [20:19:18]Write to MH i2c: E2 08 00 C8 38 80 13 00 00 00 00 00 00 7C [20:19:18]Write i2c OK [20:19:18]MH_I2C_Read... [20:19:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:18]Read from MH i2c: E2 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: E2 62 00 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: E2 62 00 C8 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D4 09 00 00 0E 04 04 00 16 00 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 2C [20:19:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D4 09 00 00 0E 04 04 00 16 00 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 [20:19:18]wFMCommunicate OK [20:19:18]SAM_PROTO_GetFieldsCounters done [20:19:18]requested_item shift.num is exist - process it [20:19:18]requested_item shift.opened is exist - process it [20:19:18]req_shift_opened [20:19:18]FM_GetShiftState [20:19:18]SAM_PROTO_GetShiftState [20:19:18]wFMCommunicate request_size=4 [20:19:18]MH_SAM_APDU [20:19:18]CAPDU: 80 13 01 00 [20:19:18]Write to MH i2c: E2 08 00 C9 38 80 13 01 00 00 00 00 00 7E [20:19:18]Write i2c OK [20:19:18]MH_I2C_Read... [20:19:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:18]Read from MH i2c: E2 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: E2 0E 00 [20:19:18]MH_I2C_Read... [20:19:18]Read from MH i2c: E2 0E 00 C9 38 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1C [20:19:18]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:19:18]wFMCommunicate OK [20:19:18]SAM_PROTO_GetShiftState done [20:19:18]FM_GetShiftState done [20:19:18]req_shift_opened done [20:19:18]requested_item shift.open_date is exist - process it [20:19:18]req_shift_open_date [20:19:18]req_shift_open_date done [20:19:18]produce_requested_data done [20:19:18]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2516,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:19:18]process_action_free close_receipt [20:19:18]json_value_free [20:19:18]json_value_free done [20:19:18]process_json_proto returns [20:19:18]Send response to host [20:19:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2516,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:19:18]free response buf [20:19:18]execute_script done [20:19:18]execute_script returns [20:19:18]free content buf [20:19:18]Sock 7.Close socket [20:19:18]Sock 7.Thread stoped [20:19:22]OFD Sender: No OFD packet to send [20:19:27]OFD Sender: No OFD packet to send [20:19:32]OFD Sender: No OFD packet to send [20:19:37]OFD Sender: No OFD packet to send [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:12]OFD Sender: No OFD packet to send [20:22:17]OFD Sender: No OFD packet to send [20:22:22]OFD Sender: No OFD packet to send [20:22:27]OFD Sender: No OFD packet to send [20:22:32]OFD Sender: No OFD packet to send [20:22:37]OFD Sender: No OFD packet to send [20:22:42]OFD Sender: No OFD packet to send [20:22:47]OFD Sender: No OFD packet to send [20:22:52]OFD Sender: No OFD packet to send [20:22:57]OFD Sender: No OFD packet to send [20:23:02]OFD Sender: No OFD packet to send [20:23:07]OFD Sender: No OFD packet to send [20:23:12]OFD Sender: No OFD packet to send [20:23:17]OFD Sender: No OFD packet to send [20:23:22]OFD Sender: No OFD packet to send [20:23:27]OFD Sender: No OFD packet to send [20:23:32]OFD Sender: No OFD packet to send [20:23:37]OFD Sender: No OFD packet to send [20:23:42]OFD Sender: No OFD packet to send [20:23:47]OFD Sender: No OFD packet to send [20:23:52]OFD Sender: No OFD packet to send [20:23:57]OFD Sender: No OFD packet to send [20:24:02]OFD Sender: No OFD packet to send [20:24:07]OFD Sender: No OFD packet to send [20:24:12]OFD Sender: No OFD packet to send [20:24:17]OFD Sender: No OFD packet to send [20:24:22]OFD Sender: No OFD packet to send [20:24:27]OFD Sender: No OFD packet to send [20:24:32]OFD Sender: No OFD packet to send [20:24:37]OFD Sender: No OFD packet to send [20:24:42]OFD Sender: No OFD packet to send [20:24:47]OFD Sender: No OFD packet to send [20:24:52]OFD Sender: No OFD packet to send [20:24:57]OFD Sender: No OFD packet to send [20:25:02]OFD Sender: No OFD packet to send [20:25:07]OFD Sender: No OFD packet to send [20:25:12]OFD Sender: No OFD packet to send [20:25:17]OFD Sender: No OFD packet to send [20:25:22]OFD Sender: No OFD packet to send [20:25:27]OFD Sender: No OFD packet to send [20:25:32]OFD Sender: No OFD packet to send [20:25:34]accept exits with 9 [20:25:34]New connection [20:25:34]New thread 3066707300 created [20:25:34]Thread 3066850660 joined [20:25:34]Waiting for new connection... [20:25:34] Sock 9.Parse request [20:25:34]Sock 9.Check first char [20:25:34]Sock 9.First char is OK [20:25:34]request: POST /json_proto HTTP/1.0 [20:25:34]Method: POST [20:25:34]URL: /json_proto [20:25:34]Method is POST - this is cgi request [20:25:34]url: /json_proto [20:25:34]query_string will be loaded in cgi processing [20:25:34]execute_cgi json_proto POST (null) [20:25:34]execute_cgi path=json_proto method=POST [20:25:34]POST find Content-Length [20:25:34]Host: 172.17.52.132:8080 [20:25:34]Content-Length: 574 [20:25:34]Content-Type: application/json [20:25:34] [20:25:34]POST finish read [20:25:34]Found Content-Length = 574 [20:25:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99905", "tax_sys" : 0, "items" : [ { "code": "48744713", "name": "LD Compact Purple Beat", "price" : 137.00, "quantity" : 1.000, "sum" : 137.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 137.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:34]execute_script... [20:25:34]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99905", "tax_sys" : 0, "items" : [ { "code": "48744713", "name": "LD Compact Purple Beat", "price" : 137.00, "quantity" : 1.000, "sum" : 137.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 137.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:34]POST & json_proto [20:25:34]process_json_proto [20:25:34]json parsed OK: [20:25:34]protocol is kg_v1.0 [20:25:34]action value=close_receipt [20:25:34]process_action close_receipt [20:25:34]cmd_close_receipt [20:25:34]MH_GetDate [20:25:34]Write to MH i2c: F0 00 00 CA 38 F1 [20:25:34]Write i2c OK [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: F0 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: F0 09 00 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: F0 09 00 CA 38 00 44 C4 12 67 5A BE F6 66 EF [20:25:34]GetLastDocTimeStamp 1729282760 [20:25:34]current date 1729283140 [20:25:34]FM_GetShiftState [20:25:34]SAM_PROTO_GetShiftState [20:25:34]wFMCommunicate request_size=4 [20:25:34]MH_SAM_APDU [20:25:34]CAPDU: 80 13 01 00 [20:25:34]Write to MH i2c: E2 08 00 CB 38 80 13 01 00 00 00 00 00 80 [20:25:34]Write i2c OK [20:25:34]MH_I2C_Read... [20:25:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:34]Read from MH i2c: E2 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: E2 0E 00 [20:25:34]MH_I2C_Read... [20:25:34]Read from MH i2c: E2 0E 00 CB 38 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 1E [20:25:34]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:25:34]wFMCommunicate OK [20:25:34]SAM_PROTO_GetShiftState done [20:25:34]FM_GetShiftState done [20:25:34]opened in 1729209717 [20:25:34]opened+sec_in_day 1729296117 [20:25:34]quantity*price = 13700 [20:25:34]sum+1 = 13701 [20:25:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 137.00 ÐСП 1% : 1.21 ÐДС 12% : 14.55 Ðаличными: 137.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 142 18.10.2024 20:25 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2517 ФПД: 86826003239182 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T202540&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2517&fm=86826003239182&tin=02508201610067®Number=0000000000207295&sum=13700 0 [20:25:35]StoreToDocumentArchive [20:25:35]shift 22 fd 2517 [20:25:35]save to /storage/0022/doc_00002517 [20:25:35]save last doc name /storage/0022/doc_00002517 to /storage/kkm_last_doc_name [20:25:35]save OK [20:25:35]Clear old archive folders... [20:25:35]ProcessDocumentItem done err = 0, tmpTLVsize=259 [20:25:35]tlvbuf is 01463950 [20:25:35]SAM_PROTO_ClearQueue [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 09 00 00 [20:25:35]Write to MH i2c: E2 08 00 D8 38 80 09 00 00 00 00 00 00 82 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 D8 38 00 90 00 84 [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]SAM_PROTO_ClearQueue done [20:25:35]KKMCreateOFDPacket [20:25:35]OFDProtocolAddRootSTLVToBuf [20:25:35]FM_MakeSignedData [20:25:35]FM_MakeSignedData [20:25:35]SAM_PROTO_SignData [20:25:35]wFMCommunicate request_size=4 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 01 02 [20:25:35]Write to MH i2c: E2 08 00 D9 38 80 0D 01 02 00 00 00 00 8A [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 D9 38 00 90 00 85 [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]wFMCommunicate request_size=255 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 02 02 FA 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 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 44 C4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D5 [20:25:35]Write to MH i2c: E2 02 01 DA 38 80 0D 02 02 FA 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 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 44 C4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D5 00 00 3C [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:35]Read from MH i2c: E2 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 [20:25:35]MH_I2C_Read... [20:25:35]Read from MH i2c: E2 03 00 DA 38 00 90 00 86 [20:25:35]RAPDU: 90 00 [20:25:35]wFMCommunicate OK [20:25:35]wFMCommunicate request_size=18 [20:25:35]MH_SAM_APDU [20:25:35]CAPDU: 80 0D 02 02 0D 09 00 00 35 04 06 00 4E F7 C1 14 91 0E [20:25:35]Write to MH i2c: E2 15 00 DB 38 80 0D 02 02 0D 00 09 00 00 35 04 06 00 4E F7 C1 14 91 0E 00 00 A8 [20:25:35]Write i2c OK [20:25:35]MH_I2C_Read... [20:25:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:36]Read from MH i2c: E2 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 03 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 03 00 DB 38 00 90 00 87 [20:25:36]RAPDU: 90 00 [20:25:36]wFMCommunicate OK [20:25:36]wFMCommunicate request_size=4 [20:25:36]MH_SAM_APDU [20:25:36]CAPDU: 80 0D 03 02 [20:25:36]Write to MH i2c: E2 08 00 DC 38 80 0D 03 02 00 00 00 00 8F [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:36]Read from MH i2c: E2 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 0B 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 0B 00 DC 38 00 A7 0B 36 73 E3 A0 E6 BC 90 00 10 [20:25:36]RAPDU: A7 0B 36 73 E3 A0 E6 BC 90 00 [20:25:36]wFMCommunicate OK [20:25:36]SAM_PROTO_SignData done [20:25:36]FM_MakeSignedData done [20:25:36]CreateOFDProtocolMessage [20:25:36]wFMCommunicate request_size=4 [20:25:36]MH_SAM_APDU [20:25:36]CAPDU: 80 11 00 00 [20:25:36]Write to MH i2c: E2 08 00 DD 38 80 11 00 00 00 00 00 00 8F [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:36]Read from MH i2c: E2 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 17 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: E2 17 00 DD 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 D7 [20:25:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:25:36]wFMCommunicate OK [20:25:36]CreateOFDProtocolMessage done [20:25:36]OFDSenderStorePacket 2517 [20:25:36]StoreOFDPacket docnum=2517 [20:25:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 17 01 00 00 7D 6E 0F 01 AC 98 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 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 44 C4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D5 09 00 00 35 04 06 00 4E F7 C1 14 91 0E A7 0B 36 73 E3 A0 E6 BC [20:25:36]CheckFolder [20:25:36]dirname=/storage/ofd_packets [20:25:36]CheckFolder done [20:25:36]ProducePacketName [20:25:36]name=ofd_packets/00002517 [20:25:36]NVStorageSaveData ofd_packets/00002517 [20:25:36]File name is /storage/ofd_packets/00002517 [20:25:36]Write 309 bytes [20:25:36]NVStorageSaveData done [20:25:36]OFDSenderStorePacket done [20:25:36]KKMCreateOFDPacket done [20:25:36]NVStorageSaveData kkm_last_timestamp [20:25:36]File name is /storage/kkm_last_timestamp [20:25:36]Write 4 bytes [20:25:36]NVStorageSaveData done [20:25:36]ExternCall_PrintAddStr [20:25:36]wPrintStart [20:25:36]Write to MH i2c: 01 00 00 DE 38 16 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 DE 38 00 00 00 00 00 FF 0F 2B [20:25:36]RasterBufferAndPrint [20:25:36]line Счет N : (3)99905 [20:25:36]line ИÐÐ: 02508201610067 [20:25:36]line Контрольно-КаÑÑовый Чек [20:25:36]line ПРОДÐЖР[20:25:36]line Товар: 48744713 [20:25:36]line LD Compact Purple Beat [20:25:36]line 1.000 * 137.00 [20:25:36]line = 137.00 [20:25:36]line ÐДС 12% ÐСП 1% [20:25:36]line > о реализуемом товаре [20:25:36]line ИТОГО: 137.00 [20:25:36]line ÐСП 1% : 1.21 [20:25:36]line ÐДС 12% : 14.55 [20:25:36]line Ðаличными: 137.00 [20:25:36]line Безнал.: 0.00 [20:25:36]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:25:36]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:25:36]line СÐО: Общий режим [20:25:36]line Чек 142 18.10.2024 20:25 [20:25:36]line Смена: 22 ФФД: 1.0 [20:25:36]line ЗÐМ: 0300000191 [20:25:36]line РÐМ: 0000000000207295 [20:25:36]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:25:36]line ФМ: 0000000002342820 [20:25:36]line ФД: 2517 [20:25:36]line ФПД: 86826003239182 [20:25:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T202540&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2517&fm=86826003239182&tin=02508201610067®Number=0000000000207295&sum=13700 [20:25:36]line 0 [20:25:36]OFD Sender: Processing packet 2517 [packets to send 1, broken 0] [20:25:36]ProducePacketName [20:25:36]name=ofd_packets/00002517 [20:25:36]OFD Sender: To server: ‡•öpG, [20:25:36]CommunicateWithHost lk.salyk.kg:30040 [20:25:36]ConnectInit lk.salyk.kg [20:25:36]written 0, free lines is 4095 [20:25:36]Connected sock=10 [20:25:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 17 01 00 00 7D 6E 0F 01 AC 98 5A 03 01 00 03 00 03 01 1E 04 01 00 01 23 04 55 00 8A 04 08 00 34 38 37 34 34 37 31 33 06 04 16 00 4C 44 20 43 6F 6D 70 61 63 74 20 50 75 72 70 6C 65 20 42 65 61 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 35 00 00 00 00 13 04 06 00 84 35 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 35 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF 05 00 00 00 00 07 04 06 00 84 35 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 44 C4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D5 09 00 00 35 04 06 00 4E F7 C1 14 91 0E A7 0B 36 73 E3 A0 E6 BC [20:25:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 3D 96 47 00 16 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D5 09 00 00 F4 03 04 00 A7 6F 12 67 B6 04 01 00 00 8B 83 44 AC 49 3C AC A6 [20:25:36]CommunicateWithHost err = 0 [20:25:36]CheckOFDResponse [20:25:36]1017 (14) - 77093643461234 [20:25:36]1041 (16) - 0000000002342820 [20:25:36]1040 (4) - 2517 [20:25:36]1012 (4) - 18.10.2024 14:24 [20:25:36]1206 (1) - 0 [20:25:36]OFD Sender: Remove packet 2517 [20:25:36]ProducePacketName [20:25:36]name=ofd_packets/00002517 [20:25:36]NVStorageDeleteData [20:25:36]Write to MH i2c: 01 00 00 06 39 3F [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: 01 07 00 06 39 00 00 00 00 00 D5 0C 27 [20:25:36]RasterBufferAndPrint [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]line [20:25:36]written 0, free lines is 3291 [20:25:36]MH_Cut [20:25:36]Write to MH i2c: D1 01 00 0D 39 01 18 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 01 00 [20:25:36]MH_I2C_Read... [20:25:36]Read from MH i2c: D1 01 00 0D 39 00 17 [20:25:36]Write to MH i2c: 01 00 00 0E 39 47 [20:25:36]Write i2c OK [20:25:36]MH_I2C_Read... [20:25:37]OFD Sender: No OFD packet to send [20:25:37]*** Cut start [20:25:37]*** Partial cut [20:25:37]*** CUTSNS_PIN = 1 [20:25:37]*** CUTSNS_PIN = 0 [20:25:38]*** Brake cut motor [20:25:38]Read from MH i2c: 01 [20:25:38]MH_I2C_Read... [20:25:38]*** Stop cut motor [20:25:38]*** Cut end [20:25:38]Read from MH i2c: 01 07 00 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: 01 07 00 0E 39 00 00 00 00 00 FF 0F 5C [20:25:38]process_action close_receipt done [20:25:38]requested_data is exist [20:25:38]produce_requested_data [20:25:38]requested_item fm.sn is exist - process it [20:25:38]wFMCommunicate request_size=4 [20:25:38]MH_SAM_APDU [20:25:38]CAPDU: 80 11 00 00 [20:25:38]Write to MH i2c: E2 08 00 0F 39 80 11 00 00 00 00 00 00 C2 [20:25:38]Write i2c OK [20:25:38]MH_I2C_Read... [20:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:38]Read from MH i2c: E2 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 17 00 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 17 00 0F 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 0A [20:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:25:38]wFMCommunicate OK [20:25:38]requested_item fd.num is exist - process it [20:25:38]SAM_PROTO_GetFieldsCounters [20:25:38]wFMCommunicate request_size=4 [20:25:38]MH_SAM_APDU [20:25:38]CAPDU: 80 13 00 00 [20:25:38]Write to MH i2c: E2 08 00 10 39 80 13 00 00 00 00 00 00 C5 [20:25:38]Write i2c OK [20:25:38]MH_I2C_Read... [20:25:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:38]Read from MH i2c: E2 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 62 00 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 62 00 10 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D5 09 00 00 0E 04 04 00 16 00 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 79 [20:25:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D5 09 00 00 0E 04 04 00 16 00 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 [20:25:38]wFMCommunicate OK [20:25:38]SAM_PROTO_GetFieldsCounters done [20:25:38]requested_item shift.num is exist - process it [20:25:38]requested_item shift.opened is exist - process it [20:25:38]req_shift_opened [20:25:38]FM_GetShiftState [20:25:38]SAM_PROTO_GetShiftState [20:25:38]wFMCommunicate request_size=4 [20:25:38]MH_SAM_APDU [20:25:38]CAPDU: 80 13 01 00 [20:25:38]Write to MH i2c: E2 08 00 11 39 80 13 01 00 00 00 00 00 C7 [20:25:38]Write i2c OK [20:25:38]MH_I2C_Read... [20:25:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:38]Read from MH i2c: E2 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 0E 00 [20:25:38]MH_I2C_Read... [20:25:38]Read from MH i2c: E2 0E 00 11 39 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 65 [20:25:38]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:25:38]wFMCommunicate OK [20:25:38]SAM_PROTO_GetShiftState done [20:25:38]FM_GetShiftState done [20:25:38]req_shift_opened done [20:25:38]requested_item shift.open_date is exist - process it [20:25:38]req_shift_open_date [20:25:38]req_shift_open_date done [20:25:38]produce_requested_data done [20:25:38]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2517,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:25:38]process_action_free close_receipt [20:25:38]json_value_free [20:25:38]json_value_free done [20:25:38]process_json_proto returns [20:25:38]Send response to host [20:25:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2517,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:25:38]free response buf [20:25:38]execute_script done [20:25:38]execute_script returns [20:25:38]free content buf [20:25:38]Sock 9.Close socket [20:25:38]Sock 9.Thread stoped [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:57]OFD Sender: No OFD packet to send [20:27:02]OFD Sender: No OFD packet to send [20:27:07]OFD Sender: No OFD packet to send [20:27:12]OFD Sender: No OFD packet to send [20:27:17]OFD Sender: No OFD packet to send [20:27:22]OFD Sender: No OFD packet to send [20:27:27]OFD Sender: No OFD packet to send [20:27:32]OFD Sender: No OFD packet to send [20:27:37]OFD Sender: No OFD packet to send [20:27:42]OFD Sender: No OFD packet to send [20:27:47]OFD Sender: No OFD packet to send [20:27:52]OFD Sender: No OFD packet to send [20:27:57]OFD Sender: No OFD packet to send [20:28:02]OFD Sender: No OFD packet to send [20:28:07]OFD Sender: No OFD packet to send [20:28:12]OFD Sender: No OFD packet to send [20:28:17]OFD Sender: No OFD packet to send [20:28:22]OFD Sender: No OFD packet to send [20:28:27]OFD Sender: No OFD packet to send [20:28:32]OFD Sender: No OFD packet to send [20:28:37]OFD Sender: No OFD packet to send [20:28:42]OFD Sender: No OFD packet to send [20:28:47]OFD Sender: No OFD packet to send [20:28:52]OFD Sender: No OFD packet to send [20:28:57]OFD Sender: No OFD packet to send [20:29:02]OFD Sender: No OFD packet to send [20:29:07]OFD Sender: No OFD packet to send [20:29:12]OFD Sender: No OFD packet to send [20:29:16]accept exits with 7 [20:29:16]New connection [20:29:16]New thread 3066850660 created [20:29:16]Thread 3066707300 joined [20:29:16]Waiting for new connection... [20:29:16] Sock 7.Parse request [20:29:16]Sock 7.Check first char [20:29:16]Sock 7.First char is OK [20:29:16]request: POST /json_proto HTTP/1.0 [20:29:16]Method: POST [20:29:16]URL: /json_proto [20:29:16]Method is POST - this is cgi request [20:29:16]url: /json_proto [20:29:16]query_string will be loaded in cgi processing [20:29:16]execute_cgi json_proto POST (null) [20:29:16]execute_cgi path=json_proto method=POST [20:29:16]POST find Content-Length [20:29:16]Host: 172.17.52.132:8080 [20:29:16]Content-Length: 686 [20:29:16]Content-Type: application/json [20:29:16] [20:29:16]POST finish read [20:29:16]Found Content-Length = 686 [20:29:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99906", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:16]execute_script... [20:29:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99906", "tax_sys" : 0, "items" : [ { "code": "4700003010483", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Let`s Go! \u0441/\u0441 \u044F\u0431\u043B\u043E\u043A\u043E \u041F\u042D\u0422 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:29:16]POST & json_proto [20:29:16]process_json_proto [20:29:16]json parsed OK: [20:29:16]protocol is kg_v1.0 [20:29:16]action value=close_receipt [20:29:16]process_action close_receipt [20:29:16]cmd_close_receipt [20:29:16]MH_GetDate [20:29:16]Write to MH i2c: F0 00 00 12 39 3A [20:29:16]Write i2c OK [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: F0 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: F0 09 00 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: F0 09 00 12 39 00 22 C5 12 67 5A BE F6 66 17 [20:29:16]GetLastDocTimeStamp 1729283140 [20:29:16]current date 1729283362 [20:29:16]FM_GetShiftState [20:29:16]SAM_PROTO_GetShiftState [20:29:16]wFMCommunicate request_size=4 [20:29:16]MH_SAM_APDU [20:29:16]CAPDU: 80 13 01 00 [20:29:16]Write to MH i2c: E2 08 00 13 39 80 13 01 00 00 00 00 00 C9 [20:29:16]Write i2c OK [20:29:16]MH_I2C_Read... [20:29:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:16]Read from MH i2c: E2 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 0E 00 [20:29:16]MH_I2C_Read... [20:29:16]Read from MH i2c: E2 0E 00 13 39 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 67 [20:29:16]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:29:16]wFMCommunicate OK [20:29:16]SAM_PROTO_GetShiftState done [20:29:16]FM_GetShiftState done [20:29:16]opened in 1729209717 [20:29:16]opened+sec_in_day 1729296117 [20:29:16]quantity*price = 4000 [20:29:16]sum+1 = 4001 [20:29:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 ÐСП 1% : 0.35 ÐДС 12% : 4.25 Ðаличными: 40.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 143 18.10.2024 20:29 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2518 ФПД: 183723960834503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T202922&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2518&fm=183723960834503&tin=02508201610067®Number=0000000000207295&sum=4000 0 [20:29:17]StoreToDocumentArchive [20:29:17]shift 22 fd 2518 [20:29:17]save to /storage/0022/doc_00002518 [20:29:17]save last doc name /storage/0022/doc_00002518 to /storage/kkm_last_doc_name [20:29:17]save OK [20:29:17]Clear old archive folders... [20:29:17]ProcessDocumentItem done err = 0, tmpTLVsize=298 [20:29:17]tlvbuf is 0135ACB0 [20:29:17]SAM_PROTO_ClearQueue [20:29:17]wFMCommunicate request_size=4 [20:29:17]MH_SAM_APDU [20:29:17]CAPDU: 80 09 00 00 [20:29:17]Write to MH i2c: E2 08 00 20 39 80 09 00 00 00 00 00 00 CB [20:29:17]Write i2c OK [20:29:17]MH_I2C_Read... [20:29:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:29:17]Read from MH i2c: E2 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 20 39 00 90 00 CD [20:29:17]RAPDU: 90 00 [20:29:17]wFMCommunicate OK [20:29:17]SAM_PROTO_ClearQueue done [20:29:17]KKMCreateOFDPacket [20:29:17]OFDProtocolAddRootSTLVToBuf [20:29:17]FM_MakeSignedData [20:29:17]FM_MakeSignedData [20:29:17]SAM_PROTO_SignData [20:29:17]wFMCommunicate request_size=4 [20:29:17]MH_SAM_APDU [20:29:17]CAPDU: 80 0D 01 02 [20:29:17]Write to MH i2c: E2 08 00 21 39 80 0D 01 02 00 00 00 00 D3 [20:29:17]Write i2c OK [20:29:17]MH_I2C_Read... [20:29:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:29:17]Read from MH i2c: E2 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 21 39 00 90 00 CE [20:29:17]RAPDU: 90 00 [20:29:17]wFMCommunicate OK [20:29:17]wFMCommunicate request_size=255 [20:29:17]MH_SAM_APDU [20:29:17]CAPDU: 80 0D 02 02 FA 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 22 C5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 [20:29:17]Write to MH i2c: E2 02 01 22 39 80 0D 02 02 FA 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 22 C5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 00 00 0C [20:29:17]Write i2c OK [20:29:17]MH_I2C_Read... [20:29:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:17]Read from MH i2c: E2 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 [20:29:17]MH_I2C_Read... [20:29:17]Read from MH i2c: E2 03 00 22 39 00 90 00 CF [20:29:17]RAPDU: 90 00 [20:29:17]wFMCommunicate OK [20:29:17]wFMCommunicate request_size=57 [20:29:17]MH_SAM_APDU [20:29:17]CAPDU: 80 0D 02 02 34 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D6 09 00 00 35 04 06 00 A7 18 91 6C 19 C7 [20:29:17]Write to MH i2c: E2 3C 00 23 39 80 0D 02 02 34 00 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D6 09 00 00 35 04 06 00 A7 18 91 6C 19 C7 00 00 03 [20:29:17]Write i2c OK [20:29:17]MH_I2C_Read... [20:29:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:29:18]Read from MH i2c: E2 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 03 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 03 00 23 39 00 90 00 D0 [20:29:18]RAPDU: 90 00 [20:29:18]wFMCommunicate OK [20:29:18]wFMCommunicate request_size=4 [20:29:18]MH_SAM_APDU [20:29:18]CAPDU: 80 0D 03 02 [20:29:18]Write to MH i2c: E2 08 00 24 39 80 0D 03 02 00 00 00 00 D8 [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:29:18]Read from MH i2c: E2 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 0B 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 0B 00 24 39 00 AE 13 B3 36 F8 30 D0 5B 90 00 D6 [20:29:18]RAPDU: AE 13 B3 36 F8 30 D0 5B 90 00 [20:29:18]wFMCommunicate OK [20:29:18]SAM_PROTO_SignData done [20:29:18]FM_MakeSignedData done [20:29:18]CreateOFDProtocolMessage [20:29:18]wFMCommunicate request_size=4 [20:29:18]MH_SAM_APDU [20:29:18]CAPDU: 80 11 00 00 [20:29:18]Write to MH i2c: E2 08 00 25 39 80 11 00 00 00 00 00 00 D8 [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:18]Read from MH i2c: E2 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 17 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: E2 17 00 25 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 20 [20:29:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:29:18]wFMCommunicate OK [20:29:18]CreateOFDProtocolMessage done [20:29:18]OFDSenderStorePacket 2518 [20:29:18]StoreOFDPacket docnum=2518 [20:29:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3E 01 00 00 8A A7 36 01 E9 E5 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 22 C5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D6 09 00 00 35 04 06 00 A7 18 91 6C 19 C7 AE 13 B3 36 F8 30 D0 5B [20:29:18]CheckFolder [20:29:18]dirname=/storage/ofd_packets [20:29:18]CheckFolder done [20:29:18]ProducePacketName [20:29:18]name=ofd_packets/00002518 [20:29:18]NVStorageSaveData ofd_packets/00002518 [20:29:18]File name is /storage/ofd_packets/00002518 [20:29:18]Write 348 bytes [20:29:18]NVStorageSaveData done [20:29:18]OFDSenderStorePacket done [20:29:18]KKMCreateOFDPacket done [20:29:18]NVStorageSaveData kkm_last_timestamp [20:29:18]File name is /storage/kkm_last_timestamp [20:29:18]OFD Sender: Processing packet 2518 [packets to send 1, broken 0] [20:29:18]ProducePacketName [20:29:18]name=ofd_packets/00002518 [20:29:18]OFD Sender: To server: ‡•öpG, [20:29:18]CommunicateWithHost lk.salyk.kg:30040 [20:29:18]ConnectInit lk.salyk.kg [20:29:18]Write 4 bytes [20:29:18]NVStorageSaveData done [20:29:18]ExternCall_PrintAddStr [20:29:18]wPrintStart [20:29:18]Write to MH i2c: 01 00 00 26 39 5F [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 07 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 07 00 26 39 00 00 00 00 00 FF 0F 74 [20:29:18]RasterBufferAndPrint [20:29:18]line Счет N : (3)99906 [20:29:18]line ИÐÐ: 02508201610067 [20:29:18]line Контрольно-КаÑÑовый Чек [20:29:18]line ПРОДÐЖР[20:29:18]line Товар: 4700003010483 [20:29:18]line Ðапиток Let`s Go! Ñ/Ñ Ñблоко ПЭТ 0,5л [20:29:18]line 1.000 * 40.00 [20:29:18]line = 40.00 [20:29:18]line ÐДС 12% ÐСП 1% [20:29:18]line > о реализуемом товаре [20:29:18]line ИТОГО: 40.00 [20:29:18]line ÐСП 1% : 0.35 [20:29:18]line ÐДС 12% : 4.25 [20:29:18]line Ðаличными: 40.00 [20:29:18]line Безнал.: 0.00 [20:29:18]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:29:18]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:29:18]line СÐО: Общий режим [20:29:18]line Чек 143 18.10.2024 20:29 [20:29:18]line Смена: 22 ФФД: 1.0 [20:29:18]line ЗÐМ: 0300000191 [20:29:18]line РÐМ: 0000000000207295 [20:29:18]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:29:18]line ФМ: 0000000002342820 [20:29:18]line ФД: 2518 [20:29:18]line ФПД: 183723960834503 [20:29:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T202922&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2518&fm=183723960834503&tin=02508201610067®Number=0000000000207295&sum=4000 [20:29:18]line 0 [20:29:18]Connected sock=11 [20:29:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 3E 01 00 00 8A A7 36 01 E9 E5 5A 03 01 00 03 00 2A 01 1E 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 34 38 33 06 04 38 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 65 74 60 73 20 47 6F 21 20 D1 81 2F D1 81 20 D1 8F D0 B1 D0 BB D0 BE D0 BA D0 BE 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 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 22 C5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D6 09 00 00 35 04 06 00 A7 18 91 6C 19 C7 AE 13 B3 36 F8 30 D0 5B [20:29:18]written 0, free lines is 4095 [20:29:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 34 95 47 00 9F 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 32 33 34 32 38 32 30 10 04 04 00 D6 09 00 00 F4 03 04 00 85 70 12 67 B6 04 01 00 00 6A DE 37 67 C9 56 7A FF [20:29:18]CommunicateWithHost err = 0 [20:29:18]CheckOFDResponse [20:29:18]1017 (14) - 77093643461234 [20:29:18]1041 (16) - 0000000002342820 [20:29:18]1040 (4) - 2518 [20:29:18]1012 (4) - 18.10.2024 14:28 [20:29:18]1206 (1) - 0 [20:29:18]OFD Sender: Remove packet 2518 [20:29:18]ProducePacketName [20:29:18]name=ofd_packets/00002518 [20:29:18]NVStorageDeleteData [20:29:18]Write to MH i2c: 01 00 00 4F 39 88 [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 07 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: 01 07 00 4F 39 00 00 00 00 00 C7 0C 62 [20:29:18]RasterBufferAndPrint [20:29:18]line [20:29:18]line [20:29:18]line [20:29:18]line [20:29:18]line [20:29:18]written 0, free lines is 3277 [20:29:18]MH_Cut [20:29:18]Write to MH i2c: D1 01 00 56 39 01 61 [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: D1 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: D1 01 00 [20:29:18]MH_I2C_Read... [20:29:18]Read from MH i2c: D1 01 00 56 39 00 60 [20:29:18]Write to MH i2c: 01 00 00 57 39 90 [20:29:18]Write i2c OK [20:29:18]MH_I2C_Read... [20:29:19]OFD Sender: No OFD packet to send [20:29:19]*** Cut start [20:29:19]*** Partial cut [20:29:19]*** CUTSNS_PIN = 1 [20:29:19]*** CUTSNS_PIN = 0 [20:29:20]*** Brake cut motor [20:29:20]Read from MH i2c: 01 [20:29:20]MH_I2C_Read... [20:29:20]*** Stop cut motor [20:29:20]*** Cut end [20:29:20]Read from MH i2c: 01 07 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: 01 07 00 57 39 00 00 00 00 00 FF 0F A5 [20:29:20]process_action close_receipt done [20:29:20]requested_data is exist [20:29:20]produce_requested_data [20:29:20]requested_item fm.sn is exist - process it [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 11 00 00 [20:29:20]Write to MH i2c: E2 08 00 58 39 80 11 00 00 00 00 00 00 0B [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:29:20]Read from MH i2c: E2 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 17 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 17 00 58 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 53 [20:29:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:29:20]wFMCommunicate OK [20:29:20]requested_item fd.num is exist - process it [20:29:20]SAM_PROTO_GetFieldsCounters [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 13 00 00 [20:29:20]Write to MH i2c: E2 08 00 59 39 80 13 00 00 00 00 00 00 0E [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:29:20]Read from MH i2c: E2 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 62 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 62 00 59 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D6 09 00 00 0E 04 04 00 16 00 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 C6 [20:29:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D6 09 00 00 0E 04 04 00 16 00 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 [20:29:20]wFMCommunicate OK [20:29:20]SAM_PROTO_GetFieldsCounters done [20:29:20]requested_item shift.num is exist - process it [20:29:20]requested_item shift.opened is exist - process it [20:29:20]req_shift_opened [20:29:20]FM_GetShiftState [20:29:20]SAM_PROTO_GetShiftState [20:29:20]wFMCommunicate request_size=4 [20:29:20]MH_SAM_APDU [20:29:20]CAPDU: 80 13 01 00 [20:29:20]Write to MH i2c: E2 08 00 5A 39 80 13 01 00 00 00 00 00 10 [20:29:20]Write i2c OK [20:29:20]MH_I2C_Read... [20:29:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:29:20]Read from MH i2c: E2 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 0E 00 [20:29:20]MH_I2C_Read... [20:29:20]Read from MH i2c: E2 0E 00 5A 39 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 AE [20:29:20]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:29:20]wFMCommunicate OK [20:29:20]SAM_PROTO_GetShiftState done [20:29:20]FM_GetShiftState done [20:29:20]req_shift_opened done [20:29:20]requested_item shift.open_date is exist - process it [20:29:20]req_shift_open_date [20:29:20]req_shift_open_date done [20:29:20]produce_requested_data done [20:29:20]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2518,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:29:20]process_action_free close_receipt [20:29:20]json_value_free [20:29:20]json_value_free done [20:29:20]process_json_proto returns [20:29:20]Send response to host [20:29:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2518,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:29:20]free response buf [20:29:20]execute_script done [20:29:20]execute_script returns [20:29:20]free content buf [20:29:20]Sock 7.Close socket [20:29:20]Sock 7.Thread stoped [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:34]OFD Sender: No OFD packet to send [20:36:39]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:31]accept exits with 9 [20:39:31]New connection [20:39:31]New thread 3066707300 created [20:39:31]Thread 3066850660 joined [20:39:31]Waiting for new connection... [20:39:31] Sock 9.Parse request [20:39:31]Sock 9.Check first char [20:39:31]Sock 9.First char is OK [20:39:31]request: POST /json_proto HTTP/1.0 [20:39:31]Method: POST [20:39:31]URL: /json_proto [20:39:31]Method is POST - this is cgi request [20:39:31]url: /json_proto [20:39:31]query_string will be loaded in cgi processing [20:39:31]execute_cgi json_proto POST (null) [20:39:31]execute_cgi path=json_proto method=POST [20:39:31]POST find Content-Length [20:39:31]Host: 172.17.52.132:8080 [20:39:31]Content-Length: 215 [20:39:31]Content-Type: application/json [20:39:31] [20:39:31]POST finish read [20:39:31]Found Content-Length = 215 [20:39:31]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" ] } } [20:39:31]execute_script... [20:39:31]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" ] } } [20:39:31]POST & json_proto [20:39:31]process_json_proto [20:39:31]json parsed OK: [20:39:31]protocol is kg_v1.0 [20:39:31]action value=get_value [20:39:31]process_action get_value [20:39:31]cmd_get_value [20:39:31]process_action get_value done [20:39:31]requested_data is exist [20:39:31]produce_requested_data [20:39:31]requested_item kkm.sn is exist - process it [20:39:31]requested_item kkm.ver is exist - process it [20:39:31]requested_item fm.sn is exist - process it [20:39:31]wFMCommunicate request_size=4 [20:39:31]MH_SAM_APDU [20:39:31]CAPDU: 80 11 00 00 [20:39:31]Write to MH i2c: E2 08 00 5B 39 80 11 00 00 00 00 00 00 0E [20:39:31]Write i2c OK [20:39:31]MH_I2C_Read... [20:39:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:31]Read from MH i2c: E2 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 17 00 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 17 00 5B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 56 [20:39:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:39:31]wFMCommunicate OK [20:39:31]requested_item fd.num is exist - process it [20:39:31]SAM_PROTO_GetFieldsCounters [20:39:31]wFMCommunicate request_size=4 [20:39:31]MH_SAM_APDU [20:39:31]CAPDU: 80 13 00 00 [20:39:31]Write to MH i2c: E2 08 00 5C 39 80 13 00 00 00 00 00 00 11 [20:39:31]Write i2c OK [20:39:31]MH_I2C_Read... [20:39:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:31]Read from MH i2c: E2 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 62 00 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 62 00 5C 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D6 09 00 00 0E 04 04 00 16 00 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 C9 [20:39:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D6 09 00 00 0E 04 04 00 16 00 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 [20:39:31]wFMCommunicate OK [20:39:31]SAM_PROTO_GetFieldsCounters done [20:39:31]requested_item shift.num is exist - process it [20:39:31]requested_item shift.opened is exist - process it [20:39:31]req_shift_opened [20:39:31]FM_GetShiftState [20:39:31]SAM_PROTO_GetShiftState [20:39:31]wFMCommunicate request_size=4 [20:39:31]MH_SAM_APDU [20:39:31]CAPDU: 80 13 01 00 [20:39:31]Write to MH i2c: E2 08 00 5D 39 80 13 01 00 00 00 00 00 13 [20:39:31]Write i2c OK [20:39:31]MH_I2C_Read... [20:39:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:31]Read from MH i2c: E2 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 0E 00 [20:39:31]MH_I2C_Read... [20:39:31]Read from MH i2c: E2 0E 00 5D 39 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B1 [20:39:31]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:39:31]wFMCommunicate OK [20:39:31]SAM_PROTO_GetShiftState done [20:39:31]FM_GetShiftState done [20:39:31]req_shift_opened done [20:39:31]requested_item shift.open_date is exist - process it [20:39:31]req_shift_open_date [20:39:31]req_shift_open_date done [20:39:31]produce_requested_data done [20:39:31]produce_requested_data return {"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2518,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:39:31]process_action_free get_value [20:39:31]json_value_free [20:39:31]json_value_free done [20:39:31]process_json_proto returns [20:39:31]Send response to host [20:39:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000191","kkm.ver":"v1.0","fm.sn":"0000000002342820","fd.num":2518,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:39:31]free response buf [20:39:31]execute_script done [20:39:31]execute_script returns [20:39:31]free content buf [20:39:31]Sock 9.Close socket [20:39:31]Sock 9.Thread stoped [20:39:31]accept exits with 7 [20:39:31]New connection [20:39:31]New thread 3066850660 created [20:39:31]Thread 3066707300 joined [20:39:31]Waiting for new connection... [20:39:31] Sock 7.Parse request [20:39:31]Sock 7.Check first char [20:39:31]Sock 7.First char is OK [20:39:31]request: POST /json_proto HTTP/1.0 [20:39:31]Method: POST [20:39:31]URL: /json_proto [20:39:31]Method is POST - this is cgi request [20:39:31]url: /json_proto [20:39:31]query_string will be loaded in cgi processing [20:39:31]execute_cgi json_proto POST (null) [20:39:31]execute_cgi path=json_proto method=POST [20:39:31]POST find Content-Length [20:39:31]Host: 172.17.52.132:8080 [20:39:31]Content-Length: 331 [20:39:31]Content-Type: application/json [20:39:31] [20:39:31]POST finish read [20:39:31]Found Content-Length = 331 [20:39:31]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" ] } } [20:39:31]execute_script... [20:39:32]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" ] } } [20:39:32]POST & json_proto [20:39:32]process_json_proto [20:39:32]json parsed OK: [20:39:32]protocol is kg_v1.0 [20:39:32]action value=get_value [20:39:32]process_action get_value [20:39:32]cmd_get_value [20:39:32]process_action get_value done [20:39:32]requested_data is exist [20:39:32]produce_requested_data [20:39:32]requested_item fm.sale.total is exist - process it [20:39:32]SAM_PROTO_GetFMData [20:39:32]wFMCommunicate request_size=4 [20:39:32]MH_SAM_APDU [20:39:32]CAPDU: 80 13 03 00 [20:39:32]Write to MH i2c: E2 08 00 5E 39 80 13 03 00 00 00 00 00 16 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:39:32]Read from MH i2c: E2 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 FD 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 FD 00 5E 39 00 BE 04 85 04 BA 04 6E 04 04 00 AA 09 00 00 69 04 9F 00 6F 04 04 00 A2 09 00 00 B1 04 04 00 4F 33 DC 04 70 04 04 00 A0 CB 9F 03 72 04 04 00 AF 67 3C 01 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 BD 22 84 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 F8 01 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 C9 [20:39:32]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 AA 09 00 00 69 04 9F 00 6F 04 04 00 A2 09 00 00 B1 04 04 00 4F 33 DC 04 70 04 04 00 A0 CB 9F 03 72 04 04 00 AF 67 3C 01 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 BD 22 84 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 F8 01 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [20:39:32]wFMCommunicate OK [20:39:32]wFMCommunicate request_size=4 [20:39:32]MH_SAM_APDU [20:39:32]CAPDU: 80 17 00 00 [20:39:32]Write to MH i2c: E2 08 00 5F 39 80 17 00 00 00 00 00 00 18 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:32]Read from MH i2c: E2 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 FD 00 [20:39:32]MH_I2C_Read... [20:39:32]Read from MH i2c: E2 FD 00 5F 39 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 2D [20:39:32]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:39:32]wFMCommunicate OK [20:39:32]wFMCommunicate request_size=4 [20:39:32]MH_SAM_APDU [20:39:32]CAPDU: 80 17 00 00 [20:39:32]Write to MH i2c: E2 08 00 60 39 80 17 00 00 00 00 00 00 19 [20:39:32]Write i2c OK [20:39:32]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 FD 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 FD 00 60 39 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 4B [20:39:33]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [20:39:33]wFMCommunicate OK [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 17 00 00 [20:39:33]Write to MH i2c: E2 08 00 61 39 80 17 00 00 00 00 00 00 1A [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 FD 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 FD 00 61 39 00 04 F7 03 00 00 EF 03 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 90 00 95 [20:39:33]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [20:39:33]wFMCommunicate OK [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 17 00 00 [20:39:33]Write to MH i2c: E2 08 00 62 39 80 17 00 00 00 00 00 00 1B [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [20:39:33]Read from MH i2c: E2 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 DB 00 [20:39:33]MH_I2C_Read... [20:39:33]Read from MH i2c: E2 DB 00 62 39 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 FD [20:39:33]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:39:33]wFMCommunicate OK [20:39:33]SAM_PROTO_GetFMData done [20:39:33]requested_item fm.sale_refund.total is exist - process it [20:39:33]requested_item fm.buy.total is exist - process it [20:39:33]requested_item shift.sale.total is exist - process it [20:39:33]SAM_PROTO_GetShiftData [20:39:33]wFMCommunicate request_size=4 [20:39:33]MH_SAM_APDU [20:39:33]CAPDU: 80 13 02 00 [20:39:33]Write to MH i2c: E2 08 00 63 39 80 13 02 00 00 00 00 00 1A [20:39:33]Write i2c OK [20:39:33]MH_I2C_Read... [20:39:34]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:39:34]Read from MH i2c: E2 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: E2 FD 00 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: E2 FD 00 63 39 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 90 E8 56 70 04 03 00 80 27 3A 72 04 03 00 10 C1 1C 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 F2 3A 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DC C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 6A [20:39:34]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 90 E8 56 70 04 03 00 80 27 3A 72 04 03 00 10 C1 1C 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 F2 3A 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DC C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [20:39:34]wFMCommunicate OK [20:39:34]wFMCommunicate request_size=4 [20:39:34]MH_SAM_APDU [20:39:34]CAPDU: 80 17 00 00 [20:39:34]Write to MH i2c: E2 08 00 64 39 80 17 00 00 00 00 00 00 1D [20:39:34]Write i2c OK [20:39:34]MH_I2C_Read... [20:39:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:34]Read from MH i2c: E2 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: E2 FD 00 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: E2 FD 00 64 39 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 3F [20:39:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [20:39:34]wFMCommunicate OK [20:39:34]wFMCommunicate request_size=4 [20:39:34]MH_SAM_APDU [20:39:34]CAPDU: 80 17 00 00 [20:39:34]Write to MH i2c: E2 08 00 65 39 80 17 00 00 00 00 00 00 1E [20:39:34]Write i2c OK [20:39:34]MH_I2C_Read... [20:39:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:34]Read from MH i2c: E2 [20:39:34]MH_I2C_Read... [20:39:34]Read from MH i2c: E2 FD 00 [20:39:34]MH_I2C_Read... [20:39:34]OFD Sender: No OFD packet to send [20:39:34]Read from MH i2c: E2 FD 00 65 39 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 D5 [20:39:34]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [20:39:34]wFMCommunicate OK [20:39:34]wFMCommunicate request_size=4 [20:39:34]MH_SAM_APDU [20:39:34]CAPDU: 80 17 00 00 [20:39:34]Write to MH i2c: E2 08 00 66 39 80 17 00 00 00 00 00 00 1F [20:39:34]Write i2c OK [20:39:34]MH_I2C_Read... [20:39:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:35]Read from MH i2c: E2 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 FD 00 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 FD 00 66 39 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 91 [20:39:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [20:39:35]wFMCommunicate OK [20:39:35]wFMCommunicate request_size=4 [20:39:35]MH_SAM_APDU [20:39:35]CAPDU: 80 17 00 00 [20:39:35]Write to MH i2c: E2 08 00 67 39 80 17 00 00 00 00 00 00 20 [20:39:35]Write i2c OK [20:39:35]MH_I2C_Read... [20:39:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [20:39:35]Read from MH i2c: E2 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 CB 00 [20:39:35]MH_I2C_Read... [20:39:35]Read from MH i2c: E2 CB 00 67 39 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 09 [20:39:35]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:39:35]wFMCommunicate OK [20:39:35]SAM_PROTO_GetShiftData done [20:39:35]requested_item shift.sale.total_cash is exist - process it [20:39:35]requested_item shift.sale_refund.total is exist - process it [20:39:35]requested_item shift.sale_refund.total_cash is exist - process it [20:39:35]requested_item shift.buy.total is exist - process it [20:39:35]requested_item shift.buy.total_cash is exist - process it [20:39:35]produce_requested_data done [20:39:35]produce_requested_data return {"fm.sale.total":815399.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":56956.32,"shift.sale.total_cash":38112.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} [20:39:35]process_action_free get_value [20:39:35]json_value_free [20:39:35]json_value_free done [20:39:35]process_json_proto returns [20:39:35]Send response to host [20:39:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":815399.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":56956.32,"shift.sale.total_cash":38112.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}}} [20:39:35]free response buf [20:39:35]execute_script done [20:39:35]execute_script returns [20:39:35]free content buf [20:39:35]Sock 7.Close socket [20:39:35]Sock 7.Thread stoped [20:39:35]accept exits with 9 [20:39:35]New connection [20:39:35]New thread 3066707300 created [20:39:35]Thread 3066850660 joined [20:39:35]Waiting for new connection... [20:39:35] Sock 9.Parse request [20:39:35]Sock 9.Check first char [20:39:35]Sock 9.First char is OK [20:39:35]request: POST /json_proto HTTP/1.0 [20:39:35]Method: POST [20:39:35]URL: /json_proto [20:39:35]Method is POST - this is cgi request [20:39:35]url: /json_proto [20:39:35]query_string will be loaded in cgi processing [20:39:35]execute_cgi json_proto POST (null) [20:39:35]execute_cgi path=json_proto method=POST [20:39:35]POST find Content-Length [20:39:35]Host: 172.17.52.132:8080 [20:39:35]Content-Length: 331 [20:39:35]Content-Type: application/json [20:39:35] [20:39:35]POST finish read [20:39:35]Found Content-Length = 331 [20:39:35]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" ] } } [20:39:35]execute_script... [20:39:35]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" ] } } [20:39:35]POST & json_proto [20:39:35]process_json_proto [20:39:35]json parsed OK: [20:39:35]protocol is kg_v1.0 [20:39:35]action value=get_value [20:39:35]process_action get_value [20:39:35]cmd_get_value [20:39:35]process_action get_value done [20:39:35]requested_data is exist [20:39:35]produce_requested_data [20:39:35]requested_item fm.sale.total is exist - process it [20:39:35]SAM_PROTO_GetFMData [20:39:35]wFMCommunicate request_size=4 [20:39:35]MH_SAM_APDU [20:39:35]CAPDU: 80 13 03 00 [20:39:35]Write to MH i2c: E2 08 00 68 39 80 13 03 00 00 00 00 00 20 [20:39:35]Write i2c OK [20:39:35]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 FD 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 FD 00 68 39 00 BE 04 85 04 BA 04 6E 04 04 00 AA 09 00 00 69 04 9F 00 6F 04 04 00 A2 09 00 00 B1 04 04 00 4F 33 DC 04 70 04 04 00 A0 CB 9F 03 72 04 04 00 AF 67 3C 01 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 BD 22 84 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 F8 01 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 D3 [20:39:36]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 AA 09 00 00 69 04 9F 00 6F 04 04 00 A2 09 00 00 B1 04 04 00 4F 33 DC 04 70 04 04 00 A0 CB 9F 03 72 04 04 00 AF 67 3C 01 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 BD 22 84 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 F8 01 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [20:39:36]wFMCommunicate OK [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 17 00 00 [20:39:36]Write to MH i2c: E2 08 00 69 39 80 17 00 00 00 00 00 00 22 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 FD 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 FD 00 69 39 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 37 [20:39:36]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:39:36]wFMCommunicate OK [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 17 00 00 [20:39:36]Write to MH i2c: E2 08 00 6A 39 80 17 00 00 00 00 00 00 23 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:36]Read from MH i2c: E2 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 FD 00 [20:39:36]MH_I2C_Read... [20:39:36]Read from MH i2c: E2 FD 00 6A 39 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 55 [20:39:36]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [20:39:36]wFMCommunicate OK [20:39:36]wFMCommunicate request_size=4 [20:39:36]MH_SAM_APDU [20:39:36]CAPDU: 80 17 00 00 [20:39:36]Write to MH i2c: E2 08 00 6B 39 80 17 00 00 00 00 00 00 24 [20:39:36]Write i2c OK [20:39:36]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 FD 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 FD 00 6B 39 00 04 F7 03 00 00 EF 03 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 90 00 9F [20:39:37]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [20:39:37]wFMCommunicate OK [20:39:37]wFMCommunicate request_size=4 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 17 00 00 [20:39:37]Write to MH i2c: E2 08 00 6C 39 80 17 00 00 00 00 00 00 25 [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [20:39:37]Read from MH i2c: E2 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 DB 00 [20:39:37]MH_I2C_Read... [20:39:37]Read from MH i2c: E2 DB 00 6C 39 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 07 [20:39:37]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:39:37]wFMCommunicate OK [20:39:37]SAM_PROTO_GetFMData done [20:39:37]requested_item fm.sale_refund.total is exist - process it [20:39:37]requested_item fm.buy.total is exist - process it [20:39:37]requested_item shift.sale.total is exist - process it [20:39:37]SAM_PROTO_GetShiftData [20:39:37]wFMCommunicate request_size=4 [20:39:37]MH_SAM_APDU [20:39:37]CAPDU: 80 13 02 00 [20:39:37]Write to MH i2c: E2 08 00 6D 39 80 13 02 00 00 00 00 00 24 [20:39:37]Write i2c OK [20:39:37]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 FD 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 FD 00 6D 39 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 90 E8 56 70 04 03 00 80 27 3A 72 04 03 00 10 C1 1C 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 F2 3A 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DC C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 74 [20:39:38]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 90 E8 56 70 04 03 00 80 27 3A 72 04 03 00 10 C1 1C 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 F2 3A 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DC C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [20:39:38]wFMCommunicate OK [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 17 00 00 [20:39:38]Write to MH i2c: E2 08 00 6E 39 80 17 00 00 00 00 00 00 27 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 FD 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 FD 00 6E 39 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 49 [20:39:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [20:39:38]wFMCommunicate OK [20:39:38]wFMCommunicate request_size=4 [20:39:38]MH_SAM_APDU [20:39:38]CAPDU: 80 17 00 00 [20:39:38]Write to MH i2c: E2 08 00 6F 39 80 17 00 00 00 00 00 00 28 [20:39:38]Write i2c OK [20:39:38]MH_I2C_Read... [20:39:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:38]Read from MH i2c: E2 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 FD 00 [20:39:38]MH_I2C_Read... [20:39:38]Read from MH i2c: E2 FD 00 6F 39 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 DF [20:39:39]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [20:39:39]wFMCommunicate OK [20:39:39]wFMCommunicate request_size=4 [20:39:39]MH_SAM_APDU [20:39:39]CAPDU: 80 17 00 00 [20:39:39]Write to MH i2c: E2 08 00 70 39 80 17 00 00 00 00 00 00 29 [20:39:39]Write i2c OK [20:39:39]MH_I2C_Read... [20:39:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:39]Read from MH i2c: E2 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: E2 FD 00 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: E2 FD 00 70 39 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 9B [20:39:39]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [20:39:39]wFMCommunicate OK [20:39:39]wFMCommunicate request_size=4 [20:39:39]MH_SAM_APDU [20:39:39]CAPDU: 80 17 00 00 [20:39:39]Write to MH i2c: E2 08 00 71 39 80 17 00 00 00 00 00 00 2A [20:39:39]Write i2c OK [20:39:39]MH_I2C_Read... [20:39:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [20:39:39]Read from MH i2c: E2 [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: E2 CB 00 [20:39:39]MH_I2C_Read... [20:39:39]OFD Sender: No OFD packet to send [20:39:39]Read from MH i2c: E2 CB 00 71 39 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 13 [20:39:39]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:39:39]wFMCommunicate OK [20:39:39]SAM_PROTO_GetShiftData done [20:39:39]requested_item shift.sale.total_cash is exist - process it [20:39:39]requested_item shift.sale_refund.total is exist - process it [20:39:39]requested_item shift.sale_refund.total_cash is exist - process it [20:39:39]requested_item shift.buy.total is exist - process it [20:39:39]requested_item shift.buy.total_cash is exist - process it [20:39:39]produce_requested_data done [20:39:39]produce_requested_data return {"fm.sale.total":815399.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":56956.32,"shift.sale.total_cash":38112.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} [20:39:39]process_action_free get_value [20:39:39]json_value_free [20:39:39]json_value_free done [20:39:39]process_json_proto returns [20:39:39]Send response to host [20:39:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":815399.19,"fm.sale_refund.total":1286.00,"fm.buy.total":0.00,"shift.sale.total":56956.32,"shift.sale.total_cash":38112.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}}} [20:39:39]free response buf [20:39:39]execute_script done [20:39:39]execute_script returns [20:39:39]free content buf [20:39:39]Sock 9.Close socket [20:39:39]Sock 9.Thread stoped [20:39:39]accept exits with 7 [20:39:39]New connection [20:39:39]New thread 3066850660 created [20:39:39]Thread 3066707300 joined [20:39:39]Waiting for new connection... [20:39:39] Sock 7.Parse request [20:39:39]Sock 7.Check first char [20:39:39]Sock 7.First char is OK [20:39:39]request: POST /json_proto HTTP/1.0 [20:39:39]Method: POST [20:39:39]URL: /json_proto [20:39:39]Method is POST - this is cgi request [20:39:39]url: /json_proto [20:39:39]query_string will be loaded in cgi processing [20:39:39]execute_cgi json_proto POST (null) [20:39:39]execute_cgi path=json_proto method=POST [20:39:39]POST find Content-Length [20:39:39]Host: 172.17.52.132:8080 [20:39:39]Content-Length: 263 [20:39:39]Content-Type: application/json [20:39:39] [20:39:39]POST finish read [20:39:39]Found Content-Length = 263 [20:39:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:39]execute_script... [20:39:39]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u041D\u0443\u0440\u0430\u043B\u0438\u0435\u0432\u0430 \u041D. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:39:39]POST & json_proto [20:39:39]process_json_proto [20:39:39]json parsed OK: [20:39:39]protocol is kg_v1.0 [20:39:39]action value=x_report [20:39:39]process_action x_report [20:39:39]cmd_x_report [20:39:39]MH_GetDate [20:39:39]Write to MH i2c: F0 00 00 72 39 9A [20:39:39]Write i2c OK [20:39:39]MH_I2C_Read... [20:39:39]Read from MH i2c: F0 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: F0 09 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: F0 09 00 72 39 00 92 C7 12 67 5A BE F6 66 E9 [20:39:40]GetLastDocTimeStamp 1729283362 [20:39:40]current date 1729283986 [20:39:40]FM_GetShiftState [20:39:40]SAM_PROTO_GetShiftState [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 13 01 00 [20:39:40]Write to MH i2c: E2 08 00 73 39 80 13 01 00 00 00 00 00 29 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 0E 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 0E 00 73 39 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C7 [20:39:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:39:40]wFMCommunicate OK [20:39:40]SAM_PROTO_GetShiftState done [20:39:40]FM_GetShiftState done [20:39:40]KKMCreateXReportDocument [20:39:40]Load OK [20:39:40]Malloc new data [20:39:40]MH_GetDate [20:39:40]Write to MH i2c: F0 00 00 74 39 9C [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: F0 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: F0 09 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: F0 09 00 74 39 00 92 C7 12 67 5A BE F6 66 EB [20:39:40]Malloc new data [20:39:40]Malloc new data [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 11 00 00 [20:39:40]Write to MH i2c: E2 08 00 75 39 80 11 00 00 00 00 00 00 28 [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 17 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 17 00 75 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 70 [20:39:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:39:40]wFMCommunicate OK [20:39:40]SAM_PROTO_GetFieldsCounters [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 13 00 00 [20:39:40]Write to MH i2c: E2 08 00 76 39 80 13 00 00 00 00 00 00 2B [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 62 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 62 00 76 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D6 09 00 00 0E 04 04 00 16 00 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 E3 [20:39:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D6 09 00 00 0E 04 04 00 16 00 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 [20:39:40]wFMCommunicate OK [20:39:40]SAM_PROTO_GetFieldsCounters done [20:39:40]Malloc new data [20:39:40]Malloc new data [20:39:40]Malloc new data [20:39:40]KKMCreateXReportDocument OK [20:39:40]KKMSetXReportData OK [20:39:40]KKMPrepareXReportFMData [20:39:40]SAM_PROTO_GetShiftData [20:39:40]wFMCommunicate request_size=4 [20:39:40]MH_SAM_APDU [20:39:40]CAPDU: 80 13 02 00 [20:39:40]Write to MH i2c: E2 08 00 77 39 80 13 02 00 00 00 00 00 2E [20:39:40]Write i2c OK [20:39:40]MH_I2C_Read... [20:39:40]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:39:40]Read from MH i2c: E2 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 FD 00 [20:39:40]MH_I2C_Read... [20:39:40]Read from MH i2c: E2 FD 00 77 39 00 AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 90 E8 56 70 04 03 00 80 27 3A 72 04 03 00 10 C1 1C 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 F2 3A 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DC C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 7E [20:39:40]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 8F 00 00 00 69 04 9B 00 6F 04 04 00 8F 00 00 00 B1 04 03 00 90 E8 56 70 04 03 00 80 27 3A 72 04 03 00 10 C1 1C 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 F2 3A 09 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DC C4 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [20:39:41]wFMCommunicate OK [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 17 00 00 [20:39:41]Write to MH i2c: E2 08 00 78 39 80 17 00 00 00 00 00 00 31 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 FD 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 FD 00 78 39 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 53 [20:39:41]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [20:39:41]wFMCommunicate OK [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 17 00 00 [20:39:41]Write to MH i2c: E2 08 00 79 39 80 17 00 00 00 00 00 00 32 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:41]Read from MH i2c: E2 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 FD 00 [20:39:41]MH_I2C_Read... [20:39:41]Read from MH i2c: E2 FD 00 79 39 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 E9 [20:39:41]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [20:39:41]wFMCommunicate OK [20:39:41]wFMCommunicate request_size=4 [20:39:41]MH_SAM_APDU [20:39:41]CAPDU: 80 17 00 00 [20:39:41]Write to MH i2c: E2 08 00 7A 39 80 17 00 00 00 00 00 00 33 [20:39:41]Write i2c OK [20:39:41]MH_I2C_Read... [20:39:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:42]Read from MH i2c: E2 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 FD 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 FD 00 7A 39 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 A5 [20:39:42]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [20:39:42]wFMCommunicate OK [20:39:42]wFMCommunicate request_size=4 [20:39:42]MH_SAM_APDU [20:39:42]CAPDU: 80 17 00 00 [20:39:42]Write to MH i2c: E2 08 00 7B 39 80 17 00 00 00 00 00 00 34 [20:39:42]Write i2c OK [20:39:42]MH_I2C_Read... [20:39:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [20:39:42]Read from MH i2c: E2 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 CB 00 [20:39:42]MH_I2C_Read... [20:39:42]Read from MH i2c: E2 CB 00 7B 39 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 1D [20:39:42]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:39:42]wFMCommunicate OK [20:39:42]SAM_PROTO_GetShiftData done [20:39:42]1194 (1194) - Ñчетчики итогов Ñмены [20:39:42] 1134 (4) - 143 - количеÑтво чеков Ñо вÑеми признаками раÑчетов [20:39:42] 1129 (155) - Ñчетчики операций «приход» [20:39:42] 1135 (4) - 143 - количеÑтво чеков по признаку раÑчетов [20:39:42] 1201 (3) - 56956.32 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [20:39:42] 1136 (3) - 38112.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [20:39:42] 1138 (3) - 18844.32 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [20:39:42] 1024 (122) - Ñуммы налогов [20:39:42] 1006 (9) - Ñуммы ÐДС [20:39:42] 1010 (1) - 0% - код Ñтавки ÐДС [20:39:42] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:39:42] 1006 (12) - Ñуммы ÐДС [20:39:42] 1010 (1) - 12% - код Ñтавки ÐДС [20:39:42] 1011 (3) - 6049.14 - Ñумма ÐДС по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 0% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (11) - Ñуммы ÐСП [20:39:42] 1014 (1) - 1% - код Ñтавки ÐСП [20:39:42] 1015 (2) - 503.96 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 2% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 3% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 5% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 0,50% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 1,50% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1130 (141) - Ñчетчики операций «возврат прихода» [20:39:42] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [20:39:42] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [20:39:42] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [20:39:42] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [20:39:42] 1024 (117) - Ñуммы налогов [20:39:42] 1006 (9) - Ñуммы ÐДС [20:39:42] 1010 (1) - 0% - код Ñтавки ÐДС [20:39:42] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:39:42] 1006 (9) - Ñуммы ÐДС [20:39:42] 1010 (1) - 12% - код Ñтавки ÐДС [20:39:42] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 0% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 1% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 2% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 3% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:42] 1007 (9) - Ñуммы ÐСП [20:39:42] 1014 (1) - 5% - код Ñтавки ÐСП [20:39:42] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 0,50% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 1,50% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1131 (141) - Ñчетчики операций «раÑход» [20:39:43] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [20:39:43] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [20:39:43] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [20:39:43] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [20:39:43] 1024 (117) - Ñуммы налогов [20:39:43] 1006 (9) - Ñуммы ÐДС [20:39:43] 1010 (1) - 0% - код Ñтавки ÐДС [20:39:43] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:39:43] 1006 (9) - Ñуммы ÐДС [20:39:43] 1010 (1) - 12% - код Ñтавки ÐДС [20:39:43] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 0% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 1% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 2% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 3% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 5% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 0,50% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 1,50% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1132 (141) - Ñчетчики операций «возврат раÑхода» [20:39:43] 1135 (4) - 0 - количеÑтво чеков по признаку раÑчетов [20:39:43] 1201 (0) - 0.00 - Ð¾Ð±Ñ‰Ð°Ñ Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках [20:39:43] 1136 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках наличными [20:39:43] 1138 (0) - 0.00 - Ð¸Ñ‚Ð¾Ð³Ð¾Ð²Ð°Ñ Ñумма в чеках безналичными [20:39:43] 1024 (117) - Ñуммы налогов [20:39:43] 1006 (9) - Ñуммы ÐДС [20:39:43] 1010 (1) - 0% - код Ñтавки ÐДС [20:39:43] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:39:43] 1006 (9) - Ñуммы ÐДС [20:39:43] 1010 (1) - 12% - код Ñтавки ÐДС [20:39:43] 1011 (0) - 0.00 - Ñумма ÐДС по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 0% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 1% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 2% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 3% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 5% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 0,50% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1007 (9) - Ñуммы ÐСП [20:39:43] 1014 (1) - 1,50% - код Ñтавки ÐСП [20:39:43] 1015 (0) - 0.00 - Ñумма ÐСП по Ñтавке [20:39:43] 1133 (588) - - Ñчетчики коррекции - не иÑпользуютÑÑ [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1194 (04AA) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1134 (046E) [20:39:43]Malloc new data [20:39:43]Processing tag 1129 (0469) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1135 (046F) [20:39:43]Malloc new data [20:39:43]Processing tag 1201 (04B1) [20:39:43]Malloc new data [20:39:43]Processing tag 1136 (0470) [20:39:43]Malloc new data [20:39:43]Processing tag 1138 (0472) [20:39:43]Malloc new data [20:39:43]Processing tag 1024 (0400) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1006 (03EE) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1010 (03F2) [20:39:43]Malloc new data [20:39:43]Processing tag 1011 (03F3) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1006 (03EE) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1010 (03F2) [20:39:43]Malloc new data [20:39:43]Processing tag 1011 (03F3) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]SetTLVBufToDocument err=0 [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1130 (046A) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1135 (046F) [20:39:43]Malloc new data [20:39:43]Processing tag 1201 (04B1) [20:39:43]Malloc new data [20:39:43]Processing tag 1136 (0470) [20:39:43]Malloc new data [20:39:43]Processing tag 1138 (0472) [20:39:43]Malloc new data [20:39:43]Processing tag 1024 (0400) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1006 (03EE) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1010 (03F2) [20:39:43]Malloc new data [20:39:43]Processing tag 1011 (03F3) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1006 (03EE) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1010 (03F2) [20:39:43]Malloc new data [20:39:43]Processing tag 1011 (03F3) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]SetTLVBufToDocument err=0 [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1131 (046B) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1135 (046F) [20:39:43]Malloc new data [20:39:43]Processing tag 1201 (04B1) [20:39:43]Malloc new data [20:39:43]Processing tag 1136 (0470) [20:39:43]Malloc new data [20:39:43]Processing tag 1138 (0472) [20:39:43]Malloc new data [20:39:43]Processing tag 1024 (0400) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1006 (03EE) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1010 (03F2) [20:39:43]Malloc new data [20:39:43]Processing tag 1011 (03F3) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1006 (03EE) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1010 (03F2) [20:39:43]Malloc new data [20:39:43]Processing tag 1011 (03F3) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]SetTLVBufToDocument err=0 [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1132 (046C) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1135 (046F) [20:39:43]Malloc new data [20:39:43]Processing tag 1201 (04B1) [20:39:43]Malloc new data [20:39:43]Processing tag 1136 (0470) [20:39:43]Malloc new data [20:39:43]Processing tag 1138 (0472) [20:39:43]Malloc new data [20:39:43]Processing tag 1024 (0400) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1006 (03EE) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1010 (03F2) [20:39:43]Malloc new data [20:39:43]Processing tag 1011 (03F3) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1006 (03EE) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1010 (03F2) [20:39:43]Malloc new data [20:39:43]Processing tag 1011 (03F3) [20:39:43]Malloc new data [20:39:43]SetTLVBufToDocument err=0 [20:39:43]Processing tag 1007 (03EF) [20:39:43]Load OK [20:39:43]SetTLVBufToDocument [20:39:43]Processing tag 1014 (03F6) [20:39:43]Malloc new data [20:39:43]Processing tag 1015 (03F7) [20:39:43]Malloc new data [20:39:44]SetTLVBufToDocument err=0 [20:39:44]Processing tag 1007 (03EF) [20:39:44]Load OK [20:39:44]SetTLVBufToDocument [20:39:44]Processing tag 1014 (03F6) [20:39:44]Malloc new data [20:39:44]Processing tag 1015 (03F7) [20:39:44]Malloc new data [20:39:44]SetTLVBufToDocument err=0 [20:39:44]Processing tag 1007 (03EF) [20:39:44]Load OK [20:39:44]SetTLVBufToDocument [20:39:44]Processing tag 1014 (03F6) [20:39:44]Malloc new data [20:39:44]Processing tag 1015 (03F7) [20:39:44]Malloc new data [20:39:44]SetTLVBufToDocument err=0 [20:39:44]Processing tag 1007 (03EF) [20:39:44]Load OK [20:39:44]SetTLVBufToDocument [20:39:44]Processing tag 1014 (03F6) [20:39:44]Malloc new data [20:39:44]Processing tag 1015 (03F7) [20:39:44]Malloc new data [20:39:44]SetTLVBufToDocument err=0 [20:39:44]Processing tag 1007 (03EF) [20:39:44]Load OK [20:39:44]SetTLVBufToDocument [20:39:44]Processing tag 1014 (03F6) [20:39:44]Malloc new data [20:39:44]Processing tag 1015 (03F7) [20:39:44]Malloc new data [20:39:44]SetTLVBufToDocument err=0 [20:39:44]Processing tag 1007 (03EF) [20:39:44]Load OK [20:39:44]SetTLVBufToDocument [20:39:44]Processing tag 1014 (03F6) [20:39:44]Malloc new data [20:39:44]Processing tag 1015 (03F7) [20:39:44]Malloc new data [20:39:44]SetTLVBufToDocument err=0 [20:39:44]Processing tag 1007 (03EF) [20:39:44]Load OK [20:39:44]SetTLVBufToDocument [20:39:44]Processing tag 1014 (03F6) [20:39:44]Malloc new data [20:39:44]Processing tag 1015 (03F7) [20:39:44]Malloc new data [20:39:44]SetTLVBufToDocument err=0 [20:39:44]SetTLVBufToDocument err=0 [20:39:44]SetTLVBufToDocument err=0 [20:39:44]Processing tag 1133 (046D) [20:39:44]Malloc new data [20:39:44]SetTLVBufToDocument err=0 [20:39:44]SetTLVBufToDocument err=0 [20:39:44]Malloc new data [20:39:44]SAM_PROTO_GetFMData [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 13 03 00 [20:39:44]Write to MH i2c: E2 08 00 7C 39 80 13 03 00 00 00 00 00 34 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:39:44]Read from MH i2c: E2 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 FD 00 [20:39:44]MH_I2C_Read... [20:39:44]Read from MH i2c: E2 FD 00 7C 39 00 BE 04 85 04 BA 04 6E 04 04 00 AA 09 00 00 69 04 9F 00 6F 04 04 00 A2 09 00 00 B1 04 04 00 4F 33 DC 04 70 04 04 00 A0 CB 9F 03 72 04 04 00 AF 67 3C 01 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 BD 22 84 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 F8 01 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 E7 [20:39:44]RAPDU: BE 04 85 04 BA 04 6E 04 04 00 AA 09 00 00 69 04 9F 00 6F 04 04 00 A2 09 00 00 B1 04 04 00 4F 33 DC 04 70 04 04 00 A0 CB 9F 03 72 04 04 00 AF 67 3C 01 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 BD 22 84 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 F8 01 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 EF 03 09 00 F6 03 01 00 00 90 00 [20:39:44]wFMCommunicate OK [20:39:44]wFMCommunicate request_size=4 [20:39:44]MH_SAM_APDU [20:39:44]CAPDU: 80 17 00 00 [20:39:44]Write to MH i2c: E2 08 00 7D 39 80 17 00 00 00 00 00 00 36 [20:39:44]Write i2c OK [20:39:44]MH_I2C_Read... [20:39:44]OFD Sender: No OFD packet to send [20:39:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:45]Read from MH i2c: E2 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 FD 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 FD 00 7D 39 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 4B [20:39:45]RAPDU: F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [20:39:45]wFMCommunicate OK [20:39:45]wFMCommunicate request_size=4 [20:39:45]MH_SAM_APDU [20:39:45]CAPDU: 80 17 00 00 [20:39:45]Write to MH i2c: E2 08 00 7E 39 80 17 00 00 00 00 00 00 37 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:45]Read from MH i2c: E2 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 FD 00 [20:39:45]MH_I2C_Read... [20:39:45]Read from MH i2c: E2 FD 00 7E 39 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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 69 [20:39:45]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 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 90 00 [20:39:45]wFMCommunicate OK [20:39:45]wFMCommunicate request_size=4 [20:39:45]MH_SAM_APDU [20:39:45]CAPDU: 80 17 00 00 [20:39:45]Write to MH i2c: E2 08 00 7F 39 80 17 00 00 00 00 00 00 38 [20:39:45]Write i2c OK [20:39:45]MH_I2C_Read... [20:39:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:39:46]Read from MH i2c: E2 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 FD 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 FD 00 7F 39 00 04 F7 03 00 00 EF 03 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 90 00 B3 [20:39:46]RAPDU: 04 F7 03 00 00 EF 03 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 90 00 [20:39:46]wFMCommunicate OK [20:39:46]wFMCommunicate request_size=4 [20:39:46]MH_SAM_APDU [20:39:46]CAPDU: 80 17 00 00 [20:39:46]Write to MH i2c: E2 08 00 80 39 80 17 00 00 00 00 00 00 39 [20:39:46]Write i2c OK [20:39:46]MH_I2C_Read... [20:39:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 216! [20:39:46]Read from MH i2c: E2 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 DB 00 [20:39:46]MH_I2C_Read... [20:39:46]Read from MH i2c: E2 DB 00 80 39 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 1B [20:39:46]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:39:46]wFMCommunicate OK [20:39:46]SAM_PROTO_GetFMData done [20:39:46]FM_GetFMData:85 04 BA 04 6E 04 04 00 AA 09 00 00 69 04 9F 00 6F 04 04 00 A2 09 00 00 B1 04 04 00 4F 33 DC 04 70 04 04 00 A0 CB 9F 03 72 04 04 00 AF 67 3C 01 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 BD 22 84 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 F8 01 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 99 00 6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:39:47]oper:6F 04 04 00 A2 09 00 00 B1 04 04 00 4F 33 DC 04 70 04 04 00 A0 CB 9F 03 72 04 04 00 AF 67 3C 01 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 BD 22 84 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 F8 01 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:39:47]total:4F 33 DC 04 [20:39:47]Malloc new data [20:39:47]oper:6F 04 04 00 08 00 00 00 B1 04 03 00 58 F6 01 70 04 03 00 70 C0 01 72 04 02 00 E8 35 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 58 35 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 71 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [20:39:47]total:58 F6 01 [20:39:47]Malloc new data [20:39:47]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 [20:39:47]total: [20:39:47]Malloc new data [20:39:47]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 [20:39:47]total: [20:39:47]Malloc new data [20:39:47]KKMPrepareXReportFMData err=0 [20:39:47]Ð¥ отчет ИÐÐ: 02508201610067 КаÑÑир: Ðуралиева Ð. 18.10.2024 20:39 Смена: 10 РÐМ: 0000000000207295 ЗÐМ: 0300000191 СÐО: Общий режим Ð’Ñего чеков: 143 ИТОГИ ПРИХОД Чеков: 143 Общий итог: 56956.32 Итого наличными: 38112.00 Итого безнал.: 18844.32 ÐДС 0% : 0.00 ÐДС 12% : 6049.14 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 503.96 ИТОГИ ВОЗВРÐТ ПРИХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ РÐСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 ИТОГИ ВОЗВРÐТ РÐСХОДРЧеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 ÐДС 0% : 0.00 ÐДС 12% : 0.00 ÐСП 0% : 0.00 ÐСП 1,50% : 0.00 ÐСП 0,50% : 0.00 ÐСП 5% : 0.00 ÐСП 3% : 0.00 ÐСП 2% : 0.00 ÐСП 1% : 0.00 Сумма внеÑений: 0.00 Сумма выплат: 0.00 Ðал. в каÑÑе: 38112.00 ÐС Приход: 815399.19 ÐС Возвр.Прихода: 1286.00 ÐС РаÑход: 0.00 ÐС Возвр.РаÑхода: 0.00 ФМ: 0000000002342820 [20:39:47]StoreToDocumentArchive [20:39:47]MH_GetDate [20:39:47]Write to MH i2c: F0 00 00 81 39 A9 [20:39:47]Write i2c OK [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: F0 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: F0 09 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: F0 09 00 81 39 00 99 C7 12 67 5A BE F6 66 FF [20:39:47]shift 10 fd 1729283993 [20:39:47]Create dir for shift 0010 [20:39:47]save to /storage/0010/doc_1729283993 [20:39:47]save last doc name /storage/0010/doc_1729283993 to /storage/kkm_last_doc_name [20:39:47]save OK [20:39:47]Clear old archive folders... [20:39:47]NVStorageSaveData kkm_last_timestamp [20:39:47]File name is /storage/kkm_last_timestamp [20:39:47]Write 4 bytes [20:39:47]NVStorageSaveData done [20:39:47]ExternCall_PrintAddStr [20:39:47]wPrintStart [20:39:47]Write to MH i2c: 01 00 00 82 39 BB [20:39:47]Write i2c OK [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: 01 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: 01 07 00 [20:39:47]MH_I2C_Read... [20:39:47]Read from MH i2c: 01 07 00 82 39 00 00 00 00 00 FF 0F D0 [20:39:47]RasterBufferAndPrint [20:39:47]line Ð¥ отчет [20:39:47]line ИÐÐ: 02508201610067 [20:39:47]line КаÑÑир: Ðуралиева Ð. [20:39:47]line 18.10.2024 20:39 [20:39:47]line Смена: 10 [20:39:47]line РÐМ: 0000000000207295 [20:39:47]line ЗÐМ: 0300000191 [20:39:47]line СÐО: Общий режим [20:39:47]line Ð’Ñего чеков: 143 [20:39:47]line ИТОГИ ПРИХОД [20:39:47]line Чеков: 143 [20:39:47]line Общий итог: 56956.32 [20:39:47]line Итого наличными: 38112.00 [20:39:47]line Итого безнал.: 18844.32 [20:39:47]line ÐДС 0% : 0.00 [20:39:47]line ÐДС 12% : 6049.14 [20:39:47]line ÐСП 0% : 0.00 [20:39:47]line ÐСП 1,50% : 0.00 [20:39:47]line ÐСП 0,50% : 0.00 [20:39:47]line ÐСП 5% : 0.00 [20:39:47]line ÐСП 3% : 0.00 [20:39:47]line ÐСП 2% : 0.00 [20:39:47]line ÐСП 1% : 503.96 [20:39:47]line ИТОГИ ВОЗВРÐТ ПРИХОДР[20:39:47]line Чеков: 0 [20:39:47]line Общий итог: 0.00 [20:39:47]line Итого наличными: 0.00 [20:39:47]line Итого безнал.: 0.00 [20:39:47]line ÐДС 0% : 0.00 [20:39:47]line ÐДС 12% : 0.00 [20:39:47]line ÐСП 0% : 0.00 [20:39:47]line ÐСП 1,50% : 0.00 [20:39:47]line ÐСП 0,50% : 0.00 [20:39:47]line ÐСП 5% : 0.00 [20:39:47]line ÐСП 3% : 0.00 [20:39:47]line ÐСП 2% : 0.00 [20:39:47]line ÐСП 1% : 0.00 [20:39:47]line ИТОГИ РÐСХОД [20:39:47]line Чеков: 0 [20:39:47]line Общий итог: 0.00 [20:39:47]line Итого наличными: 0.00 [20:39:47]line Итого безнал.: 0.00 [20:39:47]line ÐДС 0% : 0.00 [20:39:47]line ÐДС 12% : 0.00 [20:39:47]line ÐСП 0% : 0.00 [20:39:48]line ÐСП 1,50% : 0.00 [20:39:48]line ÐСП 0,50% : 0.00 [20:39:48]line ÐСП 5% : 0.00 [20:39:48]line ÐСП 3% : 0.00 [20:39:48]line ÐСП 2% : 0.00 [20:39:48]line ÐСП 1% : 0.00 [20:39:48]line ИТОГИ ВОЗВРÐТ РÐСХОДР[20:39:48]line Чеков: 0 [20:39:48]line Общий итог: 0.00 [20:39:48]line Итого наличными: 0.00 [20:39:48]line Итого безнал.: 0.00 [20:39:48]line ÐДС 0% : 0.00 [20:39:48]line ÐДС 12% : 0.00 [20:39:48]line ÐСП 0% : 0.00 [20:39:48]line ÐСП 1,50% : 0.00 [20:39:48]line ÐСП 0,50% : 0.00 [20:39:48]line ÐСП 5% : 0.00 [20:39:48]line ÐСП 3% : 0.00 [20:39:48]line ÐСП 2% : 0.00 [20:39:48]line ÐСП 1% : 0.00 [20:39:48]line Сумма внеÑений: 0.00 [20:39:48]line Сумма выплат: 0.00 [20:39:48]line Ðал. в каÑÑе: 38112.00 [20:39:48]line ÐС Приход: 815399.19 [20:39:48]line ÐС Возвр.Прихода: 1286.00 [20:39:48]line ÐС РаÑход: 0.00 [20:39:48]line ÐС Возвр.РаÑхода: 0.00 [20:39:48]line ФМ: 0000000002342820 [20:39:48]written 0, free lines is 4095 [20:39:48]Write to MH i2c: 01 00 00 CD 39 06 [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: 01 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: 01 07 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: 01 07 00 CD 39 00 00 00 00 00 45 0A 5C [20:39:48]RasterBufferAndPrint [20:39:48]line [20:39:48]line [20:39:48]line [20:39:48]line [20:39:48]line [20:39:48]written 0, free lines is 2659 [20:39:48]MH_Cut [20:39:48]Write to MH i2c: D1 01 00 D4 39 01 DF [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: D1 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: D1 01 00 [20:39:48]MH_I2C_Read... [20:39:48]Read from MH i2c: D1 01 00 D4 39 00 DE [20:39:48]Write to MH i2c: 01 00 00 D5 39 0E [20:39:48]Write i2c OK [20:39:48]MH_I2C_Read... [20:39:49]OFD Sender: No OFD packet to send [20:39:50]*** Cut start [20:39:50]*** Partial cut [20:39:50]*** CUTSNS_PIN = 1 [20:39:50]*** CUTSNS_PIN = 0 [20:39:50]*** Brake cut motor [20:39:50]Read from MH i2c: 01 [20:39:50]MH_I2C_Read... [20:39:50]*** Stop cut motor [20:39:50]*** Cut end [20:39:50]Read from MH i2c: 01 07 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: 01 07 00 D5 39 00 00 00 00 00 FF 0F 23 [20:39:50]process_action x_report done [20:39:50]requested_data is exist [20:39:50]produce_requested_data [20:39:50]requested_item fd.num is exist - process it [20:39:50]SAM_PROTO_GetFieldsCounters [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 13 00 00 [20:39:50]Write to MH i2c: E2 08 00 D6 39 80 13 00 00 00 00 00 00 8B [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:39:50]Read from MH i2c: E2 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 62 00 [20:39:50]MH_I2C_Read... [20:39:50]Read from MH i2c: E2 62 00 D6 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D6 09 00 00 0E 04 04 00 16 00 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 43 [20:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D6 09 00 00 0E 04 04 00 16 00 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 [20:39:50]wFMCommunicate OK [20:39:50]SAM_PROTO_GetFieldsCounters done [20:39:50]requested_item shift.num is exist - process it [20:39:50]requested_item shift.opened is exist - process it [20:39:50]req_shift_opened [20:39:50]FM_GetShiftState [20:39:50]SAM_PROTO_GetShiftState [20:39:50]wFMCommunicate request_size=4 [20:39:50]MH_SAM_APDU [20:39:50]CAPDU: 80 13 01 00 [20:39:50]Write to MH i2c: E2 08 00 D7 39 80 13 01 00 00 00 00 00 8D [20:39:50]Write i2c OK [20:39:50]MH_I2C_Read... [20:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:39:51]Read from MH i2c: E2 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 0E 00 [20:39:51]MH_I2C_Read... [20:39:51]Read from MH i2c: E2 0E 00 D7 39 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2B [20:39:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:39:51]wFMCommunicate OK [20:39:51]SAM_PROTO_GetShiftState done [20:39:51]FM_GetShiftState done [20:39:51]req_shift_opened done [20:39:51]requested_item shift.open_date is exist - process it [20:39:51]req_shift_open_date [20:39:51]req_shift_open_date done [20:39:51]produce_requested_data done [20:39:51]produce_requested_data return {"fd.num":2518,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:39:51]process_action_free x_report [20:39:51]json_value_free [20:39:51]json_value_free done [20:39:51]process_json_proto returns [20:39:51]Send response to host [20:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":2518,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:39:51]free response buf [20:39:51]execute_script done [20:39:51]execute_script returns [20:39:51]free content buf [20:39:51]Sock 7.Close socket [20:39:51]Sock 7.Thread stoped [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:19]OFD Sender: No OFD packet to send [20:41:24]OFD Sender: No OFD packet to send [20:41:29]OFD Sender: No OFD packet to send [20:41:34]OFD Sender: No OFD packet to send [20:41:39]OFD Sender: No OFD packet to send [20:41:44]OFD Sender: No OFD packet to send [20:41:49]OFD Sender: No OFD packet to send [20:41:54]OFD Sender: No OFD packet to send [20:41:59]OFD Sender: No OFD packet to send [20:42:04]OFD Sender: No OFD packet to send [20:42:09]OFD Sender: No OFD packet to send [20:42:14]OFD Sender: No OFD packet to send [20:42:19]OFD Sender: No OFD packet to send [20:42:22]accept exits with 9 [20:42:22]New connection [20:42:22]New thread 3066707300 created [20:42:22]Thread 3066850660 joined [20:42:22]Waiting for new connection... [20:42:22] Sock 9.Parse request [20:42:22]Sock 9.Check first char [20:42:22]Sock 9.First char is OK [20:42:22]request: POST /json_proto HTTP/1.0 [20:42:22]Method: POST [20:42:22]URL: /json_proto [20:42:22]Method is POST - this is cgi request [20:42:22]url: /json_proto [20:42:22]query_string will be loaded in cgi processing [20:42:22]execute_cgi json_proto POST (null) [20:42:22]execute_cgi path=json_proto method=POST [20:42:22]POST find Content-Length [20:42:22]Host: 172.17.52.132:8080 [20:42:22]Content-Length: 645 [20:42:22]Content-Type: application/json [20:42:22] [20:42:22]POST finish read [20:42:22]Found Content-Length = 645 [20:42:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99907", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:22]execute_script... [20:42: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)99907", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:42:22]POST & json_proto [20:42:22]process_json_proto [20:42:22]json parsed OK: [20:42:22]protocol is kg_v1.0 [20:42:22]action value=close_receipt [20:42:22]process_action close_receipt [20:42:22]cmd_close_receipt [20:42:22]MH_GetDate [20:42:22]Write to MH i2c: F0 00 00 D8 39 00 [20:42:22]Write i2c OK [20:42:22]MH_I2C_Read... [20:42:22]Read from MH i2c: F0 [20:42:22]MH_I2C_Read... [20:42:22]Read from MH i2c: F0 09 00 [20:42:22]MH_I2C_Read... [20:42:22]Read from MH i2c: F0 09 00 D8 39 00 34 C8 12 67 5A BE F6 66 F2 [20:42:22]GetLastDocTimeStamp 1729283986 [20:42:22]current date 1729284148 [20:42:22]FM_GetShiftState [20:42:22]SAM_PROTO_GetShiftState [20:42:22]wFMCommunicate request_size=4 [20:42:22]MH_SAM_APDU [20:42:22]CAPDU: 80 13 01 00 [20:42:22]Write to MH i2c: E2 08 00 D9 39 80 13 01 00 00 00 00 00 8F [20:42:22]Write i2c OK [20:42:22]MH_I2C_Read... [20:42:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:22]Read from MH i2c: E2 [20:42:22]MH_I2C_Read... [20:42:22]Read from MH i2c: E2 0E 00 [20:42:22]MH_I2C_Read... [20:42:22]Read from MH i2c: E2 0E 00 D9 39 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2D [20:42:22]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:42:22]wFMCommunicate OK [20:42:22]SAM_PROTO_GetShiftState done [20:42:22]FM_GetShiftState done [20:42:22]opened in 1729209717 [20:42:22]opened+sec_in_day 1729296117 [20:42:22]quantity*price = 13000 [20:42:22]sum+1 = 13001 [20:42:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 ÐСП 1% : 1.15 ÐДС 12% : 13.80 Ðаличными: 130.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 144 18.10.2024 20:42 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2519 ФПД: 25171108082380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T204228&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2519&fm=25171108082380&tin=02508201610067®Number=0000000000207295&sum=13000 0 [20:42:23]StoreToDocumentArchive [20:42:23]shift 22 fd 2519 [20:42:23]save to /storage/0022/doc_00002519 [20:42:23]save last doc name /storage/0022/doc_00002519 to /storage/kkm_last_doc_name [20:42:23]save OK [20:42:23]Clear old archive folders... [20:42:23]Remove dir /storage/0010 [20:42:23]opendir ok [20:42:23]file . [20:42:23]file .. [20:42:23]file doc_1729283993 [20:42:23]remove file /storage/0010/doc_1729283993 [20:42:23]remove dir /storage/0010 [20:42:23]ProcessDocumentItem done err = 0, tmpTLVsize=282 [20:42:23]tlvbuf is 013B43D0 [20:42:23]SAM_PROTO_ClearQueue [20:42:23]wFMCommunicate request_size=4 [20:42:23]MH_SAM_APDU [20:42:23]CAPDU: 80 09 00 00 [20:42:23]Write to MH i2c: E2 08 00 E6 39 80 09 00 00 00 00 00 00 91 [20:42:23]Write i2c OK [20:42:23]MH_I2C_Read... [20:42:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:42:23]Read from MH i2c: E2 [20:42:23]MH_I2C_Read... [20:42:23]Read from MH i2c: E2 03 00 [20:42:23]MH_I2C_Read... [20:42:23]Read from MH i2c: E2 03 00 E6 39 00 90 00 93 [20:42:23]RAPDU: 90 00 [20:42:23]wFMCommunicate OK [20:42:23]SAM_PROTO_ClearQueue done [20:42:23]KKMCreateOFDPacket [20:42:23]OFDProtocolAddRootSTLVToBuf [20:42:23]FM_MakeSignedData [20:42:23]FM_MakeSignedData [20:42:23]SAM_PROTO_SignData [20:42:23]wFMCommunicate request_size=4 [20:42:23]MH_SAM_APDU [20:42:23]CAPDU: 80 0D 01 02 [20:42:23]Write to MH i2c: E2 08 00 E7 39 80 0D 01 02 00 00 00 00 99 [20:42:23]Write i2c OK [20:42:23]MH_I2C_Read... [20:42:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:42:23]Read from MH i2c: E2 [20:42:23]MH_I2C_Read... [20:42:23]Read from MH i2c: E2 03 00 [20:42:23]MH_I2C_Read... [20:42:23]Read from MH i2c: E2 03 00 E7 39 00 90 00 94 [20:42:23]RAPDU: 90 00 [20:42:23]wFMCommunicate OK [20:42:23]wFMCommunicate request_size=255 [20:42:23]MH_SAM_APDU [20:42:23]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 90 00 00 00 F4 03 04 00 34 C8 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 [20:42:23]Write to MH i2c: E2 02 01 E8 39 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 90 00 00 00 F4 03 04 00 34 C8 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 00 00 C3 [20:42:23]Write i2c OK [20:42:23]MH_I2C_Read... [20:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:23]Read from MH i2c: E2 [20:42:23]MH_I2C_Read... [20:42:23]Read from MH i2c: E2 03 00 [20:42:23]MH_I2C_Read... [20:42:23]Read from MH i2c: E2 03 00 E8 39 00 90 00 95 [20:42:23]RAPDU: 90 00 [20:42:23]wFMCommunicate OK [20:42:23]wFMCommunicate request_size=41 [20:42:23]MH_SAM_APDU [20:42:23]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D7 09 00 00 35 04 06 00 16 E4 9A F4 B2 CC [20:42:23]Write to MH i2c: E2 2C 00 E9 39 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D7 09 00 00 35 04 06 00 16 E4 9A F4 B2 CC 00 00 46 [20:42:23]Write i2c OK [20:42:23]MH_I2C_Read... [20:42:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:42:23]Read from MH i2c: E2 [20:42:23]MH_I2C_Read... [20:42:23]Read from MH i2c: E2 03 00 [20:42:23]MH_I2C_Read... [20:42:23]Read from MH i2c: E2 03 00 E9 39 00 90 00 96 [20:42:23]RAPDU: 90 00 [20:42:23]wFMCommunicate OK [20:42:23]wFMCommunicate request_size=4 [20:42:23]MH_SAM_APDU [20:42:23]CAPDU: 80 0D 03 02 [20:42:24]Write to MH i2c: E2 08 00 EA 39 80 0D 03 02 00 00 00 00 9E [20:42:24]Write i2c OK [20:42:24]MH_I2C_Read... [20:42:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:42:24]Read from MH i2c: E2 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: E2 0B 00 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: E2 0B 00 EA 39 00 5F DF 1C 4E 3A CA 5C 42 90 00 E9 [20:42:24]RAPDU: 5F DF 1C 4E 3A CA 5C 42 90 00 [20:42:24]wFMCommunicate OK [20:42:24]SAM_PROTO_SignData done [20:42:24]FM_MakeSignedData done [20:42:24]CreateOFDProtocolMessage [20:42:24]wFMCommunicate request_size=4 [20:42:24]MH_SAM_APDU [20:42:24]CAPDU: 80 11 00 00 [20:42:24]Write to MH i2c: E2 08 00 EB 39 80 11 00 00 00 00 00 00 9E [20:42:24]Write i2c OK [20:42:24]MH_I2C_Read... [20:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:24]Read from MH i2c: E2 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: E2 17 00 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: E2 17 00 EB 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E6 [20:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:42:24]wFMCommunicate OK [20:42:24]CreateOFDProtocolMessage done [20:42:24]OFDSenderStorePacket 2519 [20:42:24]StoreOFDPacket docnum=2519 [20:42:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 C2 53 26 01 0F F9 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 90 00 00 00 F4 03 04 00 34 C8 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D7 09 00 00 35 04 06 00 16 E4 9A F4 B2 CC 5F DF 1C 4E 3A CA 5C 42 [20:42:24]CheckFolder [20:42:24]dirname=/storage/ofd_packets [20:42:24]CheckFolder done [20:42:24]ProducePacketName [20:42:24]name=ofd_packets/00002519 [20:42:24]NVStorageSaveData ofd_packets/00002519 [20:42:24]File name is /storage/ofd_packets/00002519 [20:42:24]Write 332 bytes [20:42:24]NVStorageSaveData done [20:42:24]OFDSenderStorePacket done [20:42:24]KKMCreateOFDPacket done [20:42:24]NVStorageSaveData kkm_last_timestamp [20:42:24]File name is /storage/kkm_last_timestamp [20:42:24]Write 4 bytes [20:42:24]NVStorageSaveData done [20:42:24]ExternCall_PrintAddStr [20:42:24]wPrintStart [20:42:24]Write to MH i2c: 01 00 00 EC 39 25 [20:42:24]Write i2c OK [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: 01 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: 01 07 00 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: 01 07 00 EC 39 00 00 00 00 00 FF 0F 3A [20:42:24]RasterBufferAndPrint [20:42:24]line Счет N : (3)99907 [20:42:24]line ИÐÐ: 02508201610067 [20:42:24]line Контрольно-КаÑÑовый Чек [20:42:24]line ПРОДÐЖР[20:42:24]line Товар: 2000036220012 [20:42:24]line Кофе Капучино XL(GABB TRADE) [20:42:24]line 1.000 * 130.00 [20:42:24]line = 130.00 [20:42:24]line ÐДС 12% ÐСП 1% [20:42:24]line > о реализуемом товаре [20:42:24]line ИТОГО: 130.00 [20:42:24]line ÐСП 1% : 1.15 [20:42:24]line ÐДС 12% : 13.80 [20:42:24]line Ðаличными: 130.00 [20:42:24]line Безнал.: 0.00 [20:42:24]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:42:24]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:42:24]line СÐО: Общий режим [20:42:24]line Чек 144 18.10.2024 20:42 [20:42:24]line Смена: 22 ФФД: 1.0 [20:42:24]line ЗÐМ: 0300000191 [20:42:24]line РÐМ: 0000000000207295 [20:42:24]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:42:24]line ФМ: 0000000002342820 [20:42:24]line ФД: 2519 [20:42:24]line ФПД: 25171108082380 [20:42:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T204228&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2519&fm=25171108082380&tin=02508201610067®Number=0000000000207295&sum=13000 [20:42:24]line 0 [20:42:24]OFD Sender: Processing packet 2519 [packets to send 1, broken 0] [20:42:24]ProducePacketName [20:42:24]name=ofd_packets/00002519 [20:42:24]OFD Sender: To server: ‡•öpG, [20:42:24]CommunicateWithHost lk.salyk.kg:30040 [20:42:24]ConnectInit lk.salyk.kg [20:42:24]written 0, free lines is 4095 [20:42:24]Connected sock=10 [20:42:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 C2 53 26 01 0F F9 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 90 00 00 00 F4 03 04 00 34 C8 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D7 09 00 00 35 04 06 00 16 E4 9A F4 B2 CC 5F DF 1C 4E 3A CA 5C 42 [20:42:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 9C 85 47 00 06 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 32 33 34 32 38 32 30 10 04 04 00 D7 09 00 00 F4 03 04 00 97 73 12 67 B6 04 01 00 00 2E 04 D1 D5 8F 23 D0 62 [20:42:24]CommunicateWithHost err = 0 [20:42:24]CheckOFDResponse [20:42:24]1017 (14) - 77093643461234 [20:42:24]1041 (16) - 0000000002342820 [20:42:24]1040 (4) - 2519 [20:42:24]1012 (4) - 18.10.2024 14:41 [20:42:24]1206 (1) - 0 [20:42:24]OFD Sender: Remove packet 2519 [20:42:24]ProducePacketName [20:42:24]name=ofd_packets/00002519 [20:42:24]NVStorageDeleteData [20:42:24]Write to MH i2c: 01 00 00 15 3A 4F [20:42:24]Write i2c OK [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: 01 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: 01 07 00 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: 01 07 00 15 3A 00 00 00 00 00 B9 0C 1B [20:42:24]RasterBufferAndPrint [20:42:24]line [20:42:24]line [20:42:24]line [20:42:24]line [20:42:24]line [20:42:24]written 0, free lines is 3262 [20:42:24]MH_Cut [20:42:24]Write to MH i2c: D1 01 00 1C 3A 01 28 [20:42:24]Write i2c OK [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: D1 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: D1 01 00 [20:42:24]MH_I2C_Read... [20:42:24]Read from MH i2c: D1 01 00 1C 3A 00 27 [20:42:24]Write to MH i2c: 01 00 00 1D 3A 57 [20:42:24]Write i2c OK [20:42:24]MH_I2C_Read... [20:42:25]OFD Sender: No OFD packet to send [20:42:25]*** Cut start [20:42:25]*** Partial cut [20:42:25]*** CUTSNS_PIN = 1 [20:42:25]*** CUTSNS_PIN = 0 [20:42:26]*** Brake cut motor [20:42:26]Read from MH i2c: 01 [20:42:26]MH_I2C_Read... [20:42:26]*** Stop cut motor [20:42:26]*** Cut end [20:42:26]Read from MH i2c: 01 07 00 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: 01 07 00 1D 3A 00 00 00 00 00 FF 0F 6C [20:42:26]process_action close_receipt done [20:42:26]requested_data is exist [20:42:26]produce_requested_data [20:42:26]requested_item fm.sn is exist - process it [20:42:26]wFMCommunicate request_size=4 [20:42:26]MH_SAM_APDU [20:42:26]CAPDU: 80 11 00 00 [20:42:26]Write to MH i2c: E2 08 00 1E 3A 80 11 00 00 00 00 00 00 D2 [20:42:26]Write i2c OK [20:42:26]MH_I2C_Read... [20:42:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:42:26]Read from MH i2c: E2 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: E2 17 00 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: E2 17 00 1E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 1A [20:42:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:42:26]wFMCommunicate OK [20:42:26]requested_item fd.num is exist - process it [20:42:26]SAM_PROTO_GetFieldsCounters [20:42:26]wFMCommunicate request_size=4 [20:42:26]MH_SAM_APDU [20:42:26]CAPDU: 80 13 00 00 [20:42:26]Write to MH i2c: E2 08 00 1F 3A 80 13 00 00 00 00 00 00 D5 [20:42:26]Write i2c OK [20:42:26]MH_I2C_Read... [20:42:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:42:26]Read from MH i2c: E2 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: E2 62 00 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: E2 62 00 1F 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D7 09 00 00 0E 04 04 00 16 00 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 91 [20:42:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D7 09 00 00 0E 04 04 00 16 00 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 [20:42:26]wFMCommunicate OK [20:42:26]SAM_PROTO_GetFieldsCounters done [20:42:26]requested_item shift.num is exist - process it [20:42:26]requested_item shift.opened is exist - process it [20:42:26]req_shift_opened [20:42:26]FM_GetShiftState [20:42:26]SAM_PROTO_GetShiftState [20:42:26]wFMCommunicate request_size=4 [20:42:26]MH_SAM_APDU [20:42:26]CAPDU: 80 13 01 00 [20:42:26]Write to MH i2c: E2 08 00 20 3A 80 13 01 00 00 00 00 00 D7 [20:42:26]Write i2c OK [20:42:26]MH_I2C_Read... [20:42:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:42:26]Read from MH i2c: E2 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: E2 0E 00 [20:42:26]MH_I2C_Read... [20:42:26]Read from MH i2c: E2 0E 00 20 3A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 75 [20:42:26]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:42:26]wFMCommunicate OK [20:42:26]SAM_PROTO_GetShiftState done [20:42:26]FM_GetShiftState done [20:42:26]req_shift_opened done [20:42:26]requested_item shift.open_date is exist - process it [20:42:26]req_shift_open_date [20:42:26]req_shift_open_date done [20:42:26]produce_requested_data done [20:42:26]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2519,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:42:26]process_action_free close_receipt [20:42:26]json_value_free [20:42:26]json_value_free done [20:42:26]process_json_proto returns [20:42:26]Send response to host [20:42:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2519,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:42:26]free response buf [20:42:26]execute_script done [20:42:26]execute_script returns [20:42:26]free content buf [20:42:26]Sock 9.Close socket [20:42:26]Sock 9.Thread stoped [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:21]accept exits with 7 [20:46:21]New connection [20:46:21]New thread 3066850660 created [20:46:21]Thread 3066707300 joined [20:46:21]Waiting for new connection... [20:46:21] Sock 7.Parse request [20:46:21]Sock 7.Check first char [20:46:21]Sock 7.First char is OK [20:46:21]request: POST /json_proto HTTP/1.0 [20:46:21]Method: POST [20:46:21]URL: /json_proto [20:46:21]Method is POST - this is cgi request [20:46:21]url: /json_proto [20:46:21]query_string will be loaded in cgi processing [20:46:21]execute_cgi json_proto POST (null) [20:46:21]execute_cgi path=json_proto method=POST [20:46:21]POST find Content-Length [20:46:21]Host: 172.17.52.132:8080 [20:46:21]Content-Length: 627 [20:46:21]Content-Type: application/json [20:46:21] [20:46:21]POST finish read [20:46:21]Found Content-Length = 627 [20:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99908", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:21]execute_script... [20:46: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 : (3)99908", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:21]POST & json_proto [20:46:21]process_json_proto [20:46:21]json parsed OK: [20:46:21]protocol is kg_v1.0 [20:46:21]action value=close_receipt [20:46:21]process_action close_receipt [20:46:21]cmd_close_receipt [20:46:21]MH_GetDate [20:46:21]Write to MH i2c: F0 00 00 21 3A 4A [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: F0 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: F0 09 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: F0 09 00 21 3A 00 23 C9 12 67 5A BE F6 66 2C [20:46:21]GetLastDocTimeStamp 1729284148 [20:46:21]current date 1729284387 [20:46:21]FM_GetShiftState [20:46:21]SAM_PROTO_GetShiftState [20:46:21]wFMCommunicate request_size=4 [20:46:21]MH_SAM_APDU [20:46:21]CAPDU: 80 13 01 00 [20:46:21]Write to MH i2c: E2 08 00 22 3A 80 13 01 00 00 00 00 00 D9 [20:46:21]Write i2c OK [20:46:21]MH_I2C_Read... [20:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:21]Read from MH i2c: E2 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 0E 00 [20:46:21]MH_I2C_Read... [20:46:21]Read from MH i2c: E2 0E 00 22 3A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 77 [20:46:21]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:46:21]wFMCommunicate OK [20:46:21]SAM_PROTO_GetShiftState done [20:46:21]FM_GetShiftState done [20:46:21]opened in 1729209717 [20:46:21]opened+sec_in_day 1729296117 [20:46:21]quantity*price = 13900 [20:46:21]sum+1 = 13901 [20:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 ÐСП 1% : 1.23 ÐДС 12% : 14.76 Ðаличными: 139.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 145 18.10.2024 20:46 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2520 ФПД: 133233677232711 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T204627&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2520&fm=133233677232711&tin=02508201610067®Number=0000000000207295&sum=13900 0 [20:46:22]StoreToDocumentArchive [20:46:22]shift 22 fd 2520 [20:46:22]save to /storage/0022/doc_00002520 [20:46:22]save last doc name /storage/0022/doc_00002520 to /storage/kkm_last_doc_name [20:46:22]save OK [20:46:22]Clear old archive folders... [20:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=280 [20:46:22]tlvbuf is 013EE5F0 [20:46:22]SAM_PROTO_ClearQueue [20:46:22]wFMCommunicate request_size=4 [20:46:22]MH_SAM_APDU [20:46:22]CAPDU: 80 09 00 00 [20:46:22]Write to MH i2c: E2 08 00 2F 3A 80 09 00 00 00 00 00 00 DB [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:22]Read from MH i2c: E2 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 03 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 03 00 2F 3A 00 90 00 DD [20:46:22]RAPDU: 90 00 [20:46:22]wFMCommunicate OK [20:46:22]SAM_PROTO_ClearQueue done [20:46:22]KKMCreateOFDPacket [20:46:22]OFDProtocolAddRootSTLVToBuf [20:46:22]FM_MakeSignedData [20:46:22]FM_MakeSignedData [20:46:22]SAM_PROTO_SignData [20:46:22]wFMCommunicate request_size=4 [20:46:22]MH_SAM_APDU [20:46:22]CAPDU: 80 0D 01 02 [20:46:22]Write to MH i2c: E2 08 00 30 3A 80 0D 01 02 00 00 00 00 E3 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:22]Read from MH i2c: E2 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 03 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 03 00 30 3A 00 90 00 DE [20:46:22]RAPDU: 90 00 [20:46:22]wFMCommunicate OK [20:46:22]wFMCommunicate request_size=255 [20:46:22]MH_SAM_APDU [20:46:22]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 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 23 C9 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 [20:46:22]Write to MH i2c: E2 02 01 31 3A 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 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 23 C9 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 00 00 C0 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:22]Read from MH i2c: E2 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 03 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 03 00 31 3A 00 90 00 DF [20:46:22]RAPDU: 90 00 [20:46:22]wFMCommunicate OK [20:46:22]wFMCommunicate request_size=39 [20:46:22]MH_SAM_APDU [20:46:22]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D8 09 00 00 35 04 06 00 79 2C E2 00 EA 47 [20:46:22]Write to MH i2c: E2 2A 00 32 3A 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D8 09 00 00 35 04 06 00 79 2C E2 00 EA 47 00 00 2F [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:22]Read from MH i2c: E2 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 03 00 [20:46:22]MH_I2C_Read... [20:46:22]Read from MH i2c: E2 03 00 32 3A 00 90 00 E0 [20:46:22]RAPDU: 90 00 [20:46:22]wFMCommunicate OK [20:46:22]wFMCommunicate request_size=4 [20:46:22]MH_SAM_APDU [20:46:22]CAPDU: 80 0D 03 02 [20:46:22]Write to MH i2c: E2 08 00 33 3A 80 0D 03 02 00 00 00 00 E8 [20:46:22]Write i2c OK [20:46:22]MH_I2C_Read... [20:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:23]Read from MH i2c: E2 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 0B 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 0B 00 33 3A 00 0E AB 45 67 FF 51 59 39 90 00 30 [20:46:23]RAPDU: 0E AB 45 67 FF 51 59 39 90 00 [20:46:23]wFMCommunicate OK [20:46:23]SAM_PROTO_SignData done [20:46:23]FM_MakeSignedData done [20:46:23]CreateOFDProtocolMessage [20:46:23]wFMCommunicate request_size=4 [20:46:23]MH_SAM_APDU [20:46:23]CAPDU: 80 11 00 00 [20:46:23]Write to MH i2c: E2 08 00 34 3A 80 11 00 00 00 00 00 00 E8 [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:23]Read from MH i2c: E2 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 17 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: E2 17 00 34 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 30 [20:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:46:23]wFMCommunicate OK [20:46:23]CreateOFDProtocolMessage done [20:46:23]OFDSenderStorePacket 2520 [20:46:23]StoreOFDPacket docnum=2520 [20:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 D9 B6 24 01 AA 44 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 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 23 C9 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D8 09 00 00 35 04 06 00 79 2C E2 00 EA 47 0E AB 45 67 FF 51 59 39 [20:46:23]CheckFolder [20:46:23]dirname=/storage/ofd_packets [20:46:23]CheckFolder done [20:46:23]ProducePacketName [20:46:23]name=ofd_packets/00002520 [20:46:23]NVStorageSaveData ofd_packets/00002520 [20:46:23]File name is /storage/ofd_packets/00002520 [20:46:23]Write 330 bytes [20:46:23]NVStorageSaveData done [20:46:23]OFDSenderStorePacket done [20:46:23]KKMCreateOFDPacket done [20:46:23]NVStorageSaveData kkm_last_timestamp [20:46:23]File name is /storage/kkm_last_timestamp [20:46:23]Write 4 bytes [20:46:23]NVStorageSaveData done [20:46:23]ExternCall_PrintAddStr [20:46:23]wPrintStart [20:46:23]Write to MH i2c: 01 00 00 35 3A 6F [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: 01 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: 01 07 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: 01 07 00 35 3A 00 00 00 00 00 FF 0F 84 [20:46:23]RasterBufferAndPrint [20:46:23]line Счет N : (3)99908 [20:46:23]line ИÐÐ: 02508201610067 [20:46:23]line Контрольно-КаÑÑовый Чек [20:46:23]line ПРОДÐЖР[20:46:23]line Товар: 48741231 [20:46:23]line Сигареты Winston Super Slims Silver [20:46:23]line 1.000 * 139.00 [20:46:23]line = 139.00 [20:46:23]line ÐДС 12% ÐСП 1% [20:46:23]line > о реализуемом товаре [20:46:23]line ИТОГО: 139.00 [20:46:23]line ÐСП 1% : 1.23 [20:46:23]line ÐДС 12% : 14.76 [20:46:23]line Ðаличными: 139.00 [20:46:23]line Безнал.: 0.00 [20:46:23]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [20:46:23]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [20:46:23]line СÐО: Общий режим [20:46:23]line Чек 145 18.10.2024 20:46 [20:46:23]line Смена: 22 ФФД: 1.0 [20:46:23]line ЗÐМ: 0300000191 [20:46:23]line РÐМ: 0000000000207295 [20:46:23]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [20:46:23]line ФМ: 0000000002342820 [20:46:23]line ФД: 2520 [20:46:23]line ФПД: 133233677232711 [20:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T204627&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2520&fm=133233677232711&tin=02508201610067®Number=0000000000207295&sum=13900 [20:46:23]line 0 [20:46:23]OFD Sender: Processing packet 2520 [packets to send 1, broken 0] [20:46:23]ProducePacketName [20:46:23]name=ofd_packets/00002520 [20:46:23]OFD Sender: To server: ‡•öpG, [20:46:23]CommunicateWithHost lk.salyk.kg:30040 [20:46:23]ConnectInit lk.salyk.kg [20:46:23]written 0, free lines is 4095 [20:46:23]Connected sock=10 [20:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2C 01 00 00 D9 B6 24 01 AA 44 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 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 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 36 00 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 23 C9 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D8 09 00 00 35 04 06 00 79 2C E2 00 EA 47 0E AB 45 67 FF 51 59 39 [20:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 EC A6 47 00 D3 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 32 33 34 32 38 32 30 10 04 04 00 D8 09 00 00 F4 03 04 00 86 74 12 67 B6 04 01 00 00 35 B7 E2 98 DE D7 3F 88 [20:46:23]CommunicateWithHost err = 0 [20:46:23]CheckOFDResponse [20:46:23]1017 (14) - 77093643461234 [20:46:23]1041 (16) - 0000000002342820 [20:46:23]1040 (4) - 2520 [20:46:23]1012 (4) - 18.10.2024 14:45 [20:46:23]1206 (1) - 0 [20:46:23]OFD Sender: Remove packet 2520 [20:46:23]ProducePacketName [20:46:23]name=ofd_packets/00002520 [20:46:23]NVStorageDeleteData [20:46:23]Write to MH i2c: 01 00 00 5E 3A 98 [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: 01 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: 01 07 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: 01 07 00 5E 3A 00 00 00 00 00 AB 0C 56 [20:46:23]RasterBufferAndPrint [20:46:23]line [20:46:23]line [20:46:23]line [20:46:23]line [20:46:23]line [20:46:23]written 0, free lines is 3246 [20:46:23]MH_Cut [20:46:23]Write to MH i2c: D1 01 00 65 3A 01 71 [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: D1 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: D1 01 00 [20:46:23]MH_I2C_Read... [20:46:23]Read from MH i2c: D1 01 00 65 3A 00 70 [20:46:23]Write to MH i2c: 01 00 00 66 3A A0 [20:46:23]Write i2c OK [20:46:23]MH_I2C_Read... [20:46:24]OFD Sender: No OFD packet to send [20:46:24]*** Cut start [20:46:24]*** Partial cut [20:46:24]*** CUTSNS_PIN = 1 [20:46:24]*** CUTSNS_PIN = 0 [20:46:25]*** Brake cut motor [20:46:25]Read from MH i2c: 01 [20:46:25]MH_I2C_Read... [20:46:25]*** Stop cut motor [20:46:25]*** Cut end [20:46:25]Read from MH i2c: 01 07 00 [20:46:25]MH_I2C_Read... [20:46:25]Read from MH i2c: 01 07 00 66 3A 00 00 00 00 00 FF 0F B5 [20:46:25]process_action close_receipt done [20:46:25]requested_data is exist [20:46:25]produce_requested_data [20:46:25]requested_item fm.sn is exist - process it [20:46:25]wFMCommunicate request_size=4 [20:46:25]MH_SAM_APDU [20:46:25]CAPDU: 80 11 00 00 [20:46:25]Write to MH i2c: E2 08 00 67 3A 80 11 00 00 00 00 00 00 1B [20:46:25]Write i2c OK [20:46:25]MH_I2C_Read... [20:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:25]Read from MH i2c: E2 [20:46:25]MH_I2C_Read... [20:46:25]Read from MH i2c: E2 17 00 [20:46:25]MH_I2C_Read... [20:46:25]Read from MH i2c: E2 17 00 67 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 63 [20:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [20:46:25]wFMCommunicate OK [20:46:25]requested_item fd.num is exist - process it [20:46:25]SAM_PROTO_GetFieldsCounters [20:46:25]wFMCommunicate request_size=4 [20:46:25]MH_SAM_APDU [20:46:25]CAPDU: 80 13 00 00 [20:46:25]Write to MH i2c: E2 08 00 68 3A 80 13 00 00 00 00 00 00 1E [20:46:25]Write i2c OK [20:46:25]MH_I2C_Read... [20:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:25]Read from MH i2c: E2 [20:46:25]MH_I2C_Read... [20:46:25]Read from MH i2c: E2 62 00 [20:46:25]MH_I2C_Read... [20:46:25]Read from MH i2c: E2 62 00 68 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D8 09 00 00 0E 04 04 00 16 00 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 DE [20:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D8 09 00 00 0E 04 04 00 16 00 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 [20:46:25]wFMCommunicate OK [20:46:25]SAM_PROTO_GetFieldsCounters done [20:46:25]requested_item shift.num is exist - process it [20:46:25]requested_item shift.opened is exist - process it [20:46:25]req_shift_opened [20:46:25]FM_GetShiftState [20:46:25]SAM_PROTO_GetShiftState [20:46:25]wFMCommunicate request_size=4 [20:46:25]MH_SAM_APDU [20:46:25]CAPDU: 80 13 01 00 [20:46:25]Write to MH i2c: E2 08 00 69 3A 80 13 01 00 00 00 00 00 20 [20:46:25]Write i2c OK [20:46:25]MH_I2C_Read... [20:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:25]Read from MH i2c: E2 [20:46:25]MH_I2C_Read... [20:46:25]Read from MH i2c: E2 0E 00 [20:46:25]MH_I2C_Read... [20:46:25]Read from MH i2c: E2 0E 00 69 3A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 BE [20:46:25]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [20:46:25]wFMCommunicate OK [20:46:25]SAM_PROTO_GetShiftState done [20:46:25]FM_GetShiftState done [20:46:25]req_shift_opened done [20:46:25]requested_item shift.open_date is exist - process it [20:46:25]req_shift_open_date [20:46:25]req_shift_open_date done [20:46:25]produce_requested_data done [20:46:25]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2520,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [20:46:25]process_action_free close_receipt [20:46:25]json_value_free [20:46:25]json_value_free done [20:46:25]process_json_proto returns [20:46:25]Send response to host [20:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2520,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [20:46:25]free response buf [20:46:25]execute_script done [20:46:25]execute_script returns [20:46:25]free content buf [20:46:25]Sock 7.Close socket [20:46:25]Sock 7.Thread stoped [20:46:29]OFD Sender: No OFD packet to send [20:46:34]OFD Sender: No OFD packet to send [20:46:39]OFD Sender: No OFD packet to send [20:46:44]OFD Sender: No OFD packet to send [20:46:49]OFD Sender: No OFD packet to send [20:46:54]OFD Sender: No OFD packet to send [20:46:59]OFD Sender: No OFD packet to send [20:47:04]OFD Sender: No OFD packet to send [20:47:09]OFD Sender: No OFD packet to send [20:47:14]OFD Sender: No OFD packet to send [20:47:19]OFD Sender: No OFD packet to send [20:47:24]OFD Sender: No OFD packet to send [20:47:29]OFD Sender: No OFD packet to send [20:47:34]OFD Sender: No OFD packet to send [20:47:39]OFD Sender: No OFD packet to send [20:47:44]OFD Sender: No OFD packet to send [20:47:49]OFD Sender: No OFD packet to send [20:47:54]OFD Sender: No OFD packet to send [20:47:59]OFD Sender: No OFD packet to send [20:48:04]OFD Sender: No OFD packet to send [20:48:09]OFD Sender: No OFD packet to send [20:48:14]OFD Sender: No OFD packet to send [20:48:19]OFD Sender: No OFD packet to send [20:48:24]OFD Sender: No OFD packet to send [20:48:29]OFD Sender: No OFD packet to send [20:48:34]OFD Sender: No OFD packet to send [20:48:39]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:04]OFD Sender: No OFD packet to send [20:49:09]OFD Sender: No OFD packet to send [20:49:14]OFD Sender: No OFD packet to send [20:49:19]OFD Sender: No OFD packet to send [20:49:24]OFD Sender: No OFD packet to send [20:49:29]OFD Sender: No OFD packet to send [20:49:34]OFD Sender: No OFD packet to send [20:49:39]OFD Sender: No OFD packet to send [20:49:44]OFD Sender: No OFD packet to send [20:49:49]OFD Sender: No OFD packet to send [20:49:54]OFD Sender: No OFD packet to send [20:49:59]OFD Sender: No OFD packet to send [20:50:04]OFD Sender: No OFD packet to send [20:50:09]OFD Sender: No OFD packet to send [20:50:14]OFD Sender: No OFD packet to send [20:50:19]OFD Sender: No OFD packet to send [20:50:24]OFD Sender: No OFD packet to send [20:50:29]OFD Sender: No OFD packet to send [20:50:34]OFD Sender: No OFD packet to send [20:50:39]OFD Sender: No OFD packet to send [20:50:44]OFD Sender: No OFD packet to send [20:50:49]OFD Sender: No OFD packet to send [20:50:54]OFD Sender: No OFD packet to send [20:50:59]OFD Sender: No OFD packet to send [20:51:04]OFD Sender: No OFD packet to send [20:51:09]OFD Sender: No OFD packet to send [20:51:14]OFD Sender: No OFD packet to send [20:51:19]OFD Sender: No OFD packet to send [20:51:24]OFD Sender: No OFD packet to send [20:51:29]OFD Sender: No OFD packet to send [20:51:34]OFD Sender: No OFD packet to send [20:51:39]OFD Sender: No OFD packet to send [20:51:44]OFD Sender: No OFD packet to send [20:51:49]OFD Sender: No OFD packet to send [20:51:54]OFD Sender: No OFD packet to send [20:51:59]OFD Sender: No OFD packet to send [20:52:04]OFD Sender: No OFD packet to send [20:52:09]OFD Sender: No OFD packet to send [20:52:14]OFD Sender: No OFD packet to send [20:52:19]OFD Sender: No OFD packet to send [20:52:24]OFD Sender: No OFD packet to send [20:52:29]OFD Sender: No OFD packet to send [20:52:34]OFD Sender: No OFD packet to send [20:52:39]OFD Sender: No OFD packet to send [20:52:44]OFD Sender: No OFD packet to send [20:52:49]OFD Sender: No OFD packet to send [20:52:54]OFD Sender: No OFD packet to send [20:52:59]OFD Sender: No OFD packet to send [20:53:04]OFD Sender: No OFD packet to send [20:53:09]OFD Sender: No OFD packet to send [20:53:14]OFD Sender: No OFD packet to send [20:53:19]OFD Sender: No OFD packet to send [20:53:24]OFD Sender: No OFD packet to send [20:53:29]OFD Sender: No OFD packet to send [20:53:34]OFD Sender: No OFD packet to send [20:53:39]OFD Sender: No OFD packet to send [20:53:44]OFD Sender: No OFD packet to send [20:53:49]OFD Sender: No OFD packet to send [20:53:54]OFD Sender: No OFD packet to send [20:53:59]OFD Sender: No OFD packet to send [20:54:04]OFD Sender: No OFD packet to send [20:54:09]OFD Sender: No OFD packet to send [20:54:14]OFD Sender: No OFD packet to send [20:54:19]OFD Sender: No OFD packet to send [20:54:24]OFD Sender: No OFD packet to send [20:54:29]OFD Sender: No OFD packet to send [20:54:34]OFD Sender: No OFD packet to send [20:54:39]OFD Sender: No OFD packet to send [20:54:44]OFD Sender: No OFD packet to send [20:54:49]OFD Sender: No OFD packet to send [20:54:54]OFD Sender: No OFD packet to send [20:54:59]OFD Sender: No OFD packet to send [20:55:04]OFD Sender: No OFD packet to send [20:55:09]OFD Sender: No OFD packet to send [20:55:14]OFD Sender: No OFD packet to send [20:55:19]OFD Sender: No OFD packet to send [20:55:24]OFD Sender: No OFD packet to send [20:55:29]OFD Sender: No OFD packet to send [20:55:34]OFD Sender: No OFD packet to send [20:55:39]OFD Sender: No OFD packet to send [20:55:44]OFD Sender: No OFD packet to send [20:55:49]OFD Sender: No OFD packet to send [20:55:54]OFD Sender: No OFD packet to send [20:55:59]OFD Sender: No OFD packet to send [20:56:04]OFD Sender: No OFD packet to send [20:56:09]OFD Sender: No OFD packet to send [20:56:14]OFD Sender: No OFD packet to send [20:56:19]OFD Sender: No OFD packet to send [20:56:24]OFD Sender: No OFD packet to send [20:56:29]OFD Sender: No OFD packet to send [20:56:34]OFD Sender: No OFD packet to send [20:56:39]OFD Sender: No OFD packet to send [20:56:44]OFD Sender: No OFD packet to send [20:56:49]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:59]OFD Sender: No OFD packet to send [20:59:04]OFD Sender: No OFD packet to send [20:59:09]OFD Sender: No OFD packet to send [20:59:14]OFD Sender: No OFD packet to send [20:59:19]OFD Sender: No OFD packet to send [20:59:24]OFD Sender: No OFD packet to send [20:59:29]OFD Sender: No OFD packet to send [20:59:34]OFD Sender: No OFD packet to send [20:59:39]OFD Sender: No OFD packet to send [20:59:44]OFD Sender: No OFD packet to send [20:59:49]OFD Sender: No OFD packet to send [20:59:54]OFD Sender: No OFD packet to send [20:59:59]OFD Sender: No OFD packet to send [21:00:04]OFD Sender: No OFD packet to send [21:00:09]OFD Sender: No OFD packet to send [21:00:14]OFD Sender: No OFD packet to send [21:00:19]OFD Sender: No OFD packet to send [21:00:24]OFD Sender: No OFD packet to send [21:00:29]OFD Sender: No OFD packet to send [21:00:34]OFD Sender: No OFD packet to send [21:00:39]OFD Sender: No OFD packet to send [21:00:44]OFD Sender: No OFD packet to send [21:00:49]OFD Sender: No OFD packet to send [21:00:54]OFD Sender: No OFD packet to send [21:00:59]OFD Sender: No OFD packet to send [21:01:04]OFD Sender: No OFD packet to send [21:01:09]OFD Sender: No OFD packet to send [21:01:14]OFD Sender: No OFD packet to send [21:01:19]OFD Sender: No OFD packet to send [21:01:24]OFD Sender: No OFD packet to send [21:01:29]OFD Sender: No OFD packet to send [21:01:34]OFD Sender: No OFD packet to send [21:01:39]OFD Sender: No OFD packet to send [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:29]OFD Sender: No OFD packet to send [21:02:34]OFD Sender: No OFD packet to send [21:02:39]OFD Sender: No OFD packet to send [21:02:44]OFD Sender: No OFD packet to send [21:02:49]OFD Sender: No OFD packet to send [21:02:54]OFD Sender: No OFD packet to send [21:02:59]OFD Sender: No OFD packet to send [21:03:04]OFD Sender: No OFD packet to send [21:03:09]OFD Sender: No OFD packet to send [21:03:14]OFD Sender: No OFD packet to send [21:03:19]OFD Sender: No OFD packet to send [21:03:24]OFD Sender: No OFD packet to send [21:03:29]OFD Sender: No OFD packet to send [21:03:34]OFD Sender: No OFD packet to send [21:03:39]OFD Sender: No OFD packet to send [21:03:44]OFD Sender: No OFD packet to send [21:03:50]OFD Sender: No OFD packet to send [21:03:55]OFD Sender: No OFD packet to send [21:04:00]OFD Sender: No OFD packet to send [21:04:05]OFD Sender: No OFD packet to send [21:04:10]OFD Sender: No OFD packet to send [21:04:15]OFD Sender: No OFD packet to send [21:04:20]OFD Sender: No OFD packet to send [21:04:25]OFD Sender: No OFD packet to send [21:04:30]OFD Sender: No OFD packet to send [21:04:35]OFD Sender: No OFD packet to send [21:04:40]OFD Sender: No OFD packet to send [21:04:45]OFD Sender: No OFD packet to send [21:04:50]OFD Sender: No OFD packet to send [21:04:55]OFD Sender: No OFD packet to send [21:05:00]OFD Sender: No OFD packet to send [21:05:05]OFD Sender: No OFD packet to send [21:05:10]OFD Sender: No OFD packet to send [21:05:15]OFD Sender: No OFD packet to send [21:05:20]OFD Sender: No OFD packet to send [21:05:25]OFD Sender: No OFD packet to send [21:05:30]OFD Sender: No OFD packet to send [21:05:35]OFD Sender: No OFD packet to send [21:05:40]OFD Sender: No OFD packet to send [21:05:45]OFD Sender: No OFD packet to send [21:05:50]OFD Sender: No OFD packet to send [21:05:55]OFD Sender: No OFD packet to send [21:06:00]OFD Sender: No OFD packet to send [21:06:05]OFD Sender: No OFD packet to send [21:06:10]OFD Sender: No OFD packet to send [21:06:15]OFD Sender: No OFD packet to send [21:06:20]OFD Sender: No OFD packet to send [21:06:25]OFD Sender: No OFD packet to send [21:06:30]OFD Sender: No OFD packet to send [21:06:35]OFD Sender: No OFD packet to send [21:06:40]OFD Sender: No OFD packet to send [21:06:45]OFD Sender: No OFD packet to send [21:06:50]OFD Sender: No OFD packet to send [21:06:55]OFD Sender: No OFD packet to send [21:07:00]OFD Sender: No OFD packet to send [21:07:05]OFD Sender: No OFD packet to send [21:07:10]OFD Sender: No OFD packet to send [21:07:15]OFD Sender: No OFD packet to send [21:07:20]OFD Sender: No OFD packet to send [21:07:25]OFD Sender: No OFD packet to send [21:07:30]OFD Sender: No OFD packet to send [21:07:35]OFD Sender: No OFD packet to send [21:07:40]OFD Sender: No OFD packet to send [21:07:45]OFD Sender: No OFD packet to send [21:07:50]OFD Sender: No OFD packet to send [21:07:55]OFD Sender: No OFD packet to send [21:08:00]OFD Sender: No OFD packet to send [21:08:05]OFD Sender: No OFD packet to send [21:08:10]OFD Sender: No OFD packet to send [21:08:15]OFD Sender: No OFD packet to send [21:08:20]OFD Sender: No OFD packet to send [21:08:25]OFD Sender: No OFD packet to send [21:08:30]OFD Sender: No OFD packet to send [21:08:35]OFD Sender: No OFD packet to send [21:08:40]OFD Sender: No OFD packet to send [21:08:45]OFD Sender: No OFD packet to send [21:08:50]OFD Sender: No OFD packet to send [21:08:55]OFD Sender: No OFD packet to send [21:09:00]OFD Sender: No OFD packet to send [21:09:05]OFD Sender: No OFD packet to send [21:09:10]OFD Sender: No OFD packet to send [21:09:15]OFD Sender: No OFD packet to send [21:09:20]OFD Sender: No OFD packet to send [21:09:25]OFD Sender: No OFD packet to send [21:09:30]OFD Sender: No OFD packet to send [21:09:35]OFD Sender: No OFD packet to send [21:09:40]OFD Sender: No OFD packet to send [21:09:45]OFD Sender: No OFD packet to send [21:09:50]OFD Sender: No OFD packet to send [21:09:55]OFD Sender: No OFD packet to send [21:10:00]OFD Sender: No OFD packet to send [21:10:05]OFD Sender: No OFD packet to send [21:10:10]OFD Sender: No OFD packet to send [21:10:15]OFD Sender: No OFD packet to send [21:10:20]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12: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: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]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]accept exits with 9 [21:24:10]New connection [21:24:10]New thread 3066707300 created [21:24:10]Thread 3066850660 joined [21:24:10]Waiting for new connection... [21:24:10] Sock 9.Parse request [21:24:10]Sock 9.Check first char [21:24:10]Sock 9.First char is OK [21:24:10]request: POST /json_proto HTTP/1.0 [21:24:10]Method: POST [21:24:10]URL: /json_proto [21:24:10]Method is POST - this is cgi request [21:24:10]url: /json_proto [21:24:10]query_string will be loaded in cgi processing [21:24:10]execute_cgi json_proto POST (null) [21:24:10]execute_cgi path=json_proto method=POST [21:24:10]POST find Content-Length [21:24:10]Host: 172.17.52.132:8080 [21:24:10]Content-Length: 669 [21:24:10]Content-Type: application/json [21:24:10] [21:24:10]POST finish read [21:24:10]Found Content-Length = 669 [21:24:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99909", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:10]execute_script... [21:24: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 : (3)99909", "tax_sys" : 0, "items" : [ { "code": "4700000480357", "name": "\u041F\u0438\u0432\u043E \u0448\u0430\u0445\u0442\u0435\u0440\u0441\u043A\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 170.00, "quantity" : 2.000, "sum" : 340.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 340.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:10]POST & json_proto [21:24:10]process_json_proto [21:24:10]json parsed OK: [21:24:10]protocol is kg_v1.0 [21:24:10]action value=close_receipt [21:24:10]process_action close_receipt [21:24:10]cmd_close_receipt [21:24:10]MH_GetDate [21:24:10]Write to MH i2c: F0 00 00 6A 3A 93 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: F0 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: F0 09 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: F0 09 00 6A 3A 00 00 D2 12 67 5A BE F6 66 5B [21:24:10]GetLastDocTimeStamp 1729284387 [21:24:10]current date 1729286656 [21:24:10]FM_GetShiftState [21:24:10]SAM_PROTO_GetShiftState [21:24:10]wFMCommunicate request_size=4 [21:24:10]MH_SAM_APDU [21:24:10]CAPDU: 80 13 01 00 [21:24:10]Write to MH i2c: E2 08 00 6B 3A 80 13 01 00 00 00 00 00 22 [21:24:10]Write i2c OK [21:24:10]MH_I2C_Read... [21:24:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:10]Read from MH i2c: E2 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 0E 00 [21:24:10]MH_I2C_Read... [21:24:10]Read from MH i2c: E2 0E 00 6B 3A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 C0 [21:24:10]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:24:10]wFMCommunicate OK [21:24:10]SAM_PROTO_GetShiftState done [21:24:10]FM_GetShiftState done [21:24:10]opened in 1729209717 [21:24:10]opened+sec_in_day 1729296117 [21:24:10]quantity*price = 34000 [21:24:10]sum+1 = 34001 [21:24:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 340.00 ÐСП 1% : 3.01 ÐДС 12% : 36.11 Ðаличными: 340.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 146 18.10.2024 21:24 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2521 ФПД: 164954768131276 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212416&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2521&fm=164954768131276&tin=02508201610067®Number=0000000000207295&sum=34000 0 [21:24:11]StoreToDocumentArchive [21:24:11]shift 22 fd 2521 [21:24:11]save to /storage/0022/doc_00002521 [21:24:11]save last doc name /storage/0022/doc_00002521 to /storage/kkm_last_doc_name [21:24:11]save OK [21:24:11]Clear old archive folders... [21:24:11]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:24:11]tlvbuf is 013FFD30 [21:24:11]SAM_PROTO_ClearQueue [21:24:11]wFMCommunicate request_size=4 [21:24:11]MH_SAM_APDU [21:24:11]CAPDU: 80 09 00 00 [21:24:11]Write to MH i2c: E2 08 00 78 3A 80 09 00 00 00 00 00 00 24 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:11]Read from MH i2c: E2 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 78 3A 00 90 00 26 [21:24:11]RAPDU: 90 00 [21:24:11]wFMCommunicate OK [21:24:11]SAM_PROTO_ClearQueue done [21:24:11]KKMCreateOFDPacket [21:24:11]OFDProtocolAddRootSTLVToBuf [21:24:11]FM_MakeSignedData [21:24:11]FM_MakeSignedData [21:24:11]SAM_PROTO_SignData [21:24:11]wFMCommunicate request_size=4 [21:24:11]MH_SAM_APDU [21:24:11]CAPDU: 80 0D 01 02 [21:24:11]Write to MH i2c: E2 08 00 79 3A 80 0D 01 02 00 00 00 00 2C [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:11]Read from MH i2c: E2 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 79 3A 00 90 00 27 [21:24:11]RAPDU: 90 00 [21:24:11]wFMCommunicate OK [21:24:11]wFMCommunicate request_size=255 [21:24:11]MH_SAM_APDU [21:24:11]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 00 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 [21:24:11]Write to MH i2c: E2 02 01 7A 3A 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 00 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 00 00 C4 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:11]Read from MH i2c: E2 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 7A 3A 00 90 00 28 [21:24:11]RAPDU: 90 00 [21:24:11]wFMCommunicate OK [21:24:11]wFMCommunicate request_size=41 [21:24:11]MH_SAM_APDU [21:24:11]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D9 09 00 00 35 04 06 00 96 06 86 5B C4 CC [21:24:11]Write to MH i2c: E2 2C 00 7B 3A 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D9 09 00 00 35 04 06 00 96 06 86 5B C4 CC 00 00 E2 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:11]Read from MH i2c: E2 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 03 00 7B 3A 00 90 00 29 [21:24:11]RAPDU: 90 00 [21:24:11]wFMCommunicate OK [21:24:11]wFMCommunicate request_size=4 [21:24:11]MH_SAM_APDU [21:24:11]CAPDU: 80 0D 03 02 [21:24:11]Write to MH i2c: E2 08 00 7C 3A 80 0D 03 02 00 00 00 00 31 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:11]Read from MH i2c: E2 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 0B 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 0B 00 7C 3A 00 1D D9 18 C3 0C 28 5D 63 90 00 F7 [21:24:11]RAPDU: 1D D9 18 C3 0C 28 5D 63 90 00 [21:24:11]wFMCommunicate OK [21:24:11]SAM_PROTO_SignData done [21:24:11]FM_MakeSignedData done [21:24:11]CreateOFDProtocolMessage [21:24:11]wFMCommunicate request_size=4 [21:24:11]MH_SAM_APDU [21:24:11]CAPDU: 80 11 00 00 [21:24:11]Write to MH i2c: E2 08 00 7D 3A 80 11 00 00 00 00 00 00 31 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:11]Read from MH i2c: E2 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 17 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: E2 17 00 7D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 79 [21:24:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:24:11]wFMCommunicate OK [21:24:11]CreateOFDProtocolMessage done [21:24:11]OFDSenderStorePacket 2521 [21:24:11]StoreOFDPacket docnum=2521 [21:24:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 E7 58 26 01 6F 3A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 00 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D9 09 00 00 35 04 06 00 96 06 86 5B C4 CC 1D D9 18 C3 0C 28 5D 63 [21:24:11]CheckFolder [21:24:11]dirname=/storage/ofd_packets [21:24:11]CheckFolder done [21:24:11]ProducePacketName [21:24:11]name=ofd_packets/00002521 [21:24:11]NVStorageSaveData ofd_packets/00002521 [21:24:11]File name is /storage/ofd_packets/00002521 [21:24:11]Write 332 bytes [21:24:11]NVStorageSaveData done [21:24:11]OFDSenderStorePacket done [21:24:11]KKMCreateOFDPacket done [21:24:11]NVStorageSaveData kkm_last_timestamp [21:24:11]File name is /storage/kkm_last_timestamp [21:24:11]Write 4 bytes [21:24:11]NVStorageSaveData done [21:24:11]ExternCall_PrintAddStr [21:24:11]wPrintStart [21:24:11]Write to MH i2c: 01 00 00 7E 3A B8 [21:24:11]Write i2c OK [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: 01 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: 01 07 00 [21:24:11]MH_I2C_Read... [21:24:11]Read from MH i2c: 01 07 00 7E 3A 00 00 00 00 00 FF 0F CD [21:24:11]RasterBufferAndPrint [21:24:11]line Счет N : (3)99909 [21:24:11]line ИÐÐ: 02508201610067 [21:24:11]line Контрольно-КаÑÑовый Чек [21:24:11]line ПРОДÐЖР[21:24:11]line Товар: 4700000480357 [21:24:11]line Пиво шахтерÑкое 1л ПЭТ [21:24:11]line 2.000 * 170.00 [21:24:11]line = 340.00 [21:24:11]line ÐДС 12% ÐСП 1% [21:24:11]line > о реализуемом товаре [21:24:11]line ИТОГО: 340.00 [21:24:11]line ÐСП 1% : 3.01 [21:24:11]line ÐДС 12% : 36.11 [21:24:11]line Ðаличными: 340.00 [21:24:11]line Безнал.: 0.00 [21:24:11]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:24:11]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:24:11]line СÐО: Общий режим [21:24:11]line Чек 146 18.10.2024 21:24 [21:24:11]line Смена: 22 ФФД: 1.0 [21:24:11]line ЗÐМ: 0300000191 [21:24:11]line РÐМ: 0000000000207295 [21:24:11]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:24:11]line ФМ: 0000000002342820 [21:24:11]line ФД: 2521 [21:24:11]line ФПД: 164954768131276 [21:24:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212416&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2521&fm=164954768131276&tin=02508201610067®Number=0000000000207295&sum=34000 [21:24:12]line 0 [21:24:12]OFD Sender: Processing packet 2521 [packets to send 1, broken 0] [21:24:12]ProducePacketName [21:24:12]name=ofd_packets/00002521 [21:24:12]OFD Sender: To server: ‡•öpG, [21:24:12]CommunicateWithHost lk.salyk.kg:30040 [21:24:12]ConnectInit lk.salyk.kg [21:24:12]written 0, free lines is 4095 [21:24:12]Connected sock=10 [21:24:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 E7 58 26 01 6F 3A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 35 37 06 04 28 00 D0 9F D0 B8 D0 B2 D0 BE 20 D1 88 D0 B0 D1 85 D1 82 D0 B5 D1 80 D1 81 D0 BA D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 D0 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 00 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D9 09 00 00 35 04 06 00 96 06 86 5B C4 CC 1D D9 18 C3 0C 28 5D 63 [21:24:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 70 AF 47 00 FE 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 D9 09 00 00 F4 03 04 00 63 7D 12 67 B6 04 01 00 00 20 E9 1B 51 FC 8B 2F 81 [21:24:12]CommunicateWithHost err = 0 [21:24:12]CheckOFDResponse [21:24:12]1017 (14) - 77093643461234 [21:24:12]1041 (16) - 0000000002342820 [21:24:12]1040 (4) - 2521 [21:24:12]1012 (4) - 18.10.2024 15:23 [21:24:12]1206 (1) - 0 [21:24:12]OFD Sender: Remove packet 2521 [21:24:12]ProducePacketName [21:24:12]name=ofd_packets/00002521 [21:24:12]NVStorageDeleteData [21:24:12]Write to MH i2c: 01 00 00 A6 3A E0 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: 01 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: 01 07 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: 01 07 00 A6 3A 00 00 00 00 00 C9 0C BC [21:24:12]RasterBufferAndPrint [21:24:12]line [21:24:12]line [21:24:12]line [21:24:12]line [21:24:12]line [21:24:12]written 0, free lines is 3277 [21:24:12]MH_Cut [21:24:12]Write to MH i2c: D1 01 00 AD 3A 01 B9 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: D1 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: D1 01 00 [21:24:12]MH_I2C_Read... [21:24:12]Read from MH i2c: D1 01 00 AD 3A 00 B8 [21:24:12]Write to MH i2c: 01 00 00 AE 3A E8 [21:24:12]Write i2c OK [21:24:12]MH_I2C_Read... [21:24:12]OFD Sender: No OFD packet to send [21:24:13]*** Cut start [21:24:13]*** Partial cut [21:24:13]*** CUTSNS_PIN = 1 [21:24:13]*** CUTSNS_PIN = 0 [21:24:13]*** Brake cut motor [21:24:14]Read from MH i2c: 01 [21:24:14]MH_I2C_Read... [21:24:14]*** Stop cut motor [21:24:14]*** Cut end [21:24:14]Read from MH i2c: 01 07 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: 01 07 00 AE 3A 00 00 00 00 00 FF 0F FD [21:24:14]process_action close_receipt done [21:24:14]requested_data is exist [21:24:14]produce_requested_data [21:24:14]requested_item fm.sn is exist - process it [21:24:14]wFMCommunicate request_size=4 [21:24:14]MH_SAM_APDU [21:24:14]CAPDU: 80 11 00 00 [21:24:14]Write to MH i2c: E2 08 00 AF 3A 80 11 00 00 00 00 00 00 63 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 17 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 17 00 AF 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 AB [21:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:24:14]wFMCommunicate OK [21:24:14]requested_item fd.num is exist - process it [21:24:14]SAM_PROTO_GetFieldsCounters [21:24:14]wFMCommunicate request_size=4 [21:24:14]MH_SAM_APDU [21:24:14]CAPDU: 80 13 00 00 [21:24:14]Write to MH i2c: E2 08 00 B0 3A 80 13 00 00 00 00 00 00 66 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 62 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 62 00 B0 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D9 09 00 00 0E 04 04 00 16 00 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 2A [21:24:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 D9 09 00 00 0E 04 04 00 16 00 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 [21:24:14]wFMCommunicate OK [21:24:14]SAM_PROTO_GetFieldsCounters done [21:24:14]requested_item shift.num is exist - process it [21:24:14]requested_item shift.opened is exist - process it [21:24:14]req_shift_opened [21:24:14]FM_GetShiftState [21:24:14]SAM_PROTO_GetShiftState [21:24:14]wFMCommunicate request_size=4 [21:24:14]MH_SAM_APDU [21:24:14]CAPDU: 80 13 01 00 [21:24:14]Write to MH i2c: E2 08 00 B1 3A 80 13 01 00 00 00 00 00 68 [21:24:14]Write i2c OK [21:24:14]MH_I2C_Read... [21:24:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:14]Read from MH i2c: E2 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 0E 00 [21:24:14]MH_I2C_Read... [21:24:14]Read from MH i2c: E2 0E 00 B1 3A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 06 [21:24:14]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:24:14]wFMCommunicate OK [21:24:14]SAM_PROTO_GetShiftState done [21:24:14]FM_GetShiftState done [21:24:14]req_shift_opened done [21:24:14]requested_item shift.open_date is exist - process it [21:24:14]req_shift_open_date [21:24:14]req_shift_open_date done [21:24:14]produce_requested_data done [21:24:14]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2521,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:24:14]process_action_free close_receipt [21:24:14]json_value_free [21:24:14]json_value_free done [21:24:14]process_json_proto returns [21:24:14]Send response to host [21:24:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2521,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:24:14]free response buf [21:24:14]execute_script done [21:24:14]execute_script returns [21:24:14]free content buf [21:24:14]Sock 9.Close socket [21:24:14]Sock 9.Thread stoped [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]accept exits with 7 [21:24:47]New connection [21:24:47]New thread 3066850660 created [21:24:47]Thread 3066707300 joined [21:24:47]Waiting for new connection... [21:24:47] Sock 7.Parse request [21:24:47]Sock 7.Check first char [21:24:47]Sock 7.First char is OK [21:24:47]request: POST /json_proto HTTP/1.0 [21:24:47]Method: POST [21:24:47]URL: /json_proto [21:24:47]Method is POST - this is cgi request [21:24:47]url: /json_proto [21:24:47]query_string will be loaded in cgi processing [21:24:47]execute_cgi json_proto POST (null) [21:24:47]execute_cgi path=json_proto method=POST [21:24:47]POST find Content-Length [21:24:47]Host: 172.17.52.132:8080 [21:24:47]Content-Length: 754 [21:24:47]Content-Type: application/json [21:24:47] [21:24:47]POST finish read [21:24:47]Found Content-Length = 754 [21:24:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99910", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:47]execute_script... [21: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 : (3)99910", "tax_sys" : 0, "items" : [ { "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:47]POST & json_proto [21:24:47]process_json_proto [21:24:47]json parsed OK: [21:24:47]protocol is kg_v1.0 [21:24:47]action value=close_receipt [21:24:47]process_action close_receipt [21:24:47]cmd_close_receipt [21:24:47]MH_GetDate [21:24:47]Write to MH i2c: F0 00 00 B2 3A DB [21:24:47]Write i2c OK [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: F0 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: F0 09 00 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: F0 09 00 B2 3A 00 25 D2 12 67 5A BE F6 66 C8 [21:24:47]GetLastDocTimeStamp 1729286656 [21:24:47]current date 1729286693 [21:24:47]FM_GetShiftState [21:24:47]SAM_PROTO_GetShiftState [21:24:47]wFMCommunicate request_size=4 [21:24:47]MH_SAM_APDU [21:24:47]CAPDU: 80 13 01 00 [21:24:47]Write to MH i2c: E2 08 00 B3 3A 80 13 01 00 00 00 00 00 6A [21:24:47]Write i2c OK [21:24:47]MH_I2C_Read... [21:24:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:47]Read from MH i2c: E2 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: E2 0E 00 [21:24:47]MH_I2C_Read... [21:24:47]Read from MH i2c: E2 0E 00 B3 3A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 08 [21:24:47]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:24:47]wFMCommunicate OK [21:24:47]SAM_PROTO_GetShiftState done [21:24:47]FM_GetShiftState done [21:24:47]opened in 1729209717 [21:24:47]opened+sec_in_day 1729296117 [21:24:47]quantity*price = 4000 [21:24:47]sum+1 = 4001 [21:24:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 ÐСП 1% : 0.35 ÐДС 12% : 4.25 Ðаличными: 40.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 147 18.10.2024 21:24 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2522 ФПД: 225148665198984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212453&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2522&fm=225148665198984&tin=02508201610067®Number=0000000000207295&sum=4000 0 [21:24:48]StoreToDocumentArchive [21:24:48]shift 22 fd 2522 [21:24:48]save to /storage/0022/doc_00002522 [21:24:48]save last doc name /storage/0022/doc_00002522 to /storage/kkm_last_doc_name [21:24:48]save OK [21:24:48]Clear old archive folders... [21:24:48]ProcessDocumentItem done err = 0, tmpTLVsize=314 [21:24:48]tlvbuf is 013B4290 [21:24:48]SAM_PROTO_ClearQueue [21:24:48]wFMCommunicate request_size=4 [21:24:48]MH_SAM_APDU [21:24:48]CAPDU: 80 09 00 00 [21:24:48]Write to MH i2c: E2 08 00 C0 3A 80 09 00 00 00 00 00 00 6C [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:24:48]Read from MH i2c: E2 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 03 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 03 00 C0 3A 00 90 00 6E [21:24:48]RAPDU: 90 00 [21:24:48]wFMCommunicate OK [21:24:48]SAM_PROTO_ClearQueue done [21:24:48]KKMCreateOFDPacket [21:24:48]OFDProtocolAddRootSTLVToBuf [21:24:48]FM_MakeSignedData [21:24:48]FM_MakeSignedData [21:24:48]SAM_PROTO_SignData [21:24:48]wFMCommunicate request_size=4 [21:24:48]MH_SAM_APDU [21:24:48]CAPDU: 80 0D 01 02 [21:24:48]Write to MH i2c: E2 08 00 C1 3A 80 0D 01 02 00 00 00 00 74 [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:24:48]Read from MH i2c: E2 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 03 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 03 00 C1 3A 00 90 00 6F [21:24:48]RAPDU: 90 00 [21:24:48]wFMCommunicate OK [21:24:48]wFMCommunicate request_size=255 [21:24:48]MH_SAM_APDU [21:24:48]CAPDU: 80 0D 02 02 FA 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 25 D2 12 67 0E 04 04 [21:24:48]Write to MH i2c: E2 02 01 C2 3A 80 0D 02 02 FA 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 25 D2 12 67 0E 04 04 00 00 CB [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:48]Read from MH i2c: E2 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 03 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 03 00 C2 3A 00 90 00 70 [21:24:48]RAPDU: 90 00 [21:24:48]wFMCommunicate OK [21:24:48]wFMCommunicate request_size=73 [21:24:48]MH_SAM_APDU [21:24:48]CAPDU: 80 0D 02 02 44 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DA 09 00 00 35 04 06 00 CC C5 82 35 F9 88 [21:24:48]Write to MH i2c: E2 4C 00 C3 3A 80 0D 02 02 44 00 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DA 09 00 00 35 04 06 00 CC C5 82 35 F9 88 00 00 4B [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:24:48]Read from MH i2c: E2 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 03 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 03 00 C3 3A 00 90 00 71 [21:24:48]RAPDU: 90 00 [21:24:48]wFMCommunicate OK [21:24:48]wFMCommunicate request_size=4 [21:24:48]MH_SAM_APDU [21:24:48]CAPDU: 80 0D 03 02 [21:24:48]Write to MH i2c: E2 08 00 C4 3A 80 0D 03 02 00 00 00 00 79 [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:24:48]Read from MH i2c: E2 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 0B 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 0B 00 C4 3A 00 D8 2D 03 65 5D A1 01 72 90 00 58 [21:24:48]RAPDU: D8 2D 03 65 5D A1 01 72 90 00 [21:24:48]wFMCommunicate OK [21:24:48]SAM_PROTO_SignData done [21:24:48]FM_MakeSignedData done [21:24:48]CreateOFDProtocolMessage [21:24:48]wFMCommunicate request_size=4 [21:24:48]MH_SAM_APDU [21:24:48]CAPDU: 80 11 00 00 [21:24:48]Write to MH i2c: E2 08 00 C5 3A 80 11 00 00 00 00 00 00 79 [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:48]Read from MH i2c: E2 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 17 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: E2 17 00 C5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 C1 [21:24:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:24:48]wFMCommunicate OK [21:24:48]CreateOFDProtocolMessage done [21:24:48]OFDSenderStorePacket 2522 [21:24:48]StoreOFDPacket docnum=2522 [21:24:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4E 01 00 00 53 64 46 01 59 81 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 25 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DA 09 00 00 35 04 06 00 CC C5 82 35 F9 88 D8 2D 03 65 5D A1 01 72 [21:24:48]CheckFolder [21:24:48]dirname=/storage/ofd_packets [21:24:48]CheckFolder done [21:24:48]ProducePacketName [21:24:48]name=ofd_packets/00002522 [21:24:48]NVStorageSaveData ofd_packets/00002522 [21:24:48]File name is /storage/ofd_packets/00002522 [21:24:48]Write 364 bytes [21:24:48]NVStorageSaveData done [21:24:48]OFDSenderStorePacket done [21:24:48]KKMCreateOFDPacket done [21:24:48]NVStorageSaveData kkm_last_timestamp [21:24:48]File name is /storage/kkm_last_timestamp [21:24:48]Write 4 bytes [21:24:48]NVStorageSaveData done [21:24:48]ExternCall_PrintAddStr [21:24:48]wPrintStart [21:24:48]Write to MH i2c: 01 00 00 C6 3A 00 [21:24:48]Write i2c OK [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 07 00 [21:24:48]MH_I2C_Read... [21:24:48]Read from MH i2c: 01 07 00 C6 3A 00 00 00 00 00 FF 0F 15 [21:24:48]RasterBufferAndPrint [21:24:48]line Счет N : (3)99910 [21:24:48]line ИÐÐ: 02508201610067 [21:24:48]line Контрольно-КаÑÑовый Чек [21:24:48]line ПРОДÐЖР[21:24:48]line Товар: 4630007400969 [21:24:48]line ÐÑ€Ð°Ñ…Ð¸Ñ Ð¶Ð°Ñ€ÐµÐ½ Караван орехов Стандарт 40 [21:24:48]line 1.000 * 40.00 [21:24:48]line = 40.00 [21:24:48]line ÐДС 12% ÐСП 1% [21:24:48]line > о реализуемом товаре [21:24:48]line ИТОГО: 40.00 [21:24:48]line ÐСП 1% : 0.35 [21:24:48]line ÐДС 12% : 4.25 [21:24:48]line Ðаличными: 40.00 [21:24:48]line Безнал.: 0.00 [21:24:48]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:24:48]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:24:48]line СÐО: Общий режим [21:24:48]line Чек 147 18.10.2024 21:24 [21:24:48]line Смена: 22 ФФД: 1.0 [21:24:48]line ЗÐМ: 0300000191 [21:24:48]line РÐМ: 0000000000207295 [21:24:48]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:24:48]line ФМ: 0000000002342820 [21:24:48]line ФД: 2522 [21:24:48]line ФПД: 225148665198984 [21:24:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212453&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2522&fm=225148665198984&tin=02508201610067®Number=0000000000207295&sum=4000 [21:24:49]line 0 [21:24:49]OFD Sender: Processing packet 2522 [packets to send 1, broken 0] [21:24:49]ProducePacketName [21:24:49]name=ofd_packets/00002522 [21:24:49]OFD Sender: To server: ‡•öpG, [21:24:49]CommunicateWithHost lk.salyk.kg:30040 [21:24:49]ConnectInit lk.salyk.kg [21:24:49]written 0, free lines is 4095 [21:24:49]Connected sock=10 [21:24:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4E 01 00 00 53 64 46 01 59 81 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 25 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DA 09 00 00 35 04 06 00 CC C5 82 35 F9 88 D8 2D 03 65 5D A1 01 72 [21:24:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 AA 92 47 00 8F 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 32 33 34 32 38 32 30 10 04 04 00 DA 09 00 00 F4 03 04 00 88 7D 12 67 B6 04 01 00 00 30 3F B2 FC 0F B7 87 36 [21:24:49]CommunicateWithHost err = 0 [21:24:49]CheckOFDResponse [21:24:49]1017 (14) - 77093643461234 [21:24:49]1041 (16) - 0000000002342820 [21:24:49]1040 (4) - 2522 [21:24:49]1012 (4) - 18.10.2024 15:23 [21:24:49]1206 (1) - 0 [21:24:49]OFD Sender: Remove packet 2522 [21:24:49]ProducePacketName [21:24:49]name=ofd_packets/00002522 [21:24:49]NVStorageDeleteData [21:24:49]Write to MH i2c: 01 00 00 EF 3A 29 [21:24:49]Write i2c OK [21:24:49]MH_I2C_Read... [21:24:49]Read from MH i2c: 01 [21:24:49]MH_I2C_Read... [21:24:49]Read from MH i2c: 01 07 00 [21:24:49]MH_I2C_Read... [21:24:49]Read from MH i2c: 01 07 00 EF 3A 00 00 00 00 00 AB 0C E7 [21:24:49]RasterBufferAndPrint [21:24:49]line [21:24:49]line [21:24:49]line [21:24:49]line [21:24:49]line [21:24:49]written 0, free lines is 3246 [21:24:49]MH_Cut [21:24:49]Write to MH i2c: D1 01 00 F6 3A 01 02 [21:24:49]Write i2c OK [21:24:49]MH_I2C_Read... [21:24:49]Read from MH i2c: D1 [21:24:49]MH_I2C_Read... [21:24:49]Read from MH i2c: D1 01 00 [21:24:49]MH_I2C_Read... [21:24:49]Read from MH i2c: D1 01 00 F6 3A 00 01 [21:24:49]Write to MH i2c: 01 00 00 F7 3A 31 [21:24:49]Write i2c OK [21:24:49]MH_I2C_Read... [21:24:49]OFD Sender: No OFD packet to send [21:24:50]*** Cut start [21:24:50]*** Partial cut [21:24:50]*** CUTSNS_PIN = 1 [21:24:50]*** CUTSNS_PIN = 0 [21:24:50]*** Brake cut motor [21:24:51]Read from MH i2c: 01 [21:24:51]MH_I2C_Read... [21:24:51]*** Stop cut motor [21:24:51]*** Cut end [21:24:51]Read from MH i2c: 01 07 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: 01 07 00 F7 3A 00 00 00 00 00 FF 0F 46 [21:24:51]process_action close_receipt done [21:24:51]requested_data is exist [21:24:51]produce_requested_data [21:24:51]requested_item fm.sn is exist - process it [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 11 00 00 [21:24:51]Write to MH i2c: E2 08 00 F8 3A 80 11 00 00 00 00 00 00 AC [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 17 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 17 00 F8 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 F4 [21:24:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:24:51]wFMCommunicate OK [21:24:51]requested_item fd.num is exist - process it [21:24:51]SAM_PROTO_GetFieldsCounters [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 13 00 00 [21:24:51]Write to MH i2c: E2 08 00 F9 3A 80 13 00 00 00 00 00 00 AF [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 62 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 62 00 F9 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DA 09 00 00 0E 04 04 00 16 00 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 77 [21:24:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DA 09 00 00 0E 04 04 00 16 00 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 [21:24:51]wFMCommunicate OK [21:24:51]SAM_PROTO_GetFieldsCounters done [21:24:51]requested_item shift.num is exist - process it [21:24:51]requested_item shift.opened is exist - process it [21:24:51]req_shift_opened [21:24:51]FM_GetShiftState [21:24:51]SAM_PROTO_GetShiftState [21:24:51]wFMCommunicate request_size=4 [21:24:51]MH_SAM_APDU [21:24:51]CAPDU: 80 13 01 00 [21:24:51]Write to MH i2c: E2 08 00 FA 3A 80 13 01 00 00 00 00 00 B1 [21:24:51]Write i2c OK [21:24:51]MH_I2C_Read... [21:24:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:51]Read from MH i2c: E2 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 0E 00 [21:24:51]MH_I2C_Read... [21:24:51]Read from MH i2c: E2 0E 00 FA 3A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 4F [21:24:51]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:24:51]wFMCommunicate OK [21:24:51]SAM_PROTO_GetShiftState done [21:24:51]FM_GetShiftState done [21:24:51]req_shift_opened done [21:24:51]requested_item shift.open_date is exist - process it [21:24:51]req_shift_open_date [21:24:51]req_shift_open_date done [21:24:51]produce_requested_data done [21:24:51]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2522,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:24:51]process_action_free close_receipt [21:24:51]json_value_free [21:24:51]json_value_free done [21:24:51]process_json_proto returns [21:24:51]Send response to host [21:24:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2522,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:24:51]free response buf [21:24:51]execute_script done [21:24:51]execute_script returns [21:24:51]free content buf [21:24:51]Sock 7.Close socket [21:24:51]Sock 7.Thread stoped [21:24:54]OFD Sender: No OFD packet to send [21:24:59]accept exits with 9 [21:24:59]New connection [21:24:59]New thread 3066707300 created [21:24:59]Thread 3066850660 joined [21:24:59]Waiting for new connection... [21:24:59] Sock 9.Parse request [21:24:59]Sock 9.Check first char [21:24:59]Sock 9.First char is OK [21:24:59]request: POST /json_proto HTTP/1.0 [21:24:59]Method: POST [21:24:59]URL: /json_proto [21:24:59]Method is POST - this is cgi request [21:24:59]url: /json_proto [21:24:59]query_string will be loaded in cgi processing [21:24:59]execute_cgi json_proto POST (null) [21:24:59]execute_cgi path=json_proto method=POST [21:24:59]POST find Content-Length [21:24:59]Host: 172.17.52.132:8080 [21:24:59]Content-Length: 649 [21:24:59]Content-Type: application/json [21:24:59] [21:24:59]POST finish read [21:24:59]Found Content-Length = 649 [21:24:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99911", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 4.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:59]execute_script... [21:24: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 : (3)99911", "tax_sys" : 0, "items" : [ { "code": "2000034730018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E (GABB TRADE)", "price" : 105.00, "quantity" : 4.000, "sum" : 420.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 420.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:24:59]POST & json_proto [21:24:59]process_json_proto [21:24:59]json parsed OK: [21:24:59]protocol is kg_v1.0 [21:24:59]action value=close_receipt [21:24:59]process_action close_receipt [21:24:59]cmd_close_receipt [21:24:59]MH_GetDate [21:24:59]Write to MH i2c: F0 00 00 FB 3A 24 [21:24:59]Write i2c OK [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: F0 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: F0 09 00 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: F0 09 00 FB 3A 00 31 D2 12 67 5A BE F6 66 1D [21:24:59]GetLastDocTimeStamp 1729286693 [21:24:59]current date 1729286705 [21:24:59]FM_GetShiftState [21:24:59]SAM_PROTO_GetShiftState [21:24:59]wFMCommunicate request_size=4 [21:24:59]MH_SAM_APDU [21:24:59]CAPDU: 80 13 01 00 [21:24:59]Write to MH i2c: E2 08 00 FC 3A 80 13 01 00 00 00 00 00 B3 [21:24:59]Write i2c OK [21:24:59]MH_I2C_Read... [21:24:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:24:59]Read from MH i2c: E2 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: E2 0E 00 [21:24:59]MH_I2C_Read... [21:24:59]Read from MH i2c: E2 0E 00 FC 3A 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 51 [21:24:59]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:24:59]wFMCommunicate OK [21:24:59]SAM_PROTO_GetShiftState done [21:24:59]FM_GetShiftState done [21:24:59]opened in 1729209717 [21:24:59]opened+sec_in_day 1729296117 [21:24:59]quantity*price = 42000 [21:24:59]sum+1 = 42001 [21:24:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 420.00 ÐСП 1% : 3.72 ÐДС 12% : 44.60 Ðаличными: 420.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 148 18.10.2024 21:25 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2523 ФПД: 96868979543172 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212505&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2523&fm=96868979543172&tin=02508201610067®Number=0000000000207295&sum=42000 0 [21:25:00]StoreToDocumentArchive [21:25:00]shift 22 fd 2523 [21:25:00]save to /storage/0022/doc_00002523 [21:25:00]save last doc name /storage/0022/doc_00002523 to /storage/kkm_last_doc_name [21:25:00]save OK [21:25:00]Clear old archive folders... [21:25:00]ProcessDocumentItem done err = 0, tmpTLVsize=282 [21:25:00]tlvbuf is 013E2CA0 [21:25:00]SAM_PROTO_ClearQueue [21:25:00]wFMCommunicate request_size=4 [21:25:00]MH_SAM_APDU [21:25:00]CAPDU: 80 09 00 00 [21:25:00]Write to MH i2c: E2 08 00 09 3B 80 09 00 00 00 00 00 00 B6 [21:25:00]Write i2c OK [21:25:00]MH_I2C_Read... [21:25:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:00]Read from MH i2c: E2 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 03 00 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 03 00 09 3B 00 90 00 B8 [21:25:00]RAPDU: 90 00 [21:25:00]wFMCommunicate OK [21:25:00]SAM_PROTO_ClearQueue done [21:25:00]KKMCreateOFDPacket [21:25:00]OFDProtocolAddRootSTLVToBuf [21:25:00]FM_MakeSignedData [21:25:00]FM_MakeSignedData [21:25:00]SAM_PROTO_SignData [21:25:00]wFMCommunicate request_size=4 [21:25:00]MH_SAM_APDU [21:25:00]CAPDU: 80 0D 01 02 [21:25:00]Write to MH i2c: E2 08 00 0A 3B 80 0D 01 02 00 00 00 00 BE [21:25:00]Write i2c OK [21:25:00]MH_I2C_Read... [21:25:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:00]Read from MH i2c: E2 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 03 00 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 03 00 0A 3B 00 90 00 B9 [21:25:00]RAPDU: 90 00 [21:25:00]wFMCommunicate OK [21:25:00]wFMCommunicate request_size=255 [21:25:00]MH_SAM_APDU [21:25:00]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 31 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 [21:25:00]Write to MH i2c: E2 02 01 0B 3B 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 31 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 00 00 3B [21:25:00]Write i2c OK [21:25:00]MH_I2C_Read... [21:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:00]Read from MH i2c: E2 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 03 00 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 03 00 0B 3B 00 90 00 BA [21:25:00]RAPDU: 90 00 [21:25:00]wFMCommunicate OK [21:25:00]wFMCommunicate request_size=41 [21:25:00]MH_SAM_APDU [21:25:00]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DB 09 00 00 35 04 06 00 58 1A 11 1D 8C 84 [21:25:00]Write to MH i2c: E2 2C 00 0C 3B 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DB 09 00 00 35 04 06 00 58 1A 11 1D 8C 84 00 00 19 [21:25:00]Write i2c OK [21:25:00]MH_I2C_Read... [21:25:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:00]Read from MH i2c: E2 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 03 00 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 03 00 0C 3B 00 90 00 BB [21:25:00]RAPDU: 90 00 [21:25:00]wFMCommunicate OK [21:25:00]wFMCommunicate request_size=4 [21:25:00]MH_SAM_APDU [21:25:00]CAPDU: 80 0D 03 02 [21:25:00]Write to MH i2c: E2 08 00 0D 3B 80 0D 03 02 00 00 00 00 C3 [21:25:00]Write i2c OK [21:25:00]MH_I2C_Read... [21:25:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:00]Read from MH i2c: E2 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 0B 00 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 0B 00 0D 3B 00 A2 1B 12 6B 75 A0 9B 79 90 00 27 [21:25:00]RAPDU: A2 1B 12 6B 75 A0 9B 79 90 00 [21:25:00]wFMCommunicate OK [21:25:00]SAM_PROTO_SignData done [21:25:00]FM_MakeSignedData done [21:25:00]CreateOFDProtocolMessage [21:25:00]wFMCommunicate request_size=4 [21:25:00]MH_SAM_APDU [21:25:00]CAPDU: 80 11 00 00 [21:25:00]Write to MH i2c: E2 08 00 0E 3B 80 11 00 00 00 00 00 00 C3 [21:25:00]Write i2c OK [21:25:00]MH_I2C_Read... [21:25:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:00]Read from MH i2c: E2 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 17 00 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: E2 17 00 0E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 0B [21:25:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:25:00]wFMCommunicate OK [21:25:00]CreateOFDProtocolMessage done [21:25:00]OFDSenderStorePacket 2523 [21:25:00]StoreOFDPacket docnum=2523 [21:25:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 FD 41 26 01 04 82 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 31 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DB 09 00 00 35 04 06 00 58 1A 11 1D 8C 84 A2 1B 12 6B 75 A0 9B 79 [21:25:00]CheckFolder [21:25:00]dirname=/storage/ofd_packets [21:25:00]CheckFolder done [21:25:00]ProducePacketName [21:25:00]name=ofd_packets/00002523 [21:25:00]NVStorageSaveData ofd_packets/00002523 [21:25:00]File name is /storage/ofd_packets/00002523 [21:25:00]Write 332 bytes [21:25:00]NVStorageSaveData done [21:25:00]OFDSenderStorePacket done [21:25:00]KKMCreateOFDPacket done [21:25:00]NVStorageSaveData kkm_last_timestamp [21:25:00]File name is /storage/kkm_last_timestamp [21:25:00]Write 4 bytes [21:25:00]NVStorageSaveData done [21:25:00]ExternCall_PrintAddStr [21:25:00]wPrintStart [21:25:00]Write to MH i2c: 01 00 00 0F 3B 4A [21:25:00]Write i2c OK [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: 01 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: 01 07 00 [21:25:00]MH_I2C_Read... [21:25:00]Read from MH i2c: 01 07 00 0F 3B 00 00 00 00 00 FF 0F 5F [21:25:00]RasterBufferAndPrint [21:25:00]line Счет N : (3)99911 [21:25:00]line ИÐÐ: 02508201610067 [21:25:00]line Контрольно-КаÑÑовый Чек [21:25:00]line ПРОДÐЖР[21:25:00]line Товар: 2000034730018 [21:25:00]line Кофе Ðмерикано (GABB TRADE) [21:25:00]line 4.000 * 105.00 [21:25:00]line = 420.00 [21:25:00]line ÐДС 12% ÐСП 1% [21:25:00]line > о реализуемом товаре [21:25:00]line ИТОГО: 420.00 [21:25:00]line ÐСП 1% : 3.72 [21:25:00]line ÐДС 12% : 44.60 [21:25:00]line Ðаличными: 420.00 [21:25:00]line Безнал.: 0.00 [21:25:00]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:25:00]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:25:00]line СÐО: Общий режим [21:25:00]line Чек 148 18.10.2024 21:25 [21:25:00]line Смена: 22 ФФД: 1.0 [21:25:00]line ЗÐМ: 0300000191 [21:25:00]line РÐМ: 0000000000207295 [21:25:00]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:25:00]line ФМ: 0000000002342820 [21:25:00]line ФД: 2523 [21:25:00]line ФПД: 96868979543172 [21:25:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212505&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2523&fm=96868979543172&tin=02508201610067®Number=0000000000207295&sum=42000 [21:25:01]line 0 [21:25:01]OFD Sender: Processing packet 2523 [packets to send 1, broken 0] [21:25:01]ProducePacketName [21:25:01]name=ofd_packets/00002523 [21:25:01]OFD Sender: To server: ‡•öpG, [21:25:01]CommunicateWithHost lk.salyk.kg:30040 [21:25:01]ConnectInit lk.salyk.kg [21:25:01]written 0, free lines is 4095 [21:25:01]Connected sock=10 [21:25:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2E 01 00 00 FD 41 26 01 04 82 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 34 37 33 30 30 31 38 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 10 A4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 A4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 74 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 11 00 00 00 00 07 04 06 00 10 A4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 31 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DB 09 00 00 35 04 06 00 58 1A 11 1D 8C 84 A2 1B 12 6B 75 A0 9B 79 [21:25:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 56 4F 47 00 E7 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DB 09 00 00 F4 03 04 00 94 7D 12 67 B6 04 01 00 00 7D 73 E3 5D 5D E5 58 CA [21:25:01]CommunicateWithHost err = 0 [21:25:01]CheckOFDResponse [21:25:01]1017 (14) - 77093643461234 [21:25:01]1041 (16) - 0000000002342820 [21:25:01]1040 (4) - 2523 [21:25:01]1012 (4) - 18.10.2024 15:24 [21:25:01]1206 (1) - 0 [21:25:01]OFD Sender: Remove packet 2523 [21:25:01]ProducePacketName [21:25:01]name=ofd_packets/00002523 [21:25:01]NVStorageDeleteData [21:25:01]Write to MH i2c: 01 00 00 38 3B 73 [21:25:01]Write i2c OK [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: 01 [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: 01 07 00 [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: 01 07 00 38 3B 00 00 00 00 00 C3 0C 49 [21:25:01]RasterBufferAndPrint [21:25:01]line [21:25:01]line [21:25:01]line [21:25:01]line [21:25:01]line [21:25:01]written 0, free lines is 3273 [21:25:01]MH_Cut [21:25:01]Write to MH i2c: D1 01 00 3F 3B 01 4C [21:25:01]Write i2c OK [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: D1 [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: D1 01 00 [21:25:01]MH_I2C_Read... [21:25:01]Read from MH i2c: D1 01 00 3F 3B 00 4B [21:25:01]Write to MH i2c: 01 00 00 40 3B 7B [21:25:01]Write i2c OK [21:25:01]MH_I2C_Read... [21:25:01]OFD Sender: No OFD packet to send [21:25:02]*** Cut start [21:25:02]*** Partial cut [21:25:02]*** CUTSNS_PIN = 1 [21:25:02]*** CUTSNS_PIN = 0 [21:25:02]*** Brake cut motor [21:25:02]Read from MH i2c: 01 [21:25:02]MH_I2C_Read... [21:25:02]*** Stop cut motor [21:25:02]*** Cut end [21:25:02]Read from MH i2c: 01 07 00 [21:25:02]MH_I2C_Read... [21:25:02]Read from MH i2c: 01 07 00 40 3B 00 00 00 00 00 FF 0F 90 [21:25:02]process_action close_receipt done [21:25:02]requested_data is exist [21:25:02]produce_requested_data [21:25:02]requested_item fm.sn is exist - process it [21:25:02]wFMCommunicate request_size=4 [21:25:02]MH_SAM_APDU [21:25:02]CAPDU: 80 11 00 00 [21:25:02]Write to MH i2c: E2 08 00 41 3B 80 11 00 00 00 00 00 00 F6 [21:25:02]Write i2c OK [21:25:02]MH_I2C_Read... [21:25:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:03]Read from MH i2c: E2 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 17 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 17 00 41 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 3E [21:25:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:25:03]wFMCommunicate OK [21:25:03]requested_item fd.num is exist - process it [21:25:03]SAM_PROTO_GetFieldsCounters [21:25:03]wFMCommunicate request_size=4 [21:25:03]MH_SAM_APDU [21:25:03]CAPDU: 80 13 00 00 [21:25:03]Write to MH i2c: E2 08 00 42 3B 80 13 00 00 00 00 00 00 F9 [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:03]Read from MH i2c: E2 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 62 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 62 00 42 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DB 09 00 00 0E 04 04 00 16 00 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 C5 [21:25:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DB 09 00 00 0E 04 04 00 16 00 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 [21:25:03]wFMCommunicate OK [21:25:03]SAM_PROTO_GetFieldsCounters done [21:25:03]requested_item shift.num is exist - process it [21:25:03]requested_item shift.opened is exist - process it [21:25:03]req_shift_opened [21:25:03]FM_GetShiftState [21:25:03]SAM_PROTO_GetShiftState [21:25:03]wFMCommunicate request_size=4 [21:25:03]MH_SAM_APDU [21:25:03]CAPDU: 80 13 01 00 [21:25:03]Write to MH i2c: E2 08 00 43 3B 80 13 01 00 00 00 00 00 FB [21:25:03]Write i2c OK [21:25:03]MH_I2C_Read... [21:25:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:03]Read from MH i2c: E2 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 0E 00 [21:25:03]MH_I2C_Read... [21:25:03]Read from MH i2c: E2 0E 00 43 3B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 99 [21:25:03]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:25:03]wFMCommunicate OK [21:25:03]SAM_PROTO_GetShiftState done [21:25:03]FM_GetShiftState done [21:25:03]req_shift_opened done [21:25:03]requested_item shift.open_date is exist - process it [21:25:03]req_shift_open_date [21:25:03]req_shift_open_date done [21:25:03]produce_requested_data done [21:25:03]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2523,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:25:03]process_action_free close_receipt [21:25:03]json_value_free [21:25:03]json_value_free done [21:25:03]process_json_proto returns [21:25:03]Send response to host [21:25:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2523,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:25:03]free response buf [21:25:03]execute_script done [21:25:03]execute_script returns [21:25:03]free content buf [21:25:03]Sock 9.Close socket [21:25:03]Sock 9.Thread stoped [21:25:06]OFD Sender: No OFD packet to send [21:25:11]OFD Sender: No OFD packet to send [21:25:16]OFD Sender: No OFD packet to send [21:25:21]OFD Sender: No OFD packet to send [21:25:26]OFD Sender: No OFD packet to send [21:25:31]OFD Sender: No OFD packet to send [21:25:36]OFD Sender: No OFD packet to send [21:25:41]OFD Sender: No OFD packet to send [21:25:46]OFD Sender: No OFD packet to send [21:25:51]OFD Sender: No OFD packet to send [21:25:56]OFD Sender: No OFD packet to send [21:26:01]OFD Sender: No OFD packet to send [21:26:06]OFD Sender: No OFD packet to send [21:26:11]OFD Sender: No OFD packet to send [21:26:16]OFD Sender: No OFD packet to send [21:26:21]OFD Sender: No OFD packet to send [21:26:26]OFD Sender: No OFD packet to send [21:26:31]OFD Sender: No OFD packet to send [21:26:36]OFD Sender: No OFD packet to send [21:26:41]OFD Sender: No OFD packet to send [21:26:46]OFD Sender: No OFD packet to send [21:26:51]OFD Sender: No OFD packet to send [21:26:56]OFD Sender: No OFD packet to send [21:27:01]OFD Sender: No OFD packet to send [21:27:06]OFD Sender: No OFD packet to send [21:27:11]OFD Sender: No OFD packet to send [21:27:16]OFD Sender: No OFD packet to send [21:27:21]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:37]OFD Sender: No OFD packet to send [21:27:42]OFD Sender: No OFD packet to send [21:27:47]OFD Sender: No OFD packet to send [21:27:52]OFD Sender: No OFD packet to send [21:27:57]OFD Sender: No OFD packet to send [21:28:02]OFD Sender: No OFD packet to send [21:28:07]OFD Sender: No OFD packet to send [21:28:11]accept exits with 7 [21:28:11]New connection [21:28:11]New thread 3066850660 created [21:28:11]Thread 3066707300 joined [21:28:11]Waiting for new connection... [21:28:11] Sock 7.Parse request [21:28:11]Sock 7.Check first char [21:28:11]Sock 7.First char is OK [21:28:11]request: POST /json_proto HTTP/1.0 [21:28:11]Method: POST [21:28:11]URL: /json_proto [21:28:11]Method is POST - this is cgi request [21:28:11]url: /json_proto [21:28:11]query_string will be loaded in cgi processing [21:28:11]execute_cgi json_proto POST (null) [21:28:11]execute_cgi path=json_proto method=POST [21:28:11]POST find Content-Length [21:28:11]Host: 172.17.52.132:8080 [21:28:11]Content-Length: 627 [21:28:11]Content-Type: application/json [21:28:11] [21:28:11]POST finish read [21:28:11]Found Content-Length = 627 [21:28:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99912", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:11]execute_script... [21:28: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 : (3)99912", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:11]POST & json_proto [21:28:11]process_json_proto [21:28:11]json parsed OK: [21:28:11]protocol is kg_v1.0 [21:28:11]action value=close_receipt [21:28:11]process_action close_receipt [21:28:11]cmd_close_receipt [21:28:11]MH_GetDate [21:28:11]Write to MH i2c: F0 00 00 44 3B 6E [21:28:11]Write i2c OK [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: F0 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: F0 09 00 [21:28:11]MH_I2C_Read... [21:28:11]Read from MH i2c: F0 09 00 44 3B 00 F2 D2 12 67 5A BE F6 66 28 [21:28:11]GetLastDocTimeStamp 1729286705 [21:28:11]current date 1729286898 [21:28:11]FM_GetShiftState [21:28:11]SAM_PROTO_GetShiftState [21:28:11]wFMCommunicate request_size=4 [21:28:11]MH_SAM_APDU [21:28:11]CAPDU: 80 13 01 00 [21:28:11]Write to MH i2c: E2 08 00 45 3B 80 13 01 00 00 00 00 00 FD [21:28:11]Write i2c OK [21:28:11]MH_I2C_Read... [21:28:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:12]Read from MH i2c: E2 [21:28:12]MH_I2C_Read... [21:28:12]Read from MH i2c: E2 0E 00 [21:28:12]MH_I2C_Read... [21:28:12]Read from MH i2c: E2 0E 00 45 3B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 9B [21:28:12]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:28:12]wFMCommunicate OK [21:28:12]SAM_PROTO_GetShiftState done [21:28:12]FM_GetShiftState done [21:28:12]opened in 1729209717 [21:28:12]opened+sec_in_day 1729296117 [21:28:12]quantity*price = 13000 [21:28:12]sum+1 = 13001 [21:28:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 ÐСП 1% : 1.15 ÐДС 12% : 13.80 Ðаличными: 130.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 149 18.10.2024 21:28 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2524 ФПД: 50129681006036 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212818&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2524&fm=50129681006036&tin=02508201610067®Number=0000000000207295&sum=13000 0 [21:28:13]StoreToDocumentArchive [21:28:13]shift 22 fd 2524 [21:28:13]save to /storage/0022/doc_00002524 [21:28:13]save last doc name /storage/0022/doc_00002524 to /storage/kkm_last_doc_name [21:28:13]save OK [21:28:13]Clear old archive folders... [21:28:13]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:28:13]tlvbuf is 013822A0 [21:28:13]SAM_PROTO_ClearQueue [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 09 00 00 [21:28:13]Write to MH i2c: E2 08 00 52 3B 80 09 00 00 00 00 00 00 FF [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 52 3B 00 90 00 01 [21:28:13]RAPDU: 90 00 [21:28:13]wFMCommunicate OK [21:28:13]SAM_PROTO_ClearQueue done [21:28:13]KKMCreateOFDPacket [21:28:13]OFDProtocolAddRootSTLVToBuf [21:28:13]FM_MakeSignedData [21:28:13]FM_MakeSignedData [21:28:13]SAM_PROTO_SignData [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 0D 01 02 [21:28:13]Write to MH i2c: E2 08 00 53 3B 80 0D 01 02 00 00 00 00 07 [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 53 3B 00 90 00 02 [21:28:13]RAPDU: 90 00 [21:28:13]wFMCommunicate OK [21:28:13]wFMCommunicate request_size=255 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 95 00 00 00 F4 03 04 00 F2 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 [21:28:13]Write to MH i2c: E2 02 01 54 3B 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 95 00 00 00 F4 03 04 00 F2 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 00 00 0A [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 54 3B 00 90 00 03 [21:28:13]RAPDU: 90 00 [21:28:13]wFMCommunicate OK [21:28:13]wFMCommunicate request_size=35 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DC 09 00 00 35 04 06 00 2D 97 B9 D4 3D D4 [21:28:13]Write to MH i2c: E2 26 00 55 3B 80 0D 02 02 1E 00 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DC 09 00 00 35 04 06 00 2D 97 B9 D4 3D D4 00 00 39 [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 03 00 55 3B 00 90 00 04 [21:28:13]RAPDU: 90 00 [21:28:13]wFMCommunicate OK [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 0D 03 02 [21:28:13]Write to MH i2c: E2 08 00 56 3B 80 0D 03 02 00 00 00 00 0C [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 0B 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 0B 00 56 3B 00 30 1B FE 9D EF 9C 02 ED 90 00 6D [21:28:13]RAPDU: 30 1B FE 9D EF 9C 02 ED 90 00 [21:28:13]wFMCommunicate OK [21:28:13]SAM_PROTO_SignData done [21:28:13]FM_MakeSignedData done [21:28:13]CreateOFDProtocolMessage [21:28:13]wFMCommunicate request_size=4 [21:28:13]MH_SAM_APDU [21:28:13]CAPDU: 80 11 00 00 [21:28:13]Write to MH i2c: E2 08 00 57 3B 80 11 00 00 00 00 00 00 0C [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:13]Read from MH i2c: E2 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 17 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: E2 17 00 57 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 54 [21:28:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:28:13]wFMCommunicate OK [21:28:13]CreateOFDProtocolMessage done [21:28:13]OFDSenderStorePacket 2524 [21:28:13]StoreOFDPacket docnum=2524 [21:28:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 36 F7 20 01 24 59 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 95 00 00 00 F4 03 04 00 F2 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DC 09 00 00 35 04 06 00 2D 97 B9 D4 3D D4 30 1B FE 9D EF 9C 02 ED [21:28:13]CheckFolder [21:28:13]dirname=/storage/ofd_packets [21:28:13]CheckFolder done [21:28:13]ProducePacketName [21:28:13]name=ofd_packets/00002524 [21:28:13]NVStorageSaveData ofd_packets/00002524 [21:28:13]File name is /storage/ofd_packets/00002524 [21:28:13]Write 326 bytes [21:28:13]NVStorageSaveData done [21:28:13]OFDSenderStorePacket done [21:28:13]KKMCreateOFDPacket done [21:28:13]NVStorageSaveData kkm_last_timestamp [21:28:13]File name is /storage/kkm_last_timestamp [21:28:13]Write 4 bytes [21:28:13]NVStorageSaveData done [21:28:13]ExternCall_PrintAddStr [21:28:13]wPrintStart [21:28:13]Write to MH i2c: 01 00 00 58 3B 93 [21:28:13]Write i2c OK [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 07 00 [21:28:13]MH_I2C_Read... [21:28:13]Read from MH i2c: 01 07 00 58 3B 00 00 00 00 00 FF 0F A8 [21:28:13]RasterBufferAndPrint [21:28:13]line Счет N : (3)99912 [21:28:13]line ИÐÐ: 02508201610067 [21:28:13]line Контрольно-КаÑÑовый Чек [21:28:13]line ПРОДÐЖР[21:28:13]line Товар: 2000036230011 [21:28:13]line Кофе Латте XL(GABB TRADE) [21:28:13]line 1.000 * 130.00 [21:28:13]line = 130.00 [21:28:13]line ÐДС 12% ÐСП 1% [21:28:13]line > о реализуемом товаре [21:28:13]line ИТОГО: 130.00 [21:28:13]line ÐСП 1% : 1.15 [21:28:13]line ÐДС 12% : 13.80 [21:28:13]line Ðаличными: 130.00 [21:28:13]line Безнал.: 0.00 [21:28:13]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:28:13]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:28:13]line СÐО: Общий режим [21:28:13]line Чек 149 18.10.2024 21:28 [21:28:13]line Смена: 22 ФФД: 1.0 [21:28:13]line ЗÐМ: 0300000191 [21:28:13]line РÐМ: 0000000000207295 [21:28:13]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:28:13]line ФМ: 0000000002342820 [21:28:13]line ФД: 2524 [21:28:13]line ФПД: 50129681006036 [21:28:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T212818&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2524&fm=50129681006036&tin=02508201610067®Number=0000000000207295&sum=13000 [21:28:14]line 0 [21:28:14]OFD Sender: Processing packet 2524 [packets to send 1, broken 0] [21:28:14]ProducePacketName [21:28:14]name=ofd_packets/00002524 [21:28:14]OFD Sender: To server: ‡•öpG, [21:28:14]CommunicateWithHost lk.salyk.kg:30040 [21:28:14]ConnectInit lk.salyk.kg [21:28:14]written 0, free lines is 4095 [21:28:14]Connected sock=10 [21:28:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 36 F7 20 01 24 59 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 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 95 00 00 00 F4 03 04 00 F2 D2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DC 09 00 00 35 04 06 00 2D 97 B9 D4 3D D4 30 1B FE 9D EF 9C 02 ED [21:28:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 2F A6 47 00 69 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DC 09 00 00 F4 03 04 00 55 7E 12 67 B6 04 01 00 00 CD 78 E1 9F 47 8D 8E 4C [21:28:14]CommunicateWithHost err = 0 [21:28:14]CheckOFDResponse [21:28:14]1017 (14) - 77093643461234 [21:28:14]1041 (16) - 0000000002342820 [21:28:14]1040 (4) - 2524 [21:28:14]1012 (4) - 18.10.2024 15:27 [21:28:14]1206 (1) - 0 [21:28:14]OFD Sender: Remove packet 2524 [21:28:14]ProducePacketName [21:28:14]name=ofd_packets/00002524 [21:28:14]NVStorageDeleteData [21:28:14]Write to MH i2c: 01 00 00 80 3B BB [21:28:14]Write i2c OK [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: 01 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: 01 07 00 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: 01 07 00 80 3B 00 00 00 00 00 CE 0C 9C [21:28:14]RasterBufferAndPrint [21:28:14]line [21:28:14]line [21:28:14]line [21:28:14]line [21:28:14]line [21:28:14]written 0, free lines is 3286 [21:28:14]MH_Cut [21:28:14]Write to MH i2c: D1 01 00 87 3B 01 94 [21:28:14]Write i2c OK [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: D1 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: D1 01 00 [21:28:14]MH_I2C_Read... [21:28:14]Read from MH i2c: D1 01 00 87 3B 00 93 [21:28:14]Write to MH i2c: 01 00 00 88 3B C3 [21:28:14]Write i2c OK [21:28:14]MH_I2C_Read... [21:28:14]OFD Sender: No OFD packet to send [21:28:15]*** Cut start [21:28:15]*** Partial cut [21:28:15]*** CUTSNS_PIN = 1 [21:28:15]*** CUTSNS_PIN = 0 [21:28:15]*** Brake cut motor [21:28:15]Read from MH i2c: 01 [21:28:15]MH_I2C_Read... [21:28:15]*** Stop cut motor [21:28:15]*** Cut end [21:28:15]Read from MH i2c: 01 07 00 [21:28:15]MH_I2C_Read... [21:28:15]Read from MH i2c: 01 07 00 88 3B 00 00 00 00 00 FF 0F D8 [21:28:15]process_action close_receipt done [21:28:15]requested_data is exist [21:28:15]produce_requested_data [21:28:15]requested_item fm.sn is exist - process it [21:28:15]wFMCommunicate request_size=4 [21:28:15]MH_SAM_APDU [21:28:15]CAPDU: 80 11 00 00 [21:28:15]Write to MH i2c: E2 08 00 89 3B 80 11 00 00 00 00 00 00 3E [21:28:15]Write i2c OK [21:28:15]MH_I2C_Read... [21:28:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:16]Read from MH i2c: E2 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: E2 17 00 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: E2 17 00 89 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 86 [21:28:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:28:16]wFMCommunicate OK [21:28:16]requested_item fd.num is exist - process it [21:28:16]SAM_PROTO_GetFieldsCounters [21:28:16]wFMCommunicate request_size=4 [21:28:16]MH_SAM_APDU [21:28:16]CAPDU: 80 13 00 00 [21:28:16]Write to MH i2c: E2 08 00 8A 3B 80 13 00 00 00 00 00 00 41 [21:28:16]Write i2c OK [21:28:16]MH_I2C_Read... [21:28:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:16]Read from MH i2c: E2 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: E2 62 00 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: E2 62 00 8A 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DC 09 00 00 0E 04 04 00 16 00 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 11 [21:28:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DC 09 00 00 0E 04 04 00 16 00 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 [21:28:16]wFMCommunicate OK [21:28:16]SAM_PROTO_GetFieldsCounters done [21:28:16]requested_item shift.num is exist - process it [21:28:16]requested_item shift.opened is exist - process it [21:28:16]req_shift_opened [21:28:16]FM_GetShiftState [21:28:16]SAM_PROTO_GetShiftState [21:28:16]wFMCommunicate request_size=4 [21:28:16]MH_SAM_APDU [21:28:16]CAPDU: 80 13 01 00 [21:28:16]Write to MH i2c: E2 08 00 8B 3B 80 13 01 00 00 00 00 00 43 [21:28:16]Write i2c OK [21:28:16]MH_I2C_Read... [21:28:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:16]Read from MH i2c: E2 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: E2 0E 00 [21:28:16]MH_I2C_Read... [21:28:16]Read from MH i2c: E2 0E 00 8B 3B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E1 [21:28:16]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:28:16]wFMCommunicate OK [21:28:16]SAM_PROTO_GetShiftState done [21:28:16]FM_GetShiftState done [21:28:16]req_shift_opened done [21:28:16]requested_item shift.open_date is exist - process it [21:28:16]req_shift_open_date [21:28:16]req_shift_open_date done [21:28:16]produce_requested_data done [21:28:16]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2524,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:28:16]process_action_free close_receipt [21:28:16]json_value_free [21:28:16]json_value_free done [21:28:16]process_json_proto returns [21:28:16]Send response to host [21:28:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2524,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:28:16]free response buf [21:28:16]execute_script done [21:28:16]execute_script returns [21:28:16]free content buf [21:28:16]Sock 7.Close socket [21:28:16]Sock 7.Thread stoped [21:28:19]OFD Sender: No OFD packet to send [21:28:24]OFD Sender: No OFD packet to send [21:28:29]OFD Sender: No OFD packet to send [21:28:34]OFD Sender: No OFD packet to send [21:28:39]OFD Sender: No OFD packet to send [21:28:44]OFD Sender: No OFD packet to send [21:28:49]OFD Sender: No OFD packet to send [21:28:54]OFD Sender: No OFD packet to send [21:28:59]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:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:54]accept exits with 9 [21:31:54]New connection [21:31:54]New thread 3066707300 created [21:31:54]Thread 3066850660 joined [21:31:54]Waiting for new connection... [21:31:54] Sock 9.Parse request [21:31:54]Sock 9.Check first char [21:31:54]Sock 9.First char is OK [21:31:54]request: POST /json_proto HTTP/1.0 [21:31:54]Method: POST [21:31:54]URL: /json_proto [21:31:54]Method is POST - this is cgi request [21:31:54]url: /json_proto [21:31:54]query_string will be loaded in cgi processing [21:31:54]execute_cgi json_proto POST (null) [21:31:54]execute_cgi path=json_proto method=POST [21:31:54]POST find Content-Length [21:31:54]Host: 172.17.52.132:8080 [21:31:54]Content-Length: 708 [21:31:54]Content-Type: application/json [21:31:54] [21:31:54]POST finish read [21:31:54]Found Content-Length = 708 [21:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99913", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:54]execute_script... [21:31: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 : (3)99913", "tax_sys" : 0, "items" : [ { "code": "4870112003956", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A ALBENI SUPER \u0410\u043B\u044C\u0431\u0435\u043D\u0438 \u0421\u0443\u043F\u0435\u0440", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:54]POST & json_proto [21:31:54]process_json_proto [21:31:54]json parsed OK: [21:31:54]protocol is kg_v1.0 [21:31:54]action value=close_receipt [21:31:54]process_action close_receipt [21:31:54]cmd_close_receipt [21:31:54]MH_GetDate [21:31:54]Write to MH i2c: F0 00 00 8C 3B B6 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: F0 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: F0 09 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: F0 09 00 8C 3B 00 D0 D3 12 67 5A BE F6 66 4F [21:31:54]GetLastDocTimeStamp 1729286898 [21:31:54]current date 1729287120 [21:31:54]FM_GetShiftState [21:31:54]SAM_PROTO_GetShiftState [21:31:54]wFMCommunicate request_size=4 [21:31:54]MH_SAM_APDU [21:31:54]CAPDU: 80 13 01 00 [21:31:54]Write to MH i2c: E2 08 00 8D 3B 80 13 01 00 00 00 00 00 45 [21:31:54]Write i2c OK [21:31:54]MH_I2C_Read... [21:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:54]Read from MH i2c: E2 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0E 00 [21:31:54]MH_I2C_Read... [21:31:54]Read from MH i2c: E2 0E 00 8D 3B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 E3 [21:31:54]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:31:54]wFMCommunicate OK [21:31:54]SAM_PROTO_GetShiftState done [21:31:54]FM_GetShiftState done [21:31:54]opened in 1729209717 [21:31:54]opened+sec_in_day 1729296117 [21:31:54]quantity*price = 7500 [21:31:54]sum+1 = 7501 [21:31:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 ÐСП 1% : 0.66 ÐДС 12% : 7.96 Ðаличными: 75.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 150 18.10.2024 21:32 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2525 ФПД: 232763124709840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213200&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2525&fm=232763124709840&tin=02508201610067®Number=0000000000207295&sum=7500 0 [21:31:55]StoreToDocumentArchive [21:31:55]shift 22 fd 2525 [21:31:55]save to /storage/0022/doc_00002525 [21:31:55]save last doc name /storage/0022/doc_00002525 to /storage/kkm_last_doc_name [21:31:55]save OK [21:31:55]Clear old archive folders... [21:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=304 [21:31:55]tlvbuf is 013FFD70 [21:31:55]SAM_PROTO_ClearQueue [21:31:55]wFMCommunicate request_size=4 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 09 00 00 [21:31:55]Write to MH i2c: E2 08 00 9A 3B 80 09 00 00 00 00 00 00 47 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 9A 3B 00 90 00 49 [21:31:55]RAPDU: 90 00 [21:31:55]wFMCommunicate OK [21:31:55]SAM_PROTO_ClearQueue done [21:31:55]KKMCreateOFDPacket [21:31:55]OFDProtocolAddRootSTLVToBuf [21:31:55]FM_MakeSignedData [21:31:55]FM_MakeSignedData [21:31:55]SAM_PROTO_SignData [21:31:55]wFMCommunicate request_size=4 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 0D 01 02 [21:31:55]Write to MH i2c: E2 08 00 9B 3B 80 0D 01 02 00 00 00 00 4F [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 9B 3B 00 90 00 4A [21:31:55]RAPDU: 90 00 [21:31:55]wFMCommunicate OK [21:31:55]wFMCommunicate request_size=255 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 D0 D3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 [21:31:55]Write to MH i2c: E2 02 01 9C 3B 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 D0 D3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 00 00 DB [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 9C 3B 00 90 00 4B [21:31:55]RAPDU: 90 00 [21:31:55]wFMCommunicate OK [21:31:55]wFMCommunicate request_size=63 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DD 09 00 00 35 04 06 00 D3 B2 63 5D 79 D0 [21:31:55]Write to MH i2c: E2 42 00 9D 3B 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DD 09 00 00 35 04 06 00 D3 B2 63 5D 79 D0 00 00 05 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 03 00 9D 3B 00 90 00 4C [21:31:55]RAPDU: 90 00 [21:31:55]wFMCommunicate OK [21:31:55]wFMCommunicate request_size=4 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 0D 03 02 [21:31:55]Write to MH i2c: E2 08 00 9E 3B 80 0D 03 02 00 00 00 00 54 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 0B 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 0B 00 9E 3B 00 50 50 FA BD E4 D3 05 17 90 00 7F [21:31:55]RAPDU: 50 50 FA BD E4 D3 05 17 90 00 [21:31:55]wFMCommunicate OK [21:31:55]SAM_PROTO_SignData done [21:31:55]FM_MakeSignedData done [21:31:55]CreateOFDProtocolMessage [21:31:55]wFMCommunicate request_size=4 [21:31:55]MH_SAM_APDU [21:31:55]CAPDU: 80 11 00 00 [21:31:55]Write to MH i2c: E2 08 00 9F 3B 80 11 00 00 00 00 00 00 54 [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:55]Read from MH i2c: E2 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 17 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: E2 17 00 9F 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 9C [21:31:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:31:55]wFMCommunicate OK [21:31:55]CreateOFDProtocolMessage done [21:31:55]OFDSenderStorePacket 2525 [21:31:55]StoreOFDPacket docnum=2525 [21:31:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 44 01 00 00 5F 5D 3C 01 3B 8E 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 D0 D3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DD 09 00 00 35 04 06 00 D3 B2 63 5D 79 D0 50 50 FA BD E4 D3 05 17 [21:31:55]CheckFolder [21:31:55]dirname=/storage/ofd_packets [21:31:55]CheckFolder done [21:31:55]ProducePacketName [21:31:55]name=ofd_packets/00002525 [21:31:55]NVStorageSaveData ofd_packets/00002525 [21:31:55]File name is /storage/ofd_packets/00002525 [21:31:55]Write 354 bytes [21:31:55]NVStorageSaveData done [21:31:55]OFDSenderStorePacket done [21:31:55]KKMCreateOFDPacket done [21:31:55]NVStorageSaveData kkm_last_timestamp [21:31:55]File name is /storage/kkm_last_timestamp [21:31:55]Write 4 bytes [21:31:55]NVStorageSaveData done [21:31:55]ExternCall_PrintAddStr [21:31:55]wPrintStart [21:31:55]Write to MH i2c: 01 00 00 A0 3B DB [21:31:55]OFD Sender: Processing packet 2525 [packets to send 1, broken 0] [21:31:55]ProducePacketName [21:31:55]name=ofd_packets/00002525 [21:31:55]OFD Sender: To server: ‡•öpG, [21:31:55]CommunicateWithHost lk.salyk.kg:30040 [21:31:55]ConnectInit lk.salyk.kg [21:31:55]Write i2c OK [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 07 00 [21:31:55]MH_I2C_Read... [21:31:55]Read from MH i2c: 01 07 00 A0 3B 00 00 00 00 00 FF 0F F0 [21:31:55]RasterBufferAndPrint [21:31:55]line Счет N : (3)99913 [21:31:55]line ИÐÐ: 02508201610067 [21:31:55]line Контрольно-КаÑÑовый Чек [21:31:55]line ПРОДÐЖР[21:31:55]line Товар: 4870112003956 [21:31:55]line Шок батончик ALBENI SUPER Ðльбени Супер [21:31:55]line 1.000 * 75.00 [21:31:55]line = 75.00 [21:31:55]line ÐДС 12% ÐСП 1% [21:31:55]line > о реализуемом товаре [21:31:55]line ИТОГО: 75.00 [21:31:55]line ÐСП 1% : 0.66 [21:31:55]line ÐДС 12% : 7.96 [21:31:55]line Ðаличными: 75.00 [21:31:55]line Безнал.: 0.00 [21:31:55]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:31:55]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:31:55]line СÐО: Общий режим [21:31:55]line Чек 150 18.10.2024 21:32 [21:31:55]line Смена: 22 ФФД: 1.0 [21:31:55]line ЗÐМ: 0300000191 [21:31:55]line РÐМ: 0000000000207295 [21:31:55]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:31:55]line ФМ: 0000000002342820 [21:31:55]line ФД: 2525 [21:31:56]line ФПД: 232763124709840 [21:31:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213200&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2525&fm=232763124709840&tin=02508201610067®Number=0000000000207295&sum=7500 [21:31:56]line 0 [21:31:56]Connected sock=10 [21:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 44 01 00 00 5F 5D 3C 01 3B 8E 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 35 36 06 04 3E 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 41 4C 42 45 4E 49 20 53 55 50 45 52 20 D0 90 D0 BB D1 8C D0 B1 D0 B5 D0 BD D0 B8 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 96 00 00 00 F4 03 04 00 D0 D3 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DD 09 00 00 35 04 06 00 D3 B2 63 5D 79 D0 50 50 FA BD E4 D3 05 17 [21:31:56]written 0, free lines is 4095 [21:31:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 3D CA 47 00 DC F5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DD 09 00 00 F4 03 04 00 33 7F 12 67 B6 04 01 00 00 CB E9 91 23 CF 92 04 F3 [21:31:56]CommunicateWithHost err = 0 [21:31:56]CheckOFDResponse [21:31:56]1017 (14) - 77093643461234 [21:31:56]1041 (16) - 0000000002342820 [21:31:56]1040 (4) - 2525 [21:31:56]1012 (4) - 18.10.2024 15:30 [21:31:56]1206 (1) - 0 [21:31:56]OFD Sender: Remove packet 2525 [21:31:56]ProducePacketName [21:31:56]name=ofd_packets/00002525 [21:31:56]NVStorageDeleteData [21:31:56]Write to MH i2c: 01 00 00 C9 3B 04 [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: 01 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: 01 07 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: 01 07 00 C9 3B 00 00 00 00 00 B0 0C C7 [21:31:56]RasterBufferAndPrint [21:31:56]line [21:31:56]line [21:31:56]line [21:31:56]line [21:31:56]line [21:31:56]written 0, free lines is 3253 [21:31:56]MH_Cut [21:31:56]Write to MH i2c: D1 01 00 D0 3B 01 DD [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: D1 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: D1 01 00 [21:31:56]MH_I2C_Read... [21:31:56]Read from MH i2c: D1 01 00 D0 3B 00 DC [21:31:56]Write to MH i2c: 01 00 00 D1 3B 0C [21:31:56]Write i2c OK [21:31:56]MH_I2C_Read... [21:31:56]OFD Sender: No OFD packet to send [21:31:57]*** Cut start [21:31:57]*** Partial cut [21:31:57]*** CUTSNS_PIN = 1 [21:31:57]*** CUTSNS_PIN = 0 [21:31:57]*** Brake cut motor [21:31:58]Read from MH i2c: 01 [21:31:58]MH_I2C_Read... [21:31:58]*** Stop cut motor [21:31:58]*** Cut end [21:31:58]Read from MH i2c: 01 07 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: 01 07 00 D1 3B 00 00 00 00 00 FF 0F 21 [21:31:58]process_action close_receipt done [21:31:58]requested_data is exist [21:31:58]produce_requested_data [21:31:58]requested_item fm.sn is exist - process it [21:31:58]wFMCommunicate request_size=4 [21:31:58]MH_SAM_APDU [21:31:58]CAPDU: 80 11 00 00 [21:31:58]Write to MH i2c: E2 08 00 D2 3B 80 11 00 00 00 00 00 00 87 [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:58]Read from MH i2c: E2 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 17 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 17 00 D2 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CF [21:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:31:58]wFMCommunicate OK [21:31:58]requested_item fd.num is exist - process it [21:31:58]SAM_PROTO_GetFieldsCounters [21:31:58]wFMCommunicate request_size=4 [21:31:58]MH_SAM_APDU [21:31:58]CAPDU: 80 13 00 00 [21:31:58]Write to MH i2c: E2 08 00 D3 3B 80 13 00 00 00 00 00 00 8A [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:31:58]Read from MH i2c: E2 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 62 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 62 00 D3 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DD 09 00 00 0E 04 04 00 16 00 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 5E [21:31:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DD 09 00 00 0E 04 04 00 16 00 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 [21:31:58]wFMCommunicate OK [21:31:58]SAM_PROTO_GetFieldsCounters done [21:31:58]requested_item shift.num is exist - process it [21:31:58]requested_item shift.opened is exist - process it [21:31:58]req_shift_opened [21:31:58]FM_GetShiftState [21:31:58]SAM_PROTO_GetShiftState [21:31:58]wFMCommunicate request_size=4 [21:31:58]MH_SAM_APDU [21:31:58]CAPDU: 80 13 01 00 [21:31:58]Write to MH i2c: E2 08 00 D4 3B 80 13 01 00 00 00 00 00 8C [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:58]Read from MH i2c: E2 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 0E 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 0E 00 D4 3B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2A [21:31:58]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:31:58]wFMCommunicate OK [21:31:58]SAM_PROTO_GetShiftState done [21:31:58]FM_GetShiftState done [21:31:58]req_shift_opened done [21:31:58]requested_item shift.open_date is exist - process it [21:31:58]req_shift_open_date [21:31:58]req_shift_open_date done [21:31:58]produce_requested_data done [21:31:58]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2525,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:31:58]process_action_free close_receipt [21:31:58]json_value_free [21:31:58]json_value_free done [21:31:58]process_json_proto returns [21:31:58]Send response to host [21:31:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2525,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:31:58]free response buf [21:31:58]execute_script done [21:31:58]execute_script returns [21:31:58]free content buf [21:31:58]Sock 9.Close socket [21:31:58]Sock 9.Thread stoped [21:32:01]OFD Sender: No OFD packet to send [21:32:06]OFD Sender: No OFD packet to send [21:32:11]OFD Sender: No OFD packet to send [21:32:16]OFD Sender: No OFD packet to send [21:32:21]OFD Sender: No OFD packet to send [21:32:26]OFD Sender: No OFD packet to send [21:32:31]OFD Sender: No OFD packet to send [21:32:36]OFD Sender: No OFD packet to send [21:32:41]OFD Sender: No OFD packet to send [21:32:46]OFD Sender: No OFD packet to send [21:32:51]OFD Sender: No OFD packet to send [21:32:56]OFD Sender: No OFD packet to send [21:33:01]OFD Sender: No OFD packet to send [21:33:06]OFD Sender: No OFD packet to send [21:33:11]OFD Sender: No OFD packet to send [21:33:16]OFD Sender: No OFD packet to send [21:33:21]OFD Sender: No OFD packet to send [21:33:26]OFD Sender: No OFD packet to send [21:33:31]OFD Sender: No OFD packet to send [21:33:36]OFD Sender: No OFD packet to send [21:33:41]OFD Sender: No OFD packet to send [21:33:46]OFD Sender: No OFD packet to send [21:33:51]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:02]accept exits with 7 [21:34:02]New connection [21:34:02]New thread 3066850660 created [21:34:02]Thread 3066707300 joined [21:34:02]Waiting for new connection... [21:34:02] Sock 7.Parse request [21:34:02]Sock 7.Check first char [21:34:02]Sock 7.First char is OK [21:34:02]request: POST /json_proto HTTP/1.0 [21:34:02]Method: POST [21:34:02]URL: /json_proto [21:34:02]Method is POST - this is cgi request [21:34:02]url: /json_proto [21:34:02]query_string will be loaded in cgi processing [21:34:02]execute_cgi json_proto POST (null) [21:34:02]execute_cgi path=json_proto method=POST [21:34:02]POST find Content-Length [21:34:02]Host: 172.17.52.132:8080 [21:34:02]Content-Length: 1212 [21:34:02]Content-Type: application/json [21:34:02] [21:34:02]POST finish read [21:34:02]Found Content-Length = 1212 [21:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99914", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 701.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:02]execute_script... [21:34: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 : (3)99914", "tax_sys" : 0, "items" : [ { "code": "4700001061098", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0421\u0435\u043C\u0435\u0442\u0435\u0439 0,5\u043B", "price" : 555.00, "quantity" : 1.000, "sum" : 555.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 701.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:02]POST & json_proto [21:34:02]process_json_proto [21:34:02]json parsed OK: [21:34:02]protocol is kg_v1.0 [21:34:02]action value=close_receipt [21:34:02]process_action close_receipt [21:34:02]cmd_close_receipt [21:34:02]MH_GetDate [21:34:02]Write to MH i2c: F0 00 00 D5 3B FF [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: F0 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: F0 09 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: F0 09 00 D5 3B 00 50 D4 12 67 5A BE F6 66 19 [21:34:02]GetLastDocTimeStamp 1729287120 [21:34:02]current date 1729287248 [21:34:02]FM_GetShiftState [21:34:02]SAM_PROTO_GetShiftState [21:34:02]wFMCommunicate request_size=4 [21:34:02]MH_SAM_APDU [21:34:02]CAPDU: 80 13 01 00 [21:34:02]Write to MH i2c: E2 08 00 D6 3B 80 13 01 00 00 00 00 00 8E [21:34:02]Write i2c OK [21:34:02]MH_I2C_Read... [21:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:02]Read from MH i2c: E2 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 0E 00 [21:34:02]MH_I2C_Read... [21:34:02]Read from MH i2c: E2 0E 00 D6 3B 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2C [21:34:02]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:34:02]wFMCommunicate OK [21:34:02]SAM_PROTO_GetShiftState done [21:34:02]FM_GetShiftState done [21:34:02]opened in 1729209717 [21:34:02]opened+sec_in_day 1729296117 [21:34:02]quantity*price = 55500 [21:34:02]sum+1 = 55501 [21:34:02]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные Ñтаканы 250мл 1шт 3.000 * 7.00 = 21.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 5449000054227 Ðапиток Кока-Кола 1л 1.000 * 125.00 = 125.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 701.00 ÐСП 1% : 6.21 ÐДС 12% : 74.44 Ðаличными: 701.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 151 18.10.2024 21:34 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2526 ФПД: 78512470990073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213408&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2526&fm=78512470990073&tin=02508201610067®Number=0000000000207295&sum=70100 0 [21:34:03]StoreToDocumentArchive [21:34:03]shift 22 fd 2526 [21:34:03]save to /storage/0022/doc_00002526 [21:34:03]save last doc name /storage/0022/doc_00002526 to /storage/kkm_last_doc_name [21:34:03]save OK [21:34:03]Clear old archive folders... [21:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=500 [21:34:03]tlvbuf is 014361F0 [21:34:03]SAM_PROTO_ClearQueue [21:34:03]wFMCommunicate request_size=4 [21:34:03]MH_SAM_APDU [21:34:03]CAPDU: 80 09 00 00 [21:34:03]Write to MH i2c: E2 08 00 E3 3B 80 09 00 00 00 00 00 00 90 [21:34:03]Write i2c OK [21:34:03]MH_I2C_Read... [21:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:03]Read from MH i2c: E2 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 03 00 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 03 00 E3 3B 00 90 00 92 [21:34:03]RAPDU: 90 00 [21:34:03]wFMCommunicate OK [21:34:03]SAM_PROTO_ClearQueue done [21:34:03]KKMCreateOFDPacket [21:34:03]OFDProtocolAddRootSTLVToBuf [21:34:03]FM_MakeSignedData [21:34:03]FM_MakeSignedData [21:34:03]SAM_PROTO_SignData [21:34:03]wFMCommunicate request_size=4 [21:34:03]MH_SAM_APDU [21:34:03]CAPDU: 80 0D 01 02 [21:34:03]Write to MH i2c: E2 08 00 E4 3B 80 0D 01 02 00 00 00 00 98 [21:34:03]Write i2c OK [21:34:03]MH_I2C_Read... [21:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:03]Read from MH i2c: E2 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 03 00 [21:34:03]MH_I2C_Read... [21:34:03]Read from MH i2c: E2 03 00 E4 3B 00 90 00 93 [21:34:03]RAPDU: 90 00 [21:34:03]wFMCommunicate OK [21:34:03]wFMCommunicate request_size=255 [21:34:03]MH_SAM_APDU [21:34:03]CAPDU: 80 0D 02 02 FA 03 00 F4 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 [21:34:04]Write to MH i2c: E2 02 01 E5 3B 80 0D 02 02 FA 00 03 00 F4 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 00 00 4E [21:34:04]Write i2c OK [21:34:04]MH_I2C_Read... [21:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:04]Read from MH i2c: E2 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 03 00 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 03 00 E5 3B 00 90 00 94 [21:34:04]RAPDU: 90 00 [21:34:04]wFMCommunicate OK [21:34:04]wFMCommunicate request_size=255 [21:34:04]MH_SAM_APDU [21:34:04]CAPDU: 80 0D 02 02 FA 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 1D 00 00 00 00 07 04 06 00 D4 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 97 00 00 00 F4 03 04 00 50 D4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DE 09 00 00 35 04 06 00 47 68 [21:34:04]Write to MH i2c: E2 02 01 E6 3B 80 0D 02 02 FA 00 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 1D 00 00 00 00 07 04 06 00 D4 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 97 00 00 00 F4 03 04 00 50 D4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DE 09 00 00 35 04 06 00 47 68 00 00 59 [21:34:04]Write i2c OK [21:34:04]MH_I2C_Read... [21:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:04]Read from MH i2c: E2 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 03 00 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 03 00 E6 3B 00 90 00 95 [21:34:04]RAPDU: 90 00 [21:34:04]wFMCommunicate OK [21:34:04]wFMCommunicate request_size=9 [21:34:04]MH_SAM_APDU [21:34:04]CAPDU: 80 0D 02 02 04 1B F1 9C F9 [21:34:04]Write to MH i2c: E2 0C 00 E7 3B 80 0D 02 02 04 00 1B F1 9C F9 00 00 45 [21:34:04]Write i2c OK [21:34:04]MH_I2C_Read... [21:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:04]Read from MH i2c: E2 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 03 00 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 03 00 E7 3B 00 90 00 96 [21:34:04]RAPDU: 90 00 [21:34:04]wFMCommunicate OK [21:34:04]wFMCommunicate request_size=4 [21:34:04]MH_SAM_APDU [21:34:04]CAPDU: 80 0D 03 02 [21:34:04]Write to MH i2c: E2 08 00 E8 3B 80 0D 03 02 00 00 00 00 9E [21:34:04]Write i2c OK [21:34:04]MH_I2C_Read... [21:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:04]Read from MH i2c: E2 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 0B 00 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 0B 00 E8 3B 00 DC 8D 11 6B 5B 52 79 C3 90 00 6D [21:34:04]RAPDU: DC 8D 11 6B 5B 52 79 C3 90 00 [21:34:04]wFMCommunicate OK [21:34:04]SAM_PROTO_SignData done [21:34:04]FM_MakeSignedData done [21:34:04]CreateOFDProtocolMessage [21:34:04]wFMCommunicate request_size=4 [21:34:04]MH_SAM_APDU [21:34:04]CAPDU: 80 11 00 00 [21:34:04]Write to MH i2c: E2 08 00 E9 3B 80 11 00 00 00 00 00 00 9E [21:34:04]Write i2c OK [21:34:04]MH_I2C_Read... [21:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:04]Read from MH i2c: E2 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 17 00 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: E2 17 00 E9 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E6 [21:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:34:04]wFMCommunicate OK [21:34:04]CreateOFDProtocolMessage done [21:34:04]OFDSenderStorePacket 2526 [21:34:04]StoreOFDPacket docnum=2526 [21:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 08 02 00 00 84 BE 00 02 B1 0D 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 1D 00 00 00 00 07 04 06 00 D4 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 97 00 00 00 F4 03 04 00 50 D4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DE 09 00 00 35 04 06 00 47 68 1B F1 9C F9 DC 8D 11 6B 5B 52 79 C3 [21:34:04]CheckFolder [21:34:04]dirname=/storage/ofd_packets [21:34:04]CheckFolder done [21:34:04]ProducePacketName [21:34:04]name=ofd_packets/00002526 [21:34:04]NVStorageSaveData ofd_packets/00002526 [21:34:04]File name is /storage/ofd_packets/00002526 [21:34:04]Write 550 bytes [21:34:04]NVStorageSaveData done [21:34:04]OFDSenderStorePacket done [21:34:04]KKMCreateOFDPacket done [21:34:04]NVStorageSaveData kkm_last_timestamp [21:34:04]File name is /storage/kkm_last_timestamp [21:34:04]Write 4 bytes [21:34:04]NVStorageSaveData done [21:34:04]ExternCall_PrintAddStr [21:34:04]wPrintStart [21:34:04]Write to MH i2c: 01 00 00 EA 3B 25 [21:34:04]Write i2c OK [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: 01 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: 01 07 00 [21:34:04]MH_I2C_Read... [21:34:04]Read from MH i2c: 01 07 00 EA 3B 00 00 00 00 00 FF 0F 3A [21:34:04]RasterBufferAndPrint [21:34:04]line Счет N : (3)99914 [21:34:04]line ИÐÐ: 02508201610067 [21:34:04]line Контрольно-КаÑÑовый Чек [21:34:04]line ПРОДÐЖР[21:34:04]line Товар: 4700001061098 [21:34:04]line КоньÑк Семетей 0,5л [21:34:04]line 1.000 * 555.00 [21:34:04]line = 555.00 [21:34:04]line ÐДС 12% ÐСП 1% [21:34:04]line > о реализуемом товаре [21:34:04]line Товар: 2000053020015 [21:34:04]line Бумажные Ñтаканы 250мл 1шт [21:34:04]line 3.000 * 7.00 [21:34:04]line = 21.00 [21:34:04]line ÐДС 12% ÐСП 1% [21:34:04]line > о реализуемом товаре [21:34:04]line Товар: 5449000054227 [21:34:04]line Ðапиток Кока-Кола 1л [21:34:04]line 1.000 * 125.00 [21:34:04]line = 125.00 [21:34:04]line ÐДС 12% ÐСП 1% [21:34:04]line > о реализуемом товаре [21:34:04]line ИТОГО: 701.00 [21:34:04]line ÐСП 1% : 6.21 [21:34:04]line ÐДС 12% : 74.44 [21:34:04]line Ðаличными: 701.00 [21:34:04]line Безнал.: 0.00 [21:34:04]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:34:04]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:34:04]line СÐО: Общий режим [21:34:04]line Чек 151 18.10.2024 21:34 [21:34:04]line Смена: 22 ФФД: 1.0 [21:34:04]line ЗÐМ: 0300000191 [21:34:04]line РÐМ: 0000000000207295 [21:34:04]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:34:04]line ФМ: 0000000002342820 [21:34:04]line ФД: 2526 [21:34:04]line ФПД: 78512470990073 [21:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213408&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2526&fm=78512470990073&tin=02508201610067®Number=0000000000207295&sum=70100 [21:34:04]line 0 [21:34:04]written 0, free lines is 4095 [21:34:04]OFD Sender: Processing packet 2526 [packets to send 1, broken 0] [21:34:04]ProducePacketName [21:34:04]name=ofd_packets/00002526 [21:34:04]OFD Sender: To server: ‡•öpG, [21:34:04]CommunicateWithHost lk.salyk.kg:30040 [21:34:04]ConnectInit lk.salyk.kg [21:34:05]Write to MH i2c: 01 00 00 1F 3C 5B [21:34:05]Write i2c OK [21:34:05]MH_I2C_Read... [21:34:05]Read from MH i2c: 01 [21:34:05]MH_I2C_Read... [21:34:05]Read from MH i2c: 01 07 00 [21:34:05]MH_I2C_Read... [21:34:05]Read from MH i2c: 01 07 00 1F 3C 00 00 00 00 00 DB 0B 48 [21:34:05]RasterBufferAndPrint [21:34:05]line [21:34:05]line [21:34:05]line [21:34:05]line [21:34:05]line [21:34:05]written 0, free lines is 3039 [21:34:05]MH_Cut [21:34:05]Write to MH i2c: D1 01 00 26 3C 01 34 [21:34:05]Write i2c OK [21:34:05]MH_I2C_Read... [21:34:05]Read from MH i2c: D1 [21:34:05]MH_I2C_Read... [21:34:05]Read from MH i2c: D1 01 00 [21:34:05]MH_I2C_Read... [21:34:05]Read from MH i2c: D1 01 00 26 3C 00 33 [21:34:05]Write to MH i2c: 01 00 00 27 3C 63 [21:34:05]Write i2c OK [21:34:05]MH_I2C_Read... [21:34:06]*** Cut start [21:34:06]*** Partial cut [21:34:06]*** CUTSNS_PIN = 1 [21:34:06]*** CUTSNS_PIN = 0 [21:34:06]*** Brake cut motor [21:34:06]Read from MH i2c: 01 [21:34:06]MH_I2C_Read... [21:34:06]*** Stop cut motor [21:34:06]*** Cut end [21:34:06]Read from MH i2c: 01 07 00 [21:34:06]MH_I2C_Read... [21:34:06]Read from MH i2c: 01 07 00 27 3C 00 00 00 00 00 FF 0F 78 [21:34:06]process_action close_receipt done [21:34:06]requested_data is exist [21:34:06]produce_requested_data [21:34:06]requested_item fm.sn is exist - process it [21:34:06]wFMCommunicate request_size=4 [21:34:06]MH_SAM_APDU [21:34:06]CAPDU: 80 11 00 00 [21:34:06]Write to MH i2c: E2 08 00 28 3C 80 11 00 00 00 00 00 00 DE [21:34:06]Write i2c OK [21:34:06]MH_I2C_Read... [21:34:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:07]Read from MH i2c: E2 [21:34:07]MH_I2C_Read... [21:34:07]Read from MH i2c: E2 17 00 [21:34:07]MH_I2C_Read... [21:34:07]Read from MH i2c: E2 17 00 28 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 26 [21:34:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:34:07]wFMCommunicate OK [21:34:07]requested_item fd.num is exist - process it [21:34:07]SAM_PROTO_GetFieldsCounters [21:34:07]wFMCommunicate request_size=4 [21:34:07]MH_SAM_APDU [21:34:07]CAPDU: 80 13 00 00 [21:34:07]Write to MH i2c: E2 08 00 29 3C 80 13 00 00 00 00 00 00 E1 [21:34:07]Write i2c OK [21:34:07]MH_I2C_Read... [21:34:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:07]Read from MH i2c: E2 [21:34:07]MH_I2C_Read... [21:34:07]Read from MH i2c: E2 62 00 [21:34:07]MH_I2C_Read... [21:34:07]Read from MH i2c: E2 62 00 29 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DE 09 00 00 0E 04 04 00 16 00 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 B9 [21:34:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DE 09 00 00 0E 04 04 00 16 00 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 [21:34:07]wFMCommunicate OK [21:34:07]SAM_PROTO_GetFieldsCounters done [21:34:07]requested_item shift.num is exist - process it [21:34:07]requested_item shift.opened is exist - process it [21:34:07]req_shift_opened [21:34:07]FM_GetShiftState [21:34:07]SAM_PROTO_GetShiftState [21:34:07]wFMCommunicate request_size=4 [21:34:07]MH_SAM_APDU [21:34:07]CAPDU: 80 13 01 00 [21:34:07]Write to MH i2c: E2 08 00 2A 3C 80 13 01 00 00 00 00 00 E3 [21:34:07]Write i2c OK [21:34:07]MH_I2C_Read... [21:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:07]Read from MH i2c: E2 [21:34:07]MH_I2C_Read... [21:34:07]Read from MH i2c: E2 0E 00 [21:34:07]MH_I2C_Read... [21:34:07]Read from MH i2c: E2 0E 00 2A 3C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 81 [21:34:07]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:34:07]wFMCommunicate OK [21:34:07]SAM_PROTO_GetShiftState done [21:34:07]FM_GetShiftState done [21:34:07]req_shift_opened done [21:34:07]requested_item shift.open_date is exist - process it [21:34:07]req_shift_open_date [21:34:07]req_shift_open_date done [21:34:07]produce_requested_data done [21:34:07]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2526,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:34:07]process_action_free close_receipt [21:34:07]json_value_free [21:34:07]json_value_free done [21:34:07]process_json_proto returns [21:34:07]Send response to host [21:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2526,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:34:07]free response buf [21:34:07]execute_script done [21:34:07]execute_script returns [21:34:07]free content buf [21:34:07]Sock 7.Close socket [21:34:07]Sock 7.Thread stoped [21:34:16]accept exits with 9 [21:34:16]New connection [21:34:16]New thread 3066707300 created [21:34:16]Thread 3066850660 joined [21:34:16]Waiting for new connection... [21:34:16] Sock 9.Parse request [21:34:16]Sock 9.Check first char [21:34:16]Sock 9.First char is OK [21:34:16]request: POST /json_proto HTTP/1.0 [21:34:16]Method: POST [21:34:16]URL: /json_proto [21:34:16]Method is POST - this is cgi request [21:34:16]url: /json_proto [21:34:16]query_string will be loaded in cgi processing [21:34:16]execute_cgi json_proto POST (null) [21:34:16]execute_cgi path=json_proto method=POST [21:34:16]POST find Content-Length [21:34:16]Host: 172.17.52.132:8080 [21:34:16]Content-Length: 797 [21:34:16]Content-Type: application/json [21:34:16] [21:34:16]POST finish read [21:34:16]Found Content-Length = 797 [21:34:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99915", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:16]execute_script... [21: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 : (3)99915", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle 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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:34:16]POST & json_proto [21:34:16]process_json_proto [21:34:16]json parsed OK: [21:34:16]protocol is kg_v1.0 [21:34:16]action value=close_receipt [21:34:16]process_action close_receipt [21:34:16]cmd_close_receipt [21:34:16]MH_GetDate [21:34:16]Write to MH i2c: F0 00 00 2B 3C 56 [21:34:16]Write i2c OK [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: F0 [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: F0 09 00 [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: F0 09 00 2B 3C 00 5E D4 12 67 5A BE F6 66 7E [21:34:16]GetLastDocTimeStamp 1729287248 [21:34:16]current date 1729287262 [21:34:16]FM_GetShiftState [21:34:16]SAM_PROTO_GetShiftState [21:34:16]wFMCommunicate request_size=4 [21:34:16]MH_SAM_APDU [21:34:16]CAPDU: 80 13 01 00 [21:34:16]Write to MH i2c: E2 08 00 2C 3C 80 13 01 00 00 00 00 00 E5 [21:34:16]Write i2c OK [21:34:16]MH_I2C_Read... [21:34:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:16]Read from MH i2c: E2 [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: E2 0E 00 [21:34:16]MH_I2C_Read... [21:34:16]Read from MH i2c: E2 0E 00 2C 3C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 83 [21:34:16]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:34:16]wFMCommunicate OK [21:34:16]SAM_PROTO_GetShiftState done [21:34:16]FM_GetShiftState done [21:34:16]opened in 1729209717 [21:34:16]opened+sec_in_day 1729296117 [21:34:16]quantity*price = 14400 [21:34:16]sum+1 = 14401 [21:34:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 ÐСП 1% : 1.27 ÐДС 12% : 15.29 Ðаличными: 0.00 Безнал.: 144.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 152 18.10.2024 21:34 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк ФМ: 0000000002342820 ФД: 2527 ФПД: 147502616625132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213422&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2527&fm=147502616625132&tin=02508201610067®Number=0000000000207295&sum=14400 0 [21:34:17]StoreToDocumentArchive [21:34:17]shift 22 fd 2527 [21:34:17]save to /storage/0022/doc_00002527 [21:34:17]save last doc name /storage/0022/doc_00002527 to /storage/kkm_last_doc_name [21:34:17]save OK [21:34:17]Clear old archive folders... [21:34:17]ProcessDocumentItem done err = 0, tmpTLVsize=273 [21:34:17]tlvbuf is 013DAC70 [21:34:17]SAM_PROTO_ClearQueue [21:34:17]wFMCommunicate request_size=4 [21:34:17]MH_SAM_APDU [21:34:17]CAPDU: 80 09 00 00 [21:34:17]Write to MH i2c: E2 08 00 39 3C 80 09 00 00 00 00 00 00 E7 [21:34:17]Write i2c OK [21:34:17]MH_I2C_Read... [21:34:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:34:17]Read from MH i2c: E2 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 03 00 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 03 00 39 3C 00 90 00 E9 [21:34:17]RAPDU: 90 00 [21:34:17]wFMCommunicate OK [21:34:17]SAM_PROTO_ClearQueue done [21:34:17]KKMCreateOFDPacket [21:34:17]OFDProtocolAddRootSTLVToBuf [21:34:17]FM_MakeSignedData [21:34:17]FM_MakeSignedData [21:34:17]SAM_PROTO_SignData [21:34:17]wFMCommunicate request_size=4 [21:34:17]MH_SAM_APDU [21:34:17]CAPDU: 80 0D 01 02 [21:34:17]Write to MH i2c: E2 08 00 3A 3C 80 0D 01 02 00 00 00 00 EF [21:34:17]Write i2c OK [21:34:17]MH_I2C_Read... [21:34:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:34:17]Read from MH i2c: E2 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 03 00 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 03 00 3A 3C 00 90 00 EA [21:34:17]RAPDU: 90 00 [21:34:17]wFMCommunicate OK [21:34:17]wFMCommunicate request_size=255 [21:34:17]MH_SAM_APDU [21:34:17]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 5E D4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 [21:34:17]Write to MH i2c: E2 02 01 3B 3C 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 5E D4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 B2 [21:34:17]Write i2c OK [21:34:17]MH_I2C_Read... [21:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:17]Read from MH i2c: E2 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 03 00 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 03 00 3B 3C 00 90 00 EB [21:34:17]RAPDU: 90 00 [21:34:17]wFMCommunicate OK [21:34:17]wFMCommunicate request_size=32 [21:34:17]MH_SAM_APDU [21:34:17]CAPDU: 80 0D 02 02 1B 30 30 32 33 34 32 38 32 30 10 04 04 00 DF 09 00 00 35 04 06 00 86 27 21 11 3F EC [21:34:17]Write to MH i2c: E2 23 00 3C 3C 80 0D 02 02 1B 00 30 30 32 33 34 32 38 32 30 10 04 04 00 DF 09 00 00 35 04 06 00 86 27 21 11 3F EC 00 00 36 [21:34:17]Write i2c OK [21:34:17]MH_I2C_Read... [21:34:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:34:17]Read from MH i2c: E2 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 03 00 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 03 00 3C 3C 00 90 00 EC [21:34:17]RAPDU: 90 00 [21:34:17]wFMCommunicate OK [21:34:17]wFMCommunicate request_size=4 [21:34:17]MH_SAM_APDU [21:34:17]CAPDU: 80 0D 03 02 [21:34:17]Write to MH i2c: E2 08 00 3D 3C 80 0D 03 02 00 00 00 00 F4 [21:34:17]Write i2c OK [21:34:17]MH_I2C_Read... [21:34:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:34:17]Read from MH i2c: E2 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 0B 00 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 0B 00 3D 3C 00 7A FB 9D E6 FF F9 07 B3 90 00 9F [21:34:17]RAPDU: 7A FB 9D E6 FF F9 07 B3 90 00 [21:34:17]wFMCommunicate OK [21:34:17]SAM_PROTO_SignData done [21:34:17]FM_MakeSignedData done [21:34:17]CreateOFDProtocolMessage [21:34:17]wFMCommunicate request_size=4 [21:34:17]MH_SAM_APDU [21:34:17]CAPDU: 80 11 00 00 [21:34:17]Write to MH i2c: E2 08 00 3E 3C 80 11 00 00 00 00 00 00 F4 [21:34:17]Write i2c OK [21:34:17]MH_I2C_Read... [21:34:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:17]Read from MH i2c: E2 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 17 00 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: E2 17 00 3E 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 3C [21:34:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:34:17]wFMCommunicate OK [21:34:17]CreateOFDProtocolMessage done [21:34:17]OFDSenderStorePacket 2527 [21:34:17]StoreOFDPacket docnum=2527 [21:34:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 1E BE 1D 01 F7 4F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 5E D4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DF 09 00 00 35 04 06 00 86 27 21 11 3F EC 7A FB 9D E6 FF F9 07 B3 [21:34:17]CheckFolder [21:34:17]dirname=/storage/ofd_packets [21:34:17]CheckFolder done [21:34:17]ProducePacketName [21:34:17]name=ofd_packets/00002527 [21:34:17]NVStorageSaveData ofd_packets/00002527 [21:34:17]File name is /storage/ofd_packets/00002527 [21:34:17]Write 323 bytes [21:34:17]NVStorageSaveData done [21:34:17]OFDSenderStorePacket done [21:34:17]KKMCreateOFDPacket done [21:34:17]NVStorageSaveData kkm_last_timestamp [21:34:17]File name is /storage/kkm_last_timestamp [21:34:17]Write 4 bytes [21:34:17]NVStorageSaveData done [21:34:17]ExternCall_PrintAddStr [21:34:17]wPrintStart [21:34:17]Write to MH i2c: 01 00 00 3F 3C 7B [21:34:17]Write i2c OK [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: 01 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: 01 07 00 [21:34:17]MH_I2C_Read... [21:34:17]Read from MH i2c: 01 07 00 3F 3C 00 00 00 00 00 FF 0F 90 [21:34:17]RasterBufferAndPrint [21:34:17]line Счет N : (3)99915 [21:34:17]line ИÐÐ: 02508201610067 [21:34:17]line Контрольно-КаÑÑовый Чек [21:34:17]line ПРОДÐЖР[21:34:17]line Товар: 48743570 [21:34:17]line Сигареты Winston XStyle Blue [21:34:17]line 1.000 * 144.00 [21:34:17]line = 144.00 [21:34:17]line ÐДС 12% ÐСП 1% [21:34:17]line > о реализуемом товаре [21:34:17]line ИТОГО: 144.00 [21:34:17]line ÐСП 1% : 1.27 [21:34:17]line ÐДС 12% : 15.29 [21:34:17]line Ðаличными: 0.00 [21:34:17]line Безнал.: 144.00 [21:34:17]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:34:17]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:34:17]line СÐО: Общий режим [21:34:17]line Чек 152 18.10.2024 21:34 [21:34:17]line Смена: 22 ФФД: 1.0 [21:34:17]line ЗÐМ: 0300000191 [21:34:17]line РÐМ: 0000000000207295 [21:34:17]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:34:17]line ÐŸÐ»Ð°Ñ‚ÐµÐ¶Ð½Ð°Ñ ÑиÑтема: Бакай Банк [21:34:17]line ФМ: 0000000002342820 [21:34:17]line ФД: 2527 [21:34:17]line ФПД: 147502616625132 [21:34:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213422&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2527&fm=147502616625132&tin=02508201610067®Number=0000000000207295&sum=14400 [21:34:18]line 0 [21:34:18]written 0, free lines is 4095 [21:34:18]Write to MH i2c: 01 00 00 69 3C A5 [21:34:18]Write i2c OK [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: 01 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: 01 07 00 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: 01 07 00 69 3C 00 00 00 00 00 96 0C 4E [21:34:18]RasterBufferAndPrint [21:34:18]line [21:34:18]line [21:34:18]line [21:34:18]line [21:34:18]line [21:34:18]written 0, free lines is 3229 [21:34:18]MH_Cut [21:34:18]Write to MH i2c: D1 01 00 70 3C 01 7E [21:34:18]Write i2c OK [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: D1 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: D1 01 00 [21:34:18]MH_I2C_Read... [21:34:18]Read from MH i2c: D1 01 00 70 3C 00 7D [21:34:18]Write to MH i2c: 01 00 00 71 3C AD [21:34:18]Write i2c OK [21:34:18]MH_I2C_Read... [21:34:19]*** Cut start [21:34:19]*** Partial cut [21:34:19]*** CUTSNS_PIN = 1 [21:34:19]*** CUTSNS_PIN = 0 [21:34:19]*** Brake cut motor [21:34:20]Read from MH i2c: 01 [21:34:20]MH_I2C_Read... [21:34:20]*** Stop cut motor [21:34:20]*** Cut end [21:34:20]Read from MH i2c: 01 07 00 [21:34:20]MH_I2C_Read... [21:34:20]Read from MH i2c: 01 07 00 71 3C 00 00 00 00 00 FF 0F C2 [21:34:20]process_action close_receipt done [21:34:20]requested_data is exist [21:34:20]produce_requested_data [21:34:20]requested_item fm.sn is exist - process it [21:34:20]wFMCommunicate request_size=4 [21:34:20]MH_SAM_APDU [21:34:20]CAPDU: 80 11 00 00 [21:34:20]Write to MH i2c: E2 08 00 72 3C 80 11 00 00 00 00 00 00 28 [21:34:20]Write i2c OK [21:34:20]MH_I2C_Read... [21:34:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:34:20]Read from MH i2c: E2 [21:34:20]MH_I2C_Read... [21:34:20]Read from MH i2c: E2 17 00 [21:34:20]MH_I2C_Read... [21:34:20]Read from MH i2c: E2 17 00 72 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 70 [21:34:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:34:20]wFMCommunicate OK [21:34:20]requested_item fd.num is exist - process it [21:34:20]SAM_PROTO_GetFieldsCounters [21:34:20]wFMCommunicate request_size=4 [21:34:20]MH_SAM_APDU [21:34:20]CAPDU: 80 13 00 00 [21:34:20]Write to MH i2c: E2 08 00 73 3C 80 13 00 00 00 00 00 00 2B [21:34:20]Write i2c OK [21:34:20]MH_I2C_Read... [21:34:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:34:20]Read from MH i2c: E2 [21:34:20]MH_I2C_Read... [21:34:20]Read from MH i2c: E2 62 00 [21:34:20]MH_I2C_Read... [21:34:20]Read from MH i2c: E2 62 00 73 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DF 09 00 00 0E 04 04 00 16 00 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 07 [21:34:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 DF 09 00 00 0E 04 04 00 16 00 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 [21:34:20]wFMCommunicate OK [21:34:20]SAM_PROTO_GetFieldsCounters done [21:34:20]requested_item shift.num is exist - process it [21:34:20]requested_item shift.opened is exist - process it [21:34:20]req_shift_opened [21:34:20]FM_GetShiftState [21:34:20]SAM_PROTO_GetShiftState [21:34:20]wFMCommunicate request_size=4 [21:34:20]MH_SAM_APDU [21:34:20]CAPDU: 80 13 01 00 [21:34:20]Write to MH i2c: E2 08 00 74 3C 80 13 01 00 00 00 00 00 2D [21:34:20]Write i2c OK [21:34:20]MH_I2C_Read... [21:34:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:34:20]Read from MH i2c: E2 [21:34:20]MH_I2C_Read... [21:34:20]Read from MH i2c: E2 0E 00 [21:34:20]MH_I2C_Read... [21:34:20]Read from MH i2c: E2 0E 00 74 3C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 CB [21:34:20]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:34:20]wFMCommunicate OK [21:34:20]SAM_PROTO_GetShiftState done [21:34:20]FM_GetShiftState done [21:34:20]req_shift_opened done [21:34:20]requested_item shift.open_date is exist - process it [21:34:20]req_shift_open_date [21:34:20]req_shift_open_date done [21:34:20]produce_requested_data done [21:34:20]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2527,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:34:20]process_action_free close_receipt [21:34:20]json_value_free [21:34:20]json_value_free done [21:34:20]process_json_proto returns [21:34:20]Send response to host [21:34:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2527,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:34:20]free response buf [21:34:20]execute_script done [21:34:20]execute_script returns [21:34:20]free content buf [21:34:20]Sock 9.Close socket [21:34:20]Sock 9.Thread stoped [21:36:18]ConnectInit Can't connect to host [21:36:18]CommunicateWithHost connect error [21:36:18]CommunicateWithHost err = -1 [21:36:18]OFD Sender: Server communicate error [21:36:18]OFD Sender: Processing packet 2526 [packets to send 2, broken 0] [21:36:18]ProducePacketName [21:36:18]name=ofd_packets/00002526 [21:36:18]OFD Sender: To server: ‡•öpG, [21:36:18]CommunicateWithHost lk.salyk.kg:30040 [21:36:18]ConnectInit lk.salyk.kg [21:36:18]Connected sock=9 [21:36:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 08 02 00 00 84 BE 00 02 B1 0D 5A 03 01 00 03 00 F4 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 31 30 39 38 06 04 21 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 A1 D0 B5 D0 BC D0 B5 D1 82 D0 B5 D0 B9 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 CC D8 00 00 00 00 13 04 06 00 CC D8 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 14 1D 00 00 00 00 07 04 06 00 D4 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 97 00 00 00 F4 03 04 00 50 D4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DE 09 00 00 35 04 06 00 47 68 1B F1 9C F9 DC 8D 11 6B 5B 52 79 C3 [21:36:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 CF F2 47 00 40 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 32 33 34 32 38 32 30 10 04 04 00 DE 09 00 00 F4 03 04 00 39 80 12 67 B6 04 01 00 00 C8 B9 4E AE 8F 21 69 E1 [21:36:18]CommunicateWithHost err = 0 [21:36:18]CheckOFDResponse [21:36:18]1017 (14) - 77093643461234 [21:36:18]1041 (16) - 0000000002342820 [21:36:18]1040 (4) - 2526 [21:36:18]1012 (4) - 18.10.2024 15:35 [21:36:18]1206 (1) - 0 [21:36:18]OFD Sender: Remove packet 2526 [21:36:18]ProducePacketName [21:36:18]name=ofd_packets/00002526 [21:36:18]NVStorageDeleteData [21:36:19]OFD Sender: Processing packet 2527 [packets to send 1, broken 0] [21:36:19]ProducePacketName [21:36:19]name=ofd_packets/00002527 [21:36:19]OFD Sender: To server: ‡•öpG, [21:36:19]CommunicateWithHost lk.salyk.kg:30040 [21:36:19]ConnectInit lk.salyk.kg [21:36:19]Connected sock=9 [21:36:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 1E BE 1D 01 F7 4F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 5E D4 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DF 09 00 00 35 04 06 00 86 27 21 11 3F EC 7A FB 9D E6 FF F9 07 B3 [21:36:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 4D F1 47 00 5A 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 DF 09 00 00 F4 03 04 00 3A 80 12 67 B6 04 01 00 00 00 79 62 2E 16 E9 13 C2 [21:36:19]CommunicateWithHost err = 0 [21:36:19]CheckOFDResponse [21:36:19]1017 (14) - 77093643461234 [21:36:19]1041 (16) - 0000000002342820 [21:36:19]1040 (4) - 2527 [21:36:19]1012 (4) - 18.10.2024 15:35 [21:36:19]1206 (1) - 0 [21:36:19]OFD Sender: Remove packet 2527 [21:36:19]ProducePacketName [21:36:19]name=ofd_packets/00002527 [21:36:19]NVStorageDeleteData [21:36:19]OFD Sender: No OFD packet to send [21:36:24]OFD Sender: No OFD packet to send [21:36:29]OFD Sender: No OFD packet to send [21:36:34]OFD Sender: No OFD packet to send [21:36:39]OFD Sender: No OFD packet to send [21:36:44]OFD Sender: No OFD packet to send [21:36:49]OFD Sender: No OFD packet to send [21:36:54]OFD Sender: No OFD packet to send [21:36:59]OFD Sender: No OFD packet to send [21:37:04]OFD Sender: No OFD packet to send [21:37:09]OFD Sender: No OFD packet to send [21:37:14]OFD Sender: No OFD packet to send [21:37:19]OFD Sender: No OFD packet to send [21:37:24]OFD Sender: No OFD packet to send [21:37:29]OFD Sender: No OFD packet to send [21:37:34]OFD Sender: No OFD packet to send [21:37:39]OFD Sender: No OFD packet to send [21:37:44]OFD Sender: No OFD packet to send [21:37:49]OFD Sender: No OFD packet to send [21:37:54]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:16]accept exits with 7 [21:39:16]New connection [21:39:16]New thread 3066850660 created [21:39:16]Thread 3066707300 joined [21:39:16]Waiting for new connection... [21:39:16] Sock 7.Parse request [21:39:16]Sock 7.Check first char [21:39:16]Sock 7.First char is OK [21:39:16]request: POST /json_proto HTTP/1.0 [21:39:16]Method: POST [21:39:16]URL: /json_proto [21:39:16]Method is POST - this is cgi request [21:39:16]url: /json_proto [21:39:16]query_string will be loaded in cgi processing [21:39:16]execute_cgi json_proto POST (null) [21:39:16]execute_cgi path=json_proto method=POST [21:39:16]POST find Content-Length [21:39:16]Host: 172.17.52.132:8080 [21:39:16]Content-Length: 1453 [21:39:16]Content-Type: application/json [21:39:16] [21:39:16]POST finish read [21:39:16]Found Content-Length = 1453 [21:39:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99916", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 862.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:16]execute_script... [21:39:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99916", "tax_sys" : 0, "items" : [ { "code": "4700002083327", "name": "\u0412\u043E\u0434\u043A\u0430 Level 0,5", "price" : 510.00, "quantity" : 1.000, "sum" : 510.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 2.000, "sum" : 288.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 862.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:39:16]POST & json_proto [21:39:16]process_json_proto [21:39:16]json parsed OK: [21:39:16]protocol is kg_v1.0 [21:39:16]action value=close_receipt [21:39:16]process_action close_receipt [21:39:16]cmd_close_receipt [21:39:16]MH_GetDate [21:39:16]Write to MH i2c: F0 00 00 75 3C A0 [21:39:16]Write i2c OK [21:39:16]MH_I2C_Read... [21:39:16]Read from MH i2c: F0 [21:39:16]MH_I2C_Read... [21:39:16]Read from MH i2c: F0 09 00 [21:39:16]MH_I2C_Read... [21:39:16]Read from MH i2c: F0 09 00 75 3C 00 8A D5 12 67 5A BE F6 66 F5 [21:39:16]GetLastDocTimeStamp 1729287262 [21:39:16]current date 1729287562 [21:39:16]FM_GetShiftState [21:39:16]SAM_PROTO_GetShiftState [21:39:16]wFMCommunicate request_size=4 [21:39:16]MH_SAM_APDU [21:39:16]CAPDU: 80 13 01 00 [21:39:16]Write to MH i2c: E2 08 00 76 3C 80 13 01 00 00 00 00 00 2F [21:39:16]Write i2c OK [21:39:16]MH_I2C_Read... [21:39:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:16]Read from MH i2c: E2 [21:39:16]MH_I2C_Read... [21:39:16]Read from MH i2c: E2 0E 00 [21:39:16]MH_I2C_Read... [21:39:16]Read from MH i2c: E2 0E 00 76 3C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 CD [21:39:16]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:39:16]wFMCommunicate OK [21:39:16]SAM_PROTO_GetShiftState done [21:39:16]FM_GetShiftState done [21:39:16]opened in 1729209717 [21:39:16]opened+sec_in_day 1729296117 [21:39:16]quantity*price = 51000 [21:39:16]sum+1 = 51001 [21:39:16]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747059 Сигареты Winston Legend Blue 2.000 * 144.00 = 288.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 4700000160792 Снек Курут клаÑÑичеÑкий (круглый) 1.000 * 60.00 = 60.00 ÐДС 12% ÐСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Ðефть 1.000 * 4.00 = 4.00 ÐДС 12% ÐСП 1% > о реализуемом товаре ИТОГО: 862.00 ÐСП 1% : 7.62 ÐДС 12% : 91.53 Ðаличными: 862.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 153 18.10.2024 21:39 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2528 ФПД: 18299341555340 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213923&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2528&fm=18299341555340&tin=02508201610067®Number=0000000000207295&sum=86200 0 [21:39:18]StoreToDocumentArchive [21:39:18]shift 22 fd 2528 [21:39:18]save to /storage/0022/doc_00002528 [21:39:18]save last doc name /storage/0022/doc_00002528 to /storage/kkm_last_doc_name [21:39:18]save OK [21:39:18]Clear old archive folders... [21:39:18]ProcessDocumentItem done err = 0, tmpTLVsize=606 [21:39:18]tlvbuf is 013E8B00 [21:39:18]SAM_PROTO_ClearQueue [21:39:18]wFMCommunicate request_size=4 [21:39:18]MH_SAM_APDU [21:39:18]CAPDU: 80 09 00 00 [21:39:18]Write to MH i2c: E2 08 00 83 3C 80 09 00 00 00 00 00 00 31 [21:39:18]Write i2c OK [21:39:18]MH_I2C_Read... [21:39:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:39:18]Read from MH i2c: E2 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 83 3C 00 90 00 33 [21:39:18]RAPDU: 90 00 [21:39:18]wFMCommunicate OK [21:39:18]SAM_PROTO_ClearQueue done [21:39:18]KKMCreateOFDPacket [21:39:18]OFDProtocolAddRootSTLVToBuf [21:39:18]FM_MakeSignedData [21:39:18]FM_MakeSignedData [21:39:18]SAM_PROTO_SignData [21:39:18]wFMCommunicate request_size=4 [21:39:18]MH_SAM_APDU [21:39:18]CAPDU: 80 0D 01 02 [21:39:18]Write to MH i2c: E2 08 00 84 3C 80 0D 01 02 00 00 00 00 39 [21:39:18]Write i2c OK [21:39:18]MH_I2C_Read... [21:39:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:39:18]Read from MH i2c: E2 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 84 3C 00 90 00 34 [21:39:18]RAPDU: 90 00 [21:39:18]wFMCommunicate OK [21:39:18]wFMCommunicate request_size=255 [21:39:18]MH_SAM_APDU [21:39:18]CAPDU: 80 0D 02 02 FA 03 00 5E 02 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 [21:39:18]Write to MH i2c: E2 02 01 85 3C 80 0D 02 02 FA 00 03 00 5E 02 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 00 00 C5 [21:39:18]Write i2c OK [21:39:18]MH_I2C_Read... [21:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:18]Read from MH i2c: E2 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 85 3C 00 90 00 35 [21:39:18]RAPDU: 90 00 [21:39:18]wFMCommunicate OK [21:39:18]wFMCommunicate request_size=255 [21:39:18]MH_SAM_APDU [21:39:18]CAPDU: 80 0D 02 02 FA BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 23 00 00 00 00 07 04 06 [21:39:18]Write to MH i2c: E2 02 01 86 3C 80 0D 02 02 FA 00 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 23 00 00 00 00 07 04 06 00 00 27 [21:39:18]Write i2c OK [21:39:18]MH_I2C_Read... [21:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:18]Read from MH i2c: E2 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 86 3C 00 90 00 36 [21:39:18]RAPDU: 90 00 [21:39:18]wFMCommunicate OK [21:39:18]wFMCommunicate request_size=115 [21:39:18]MH_SAM_APDU [21:39:18]CAPDU: 80 0D 02 02 6E 00 B8 50 01 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 8B D5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E0 09 00 00 35 04 06 00 10 A4 A5 C0 C6 8C [21:39:18]Write to MH i2c: E2 76 00 87 3C 80 0D 02 02 6E 00 00 B8 50 01 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 8B D5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E0 09 00 00 35 04 06 00 10 A4 A5 C0 C6 8C 00 00 1C [21:39:18]Write i2c OK [21:39:18]MH_I2C_Read... [21:39:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:39:18]Read from MH i2c: E2 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 03 00 87 3C 00 90 00 37 [21:39:18]RAPDU: 90 00 [21:39:18]wFMCommunicate OK [21:39:18]wFMCommunicate request_size=4 [21:39:18]MH_SAM_APDU [21:39:18]CAPDU: 80 0D 03 02 [21:39:18]Write to MH i2c: E2 08 00 88 3C 80 0D 03 02 00 00 00 00 3F [21:39:18]Write i2c OK [21:39:18]MH_I2C_Read... [21:39:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:39:18]Read from MH i2c: E2 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 0B 00 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 0B 00 88 3C 00 2F 01 51 F6 FB 5A B5 59 90 00 1A [21:39:18]RAPDU: 2F 01 51 F6 FB 5A B5 59 90 00 [21:39:18]wFMCommunicate OK [21:39:18]SAM_PROTO_SignData done [21:39:18]FM_MakeSignedData done [21:39:18]CreateOFDProtocolMessage [21:39:18]wFMCommunicate request_size=4 [21:39:18]MH_SAM_APDU [21:39:18]CAPDU: 80 11 00 00 [21:39:18]Write to MH i2c: E2 08 00 89 3C 80 11 00 00 00 00 00 00 3F [21:39:18]Write i2c OK [21:39:18]MH_I2C_Read... [21:39:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:18]Read from MH i2c: E2 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 17 00 [21:39:18]MH_I2C_Read... [21:39:18]Read from MH i2c: E2 17 00 89 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 87 [21:39:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:39:18]wFMCommunicate OK [21:39:18]CreateOFDProtocolMessage done [21:39:19]OFDSenderStorePacket 2528 [21:39:19]StoreOFDPacket docnum=2528 [21:39:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 72 02 00 00 7E 4A 6A 02 02 8F 5A 03 01 00 03 00 5E 02 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 23 00 00 00 00 07 04 06 00 B8 50 01 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 8B D5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E0 09 00 00 35 04 06 00 10 A4 A5 C0 C6 8C 2F 01 51 F6 FB 5A B5 59 [21:39:19]CheckFolder [21:39:19]dirname=/storage/ofd_packets [21:39:19]CheckFolder done [21:39:19]ProducePacketName [21:39:19]name=ofd_packets/00002528 [21:39:19]NVStorageSaveData ofd_packets/00002528 [21:39:19]File name is /storage/ofd_packets/00002528 [21:39:19]Write 656 bytes [21:39:19]NVStorageSaveData done [21:39:19]OFDSenderStorePacket done [21:39:19]KKMCreateOFDPacket done [21:39:19]NVStorageSaveData kkm_last_timestamp [21:39:19]File name is /storage/kkm_last_timestamp [21:39:19]Write 4 bytes [21:39:19]NVStorageSaveData done [21:39:19]ExternCall_PrintAddStr [21:39:19]wPrintStart [21:39:19]Write to MH i2c: 01 00 00 8A 3C C6 [21:39:19]Write i2c OK [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: 01 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: 01 07 00 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: 01 07 00 8A 3C 00 00 00 00 00 FF 0F DB [21:39:19]RasterBufferAndPrint [21:39:19]line Счет N : (3)99916 [21:39:19]line ИÐÐ: 02508201610067 [21:39:19]line Контрольно-КаÑÑовый Чек [21:39:19]line ПРОДÐЖР[21:39:19]line Товар: 4700002083327 [21:39:19]line Водка Level 0,5 [21:39:19]line 1.000 * 510.00 [21:39:19]line = 510.00 [21:39:19]line ÐДС 12% ÐСП 1% [21:39:19]line > о реализуемом товаре [21:39:19]line Товар: 48747059 [21:39:19]line Сигареты Winston Legend Blue [21:39:19]line 2.000 * 144.00 [21:39:19]line = 288.00 [21:39:19]line ÐДС 12% ÐСП 1% [21:39:19]line > о реализуемом товаре [21:39:19]line Товар: 4700000160792 [21:39:19]line Снек Курут клаÑÑичеÑкий (круглый) [21:39:19]line 1.000 * 60.00 [21:39:19]line = 60.00 [21:39:19]line ÐДС 12% ÐСП 1% [21:39:19]line > о реализуемом товаре [21:39:19]line Товар: 2000031750019 [21:39:19]line Пакет Партнер Ðефть [21:39:19]line 1.000 * 4.00 [21:39:19]line = 4.00 [21:39:19]line ÐДС 12% ÐСП 1% [21:39:19]line > о реализуемом товаре [21:39:19]line ИТОГО: 862.00 [21:39:19]line ÐСП 1% : 7.62 [21:39:19]line ÐДС 12% : 91.53 [21:39:19]line Ðаличными: 862.00 [21:39:19]line Безнал.: 0.00 [21:39:19]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:39:19]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:39:19]line СÐО: Общий режим [21:39:19]line Чек 153 18.10.2024 21:39 [21:39:19]line Смена: 22 ФФД: 1.0 [21:39:19]line ЗÐМ: 0300000191 [21:39:19]line РÐМ: 0000000000207295 [21:39:19]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:39:19]line ФМ: 0000000002342820 [21:39:19]line ФД: 2528 [21:39:19]line ФПД: 18299341555340 [21:39:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T213923&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2528&fm=18299341555340&tin=02508201610067®Number=0000000000207295&sum=86200 [21:39:19]line 0 [21:39:19]OFD Sender: Processing packet 2528 [packets to send 1, broken 0] [21:39:19]ProducePacketName [21:39:19]name=ofd_packets/00002528 [21:39:19]OFD Sender: To server: ‡•öpG, [21:39:19]CommunicateWithHost lk.salyk.kg:30040 [21:39:19]ConnectInit lk.salyk.kg [21:39:19]written 0, free lines is 4095 [21:39:19]Connected sock=9 [21:39:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 72 02 00 00 7E 4A 6A 02 02 8F 5A 03 01 00 03 00 5E 02 1E 04 01 00 01 23 04 58 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 33 33 32 37 06 04 14 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4C 65 76 65 6C 20 30 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 C7 00 00 00 00 13 04 06 00 38 C7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 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 D0 07 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 70 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 50 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C1 23 00 00 00 00 07 04 06 00 B8 50 01 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 8B D5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E0 09 00 00 35 04 06 00 10 A4 A5 C0 C6 8C 2F 01 51 F6 FB 5A B5 59 [21:39:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 1A BE 47 00 AB 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 32 33 34 32 38 32 30 10 04 04 00 E0 09 00 00 F4 03 04 00 EE 80 12 67 B6 04 01 00 00 5D 08 C8 39 CD 86 C5 D7 [21:39:19]CommunicateWithHost err = 0 [21:39:19]CheckOFDResponse [21:39:19]1017 (14) - 77093643461234 [21:39:19]1041 (16) - 0000000002342820 [21:39:19]1040 (4) - 2528 [21:39:19]1012 (4) - 18.10.2024 15:38 [21:39:19]1206 (1) - 0 [21:39:19]OFD Sender: Remove packet 2528 [21:39:19]ProducePacketName [21:39:19]name=ofd_packets/00002528 [21:39:19]NVStorageDeleteData [21:39:19]Write to MH i2c: 01 00 00 C6 3C 02 [21:39:19]Write i2c OK [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: 01 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: 01 07 00 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: 01 07 00 C6 3C 00 00 00 00 00 61 0B 75 [21:39:19]RasterBufferAndPrint [21:39:19]line [21:39:19]line [21:39:19]line [21:39:19]line [21:39:19]line [21:39:19]written 0, free lines is 2920 [21:39:19]MH_Cut [21:39:19]Write to MH i2c: D1 01 00 CD 3C 01 DB [21:39:19]Write i2c OK [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: D1 [21:39:19]MH_I2C_Read... [21:39:19]Read from MH i2c: D1 01 00 [21:39:20]MH_I2C_Read... [21:39:20]Read from MH i2c: D1 01 00 CD 3C 00 DA [21:39:20]Write to MH i2c: 01 00 00 CE 3C 0A [21:39:20]Write i2c OK [21:39:20]MH_I2C_Read... [21:39:20]OFD Sender: No OFD packet to send [21:39:21]*** Cut start [21:39:21]*** Partial cut [21:39:21]*** CUTSNS_PIN = 1 [21:39:21]*** CUTSNS_PIN = 0 [21:39:21]*** Brake cut motor [21:39:21]Read from MH i2c: 01 [21:39:21]MH_I2C_Read... [21:39:21]*** Stop cut motor [21:39:21]*** Cut end [21:39:21]Read from MH i2c: 01 07 00 [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: 01 07 00 CE 3C 00 00 00 00 00 FF 0F 1F [21:39:21]process_action close_receipt done [21:39:21]requested_data is exist [21:39:21]produce_requested_data [21:39:21]requested_item fm.sn is exist - process it [21:39:21]wFMCommunicate request_size=4 [21:39:21]MH_SAM_APDU [21:39:21]CAPDU: 80 11 00 00 [21:39:21]Write to MH i2c: E2 08 00 CF 3C 80 11 00 00 00 00 00 00 85 [21:39:21]Write i2c OK [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: E2 [21:39:21]MH_I2C_Read... [21:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:39:21]Read from MH i2c: E2 17 00 [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: E2 17 00 CF 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 CD [21:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:39:21]wFMCommunicate OK [21:39:21]requested_item fd.num is exist - process it [21:39:21]SAM_PROTO_GetFieldsCounters [21:39:21]wFMCommunicate request_size=4 [21:39:21]MH_SAM_APDU [21:39:21]CAPDU: 80 13 00 00 [21:39:21]Write to MH i2c: E2 08 00 D0 3C 80 13 00 00 00 00 00 00 88 [21:39:21]Write i2c OK [21:39:21]MH_I2C_Read... [21:39:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:39:21]Read from MH i2c: E2 [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: E2 62 00 [21:39:21]MH_I2C_Read... [21:39:21]Read from MH i2c: E2 62 00 D0 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E0 09 00 00 0E 04 04 00 16 00 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 [21:39:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E0 09 00 00 0E 04 04 00 16 00 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 [21:39:21]wFMCommunicate OK [21:39:21]SAM_PROTO_GetFieldsCounters done [21:39:21]requested_item shift.num is exist - process it [21:39:21]requested_item shift.opened is exist - process it [21:39:21]req_shift_opened [21:39:21]FM_GetShiftState [21:39:21]SAM_PROTO_GetShiftState [21:39:21]wFMCommunicate request_size=4 [21:39:21]MH_SAM_APDU [21:39:21]CAPDU: 80 13 01 00 [21:39:21]Write to MH i2c: E2 08 00 D1 3C 80 13 01 00 00 00 00 00 8A [21:39:22]Write i2c OK [21:39:22]MH_I2C_Read... [21:39:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:39:22]Read from MH i2c: E2 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: E2 0E 00 [21:39:22]MH_I2C_Read... [21:39:22]Read from MH i2c: E2 0E 00 D1 3C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 28 [21:39:22]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:39:22]wFMCommunicate OK [21:39:22]SAM_PROTO_GetShiftState done [21:39:22]FM_GetShiftState done [21:39:22]req_shift_opened done [21:39:22]requested_item shift.open_date is exist - process it [21:39:22]req_shift_open_date [21:39:22]req_shift_open_date done [21:39:22]produce_requested_data done [21:39:22]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2528,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:39:22]process_action_free close_receipt [21:39:22]json_value_free [21:39:22]json_value_free done [21:39:22]process_json_proto returns [21:39:22]Send response to host [21:39:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2528,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:39:22]free response buf [21:39:22]execute_script done [21:39:22]execute_script returns [21:39:22]free content buf [21:39:22]Sock 7.Close socket [21:39:22]Sock 7.Thread stoped [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:21]accept exits with 10 [21:40:21]New connection [21:40:21]New thread 3066707300 created [21:40:21]Thread 3066850660 joined [21:40:21]Waiting for new connection... [21:40:21] Sock 10.Parse request [21:40:21]Sock 10.Check first char [21:40:21]Sock 10.First char is OK [21:40:21]request: POST /json_proto HTTP/1.0 [21:40:21]Method: POST [21:40:21]URL: /json_proto [21:40:21]Method is POST - this is cgi request [21:40:21]url: /json_proto [21:40:21]query_string will be loaded in cgi processing [21:40:21]execute_cgi json_proto POST (null) [21:40:21]execute_cgi path=json_proto method=POST [21:40:21]POST find Content-Length [21:40:21]Host: 172.17.52.132:8080 [21:40:21]Content-Length: 631 [21:40:21]Content-Type: application/json [21:40:21] [21:40:21]POST finish read [21:40:21]Found Content-Length = 631 [21:40:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99917", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:21]execute_script... [21:40: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 : (3)99917", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 2.000, "sum" : 80.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:40:21]POST & json_proto [21:40:21]process_json_proto [21:40:21]json parsed OK: [21:40:21]protocol is kg_v1.0 [21:40:21]action value=close_receipt [21:40:21]process_action close_receipt [21:40:21]cmd_close_receipt [21:40:21]MH_GetDate [21:40:21]Write to MH i2c: F0 00 00 D2 3C FD [21:40:21]Write i2c OK [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: F0 [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: F0 09 00 [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: F0 09 00 D2 3C 00 CB D5 12 67 5A BE F6 66 93 [21:40:21]GetLastDocTimeStamp 1729287563 [21:40:21]current date 1729287627 [21:40:21]FM_GetShiftState [21:40:21]SAM_PROTO_GetShiftState [21:40:21]wFMCommunicate request_size=4 [21:40:21]MH_SAM_APDU [21:40:21]CAPDU: 80 13 01 00 [21:40:21]Write to MH i2c: E2 08 00 D3 3C 80 13 01 00 00 00 00 00 8C [21:40:21]Write i2c OK [21:40:21]MH_I2C_Read... [21:40:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:21]Read from MH i2c: E2 [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: E2 0E 00 [21:40:21]MH_I2C_Read... [21:40:21]Read from MH i2c: E2 0E 00 D3 3C 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 2A [21:40:21]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:40:21]wFMCommunicate OK [21:40:21]SAM_PROTO_GetShiftState done [21:40:21]FM_GetShiftState done [21:40:21]opened in 1729209717 [21:40:21]opened+sec_in_day 1729296117 [21:40:21]quantity*price = 8000 [21:40:21]sum+1 = 8001 [21:40:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 ÐСП 1% : 0.71 ÐДС 12% : 8.50 Ðаличными: 80.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 154 18.10.2024 21:40 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2529 ФПД: 129367222123831 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T214027&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2529&fm=129367222123831&tin=02508201610067®Number=0000000000207295&sum=8000 0 [21:40:22]StoreToDocumentArchive [21:40:22]shift 22 fd 2529 [21:40:22]save to /storage/0022/doc_00002529 [21:40:22]save last doc name /storage/0022/doc_00002529 to /storage/kkm_last_doc_name [21:40:22]save OK [21:40:22]Clear old archive folders... [21:40:22]ProcessDocumentItem done err = 0, tmpTLVsize=271 [21:40:22]tlvbuf is 013B9B20 [21:40:22]SAM_PROTO_ClearQueue [21:40:22]wFMCommunicate request_size=4 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 09 00 00 [21:40:22]Write to MH i2c: E2 08 00 E0 3C 80 09 00 00 00 00 00 00 8E [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 E0 3C 00 90 00 90 [21:40:22]RAPDU: 90 00 [21:40:22]wFMCommunicate OK [21:40:22]SAM_PROTO_ClearQueue done [21:40:22]KKMCreateOFDPacket [21:40:22]OFDProtocolAddRootSTLVToBuf [21:40:22]FM_MakeSignedData [21:40:22]FM_MakeSignedData [21:40:22]SAM_PROTO_SignData [21:40:22]wFMCommunicate request_size=4 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 0D 01 02 [21:40:22]Write to MH i2c: E2 08 00 E1 3C 80 0D 01 02 00 00 00 00 96 [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 E1 3C 00 90 00 91 [21:40:22]RAPDU: 90 00 [21:40:22]wFMCommunicate OK [21:40:22]wFMCommunicate request_size=255 [21:40:22]MH_SAM_APDU [21:40:22]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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 CB D5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 [21:40:22]Write to MH i2c: E2 02 01 E2 3C 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 CB D5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 0F [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 E2 3C 00 90 00 92 [21:40:22]RAPDU: 90 00 [21:40:22]wFMCommunicate OK [21:40:22]wFMCommunicate request_size=30 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 0D 02 02 19 32 33 34 32 38 32 30 10 04 04 00 E1 09 00 00 35 04 06 00 75 A8 A7 51 FD 37 [21:40:22]Write to MH i2c: E2 21 00 E3 3C 80 0D 02 02 19 00 32 33 34 32 38 32 30 10 04 04 00 E1 09 00 00 35 04 06 00 75 A8 A7 51 FD 37 00 00 BA [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 03 00 E3 3C 00 90 00 93 [21:40:22]RAPDU: 90 00 [21:40:22]wFMCommunicate OK [21:40:22]wFMCommunicate request_size=4 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 0D 03 02 [21:40:22]Write to MH i2c: E2 08 00 E4 3C 80 0D 03 02 00 00 00 00 9B [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 0B 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 0B 00 E4 3C 00 CF E1 75 FE 09 A7 0D 54 90 00 D0 [21:40:22]RAPDU: CF E1 75 FE 09 A7 0D 54 90 00 [21:40:22]wFMCommunicate OK [21:40:22]SAM_PROTO_SignData done [21:40:22]FM_MakeSignedData done [21:40:22]CreateOFDProtocolMessage [21:40:22]wFMCommunicate request_size=4 [21:40:22]MH_SAM_APDU [21:40:22]CAPDU: 80 11 00 00 [21:40:22]Write to MH i2c: E2 08 00 E5 3C 80 11 00 00 00 00 00 00 9B [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:22]Read from MH i2c: E2 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 17 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: E2 17 00 E5 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 E3 [21:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:40:22]wFMCommunicate OK [21:40:22]CreateOFDProtocolMessage done [21:40:22]OFDSenderStorePacket 2529 [21:40:22]StoreOFDPacket docnum=2529 [21:40:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 23 01 00 00 74 0A 1B 01 6A CC 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 CB D5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E1 09 00 00 35 04 06 00 75 A8 A7 51 FD 37 CF E1 75 FE 09 A7 0D 54 [21:40:22]CheckFolder [21:40:22]dirname=/storage/ofd_packets [21:40:22]CheckFolder done [21:40:22]ProducePacketName [21:40:22]name=ofd_packets/00002529 [21:40:22]NVStorageSaveData ofd_packets/00002529 [21:40:22]File name is /storage/ofd_packets/00002529 [21:40:22]Write 321 bytes [21:40:22]NVStorageSaveData done [21:40:22]OFDSenderStorePacket done [21:40:22]KKMCreateOFDPacket done [21:40:22]NVStorageSaveData kkm_last_timestamp [21:40:22]File name is /storage/kkm_last_timestamp [21:40:22]Write 4 bytes [21:40:22]NVStorageSaveData done [21:40:22]ExternCall_PrintAddStr [21:40:22]wPrintStart [21:40:22]Write to MH i2c: 01 00 00 E6 3C 22 [21:40:22]Write i2c OK [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: 01 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: 01 07 00 [21:40:22]MH_I2C_Read... [21:40:22]Read from MH i2c: 01 07 00 E6 3C 00 00 00 00 00 FF 0F 37 [21:40:22]RasterBufferAndPrint [21:40:22]line Счет N : (3)99917 [21:40:22]line ИÐÐ: 02508201610067 [21:40:22]line Контрольно-КаÑÑовый Чек [21:40:22]line ПРОДÐЖР[21:40:22]line Товар: 4700000160211 [21:40:22]line Вода Легенда 0,5л [21:40:22]line 2.000 * 40.00 [21:40:22]line = 80.00 [21:40:22]line ÐДС 12% ÐСП 1% [21:40:22]line > о реализуемом товаре [21:40:22]line ИТОГО: 80.00 [21:40:22]line ÐСП 1% : 0.71 [21:40:22]line ÐДС 12% : 8.50 [21:40:22]line Ðаличными: 80.00 [21:40:22]line Безнал.: 0.00 [21:40:22]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [21:40:22]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [21:40:22]line СÐО: Общий режим [21:40:22]line Чек 154 18.10.2024 21:40 [21:40:22]line Смена: 22 ФФД: 1.0 [21:40:22]line ЗÐМ: 0300000191 [21:40:22]line РÐМ: 0000000000207295 [21:40:22]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [21:40:22]line ФМ: 0000000002342820 [21:40:22]line ФД: 2529 [21:40:22]line ФПД: 129367222123831 [21:40:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T214027&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2529&fm=129367222123831&tin=02508201610067®Number=0000000000207295&sum=8000 [21:40:23]line 0 [21:40:23]OFD Sender: Processing packet 2529 [packets to send 1, broken 0] [21:40:23]ProducePacketName [21:40:23]name=ofd_packets/00002529 [21:40:23]OFD Sender: To server: ‡•öpG, [21:40:23]CommunicateWithHost lk.salyk.kg:30040 [21:40:23]ConnectInit lk.salyk.kg [21:40:23]written 0, free lines is 4095 [21:40:23]Connected sock=9 [21:40:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 23 01 00 00 74 0A 1B 01 6A CC 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 D0 07 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 40 1F 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 CB D5 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E1 09 00 00 35 04 06 00 75 A8 A7 51 FD 37 CF E1 75 FE 09 A7 0D 54 [21:40:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 73 05 47 00 A4 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E1 09 00 00 F4 03 04 00 2E 81 12 67 B6 04 01 00 00 4D AA E0 D4 C9 3C 59 AE [21:40:23]CommunicateWithHost err = 0 [21:40:23]CheckOFDResponse [21:40:23]1017 (14) - 77093643461234 [21:40:23]1041 (16) - 0000000002342820 [21:40:23]1040 (4) - 2529 [21:40:23]1012 (4) - 18.10.2024 15:39 [21:40:23]1206 (1) - 0 [21:40:23]OFD Sender: Remove packet 2529 [21:40:23]ProducePacketName [21:40:23]name=ofd_packets/00002529 [21:40:23]NVStorageDeleteData [21:40:23]Write to MH i2c: 01 00 00 0E 3D 4B [21:40:23]Write i2c OK [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: 01 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: 01 07 00 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: 01 07 00 0E 3D 00 00 00 00 00 D2 0C 30 [21:40:23]RasterBufferAndPrint [21:40:23]line [21:40:23]line [21:40:23]line [21:40:23]line [21:40:23]line [21:40:23]written 0, free lines is 3288 [21:40:23]MH_Cut [21:40:23]Write to MH i2c: D1 01 00 15 3D 01 24 [21:40:23]Write i2c OK [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: D1 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: D1 01 00 [21:40:23]MH_I2C_Read... [21:40:23]Read from MH i2c: D1 01 00 15 3D 00 23 [21:40:23]Write to MH i2c: 01 00 00 16 3D 53 [21:40:23]Write i2c OK [21:40:23]MH_I2C_Read... [21:40:23]OFD Sender: No OFD packet to send [21:40:24]*** Cut start [21:40:24]*** Partial cut [21:40:24]*** CUTSNS_PIN = 1 [21:40:24]*** CUTSNS_PIN = 0 [21:40:24]*** Brake cut motor [21:40:25]Read from MH i2c: 01 [21:40:25]MH_I2C_Read... [21:40:25]*** Stop cut motor [21:40:25]*** Cut end [21:40:25]Read from MH i2c: 01 07 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: 01 07 00 16 3D 00 00 00 00 00 FF 0F 68 [21:40:25]process_action close_receipt done [21:40:25]requested_data is exist [21:40:25]produce_requested_data [21:40:25]requested_item fm.sn is exist - process it [21:40:25]wFMCommunicate request_size=4 [21:40:25]MH_SAM_APDU [21:40:25]CAPDU: 80 11 00 00 [21:40:25]Write to MH i2c: E2 08 00 17 3D 80 11 00 00 00 00 00 00 CE [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:40:25]Read from MH i2c: E2 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 17 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 17 00 17 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 16 [21:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [21:40:25]wFMCommunicate OK [21:40:25]requested_item fd.num is exist - process it [21:40:25]SAM_PROTO_GetFieldsCounters [21:40:25]wFMCommunicate request_size=4 [21:40:25]MH_SAM_APDU [21:40:25]CAPDU: 80 13 00 00 [21:40:25]Write to MH i2c: E2 08 00 18 3D 80 13 00 00 00 00 00 00 D1 [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:40:25]Read from MH i2c: E2 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 62 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 62 00 18 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E1 09 00 00 0E 04 04 00 16 00 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 [21:40:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E1 09 00 00 0E 04 04 00 16 00 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 [21:40:25]wFMCommunicate OK [21:40:25]SAM_PROTO_GetFieldsCounters done [21:40:25]requested_item shift.num is exist - process it [21:40:25]requested_item shift.opened is exist - process it [21:40:25]req_shift_opened [21:40:25]FM_GetShiftState [21:40:25]SAM_PROTO_GetShiftState [21:40:25]wFMCommunicate request_size=4 [21:40:25]MH_SAM_APDU [21:40:25]CAPDU: 80 13 01 00 [21:40:25]Write to MH i2c: E2 08 00 19 3D 80 13 01 00 00 00 00 00 D3 [21:40:25]Write i2c OK [21:40:25]MH_I2C_Read... [21:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:40:25]Read from MH i2c: E2 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 0E 00 [21:40:25]MH_I2C_Read... [21:40:25]Read from MH i2c: E2 0E 00 19 3D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 71 [21:40:25]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [21:40:25]wFMCommunicate OK [21:40:25]SAM_PROTO_GetShiftState done [21:40:25]FM_GetShiftState done [21:40:25]req_shift_opened done [21:40:25]requested_item shift.open_date is exist - process it [21:40:25]req_shift_open_date [21:40:25]req_shift_open_date done [21:40:25]produce_requested_data done [21:40:25]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2529,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [21:40:25]process_action_free close_receipt [21:40:25]json_value_free [21:40:25]json_value_free done [21:40:25]process_json_proto returns [21:40:25]Send response to host [21:40:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2529,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [21:40:25]free response buf [21:40:25]execute_script done [21:40:25]execute_script returns [21:40:25]free content buf [21:40:25]Sock 10.Close socket [21:40:25]Sock 10.Thread stoped [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:24]OFD Sender: No OFD packet to send [21:42:29]OFD Sender: No OFD packet to send [21:42:34]OFD Sender: No OFD packet to send [21:42:39]OFD Sender: No OFD packet to send [21:42:44]OFD Sender: No OFD packet to send [21:42:49]OFD Sender: No OFD packet to send [21:42:54]OFD Sender: No OFD packet to send [21:42:59]OFD Sender: No OFD packet to send [21:43:04]OFD Sender: No OFD packet to send [21:43:09]OFD Sender: No OFD packet to send [21:43:14]OFD Sender: No OFD packet to send [21:43:19]OFD Sender: No OFD packet to send [21:43:24]OFD Sender: No OFD packet to send [21:43:29]OFD Sender: No OFD packet to send [21:43:34]OFD Sender: No OFD packet to send [21:43:39]OFD Sender: No OFD packet to send [21:43:44]OFD Sender: No OFD packet to send [21:43:49]OFD Sender: No OFD packet to send [21:43:54]OFD Sender: No OFD packet to send [21:43:59]OFD Sender: No OFD packet to send [21:44:04]OFD Sender: No OFD packet to send [21:44:09]OFD Sender: No OFD packet to send [21:44:14]OFD Sender: No OFD packet to send [21:44:19]OFD Sender: No OFD packet to send [21:44:24]OFD Sender: No OFD packet to send [21:44:29]OFD Sender: No OFD packet to send [21:44:34]OFD Sender: No OFD packet to send [21:44:39]OFD Sender: No OFD packet to send [21:44:44]OFD Sender: No OFD packet to send [21:44:49]OFD Sender: No OFD packet to send [21:44:54]OFD Sender: No OFD packet to send [21:44:59]OFD Sender: No OFD packet to send [21:45:04]OFD Sender: No OFD packet to send [21:45:09]OFD Sender: No OFD packet to send [21:45:14]OFD Sender: No OFD packet to send [21:45:19]OFD Sender: No OFD packet to send [21:45:24]OFD Sender: No OFD packet to send [21:45:29]OFD Sender: No OFD packet to send [21:45:34]OFD Sender: No OFD packet to send [21:45:39]OFD Sender: No OFD packet to send [21:45:44]OFD Sender: No OFD packet to send [21:45:49]OFD Sender: No OFD packet to send [21:45:54]OFD Sender: No OFD packet to send [21:45:59]OFD Sender: No OFD packet to send [21:46:04]OFD Sender: No OFD packet to send [21:46:09]OFD Sender: No OFD packet to send [21:46:14]OFD Sender: No OFD packet to send [21:46:19]OFD Sender: No OFD packet to send [21:46:24]OFD Sender: No OFD packet to send [21:46:29]OFD Sender: No OFD packet to send [21:46:34]OFD Sender: No OFD packet to send [21:46:39]OFD Sender: No OFD packet to send [21:46:44]OFD Sender: No OFD packet to send [21:46:49]OFD Sender: No OFD packet to send [21:46:54]OFD Sender: No OFD packet to send [21:46:59]OFD Sender: No OFD packet to send [21:47:04]OFD Sender: No OFD packet to send [21:47:09]OFD Sender: No OFD packet to send [21:47:14]OFD Sender: No OFD packet to send [21:47:19]OFD Sender: No OFD packet to send [21:47:24]OFD Sender: No OFD packet to send [21:47:29]OFD Sender: No OFD packet to send [21:47:34]OFD Sender: No OFD packet to send [21:47:39]OFD Sender: No OFD packet to send [21:47:44]OFD Sender: No OFD packet to send [21:47:49]OFD Sender: No OFD packet to send [21:47:54]OFD Sender: No OFD packet to send [21:47:59]OFD Sender: No OFD packet to send [21:48:04]OFD Sender: No OFD packet to send [21:48:09]OFD Sender: No OFD packet to send [21:48:14]OFD Sender: No OFD packet to send [21:48:19]OFD Sender: No OFD packet to send [21:48:24]OFD Sender: No OFD packet to send [21:48:29]OFD Sender: No OFD packet to send [21:48:34]OFD Sender: No OFD packet to send [21:48:39]OFD Sender: No OFD packet to send [21:48:44]OFD Sender: No OFD packet to send [21:48:49]OFD Sender: No OFD packet to send [21:48:54]OFD Sender: No OFD packet to send [21:48:59]OFD Sender: No OFD packet to send [21:49:04]OFD Sender: No OFD packet to send [21:49:09]OFD Sender: No OFD packet to send [21:49:14]OFD Sender: No OFD packet to send [21:49:19]OFD Sender: No OFD packet to send [21:49:24]OFD Sender: No OFD packet to send [21:49:29]OFD Sender: No OFD packet to send [21:49:34]OFD Sender: No OFD packet to send [21:49:39]OFD Sender: No OFD packet to send [21:49:44]OFD Sender: No OFD packet to send [21:49:49]OFD Sender: No OFD packet to send [21:49:54]OFD Sender: No OFD packet to send [21:49:59]OFD Sender: No OFD packet to send [21:50:04]OFD Sender: No OFD packet to send [21:50:09]OFD Sender: No OFD packet to send [21:50:14]OFD Sender: No OFD packet to send [21:50:19]OFD Sender: No OFD packet to send [21:50:24]OFD Sender: No OFD packet to send [21:50:29]OFD Sender: No OFD packet to send [21:50:34]OFD Sender: No OFD packet to send [21:50:39]OFD Sender: No OFD packet to send [21:50:44]OFD Sender: No OFD packet to send [21:50:49]OFD Sender: No OFD packet to send [21:50:54]OFD Sender: No OFD packet to send [21:50:59]OFD Sender: No OFD packet to send [21:51:04]OFD Sender: No OFD packet to send [21:51:09]OFD Sender: No OFD packet to send [21:51:14]OFD Sender: No OFD packet to send [21:51:19]OFD Sender: No OFD packet to send [21:51:24]OFD Sender: No OFD packet to send [21:51:29]OFD Sender: No OFD packet to send [21:51:34]OFD Sender: No OFD packet to send [21:51:39]OFD Sender: No OFD packet to send [21:51:44]OFD Sender: No OFD packet to send [21:51:49]OFD Sender: No OFD packet to send [21:51:54]OFD Sender: No OFD packet to send [21:51:59]OFD Sender: No OFD packet to send [21:52:04]OFD Sender: No OFD packet to send [21:52:09]OFD Sender: No OFD packet to send [21:52:14]OFD Sender: No OFD packet to send [21:52:19]OFD Sender: No OFD packet to send [21:52:24]OFD Sender: No OFD packet to send [21:52:29]OFD Sender: No OFD packet to send [21:52:34]OFD Sender: No OFD packet to send [21:52:39]OFD Sender: No OFD packet to send [21:52:44]OFD Sender: No OFD packet to send [21:52:49]OFD Sender: No OFD packet to send [21:52:54]OFD Sender: No OFD packet to send [21:52:59]OFD Sender: No OFD packet to send [21:53:04]OFD Sender: No OFD packet to send [21:53:09]OFD Sender: No OFD packet to send [21:53:14]OFD Sender: No OFD packet to send [21:53:19]OFD Sender: No OFD packet to send [21:53:24]OFD Sender: No OFD packet to send [21:53:29]OFD Sender: No OFD packet to send [21:53:34]OFD Sender: No OFD packet to send [21:53:39]OFD Sender: No OFD packet to send [21:53:44]OFD Sender: No OFD packet to send [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:09]OFD Sender: No OFD packet to send [21:57:14]OFD Sender: No OFD packet to send [21:57:19]OFD Sender: No OFD packet to send [21:57:24]OFD Sender: No OFD packet to send [21:57:29]OFD Sender: No OFD packet to send [21:57:34]OFD Sender: No OFD packet to send [21:57:39]OFD Sender: No OFD packet to send [21:57:44]OFD Sender: No OFD packet to send [21:57:49]OFD Sender: No OFD packet to send [21:57:54]OFD Sender: No OFD packet to send [21:57:59]OFD Sender: No OFD packet to send [21:58:04]OFD Sender: No OFD packet to send [21:58:09]OFD Sender: No OFD packet to send [21:58:14]OFD Sender: No OFD packet to send [21:58:19]OFD Sender: No OFD packet to send [21:58:24]OFD Sender: No OFD packet to send [21:58:29]OFD Sender: No OFD packet to send [21:58:34]OFD Sender: No OFD packet to send [21:58:39]OFD Sender: No OFD packet to send [21:58:44]OFD Sender: No OFD packet to send [21:58:49]OFD Sender: No OFD packet to send [21:58:54]OFD Sender: No OFD packet to send [21:58:59]OFD Sender: No OFD packet to send [21:59:04]OFD Sender: No OFD packet to send [21:59:09]OFD Sender: No OFD packet to send [21:59:14]OFD Sender: No OFD packet to send [21:59:19]OFD Sender: No OFD packet to send [21:59:24]OFD Sender: No OFD packet to send [21:59:29]OFD Sender: No OFD packet to send [21:59:34]OFD Sender: No OFD packet to send [21:59:39]OFD Sender: No OFD packet to send [21:59:44]OFD Sender: No OFD packet to send [21:59:49]OFD Sender: No OFD packet to send [21:59:54]OFD Sender: No OFD packet to send [21:59:59]OFD Sender: No OFD packet to send [22:00:04]OFD Sender: No OFD packet to send [22:00:09]OFD Sender: No OFD packet to send [22:00:14]OFD Sender: No OFD packet to send [22:00:19]OFD Sender: No OFD packet to send [22:00:24]OFD Sender: No OFD packet to send [22:00:29]OFD Sender: No OFD packet to send [22:00:34]OFD Sender: No OFD packet to send [22:00:39]OFD Sender: No OFD packet to send [22:00:44]OFD Sender: No OFD packet to send [22:00:49]OFD Sender: No OFD packet to send [22:00:54]OFD Sender: No OFD packet to send [22:00:59]OFD Sender: No OFD packet to send [22:01:04]OFD Sender: No OFD packet to send [22:01:09]OFD Sender: No OFD packet to send [22:01:14]OFD Sender: No OFD packet to send [22:01:19]OFD Sender: No OFD packet to send [22:01:24]OFD Sender: No OFD packet to send [22:01:29]OFD Sender: No OFD packet to send [22:01:34]OFD Sender: No OFD packet to send [22:01:39]OFD Sender: No OFD packet to send [22:01:44]OFD Sender: No OFD packet to send [22:01:49]OFD Sender: No OFD packet to send [22:01:54]OFD Sender: No OFD packet to send [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:09]OFD Sender: No OFD packet to send [22:03:14]OFD Sender: No OFD packet to send [22:03:19]OFD Sender: No OFD packet to send [22:03:24]OFD Sender: No OFD packet to send [22:03:29]OFD Sender: No OFD packet to send [22:03:34]OFD Sender: No OFD packet to send [22:03:39]OFD Sender: No OFD packet to send [22:03:44]OFD Sender: No OFD packet to send [22:03:49]OFD Sender: No OFD packet to send [22:03:54]OFD Sender: No OFD packet to send [22:03:59]OFD Sender: No OFD packet to send [22:04:04]OFD Sender: No OFD packet to send [22:04:09]OFD Sender: No OFD packet to send [22:04:14]OFD Sender: No OFD packet to send [22:04:19]OFD Sender: No OFD packet to send [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]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:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:07:00]OFD Sender: No OFD packet to send [22:07:05]OFD Sender: No OFD packet to send [22:07:10]OFD Sender: No OFD packet to send [22:07:15]OFD Sender: No OFD packet to send [22:07:20]OFD Sender: No OFD packet to send [22:07:25]OFD Sender: No OFD packet to send [22:07:30]OFD Sender: No OFD packet to send [22:07:35]OFD Sender: No OFD packet to send [22:07:40]OFD Sender: No OFD packet to send [22:07:45]OFD Sender: No OFD packet to send [22:07:50]OFD Sender: No OFD packet to send [22:07:55]OFD Sender: No OFD packet to send [22:08:00]OFD Sender: No OFD packet to send [22:08:05]OFD Sender: No OFD packet to send [22:08:10]OFD Sender: No OFD packet to send [22:08:15]OFD Sender: No OFD packet to send [22:08:20]OFD Sender: No OFD packet to send [22:08:25]OFD Sender: No OFD packet to send [22:08:30]OFD Sender: No OFD packet to send [22:08:35]OFD Sender: No OFD packet to send [22:08:40]OFD Sender: No OFD packet to send [22:08:45]OFD Sender: No OFD packet to send [22:08:50]OFD Sender: No OFD packet to send [22:08:55]OFD Sender: No OFD packet to send [22:09:00]OFD Sender: No OFD packet to send [22:09:05]OFD Sender: No OFD packet to send [22:09:10]OFD Sender: No OFD packet to send [22:09:15]OFD Sender: No OFD packet to send [22:09:20]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:25]OFD Sender: No OFD packet to send [22:12:30]OFD Sender: No OFD packet to send [22:12:35]OFD Sender: No OFD packet to send [22:12:40]OFD Sender: No OFD packet to send [22:12:45]OFD Sender: No OFD packet to send [22:12:50]OFD Sender: No OFD packet to send [22:12:55]OFD Sender: No OFD packet to send [22:13:00]OFD Sender: No OFD packet to send [22:13:05]OFD Sender: No OFD packet to send [22:13:10]OFD Sender: No OFD packet to send [22:13:15]OFD Sender: No OFD packet to send [22:13:20]OFD Sender: No OFD packet to send [22:13:25]OFD Sender: No OFD packet to send [22:13:30]OFD Sender: No OFD packet to send [22:13:35]OFD Sender: No OFD packet to send [22:13:40]OFD Sender: No OFD packet to send [22:13:45]OFD Sender: No OFD packet to send [22:13:50]OFD Sender: No OFD packet to send [22:13:55]OFD Sender: No OFD packet to send [22:14:00]OFD Sender: No OFD packet to send [22:14:05]OFD Sender: No OFD packet to send [22:14:10]OFD Sender: No OFD packet to send [22:14:15]OFD Sender: No OFD packet to send [22:14:20]OFD Sender: No OFD packet to send [22:14:25]OFD Sender: No OFD packet to send [22:14:30]OFD Sender: No OFD packet to send [22:14:35]OFD Sender: No OFD packet to send [22:14:40]OFD Sender: No OFD packet to send [22:14:45]OFD Sender: No OFD packet to send [22:14:50]OFD Sender: No OFD packet to send [22:14:55]OFD Sender: No OFD packet to send [22:15:00]OFD Sender: No OFD packet to send [22:15:05]OFD Sender: No OFD packet to send [22:15:10]OFD Sender: No OFD packet to send [22:15:15]OFD Sender: No OFD packet to send [22:15:20]OFD Sender: No OFD packet to send [22:15:25]OFD Sender: No OFD packet to send [22:15:30]OFD Sender: No OFD packet to send [22:15:35]OFD Sender: No OFD packet to send [22:15:35]accept exits with 7 [22:15:35]New connection [22:15:35]New thread 3066850660 created [22:15:35]Thread 3066707300 joined [22:15:35]Waiting for new connection... [22:15:35] Sock 7.Parse request [22:15:35]Sock 7.Check first char [22:15:35]Sock 7.First char is OK [22:15:35]request: POST /json_proto HTTP/1.0 [22:15:35]Method: POST [22:15:35]URL: /json_proto [22:15:35]Method is POST - this is cgi request [22:15:35]url: /json_proto [22:15:35]query_string will be loaded in cgi processing [22:15:35]execute_cgi json_proto POST (null) [22:15:35]execute_cgi path=json_proto method=POST [22:15:35]POST find Content-Length [22:15:35]Host: 172.17.52.132:8080 [22:15:35]Content-Length: 620 [22:15:35]Content-Type: application/json [22:15:35] [22:15:35]POST finish read [22:15:35]Found Content-Length = 620 [22:15:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99918", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:35]execute_script... [22:15: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 : (3)99918", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:15:35]POST & json_proto [22:15:35]process_json_proto [22:15:35]json parsed OK: [22:15:35]protocol is kg_v1.0 [22:15:35]action value=close_receipt [22:15:35]process_action close_receipt [22:15:35]cmd_close_receipt [22:15:35]MH_GetDate [22:15:35]Write to MH i2c: F0 00 00 1A 3D 46 [22:15:35]Write i2c OK [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: F0 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: F0 09 00 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: F0 09 00 1A 3D 00 0E DE 12 67 5A BE F6 66 28 [22:15:35]GetLastDocTimeStamp 1729287627 [22:15:35]current date 1729289742 [22:15:35]FM_GetShiftState [22:15:35]SAM_PROTO_GetShiftState [22:15:35]wFMCommunicate request_size=4 [22:15:35]MH_SAM_APDU [22:15:35]CAPDU: 80 13 01 00 [22:15:35]Write to MH i2c: E2 08 00 1B 3D 80 13 01 00 00 00 00 00 D5 [22:15:35]Write i2c OK [22:15:35]MH_I2C_Read... [22:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:35]Read from MH i2c: E2 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: E2 0E 00 [22:15:35]MH_I2C_Read... [22:15:35]Read from MH i2c: E2 0E 00 1B 3D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 73 [22:15:35]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [22:15:35]wFMCommunicate OK [22:15:35]SAM_PROTO_GetShiftState done [22:15:35]FM_GetShiftState done [22:15:35]opened in 1729209717 [22:15:35]opened+sec_in_day 1729296117 [22:15:35]quantity*price = 14400 [22:15:35]sum+1 = 14401 [22:15:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 ÐСП 1% : 1.27 ÐДС 12% : 15.29 Ðаличными: 144.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 155 18.10.2024 22:15 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2530 ФПД: 227343712253475 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T221542&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2530&fm=227343712253475&tin=02508201610067®Number=0000000000207295&sum=14400 0 [22:15:36]StoreToDocumentArchive [22:15:36]shift 22 fd 2530 [22:15:36]save to /storage/0022/doc_00002530 [22:15:36]save last doc name /storage/0022/doc_00002530 to /storage/kkm_last_doc_name [22:15:36]save OK [22:15:36]Clear old archive folders... [22:15:36]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:15:36]tlvbuf is 01457400 [22:15:36]SAM_PROTO_ClearQueue [22:15:36]wFMCommunicate request_size=4 [22:15:36]MH_SAM_APDU [22:15:36]CAPDU: 80 09 00 00 [22:15:36]Write to MH i2c: E2 08 00 28 3D 80 09 00 00 00 00 00 00 D7 [22:15:36]Write i2c OK [22:15:36]MH_I2C_Read... [22:15:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:15:36]Read from MH i2c: E2 [22:15:36]MH_I2C_Read... [22:15:36]Read from MH i2c: E2 03 00 [22:15:36]MH_I2C_Read... [22:15:36]Read from MH i2c: E2 03 00 28 3D 00 90 00 D9 [22:15:36]RAPDU: 90 00 [22:15:36]wFMCommunicate OK [22:15:36]SAM_PROTO_ClearQueue done [22:15:36]KKMCreateOFDPacket [22:15:36]OFDProtocolAddRootSTLVToBuf [22:15:36]FM_MakeSignedData [22:15:36]FM_MakeSignedData [22:15:36]SAM_PROTO_SignData [22:15:36]wFMCommunicate request_size=4 [22:15:36]MH_SAM_APDU [22:15:36]CAPDU: 80 0D 01 02 [22:15:36]Write to MH i2c: E2 08 00 29 3D 80 0D 01 02 00 00 00 00 DF [22:15:36]Write i2c OK [22:15:36]MH_I2C_Read... [22:15:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:15:37]Read from MH i2c: E2 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 29 3D 00 90 00 DA [22:15:37]RAPDU: 90 00 [22:15:37]wFMCommunicate OK [22:15:37]wFMCommunicate request_size=255 [22:15:37]MH_SAM_APDU [22:15:37]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 0E DE 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 [22:15:37]Write to MH i2c: E2 02 01 2A 3D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 0E DE 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 00 00 5F [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:37]Read from MH i2c: E2 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 2A 3D 00 90 00 DB [22:15:37]RAPDU: 90 00 [22:15:37]wFMCommunicate OK [22:15:37]wFMCommunicate request_size=32 [22:15:37]MH_SAM_APDU [22:15:37]CAPDU: 80 0D 02 02 1B 30 30 32 33 34 32 38 32 30 10 04 04 00 E2 09 00 00 35 04 06 00 CE C4 95 35 F6 23 [22:15:37]Write to MH i2c: E2 23 00 2B 3D 80 0D 02 02 1B 00 30 30 32 33 34 32 38 32 30 10 04 04 00 E2 09 00 00 35 04 06 00 CE C4 95 35 F6 23 00 00 94 [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:15:37]Read from MH i2c: E2 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 03 00 2B 3D 00 90 00 DC [22:15:37]RAPDU: 90 00 [22:15:37]wFMCommunicate OK [22:15:37]wFMCommunicate request_size=4 [22:15:37]MH_SAM_APDU [22:15:37]CAPDU: 80 0D 03 02 [22:15:37]Write to MH i2c: E2 08 00 2C 3D 80 0D 03 02 00 00 00 00 E4 [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:15:37]Read from MH i2c: E2 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 0B 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 0B 00 2C 3D 00 3D 91 53 E0 72 E9 31 18 90 00 8A [22:15:37]RAPDU: 3D 91 53 E0 72 E9 31 18 90 00 [22:15:37]wFMCommunicate OK [22:15:37]SAM_PROTO_SignData done [22:15:37]FM_MakeSignedData done [22:15:37]CreateOFDProtocolMessage [22:15:37]wFMCommunicate request_size=4 [22:15:37]MH_SAM_APDU [22:15:37]CAPDU: 80 11 00 00 [22:15:37]Write to MH i2c: E2 08 00 2D 3D 80 11 00 00 00 00 00 00 E4 [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:37]Read from MH i2c: E2 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 17 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: E2 17 00 2D 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 2C [22:15:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [22:15:37]wFMCommunicate OK [22:15:37]CreateOFDProtocolMessage done [22:15:37]OFDSenderStorePacket 2530 [22:15:37]StoreOFDPacket docnum=2530 [22:15:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 03 5C 1D 01 ED 31 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 0E DE 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E2 09 00 00 35 04 06 00 CE C4 95 35 F6 23 3D 91 53 E0 72 E9 31 18 [22:15:37]CheckFolder [22:15:37]dirname=/storage/ofd_packets [22:15:37]CheckFolder done [22:15:37]ProducePacketName [22:15:37]name=ofd_packets/00002530 [22:15:37]NVStorageSaveData ofd_packets/00002530 [22:15:37]File name is /storage/ofd_packets/00002530 [22:15:37]Write 323 bytes [22:15:37]NVStorageSaveData done [22:15:37]OFDSenderStorePacket done [22:15:37]KKMCreateOFDPacket done [22:15:37]NVStorageSaveData kkm_last_timestamp [22:15:37]File name is /storage/kkm_last_timestamp [22:15:37]Write 4 bytes [22:15:37]NVStorageSaveData done [22:15:37]ExternCall_PrintAddStr [22:15:37]wPrintStart [22:15:37]Write to MH i2c: 01 00 00 2E 3D 6B [22:15:37]Write i2c OK [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: 01 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: 01 07 00 [22:15:37]MH_I2C_Read... [22:15:37]Read from MH i2c: 01 07 00 2E 3D 00 00 00 00 00 FF 0F 80 [22:15:37]RasterBufferAndPrint [22:15:37]line Счет N : (3)99918 [22:15:37]line ИÐÐ: 02508201610067 [22:15:37]line Контрольно-КаÑÑовый Чек [22:15:37]line ПРОДÐЖР[22:15:37]line Товар: 48743570 [22:15:37]line Сигареты Winston XStyle Blue [22:15:37]line 1.000 * 144.00 [22:15:37]line = 144.00 [22:15:37]line ÐДС 12% ÐСП 1% [22:15:37]line > о реализуемом товаре [22:15:37]line ИТОГО: 144.00 [22:15:37]line ÐСП 1% : 1.27 [22:15:37]line ÐДС 12% : 15.29 [22:15:37]line Ðаличными: 144.00 [22:15:37]line Безнал.: 0.00 [22:15:37]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [22:15:37]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [22:15:37]line СÐО: Общий режим [22:15:37]line Чек 155 18.10.2024 22:15 [22:15:37]line Смена: 22 ФФД: 1.0 [22:15:37]line ЗÐМ: 0300000191 [22:15:37]line РÐМ: 0000000000207295 [22:15:37]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [22:15:37]line ФМ: 0000000002342820 [22:15:37]line ФД: 2530 [22:15:37]line ФПД: 227343712253475 [22:15:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T221542&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2530&fm=227343712253475&tin=02508201610067®Number=0000000000207295&sum=14400 [22:15:37]line 0 [22:15:37]OFD Sender: Processing packet 2530 [packets to send 1, broken 0] [22:15:37]ProducePacketName [22:15:37]name=ofd_packets/00002530 [22:15:37]OFD Sender: To server: ‡•öpG, [22:15:37]CommunicateWithHost lk.salyk.kg:30040 [22:15:37]ConnectInit lk.salyk.kg [22:15:37]written 0, free lines is 4095 [22:15:37]Connected sock=10 [22:15:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 03 5C 1D 01 ED 31 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 0E DE 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E2 09 00 00 35 04 06 00 CE C4 95 35 F6 23 3D 91 53 E0 72 E9 31 18 [22:15:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 C6 10 47 00 24 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E2 09 00 00 F4 03 04 00 70 89 12 67 B6 04 01 00 00 DB 4F 70 9E 24 3B 31 65 [22:15:38]CommunicateWithHost err = 0 [22:15:38]CheckOFDResponse [22:15:38]1017 (14) - 77093643461234 [22:15:38]1041 (16) - 0000000002342820 [22:15:38]1040 (4) - 2530 [22:15:38]1012 (4) - 18.10.2024 16:14 [22:15:38]1206 (1) - 0 [22:15:38]OFD Sender: Remove packet 2530 [22:15:38]ProducePacketName [22:15:38]name=ofd_packets/00002530 [22:15:38]NVStorageDeleteData [22:15:38]Write to MH i2c: 01 00 00 56 3D 93 [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 07 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: 01 07 00 56 3D 00 00 00 00 00 B1 0C 57 [22:15:38]RasterBufferAndPrint [22:15:38]line [22:15:38]line [22:15:38]line [22:15:38]line [22:15:38]line [22:15:38]written 0, free lines is 3254 [22:15:38]MH_Cut [22:15:38]Write to MH i2c: D1 01 00 5D 3D 01 6C [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: D1 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: D1 01 00 [22:15:38]MH_I2C_Read... [22:15:38]Read from MH i2c: D1 01 00 5D 3D 00 6B [22:15:38]Write to MH i2c: 01 00 00 5E 3D 9B [22:15:38]Write i2c OK [22:15:38]MH_I2C_Read... [22:15:38]OFD Sender: No OFD packet to send [22:15:39]*** Cut start [22:15:39]*** Partial cut [22:15:39]*** CUTSNS_PIN = 1 [22:15:39]*** CUTSNS_PIN = 0 [22:15:39]*** Brake cut motor [22:15:39]Read from MH i2c: 01 [22:15:39]MH_I2C_Read... [22:15:39]*** Stop cut motor [22:15:39]*** Cut end [22:15:39]Read from MH i2c: 01 07 00 [22:15:39]MH_I2C_Read... [22:15:39]Read from MH i2c: 01 07 00 5E 3D 00 00 00 00 00 FF 0F B0 [22:15:39]process_action close_receipt done [22:15:39]requested_data is exist [22:15:39]produce_requested_data [22:15:39]requested_item fm.sn is exist - process it [22:15:39]wFMCommunicate request_size=4 [22:15:39]MH_SAM_APDU [22:15:39]CAPDU: 80 11 00 00 [22:15:39]Write to MH i2c: E2 08 00 5F 3D 80 11 00 00 00 00 00 00 16 [22:15:39]Write i2c OK [22:15:39]MH_I2C_Read... [22:15:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:15:39]Read from MH i2c: E2 [22:15:39]MH_I2C_Read... [22:15:39]Read from MH i2c: E2 17 00 [22:15:39]MH_I2C_Read... [22:15:39]Read from MH i2c: E2 17 00 5F 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 5E [22:15:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [22:15:39]wFMCommunicate OK [22:15:39]requested_item fd.num is exist - process it [22:15:39]SAM_PROTO_GetFieldsCounters [22:15:39]wFMCommunicate request_size=4 [22:15:39]MH_SAM_APDU [22:15:39]CAPDU: 80 13 00 00 [22:15:39]Write to MH i2c: E2 08 00 60 3D 80 13 00 00 00 00 00 00 19 [22:15:39]Write i2c OK [22:15:39]MH_I2C_Read... [22:15:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:15:39]Read from MH i2c: E2 [22:15:39]MH_I2C_Read... [22:15:39]Read from MH i2c: E2 62 00 [22:15:39]MH_I2C_Read... [22:15:39]Read from MH i2c: E2 62 00 60 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E2 09 00 00 0E 04 04 00 16 00 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 01 [22:15:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E2 09 00 00 0E 04 04 00 16 00 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 [22:15:40]wFMCommunicate OK [22:15:40]SAM_PROTO_GetFieldsCounters done [22:15:40]requested_item shift.num is exist - process it [22:15:40]requested_item shift.opened is exist - process it [22:15:40]req_shift_opened [22:15:40]FM_GetShiftState [22:15:40]SAM_PROTO_GetShiftState [22:15:40]wFMCommunicate request_size=4 [22:15:40]MH_SAM_APDU [22:15:40]CAPDU: 80 13 01 00 [22:15:40]Write to MH i2c: E2 08 00 61 3D 80 13 01 00 00 00 00 00 1B [22:15:40]Write i2c OK [22:15:40]MH_I2C_Read... [22:15:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:15:40]Read from MH i2c: E2 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 0E 00 [22:15:40]MH_I2C_Read... [22:15:40]Read from MH i2c: E2 0E 00 61 3D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 B9 [22:15:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [22:15:40]wFMCommunicate OK [22:15:40]SAM_PROTO_GetShiftState done [22:15:40]FM_GetShiftState done [22:15:40]req_shift_opened done [22:15:40]requested_item shift.open_date is exist - process it [22:15:40]req_shift_open_date [22:15:40]req_shift_open_date done [22:15:40]produce_requested_data done [22:15:40]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2530,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [22:15:40]process_action_free close_receipt [22:15:40]json_value_free [22:15:40]json_value_free done [22:15:40]process_json_proto returns [22:15:40]Send response to host [22:15:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2530,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [22:15:40]free response buf [22:15:40]execute_script done [22:15:40]execute_script returns [22:15:40]free content buf [22:15:40]Sock 7.Close socket [22:15:40]Sock 7.Thread stoped [22:15:43]OFD Sender: No OFD packet to send [22:15:48]OFD Sender: No OFD packet to send [22:15:53]OFD Sender: No OFD packet to send [22:15:58]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:53]OFD Sender: No OFD packet to send [22:19:58]OFD Sender: No OFD packet to send [22:20:03]OFD Sender: No OFD packet to send [22:20:08]OFD Sender: No OFD packet to send [22:20:13]OFD Sender: No OFD packet to send [22:20:18]OFD Sender: No OFD packet to send [22:20:23]OFD Sender: No OFD packet to send [22:20:28]OFD Sender: No OFD packet to send [22:20:33]OFD Sender: No OFD packet to send [22:20:38]OFD Sender: No OFD packet to send [22:20:43]OFD Sender: No OFD packet to send [22:20:48]OFD Sender: No OFD packet to send [22:20:53]OFD Sender: No OFD packet to send [22:20:58]OFD Sender: No OFD packet to send [22:21:03]OFD Sender: No OFD packet to send [22:21:08]OFD Sender: No OFD packet to send [22:21:12]accept exits with 9 [22:21:12]New connection [22:21:12]New thread 3066707300 created [22:21:12]Thread 3066850660 joined [22:21:12]Waiting for new connection... [22:21:12] Sock 9.Parse request [22:21:12]Sock 9.Check first char [22:21:12]Sock 9.First char is OK [22:21:12]request: POST /json_proto HTTP/1.0 [22:21:12]Method: POST [22:21:12]URL: /json_proto [22:21:12]Method is POST - this is cgi request [22:21:12]url: /json_proto [22:21:12]query_string will be loaded in cgi processing [22:21:12]execute_cgi json_proto POST (null) [22:21:12]execute_cgi path=json_proto method=POST [22:21:12]POST find Content-Length [22:21:12]Host: 172.17.52.132:8080 [22:21:12]Content-Length: 725 [22:21:12]Content-Type: application/json [22:21:12] [22:21:12]POST finish read [22:21:12]Found Content-Length = 725 [22:21:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99919", "tax_sys" : 0, "items" : [ { "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:12]execute_script... [22:21:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99919", "tax_sys" : 0, "items" : [ { "code": "4870145004968", "name": "\u041F\u0438\u0432\u043E \u0416\u0430\u0442\u0435\u0446\u043A\u0438\u0439 \u0413\u0443\u0441\u044C 9 \u043A\u0440\u0435\u043F\u043A\u043E\u0435 0,43\u043B \u0436/\u0431", "price" : 105.00, "quantity" : 1.000, "sum" : 105.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:21:12]POST & json_proto [22:21:12]process_json_proto [22:21:12]json parsed OK: [22:21:12]protocol is kg_v1.0 [22:21:12]action value=close_receipt [22:21:12]process_action close_receipt [22:21:12]cmd_close_receipt [22:21:12]MH_GetDate [22:21:12]Write to MH i2c: F0 00 00 62 3D 8E [22:21:12]Write i2c OK [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: F0 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: F0 09 00 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: F0 09 00 62 3D 00 5F DF 12 67 5A BE F6 66 C2 [22:21:12]GetLastDocTimeStamp 1729289742 [22:21:12]current date 1729290079 [22:21:12]FM_GetShiftState [22:21:12]SAM_PROTO_GetShiftState [22:21:12]wFMCommunicate request_size=4 [22:21:12]MH_SAM_APDU [22:21:12]CAPDU: 80 13 01 00 [22:21:12]Write to MH i2c: E2 08 00 63 3D 80 13 01 00 00 00 00 00 1D [22:21:12]Write i2c OK [22:21:12]MH_I2C_Read... [22:21:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:12]Read from MH i2c: E2 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 0E 00 [22:21:12]MH_I2C_Read... [22:21:12]Read from MH i2c: E2 0E 00 63 3D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 BB [22:21:12]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [22:21:12]wFMCommunicate OK [22:21:12]SAM_PROTO_GetShiftState done [22:21:12]FM_GetShiftState done [22:21:12]opened in 1729209717 [22:21:12]opened+sec_in_day 1729296117 [22:21:12]quantity*price = 10500 [22:21:12]sum+1 = 10501 [22:21:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 105.00 ÐСП 1% : 0.93 ÐДС 12% : 11.15 Ðаличными: 105.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 156 18.10.2024 22:21 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2531 ФПД: 193977280733181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T222119&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2531&fm=193977280733181&tin=02508201610067®Number=0000000000207295&sum=10500 0 [22:21:14]StoreToDocumentArchive [22:21:14]shift 22 fd 2531 [22:21:14]save to /storage/0022/doc_00002531 [22:21:14]save last doc name /storage/0022/doc_00002531 to /storage/kkm_last_doc_name [22:21:14]save OK [22:21:14]Clear old archive folders... [22:21:14]ProcessDocumentItem done err = 0, tmpTLVsize=306 [22:21:14]tlvbuf is 01457240 [22:21:14]SAM_PROTO_ClearQueue [22:21:14]wFMCommunicate request_size=4 [22:21:14]MH_SAM_APDU [22:21:14]CAPDU: 80 09 00 00 [22:21:14]Write to MH i2c: E2 08 00 70 3D 80 09 00 00 00 00 00 00 1F [22:21:14]Write i2c OK [22:21:14]MH_I2C_Read... [22:21:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:21:14]Read from MH i2c: E2 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 03 00 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 03 00 70 3D 00 90 00 21 [22:21:14]RAPDU: 90 00 [22:21:14]wFMCommunicate OK [22:21:14]SAM_PROTO_ClearQueue done [22:21:14]KKMCreateOFDPacket [22:21:14]OFDProtocolAddRootSTLVToBuf [22:21:14]FM_MakeSignedData [22:21:14]FM_MakeSignedData [22:21:14]SAM_PROTO_SignData [22:21:14]wFMCommunicate request_size=4 [22:21:14]MH_SAM_APDU [22:21:14]CAPDU: 80 0D 01 02 [22:21:14]Write to MH i2c: E2 08 00 71 3D 80 0D 01 02 00 00 00 00 27 [22:21:14]Write i2c OK [22:21:14]MH_I2C_Read... [22:21:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:21:14]Read from MH i2c: E2 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 03 00 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 03 00 71 3D 00 90 00 22 [22:21:14]RAPDU: 90 00 [22:21:14]wFMCommunicate OK [22:21:14]wFMCommunicate request_size=255 [22:21:14]MH_SAM_APDU [22:21:14]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 5F DF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 [22:21:14]Write to MH i2c: E2 02 01 72 3D 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 5F DF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 00 24 [22:21:14]Write i2c OK [22:21:14]MH_I2C_Read... [22:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:14]Read from MH i2c: E2 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 03 00 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 03 00 72 3D 00 90 00 23 [22:21:14]RAPDU: 90 00 [22:21:14]wFMCommunicate OK [22:21:14]wFMCommunicate request_size=65 [22:21:14]MH_SAM_APDU [22:21:14]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E3 09 00 00 35 04 06 00 B0 6B DA E9 9F FD [22:21:14]Write to MH i2c: E2 44 00 73 3D 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E3 09 00 00 35 04 06 00 B0 6B DA E9 9F FD 00 00 D4 [22:21:14]Write i2c OK [22:21:14]MH_I2C_Read... [22:21:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:21:14]Read from MH i2c: E2 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 03 00 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 03 00 73 3D 00 90 00 24 [22:21:14]RAPDU: 90 00 [22:21:14]wFMCommunicate OK [22:21:14]wFMCommunicate request_size=4 [22:21:14]MH_SAM_APDU [22:21:14]CAPDU: 80 0D 03 02 [22:21:14]Write to MH i2c: E2 08 00 74 3D 80 0D 03 02 00 00 00 00 2C [22:21:14]Write i2c OK [22:21:14]MH_I2C_Read... [22:21:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:21:14]Read from MH i2c: E2 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 0B 00 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 0B 00 74 3D 00 79 52 D9 3D 6C DF F1 10 90 00 5A [22:21:14]RAPDU: 79 52 D9 3D 6C DF F1 10 90 00 [22:21:14]wFMCommunicate OK [22:21:14]SAM_PROTO_SignData done [22:21:14]FM_MakeSignedData done [22:21:14]CreateOFDProtocolMessage [22:21:14]wFMCommunicate request_size=4 [22:21:14]MH_SAM_APDU [22:21:14]CAPDU: 80 11 00 00 [22:21:14]Write to MH i2c: E2 08 00 75 3D 80 11 00 00 00 00 00 00 2C [22:21:14]Write i2c OK [22:21:14]MH_I2C_Read... [22:21:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:14]Read from MH i2c: E2 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 17 00 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: E2 17 00 75 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 74 [22:21:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [22:21:14]wFMCommunicate OK [22:21:14]CreateOFDProtocolMessage done [22:21:14]OFDSenderStorePacket 2531 [22:21:14]StoreOFDPacket docnum=2531 [22:21:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 46 01 00 00 03 E7 3E 01 0A 32 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 5F DF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E3 09 00 00 35 04 06 00 B0 6B DA E9 9F FD 79 52 D9 3D 6C DF F1 10 [22:21:14]CheckFolder [22:21:14]dirname=/storage/ofd_packets [22:21:14]CheckFolder done [22:21:14]ProducePacketName [22:21:14]name=ofd_packets/00002531 [22:21:14]NVStorageSaveData ofd_packets/00002531 [22:21:14]File name is /storage/ofd_packets/00002531 [22:21:14]Write 356 bytes [22:21:14]NVStorageSaveData done [22:21:14]OFDSenderStorePacket done [22:21:14]KKMCreateOFDPacket done [22:21:14]NVStorageSaveData kkm_last_timestamp [22:21:14]File name is /storage/kkm_last_timestamp [22:21:14]Write 4 bytes [22:21:14]NVStorageSaveData done [22:21:14]ExternCall_PrintAddStr [22:21:14]wPrintStart [22:21:14]Write to MH i2c: 01 00 00 76 3D B3 [22:21:14]OFD Sender: Processing packet 2531 [packets to send 1, broken 0] [22:21:14]ProducePacketName [22:21:14]name=ofd_packets/00002531 [22:21:14]OFD Sender: To server: ‡•öpG, [22:21:14]CommunicateWithHost lk.salyk.kg:30040 [22:21:14]ConnectInit lk.salyk.kg [22:21:14]Write i2c OK [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: 01 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: 01 07 00 [22:21:14]MH_I2C_Read... [22:21:14]Read from MH i2c: 01 07 00 76 3D 00 00 00 00 00 FF 0F C8 [22:21:14]RasterBufferAndPrint [22:21:14]line Счет N : (3)99919 [22:21:14]line ИÐÐ: 02508201610067 [22:21:14]line Контрольно-КаÑÑовый Чек [22:21:14]line ПРОДÐЖР[22:21:14]line Товар: 4870145004968 [22:21:14]line Пиво Жатецкий ГуÑÑŒ 9 крепкое 0,43л ж/б [22:21:14]line 1.000 * 105.00 [22:21:14]line = 105.00 [22:21:14]line ÐДС 12% ÐСП 1% [22:21:14]line > о реализуемом товаре [22:21:14]line ИТОГО: 105.00 [22:21:14]line ÐСП 1% : 0.93 [22:21:14]line ÐДС 12% : 11.15 [22:21:14]line Ðаличными: 105.00 [22:21:14]line Безнал.: 0.00 [22:21:14]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [22:21:14]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [22:21:14]line СÐО: Общий режим [22:21:14]line Чек 156 18.10.2024 22:21 [22:21:14]line Смена: 22 ФФД: 1.0 [22:21:14]line ЗÐМ: 0300000191 [22:21:14]line РÐМ: 0000000000207295 [22:21:14]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [22:21:14]line ФМ: 0000000002342820 [22:21:14]line ФД: 2531 [22:21:14]line ФПД: 193977280733181 [22:21:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T222119&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2531&fm=193977280733181&tin=02508201610067®Number=0000000000207295&sum=10500 [22:21:14]line 0 [22:21:14]Connected sock=11 [22:21:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 46 01 00 00 03 E7 3E 01 0A 32 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 31 34 35 30 30 34 39 36 38 06 04 40 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B0 D1 82 D0 B5 D1 86 D0 BA D0 B8 D0 B9 20 D0 93 D1 83 D1 81 D1 8C 20 39 20 D0 BA D1 80 D0 B5 D0 BF D0 BA D0 BE D0 B5 20 30 2C 34 33 D0 BB 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 04 29 00 00 00 00 13 04 06 00 04 29 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 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 5F DF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E3 09 00 00 35 04 06 00 B0 6B DA E9 9F FD 79 52 D9 3D 6C DF F1 10 [22:21:15]written 0, free lines is 4095 [22:21:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 A8 D7 47 00 A1 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E3 09 00 00 F4 03 04 00 C1 8A 12 67 B6 04 01 00 00 57 E1 2E BB 0C C6 91 65 [22:21:15]CommunicateWithHost err = 0 [22:21:15]CheckOFDResponse [22:21:15]1017 (14) - 77093643461234 [22:21:15]1041 (16) - 0000000002342820 [22:21:15]1040 (4) - 2531 [22:21:15]1012 (4) - 18.10.2024 16:20 [22:21:15]1206 (1) - 0 [22:21:15]OFD Sender: Remove packet 2531 [22:21:15]ProducePacketName [22:21:15]name=ofd_packets/00002531 [22:21:15]NVStorageDeleteData [22:21:15]Write to MH i2c: 01 00 00 9F 3D DC [22:21:15]Write i2c OK [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: 01 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: 01 07 00 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: 01 07 00 9F 3D 00 00 00 00 00 BF 0C AE [22:21:15]RasterBufferAndPrint [22:21:15]line [22:21:15]line [22:21:15]line [22:21:15]line [22:21:15]line [22:21:15]written 0, free lines is 3268 [22:21:15]MH_Cut [22:21:15]Write to MH i2c: D1 01 00 A6 3D 01 B5 [22:21:15]Write i2c OK [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: D1 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: D1 01 00 [22:21:15]MH_I2C_Read... [22:21:15]Read from MH i2c: D1 01 00 A6 3D 00 B4 [22:21:15]Write to MH i2c: 01 00 00 A7 3D E4 [22:21:15]Write i2c OK [22:21:15]MH_I2C_Read... [22:21:15]OFD Sender: No OFD packet to send [22:21:16]*** Cut start [22:21:16]*** Partial cut [22:21:16]*** CUTSNS_PIN = 1 [22:21:16]*** CUTSNS_PIN = 0 [22:21:16]*** Brake cut motor [22:21:16]Read from MH i2c: 01 [22:21:16]MH_I2C_Read... [22:21:16]*** Stop cut motor [22:21:16]*** Cut end [22:21:16]Read from MH i2c: 01 07 00 [22:21:16]MH_I2C_Read... [22:21:16]Read from MH i2c: 01 07 00 A7 3D 00 00 00 00 00 FF 0F F9 [22:21:16]process_action close_receipt done [22:21:16]requested_data is exist [22:21:16]produce_requested_data [22:21:16]requested_item fm.sn is exist - process it [22:21:16]wFMCommunicate request_size=4 [22:21:16]MH_SAM_APDU [22:21:16]CAPDU: 80 11 00 00 [22:21:16]Write to MH i2c: E2 08 00 A8 3D 80 11 00 00 00 00 00 00 5F [22:21:16]Write i2c OK [22:21:16]MH_I2C_Read... [22:21:17]Read from MH i2c: E2 [22:21:17]MH_I2C_Read... [22:21:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:21:17]Read from MH i2c: E2 17 00 [22:21:17]MH_I2C_Read... [22:21:17]Read from MH i2c: E2 17 00 A8 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 A7 [22:21:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [22:21:17]wFMCommunicate OK [22:21:17]requested_item fd.num is exist - process it [22:21:17]SAM_PROTO_GetFieldsCounters [22:21:17]wFMCommunicate request_size=4 [22:21:17]MH_SAM_APDU [22:21:17]CAPDU: 80 13 00 00 [22:21:17]Write to MH i2c: E2 08 00 A9 3D 80 13 00 00 00 00 00 00 62 [22:21:17]Write i2c OK [22:21:17]MH_I2C_Read... [22:21:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:21:17]Read from MH i2c: E2 [22:21:17]MH_I2C_Read... [22:21:17]Read from MH i2c: E2 62 00 [22:21:17]MH_I2C_Read... [22:21:17]Read from MH i2c: E2 62 00 A9 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E3 09 00 00 0E 04 04 00 16 00 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 4E [22:21:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E3 09 00 00 0E 04 04 00 16 00 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 [22:21:17]wFMCommunicate OK [22:21:17]SAM_PROTO_GetFieldsCounters done [22:21:17]requested_item shift.num is exist - process it [22:21:17]requested_item shift.opened is exist - process it [22:21:17]req_shift_opened [22:21:17]FM_GetShiftState [22:21:17]SAM_PROTO_GetShiftState [22:21:17]wFMCommunicate request_size=4 [22:21:17]MH_SAM_APDU [22:21:17]CAPDU: 80 13 01 00 [22:21:17]Write to MH i2c: E2 08 00 AA 3D 80 13 01 00 00 00 00 00 64 [22:21:17]Write i2c OK [22:21:17]MH_I2C_Read... [22:21:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:21:17]Read from MH i2c: E2 [22:21:17]MH_I2C_Read... [22:21:17]Read from MH i2c: E2 0E 00 [22:21:17]MH_I2C_Read... [22:21:17]Read from MH i2c: E2 0E 00 AA 3D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 02 [22:21:17]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [22:21:17]wFMCommunicate OK [22:21:17]SAM_PROTO_GetShiftState done [22:21:17]FM_GetShiftState done [22:21:17]req_shift_opened done [22:21:17]requested_item shift.open_date is exist - process it [22:21:17]req_shift_open_date [22:21:17]req_shift_open_date done [22:21:17]produce_requested_data done [22:21:17]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2531,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [22:21:17]process_action_free close_receipt [22:21:17]json_value_free [22:21:17]json_value_free done [22:21:17]process_json_proto returns [22:21:17]Send response to host [22:21:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2531,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [22:21:17]free response buf [22:21:17]execute_script done [22:21:17]execute_script returns [22:21:17]free content buf [22:21:17]Sock 9.Close socket [22:21:17]Sock 9.Thread stoped [22:21:20]OFD Sender: No OFD packet to send [22:21:25]OFD Sender: No OFD packet to send [22:21:30]OFD Sender: No OFD packet to send [22:21:35]OFD Sender: No OFD packet to send [22:21:40]OFD Sender: No OFD packet to send [22:21:45]OFD Sender: No OFD packet to send [22:21:50]OFD Sender: No OFD packet to send [22:21:55]OFD Sender: No OFD packet to send [22:22:00]OFD Sender: No OFD packet to send [22:22:05]OFD Sender: No OFD packet to send [22:22:10]OFD Sender: No OFD packet to send [22:22:15]OFD Sender: No OFD packet to send [22:22:20]OFD Sender: No OFD packet to send [22:22:25]OFD Sender: No OFD packet to send [22:22:30]OFD Sender: No OFD packet to send [22:22:35]OFD Sender: No OFD packet to send [22:22:40]OFD Sender: No OFD packet to send [22:22:45]OFD Sender: No OFD packet to send [22:22:50]OFD Sender: No OFD packet to send [22:22:55]OFD Sender: No OFD packet to send [22:23:00]OFD Sender: No OFD packet to send [22:23:05]OFD Sender: No OFD packet to send [22:23:10]OFD Sender: No OFD packet to send [22:23:15]OFD Sender: No OFD packet to send [22:23:20]OFD Sender: No OFD packet to send [22:23:25]OFD Sender: No OFD packet to send [22:23:30]OFD Sender: No OFD packet to send [22:23:35]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:30]OFD Sender: No OFD packet to send [22:27:35]OFD Sender: No OFD packet to send [22:27:41]OFD Sender: No OFD packet to send [22:27:46]OFD Sender: No OFD packet to send [22:27:51]OFD Sender: No OFD packet to send [22:27:56]OFD Sender: No OFD packet to send [22:28:01]OFD Sender: No OFD packet to send [22:28:06]OFD Sender: No OFD packet to send [22:28:11]OFD Sender: No OFD packet to send [22:28:16]OFD Sender: No OFD packet to send [22:28:21]OFD Sender: No OFD packet to send [22:28:26]OFD Sender: No OFD packet to send [22:28:31]OFD Sender: No OFD packet to send [22:28:36]OFD Sender: No OFD packet to send [22:28:41]OFD Sender: No OFD packet to send [22:28:46]OFD Sender: No OFD packet to send [22:28:51]OFD Sender: No OFD packet to send [22:28:56]OFD Sender: No OFD packet to send [22:29:01]OFD Sender: No OFD packet to send [22:29:06]OFD Sender: No OFD packet to send [22:29:11]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:54]accept exits with 7 [22:29:54]New connection [22:29:54]New thread 3066850660 created [22:29:54]Thread 3066707300 joined [22:29:54]Waiting for new connection... [22:29:54] Sock 7.Parse request [22:29:54]Sock 7.Check first char [22:29:54]Sock 7.First char is OK [22:29:54]request: POST /json_proto HTTP/1.0 [22:29:54]Method: POST [22:29:54]URL: /json_proto [22:29:54]Method is POST - this is cgi request [22:29:54]url: /json_proto [22:29:54]query_string will be loaded in cgi processing [22:29:54]execute_cgi json_proto POST (null) [22:29:54]execute_cgi path=json_proto method=POST [22:29:54]POST find Content-Length [22:29:54]Host: 172.17.52.132:8080 [22:29:54]Content-Length: 671 [22:29:54]Content-Type: application/json [22:29:54] [22:29:54]POST finish read [22:29:54]Found Content-Length = 671 [22:29:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99920", "tax_sys" : 0, "items" : [ { "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:54]execute_script... [22:29: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 : (3)99920", "tax_sys" : 0, "items" : [ { "code": "4660013331421", "name": "\u042D\u0441\u043A\u0438\u043C\u043E \u041B\u0435\u043D\u0438\u043D\u0433\u0440\u0430\u0434\u0441\u043A\u043E\u0435", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:29:54]POST & json_proto [22:29:54]process_json_proto [22:29:54]json parsed OK: [22:29:54]protocol is kg_v1.0 [22:29:54]action value=close_receipt [22:29:54]process_action close_receipt [22:29:54]cmd_close_receipt [22:29:54]MH_GetDate [22:29:54]Write to MH i2c: F0 00 00 AB 3D D7 [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: F0 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: F0 09 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: F0 09 00 AB 3D 00 69 E1 12 67 5A BE F6 66 17 [22:29:54]GetLastDocTimeStamp 1729290079 [22:29:54]current date 1729290601 [22:29:54]FM_GetShiftState [22:29:54]SAM_PROTO_GetShiftState [22:29:54]wFMCommunicate request_size=4 [22:29:54]MH_SAM_APDU [22:29:54]CAPDU: 80 13 01 00 [22:29:54]Write to MH i2c: E2 08 00 AC 3D 80 13 01 00 00 00 00 00 66 [22:29:54]Write i2c OK [22:29:54]MH_I2C_Read... [22:29:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:54]Read from MH i2c: E2 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 0E 00 [22:29:54]MH_I2C_Read... [22:29:54]Read from MH i2c: E2 0E 00 AC 3D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 04 [22:29:54]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [22:29:54]wFMCommunicate OK [22:29:54]SAM_PROTO_GetShiftState done [22:29:54]FM_GetShiftState done [22:29:54]opened in 1729209717 [22:29:54]opened+sec_in_day 1729296117 [22:29:54]quantity*price = 19000 [22:29:54]sum+1 = 19001 [22:29:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 ÐСП 1% : 1.68 ÐДС 12% : 20.18 Ðаличными: 190.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 157 18.10.2024 22:30 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2532 ФПД: 80668452783765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T223001&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2532&fm=80668452783765&tin=02508201610067®Number=0000000000207295&sum=19000 0 [22:29:56]StoreToDocumentArchive [22:29:56]shift 22 fd 2532 [22:29:56]save to /storage/0022/doc_00002532 [22:29:56]save last doc name /storage/0022/doc_00002532 to /storage/kkm_last_doc_name [22:29:56]save OK [22:29:56]Clear old archive folders... [22:29:56]ProcessDocumentItem done err = 0, tmpTLVsize=281 [22:29:56]tlvbuf is 014206F0 [22:29:56]SAM_PROTO_ClearQueue [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 09 00 00 [22:29:56]Write to MH i2c: E2 08 00 B9 3D 80 09 00 00 00 00 00 00 68 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 B9 3D 00 90 00 6A [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]SAM_PROTO_ClearQueue done [22:29:56]KKMCreateOFDPacket [22:29:56]OFDProtocolAddRootSTLVToBuf [22:29:56]FM_MakeSignedData [22:29:56]FM_MakeSignedData [22:29:56]SAM_PROTO_SignData [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 0D 01 02 [22:29:56]Write to MH i2c: E2 08 00 BA 3D 80 0D 01 02 00 00 00 00 70 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:29:56]OFD Sender: No OFD packet to send [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 BA 3D 00 90 00 6B [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]wFMCommunicate request_size=255 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 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 69 E1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 [22:29:56]Write to MH i2c: E2 02 01 BB 3D 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 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 69 E1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 00 9B [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 BB 3D 00 90 00 6C [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]wFMCommunicate request_size=40 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E4 09 00 00 35 04 06 00 49 5E 16 79 06 95 [22:29:56]Write to MH i2c: E2 2B 00 BC 3D 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E4 09 00 00 35 04 06 00 49 5E 16 79 06 95 00 00 E3 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 03 00 BC 3D 00 90 00 6D [22:29:56]RAPDU: 90 00 [22:29:56]wFMCommunicate OK [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 0D 03 02 [22:29:56]Write to MH i2c: E2 08 00 BD 3D 80 0D 03 02 00 00 00 00 75 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 0B 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 0B 00 BD 3D 00 7C 45 15 35 E1 5A EA EC 90 00 92 [22:29:56]RAPDU: 7C 45 15 35 E1 5A EA EC 90 00 [22:29:56]wFMCommunicate OK [22:29:56]SAM_PROTO_SignData done [22:29:56]FM_MakeSignedData done [22:29:56]CreateOFDProtocolMessage [22:29:56]wFMCommunicate request_size=4 [22:29:56]MH_SAM_APDU [22:29:56]CAPDU: 80 11 00 00 [22:29:56]Write to MH i2c: E2 08 00 BE 3D 80 11 00 00 00 00 00 00 75 [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:56]Read from MH i2c: E2 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 17 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: E2 17 00 BE 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 BD [22:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [22:29:56]wFMCommunicate OK [22:29:56]CreateOFDProtocolMessage done [22:29:56]OFDSenderStorePacket 2532 [22:29:56]StoreOFDPacket docnum=2532 [22:29:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2D 01 00 00 B0 AF 25 01 CB 99 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 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 69 E1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E4 09 00 00 35 04 06 00 49 5E 16 79 06 95 7C 45 15 35 E1 5A EA EC [22:29:56]CheckFolder [22:29:56]dirname=/storage/ofd_packets [22:29:56]CheckFolder done [22:29:56]ProducePacketName [22:29:56]name=ofd_packets/00002532 [22:29:56]NVStorageSaveData ofd_packets/00002532 [22:29:56]File name is /storage/ofd_packets/00002532 [22:29:56]Write 331 bytes [22:29:56]NVStorageSaveData done [22:29:56]OFDSenderStorePacket done [22:29:56]KKMCreateOFDPacket done [22:29:56]NVStorageSaveData kkm_last_timestamp [22:29:56]File name is /storage/kkm_last_timestamp [22:29:56]Write 4 bytes [22:29:56]NVStorageSaveData done [22:29:56]ExternCall_PrintAddStr [22:29:56]wPrintStart [22:29:56]Write to MH i2c: 01 00 00 BF 3D FC [22:29:56]Write i2c OK [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: 01 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: 01 07 00 [22:29:56]MH_I2C_Read... [22:29:56]Read from MH i2c: 01 07 00 BF 3D 00 00 00 00 00 FF 0F 11 [22:29:56]RasterBufferAndPrint [22:29:56]line Счет N : (3)99920 [22:29:56]line ИÐÐ: 02508201610067 [22:29:56]line Контрольно-КаÑÑовый Чек [22:29:56]line ПРОДÐЖР[22:29:56]line Товар: 4660013331421 [22:29:56]line ЭÑкимо ЛенинградÑкое [22:29:56]line 2.000 * 95.00 [22:29:56]line = 190.00 [22:29:56]line ÐДС 12% ÐСП 1% [22:29:56]line > о реализуемом товаре [22:29:56]line ИТОГО: 190.00 [22:29:56]line ÐСП 1% : 1.68 [22:29:56]line ÐДС 12% : 20.18 [22:29:56]line Ðаличными: 190.00 [22:29:56]line Безнал.: 0.00 [22:29:56]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [22:29:56]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [22:29:56]line СÐО: Общий режим [22:29:56]line Чек 157 18.10.2024 22:30 [22:29:56]line Смена: 22 ФФД: 1.0 [22:29:56]line ЗÐМ: 0300000191 [22:29:56]line РÐМ: 0000000000207295 [22:29:56]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [22:29:56]line ФМ: 0000000002342820 [22:29:56]line ФД: 2532 [22:29:56]line ФПД: 80668452783765 [22:29:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T223001&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2532&fm=80668452783765&tin=02508201610067®Number=0000000000207295&sum=19000 [22:29:56]line 0 [22:29:56]OFD Sender: Processing packet 2532 [packets to send 1, broken 0] [22:29:56]ProducePacketName [22:29:56]name=ofd_packets/00002532 [22:29:56]OFD Sender: To server: ‡•öpG, [22:29:56]CommunicateWithHost lk.salyk.kg:30040 [22:29:56]ConnectInit lk.salyk.kg [22:29:56]written 0, free lines is 4095 [22:29:57]Connected sock=10 [22:29:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 2D 01 00 00 B0 AF 25 01 CB 99 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 36 30 30 31 33 33 33 31 34 32 31 06 04 27 00 D0 AD D1 81 D0 BA D0 B8 D0 BC D0 BE 20 D0 9B D0 B5 D0 BD D0 B8 D0 BD D0 B3 D1 80 D0 B0 D0 B4 D1 81 D0 BA D0 BE D0 B5 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 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 69 E1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E4 09 00 00 35 04 06 00 49 5E 16 79 06 95 7C 45 15 35 E1 5A EA EC [22:29:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 02 4B 47 00 A1 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E4 09 00 00 F4 03 04 00 CC 8C 12 67 B6 04 01 00 00 5F 1B 36 B5 3D 1C A4 41 [22:29:57]CommunicateWithHost err = 0 [22:29:57]CheckOFDResponse [22:29:57]1017 (14) - 77093643461234 [22:29:57]1041 (16) - 0000000002342820 [22:29:57]1040 (4) - 2532 [22:29:57]1012 (4) - 18.10.2024 16:29 [22:29:57]1206 (1) - 0 [22:29:57]OFD Sender: Remove packet 2532 [22:29:57]ProducePacketName [22:29:57]name=ofd_packets/00002532 [22:29:57]NVStorageDeleteData [22:29:57]Write to MH i2c: 01 00 00 E7 3D 24 [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: 01 07 00 E7 3D 00 00 00 00 00 CE 0C 05 [22:29:57]RasterBufferAndPrint [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]line [22:29:57]written 0, free lines is 3284 [22:29:57]MH_Cut [22:29:57]Write to MH i2c: D1 01 00 EE 3D 01 FD [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 01 00 [22:29:57]MH_I2C_Read... [22:29:57]Read from MH i2c: D1 01 00 EE 3D 00 FC [22:29:57]Write to MH i2c: 01 00 00 EF 3D 2C [22:29:57]Write i2c OK [22:29:57]MH_I2C_Read... [22:29:57]OFD Sender: No OFD packet to send [22:29:58]*** Cut start [22:29:58]*** Partial cut [22:29:58]*** CUTSNS_PIN = 1 [22:29:58]*** CUTSNS_PIN = 0 [22:29:58]*** Brake cut motor [22:29:58]Read from MH i2c: 01 [22:29:58]MH_I2C_Read... [22:29:58]*** Stop cut motor [22:29:58]*** Cut end [22:29:58]Read from MH i2c: 01 07 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: 01 07 00 EF 3D 00 00 00 00 00 FF 0F 41 [22:29:58]process_action close_receipt done [22:29:58]requested_data is exist [22:29:58]produce_requested_data [22:29:58]requested_item fm.sn is exist - process it [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 11 00 00 [22:29:58]Write to MH i2c: E2 08 00 F0 3D 80 11 00 00 00 00 00 00 A7 [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:29:58]Read from MH i2c: E2 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 17 00 [22:29:58]MH_I2C_Read... [22:29:58]Read from MH i2c: E2 17 00 F0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 EF [22:29:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [22:29:58]wFMCommunicate OK [22:29:58]requested_item fd.num is exist - process it [22:29:58]SAM_PROTO_GetFieldsCounters [22:29:58]wFMCommunicate request_size=4 [22:29:58]MH_SAM_APDU [22:29:58]CAPDU: 80 13 00 00 [22:29:58]Write to MH i2c: E2 08 00 F1 3D 80 13 00 00 00 00 00 00 AA [22:29:58]Write i2c OK [22:29:58]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 62 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 62 00 F1 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E4 09 00 00 0E 04 04 00 16 00 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 9A [22:29:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E4 09 00 00 0E 04 04 00 16 00 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 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_GetFieldsCounters done [22:29:59]requested_item shift.num is exist - process it [22:29:59]requested_item shift.opened is exist - process it [22:29:59]req_shift_opened [22:29:59]FM_GetShiftState [22:29:59]SAM_PROTO_GetShiftState [22:29:59]wFMCommunicate request_size=4 [22:29:59]MH_SAM_APDU [22:29:59]CAPDU: 80 13 01 00 [22:29:59]Write to MH i2c: E2 08 00 F2 3D 80 13 01 00 00 00 00 00 AC [22:29:59]Write i2c OK [22:29:59]MH_I2C_Read... [22:29:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:29:59]Read from MH i2c: E2 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0E 00 [22:29:59]MH_I2C_Read... [22:29:59]Read from MH i2c: E2 0E 00 F2 3D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 4A [22:29:59]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [22:29:59]wFMCommunicate OK [22:29:59]SAM_PROTO_GetShiftState done [22:29:59]FM_GetShiftState done [22:29:59]req_shift_opened done [22:29:59]requested_item shift.open_date is exist - process it [22:29:59]req_shift_open_date [22:29:59]req_shift_open_date done [22:29:59]produce_requested_data done [22:29:59]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2532,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [22:29:59]process_action_free close_receipt [22:29:59]json_value_free [22:29:59]json_value_free done [22:29:59]process_json_proto returns [22:29:59]Send response to host [22:29:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2532,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [22:29:59]free response buf [22:29:59]execute_script done [22:29:59]execute_script returns [22:29:59]free content buf [22:29:59]Sock 7.Close socket [22:29:59]Sock 7.Thread stoped [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:13]OFD Sender: No OFD packet to send [22:35:18]OFD Sender: No OFD packet to send [22:35:23]OFD Sender: No OFD packet to send [22:35:28]OFD Sender: No OFD packet to send [22:35:33]OFD Sender: No OFD packet to send [22:35:38]OFD Sender: No OFD packet to send [22:35:43]OFD Sender: No OFD packet to send [22:35:48]OFD Sender: No OFD packet to send [22:35:53]OFD Sender: No OFD packet to send [22:35:58]OFD Sender: No OFD packet to send [22:36:03]OFD Sender: No OFD packet to send [22:36:08]OFD Sender: No OFD packet to send [22:36:13]OFD Sender: No OFD packet to send [22:36:18]OFD Sender: No OFD packet to send [22:36:23]OFD Sender: No OFD packet to send [22:36:28]OFD Sender: No OFD packet to send [22:36:33]OFD Sender: No OFD packet to send [22:36:38]OFD Sender: No OFD packet to send [22:36:43]OFD Sender: No OFD packet to send [22:36:48]OFD Sender: No OFD packet to send [22:36:53]OFD Sender: No OFD packet to send [22:36:58]OFD Sender: No OFD packet to send [22:37:03]OFD Sender: No OFD packet to send [22:37:08]OFD Sender: No OFD packet to send [22:37:13]OFD Sender: No OFD packet to send [22:37:18]OFD Sender: No OFD packet to send [22:37:23]OFD Sender: No OFD packet to send [22:37:28]OFD Sender: No OFD packet to send [22:37:33]OFD Sender: No OFD packet to send [22:37:38]OFD Sender: No OFD packet to send [22:37:43]OFD Sender: No OFD packet to send [22:37:48]OFD Sender: No OFD packet to send [22:37:53]OFD Sender: No OFD packet to send [22:37:58]OFD Sender: No OFD packet to send [22:38:03]OFD Sender: No OFD packet to send [22:38:08]OFD Sender: No OFD packet to send [22:38:13]OFD Sender: No OFD packet to send [22:38:18]OFD Sender: No OFD packet to send [22:38:23]OFD Sender: No OFD packet to send [22:38:28]OFD Sender: No OFD packet to send [22:38:33]OFD Sender: No OFD packet to send [22:38:38]OFD Sender: No OFD packet to send [22:38:43]OFD Sender: No OFD packet to send [22:38:48]OFD Sender: No OFD packet to send [22:38:53]OFD Sender: No OFD packet to send [22:38:58]OFD Sender: No OFD packet to send [22:39:03]OFD Sender: No OFD packet to send [22:39:08]OFD Sender: No OFD packet to send [22:39:13]OFD Sender: No OFD packet to send [22:39:18]OFD Sender: No OFD packet to send [22:39:23]OFD Sender: No OFD packet to send [22:39:28]OFD Sender: No OFD packet to send [22:39:33]OFD Sender: No OFD packet to send [22:39:38]OFD Sender: No OFD packet to send [22:39:43]OFD Sender: No OFD packet to send [22:39:48]OFD Sender: No OFD packet to send [22:39:53]OFD Sender: No OFD packet to send [22:39:58]OFD Sender: No OFD packet to send [22:40:03]OFD Sender: No OFD packet to send [22:40:08]OFD Sender: No OFD packet to send [22:40:13]OFD Sender: No OFD packet to send [22:40:18]OFD Sender: No OFD packet to send [22:40:23]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42: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:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:48:48]OFD Sender: No OFD packet to send [22:48:53]OFD Sender: No OFD packet to send [22:48:58]OFD Sender: No OFD packet to send [22:49:03]OFD Sender: No OFD packet to send [22:49:08]OFD Sender: No OFD packet to send [22:49:13]OFD Sender: No OFD packet to send [22:49:18]OFD Sender: No OFD packet to send [22:49:23]OFD Sender: No OFD packet to send [22:49:28]OFD Sender: No OFD packet to send [22:49:33]OFD Sender: No OFD packet to send [22:49:38]OFD Sender: No OFD packet to send [22:49:43]OFD Sender: No OFD packet to send [22:49:48]OFD Sender: No OFD packet to send [22:49:53]OFD Sender: No OFD packet to send [22:49:58]OFD Sender: No OFD packet to send [22:50:03]OFD Sender: No OFD packet to send [22:50:08]OFD Sender: No OFD packet to send [22:50:13]OFD Sender: No OFD packet to send [22:50:18]OFD Sender: No OFD packet to send [22:50:23]OFD Sender: No OFD packet to send [22:50:28]OFD Sender: No OFD packet to send [22:50:33]OFD Sender: No OFD packet to send [22:50:38]OFD Sender: No OFD packet to send [22:50:43]OFD Sender: No OFD packet to send [22:50:48]OFD Sender: No OFD packet to send [22:50:53]OFD Sender: No OFD packet to send [22:50:58]OFD Sender: No OFD packet to send [22:51:03]OFD Sender: No OFD packet to send [22:51:08]OFD Sender: No OFD packet to send [22:51:13]OFD Sender: No OFD packet to send [22:51:18]OFD Sender: No OFD packet to send [22:51:23]OFD Sender: No OFD packet to send [22:51:28]OFD Sender: No OFD packet to send [22:51:33]OFD Sender: No OFD packet to send [22:51:38]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:36]accept exits with 9 [22:53:36]New connection [22:53:36]New thread 3066707300 created [22:53:36]Thread 3066850660 joined [22:53:36]Waiting for new connection... [22:53:36] Sock 9.Parse request [22:53:36]Sock 9.Check first char [22:53:36]Sock 9.First char is OK [22:53:36]request: POST /json_proto HTTP/1.0 [22:53:36]Method: POST [22:53:36]URL: /json_proto [22:53:36]Method is POST - this is cgi request [22:53:36]url: /json_proto [22:53:36]query_string will be loaded in cgi processing [22:53:36]execute_cgi json_proto POST (null) [22:53:36]execute_cgi path=json_proto method=POST [22:53:36]POST find Content-Length [22:53:36]Host: 172.17.52.132:8080 [22:53:36]Content-Length: 619 [22:53:36]Content-Type: application/json [22:53:36] [22:53:36]POST finish read [22:53:36]Found Content-Length = 619 [22:53:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99921", "tax_sys" : 0, "items" : [ { "code": "5904310231343", "name": "\u041B\u0435\u0434\u0435\u043D\u0435\u0446 Johny Bee BOOTS POP", "price" : 212.00, "quantity" : 2.000, "sum" : 424.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 424.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:36]execute_script... [22:53:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)99921", "tax_sys" : 0, "items" : [ { "code": "5904310231343", "name": "\u041B\u0435\u0434\u0435\u043D\u0435\u0446 Johny Bee BOOTS POP", "price" : 212.00, "quantity" : 2.000, "sum" : 424.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 424.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:53:36]POST & json_proto [22:53:36]process_json_proto [22:53:36]json parsed OK: [22:53:36]protocol is kg_v1.0 [22:53:36]action value=close_receipt [22:53:36]process_action close_receipt [22:53:36]cmd_close_receipt [22:53:36]MH_GetDate [22:53:36]Write to MH i2c: F0 00 00 F3 3D 1F [22:53:36]Write i2c OK [22:53:36]MH_I2C_Read... [22:53:36]Read from MH i2c: F0 [22:53:36]MH_I2C_Read... [22:53:36]Read from MH i2c: F0 09 00 [22:53:36]MH_I2C_Read... [22:53:36]Read from MH i2c: F0 09 00 F3 3D 00 F7 E6 12 67 5A BE F6 66 F2 [22:53:36]GetLastDocTimeStamp 1729290601 [22:53:36]current date 1729292023 [22:53:36]FM_GetShiftState [22:53:36]SAM_PROTO_GetShiftState [22:53:36]wFMCommunicate request_size=4 [22:53:36]MH_SAM_APDU [22:53:36]CAPDU: 80 13 01 00 [22:53:36]Write to MH i2c: E2 08 00 F4 3D 80 13 01 00 00 00 00 00 AE [22:53:36]Write i2c OK [22:53:36]MH_I2C_Read... [22:53:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:36]Read from MH i2c: E2 [22:53:36]MH_I2C_Read... [22:53:36]Read from MH i2c: E2 0E 00 [22:53:36]MH_I2C_Read... [22:53:36]Read from MH i2c: E2 0E 00 F4 3D 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 4C [22:53:36]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [22:53:36]wFMCommunicate OK [22:53:36]SAM_PROTO_GetShiftState done [22:53:36]FM_GetShiftState done [22:53:36]opened in 1729209717 [22:53:36]opened+sec_in_day 1729296117 [22:53:36]quantity*price = 42400 [22:53:36]sum+1 = 42401 [22:53:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 424.00 ÐСП 1% : 3.75 ÐДС 12% : 45.03 Ðаличными: 424.00 Безнал.: 0.00 МеÑто: ÐЗС â„– 162 "Партнер Ðефть" ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 СÐО: Общий режим Чек 158 18.10.2024 22:53 Смена: 22 ФФД: 1.0 ЗÐМ: 0300000191 РÐМ: 0000000000207295 ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 ФМ: 0000000002342820 ФД: 2533 ФПД: 15987551880773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T225343&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2533&fm=15987551880773&tin=02508201610067®Number=0000000000207295&sum=42400 0 [22:53:37]StoreToDocumentArchive [22:53:37]shift 22 fd 2533 [22:53:37]save to /storage/0022/doc_00002533 [22:53:37]save last doc name /storage/0022/doc_00002533 to /storage/kkm_last_doc_name [22:53:37]save OK [22:53:37]Clear old archive folders... [22:53:37]ProcessDocumentItem done err = 0, tmpTLVsize=276 [22:53:37]tlvbuf is 013B3BE0 [22:53:37]SAM_PROTO_ClearQueue [22:53:37]wFMCommunicate request_size=4 [22:53:37]MH_SAM_APDU [22:53:37]CAPDU: 80 09 00 00 [22:53:37]Write to MH i2c: E2 08 00 01 3E 80 09 00 00 00 00 00 00 B1 [22:53:37]Write i2c OK [22:53:37]MH_I2C_Read... [22:53:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:53:37]Read from MH i2c: E2 [22:53:37]MH_I2C_Read... [22:53:37]Read from MH i2c: E2 03 00 [22:53:37]MH_I2C_Read... [22:53:37]Read from MH i2c: E2 03 00 01 3E 00 90 00 B3 [22:53:37]RAPDU: 90 00 [22:53:37]wFMCommunicate OK [22:53:37]SAM_PROTO_ClearQueue done [22:53:37]KKMCreateOFDPacket [22:53:37]OFDProtocolAddRootSTLVToBuf [22:53:37]FM_MakeSignedData [22:53:37]FM_MakeSignedData [22:53:37]SAM_PROTO_SignData [22:53:37]wFMCommunicate request_size=4 [22:53:37]MH_SAM_APDU [22:53:37]CAPDU: 80 0D 01 02 [22:53:37]Write to MH i2c: E2 08 00 02 3E 80 0D 01 02 00 00 00 00 B9 [22:53:37]Write i2c OK [22:53:37]MH_I2C_Read... [22:53:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:53:37]Read from MH i2c: E2 [22:53:37]MH_I2C_Read... [22:53:37]Read from MH i2c: E2 03 00 [22:53:37]MH_I2C_Read... [22:53:37]Read from MH i2c: E2 03 00 02 3E 00 90 00 B4 [22:53:37]RAPDU: 90 00 [22:53:37]wFMCommunicate OK [22:53:37]wFMCommunicate request_size=255 [22:53:37]MH_SAM_APDU [22:53:37]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 A0 A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 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 F7 E6 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 [22:53:37]Write to MH i2c: E2 02 01 03 3E 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 A0 A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 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 F7 E6 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 00 00 DE [22:53:37]Write i2c OK [22:53:37]MH_I2C_Read... [22:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:38]Read from MH i2c: E2 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 03 00 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 03 00 03 3E 00 90 00 B5 [22:53:38]RAPDU: 90 00 [22:53:38]wFMCommunicate OK [22:53:38]wFMCommunicate request_size=35 [22:53:38]MH_SAM_APDU [22:53:38]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E5 09 00 00 35 04 06 00 0E 8A 64 59 C6 45 [22:53:38]Write to MH i2c: E2 26 00 04 3E 80 0D 02 02 1E 00 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E5 09 00 00 35 04 06 00 0E 8A 64 59 C6 45 00 00 F2 [22:53:38]Write i2c OK [22:53:38]MH_I2C_Read... [22:53:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:53:38]Read from MH i2c: E2 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 03 00 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 03 00 04 3E 00 90 00 B6 [22:53:38]RAPDU: 90 00 [22:53:38]wFMCommunicate OK [22:53:38]wFMCommunicate request_size=4 [22:53:38]MH_SAM_APDU [22:53:38]CAPDU: 80 0D 03 02 [22:53:38]Write to MH i2c: E2 08 00 05 3E 80 0D 03 02 00 00 00 00 BE [22:53:38]Write i2c OK [22:53:38]MH_I2C_Read... [22:53:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:53:38]Read from MH i2c: E2 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 0B 00 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 0B 00 05 3E 00 73 FC 49 A9 2B 04 56 36 90 00 DB [22:53:38]RAPDU: 73 FC 49 A9 2B 04 56 36 90 00 [22:53:38]wFMCommunicate OK [22:53:38]SAM_PROTO_SignData done [22:53:38]FM_MakeSignedData done [22:53:38]CreateOFDProtocolMessage [22:53:38]wFMCommunicate request_size=4 [22:53:38]MH_SAM_APDU [22:53:38]CAPDU: 80 11 00 00 [22:53:38]Write to MH i2c: E2 08 00 06 3E 80 11 00 00 00 00 00 00 BE [22:53:38]Write i2c OK [22:53:38]MH_I2C_Read... [22:53:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:38]Read from MH i2c: E2 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 17 00 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: E2 17 00 06 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 06 [22:53:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [22:53:38]wFMCommunicate OK [22:53:38]CreateOFDProtocolMessage done [22:53:38]OFDSenderStorePacket 2533 [22:53:38]StoreOFDPacket docnum=2533 [22:53:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 AB 1D 20 01 A7 D7 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 A0 A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 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 F7 E6 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E5 09 00 00 35 04 06 00 0E 8A 64 59 C6 45 73 FC 49 A9 2B 04 56 36 [22:53:38]CheckFolder [22:53:38]dirname=/storage/ofd_packets [22:53:38]CheckFolder done [22:53:38]ProducePacketName [22:53:38]name=ofd_packets/00002533 [22:53:38]NVStorageSaveData ofd_packets/00002533 [22:53:38]File name is /storage/ofd_packets/00002533 [22:53:38]Write 326 bytes [22:53:38]NVStorageSaveData done [22:53:38]OFDSenderStorePacket done [22:53:38]KKMCreateOFDPacket done [22:53:38]NVStorageSaveData kkm_last_timestamp [22:53:38]File name is /storage/kkm_last_timestamp [22:53:38]Write 4 bytes [22:53:38]NVStorageSaveData done [22:53:38]ExternCall_PrintAddStr [22:53:38]wPrintStart [22:53:38]Write to MH i2c: 01 00 00 07 3E 45 [22:53:38]Write i2c OK [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: 01 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: 01 07 00 [22:53:38]MH_I2C_Read... [22:53:38]Read from MH i2c: 01 07 00 07 3E 00 00 00 00 00 FF 0F 5A [22:53:38]RasterBufferAndPrint [22:53:38]line Счет N : (3)99921 [22:53:38]line ИÐÐ: 02508201610067 [22:53:38]line Контрольно-КаÑÑовый Чек [22:53:38]line ПРОДÐЖР[22:53:38]line Товар: 5904310231343 [22:53:38]line Леденец Johny Bee BOOTS POP [22:53:38]line 2.000 * 212.00 [22:53:38]line = 424.00 [22:53:38]line ÐДС 12% ÐСП 1% [22:53:38]line > о реализуемом товаре [22:53:38]line ИТОГО: 424.00 [22:53:38]line ÐСП 1% : 3.75 [22:53:38]line ÐДС 12% : 45.03 [22:53:38]line Ðаличными: 424.00 [22:53:38]line Безнал.: 0.00 [22:53:38]line МеÑто: ÐЗС â„– 162 "Партнер Ðефть" [22:53:38]line ÐдреÑ: 720001, Ñ. Кумуш Ðзиз, ул. Мадумар Ðта 31, 41.045835, 72.586130 [22:53:38]line СÐО: Общий режим [22:53:38]line Чек 158 18.10.2024 22:53 [22:53:38]line Смена: 22 ФФД: 1.0 [22:53:38]line ЗÐМ: 0300000191 [22:53:38]line РÐМ: 0000000000207295 [22:53:38]line ВерÑÐ¸Ñ ÐšÐšÐœ: v1.0 [22:53:38]line ФМ: 0000000002342820 [22:53:38]line ФД: 2533 [22:53:38]line ФПД: 15987551880773 [22:53:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241018T225343&type=1&operation_type=1&fn_number=0000000002342820&fd_number=2533&fm=15987551880773&tin=02508201610067®Number=0000000000207295&sum=42400 [22:53:38]line 0 [22:53:38]OFD Sender: Processing packet 2533 [packets to send 1, broken 0] [22:53:38]ProducePacketName [22:53:38]name=ofd_packets/00002533 [22:53:38]OFD Sender: To server: ‡•öpG, [22:53:38]CommunicateWithHost lk.salyk.kg:30040 [22:53:38]ConnectInit lk.salyk.kg [22:53:38]written 0, free lines is 4095 [22:53:38]Connected sock=10 [22:53:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 AB 1D 20 01 A7 D7 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 A0 A5 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 A5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 77 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 11 00 00 00 00 07 04 06 00 A0 A5 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 F7 E6 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E5 09 00 00 35 04 06 00 0E 8A 64 59 C6 45 73 FC 49 A9 2B 04 56 36 [22:53:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 B3 A3 47 00 3A EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E5 09 00 00 F4 03 04 00 59 92 12 67 B6 04 01 00 00 32 50 D5 59 CB 4D BA 4F [22:53:39]CommunicateWithHost err = 0 [22:53:39]CheckOFDResponse [22:53:39]1017 (14) - 77093643461234 [22:53:39]1041 (16) - 0000000002342820 [22:53:39]1040 (4) - 2533 [22:53:39]1012 (4) - 18.10.2024 16:52 [22:53:39]1206 (1) - 0 [22:53:39]OFD Sender: Remove packet 2533 [22:53:39]ProducePacketName [22:53:39]name=ofd_packets/00002533 [22:53:39]NVStorageDeleteData [22:53:39]Write to MH i2c: 01 00 00 30 3E 6E [22:53:39]Write i2c OK [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: 01 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: 01 07 00 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: 01 07 00 30 3E 00 00 00 00 00 B8 0C 39 [22:53:39]RasterBufferAndPrint [22:53:39]line [22:53:39]line [22:53:39]line [22:53:39]line [22:53:39]line [22:53:39]written 0, free lines is 3260 [22:53:39]MH_Cut [22:53:39]Write to MH i2c: D1 01 00 37 3E 01 47 [22:53:39]Write i2c OK [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: D1 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: D1 01 00 [22:53:39]MH_I2C_Read... [22:53:39]Read from MH i2c: D1 01 00 37 3E 00 46 [22:53:39]Write to MH i2c: 01 00 00 38 3E 76 [22:53:39]Write i2c OK [22:53:39]MH_I2C_Read... [22:53:39]OFD Sender: No OFD packet to send [22:53:40]*** Cut start [22:53:40]*** Partial cut [22:53:40]*** CUTSNS_PIN = 1 [22:53:40]*** CUTSNS_PIN = 0 [22:53:40]*** Brake cut motor [22:53:40]Read from MH i2c: 01 [22:53:40]MH_I2C_Read... [22:53:40]*** Stop cut motor [22:53:40]*** Cut end [22:53:40]Read from MH i2c: 01 07 00 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: 01 07 00 38 3E 00 00 00 00 00 FF 0F 8B [22:53:40]process_action close_receipt done [22:53:40]requested_data is exist [22:53:40]produce_requested_data [22:53:40]requested_item fm.sn is exist - process it [22:53:40]wFMCommunicate request_size=4 [22:53:40]MH_SAM_APDU [22:53:40]CAPDU: 80 11 00 00 [22:53:40]Write to MH i2c: E2 08 00 39 3E 80 11 00 00 00 00 00 00 F1 [22:53:40]Write i2c OK [22:53:40]MH_I2C_Read... [22:53:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:53:40]Read from MH i2c: E2 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: E2 17 00 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: E2 17 00 39 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 39 [22:53:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 90 00 [22:53:40]wFMCommunicate OK [22:53:40]requested_item fd.num is exist - process it [22:53:40]SAM_PROTO_GetFieldsCounters [22:53:40]wFMCommunicate request_size=4 [22:53:40]MH_SAM_APDU [22:53:40]CAPDU: 80 13 00 00 [22:53:40]Write to MH i2c: E2 08 00 3A 3E 80 13 00 00 00 00 00 00 F4 [22:53:40]Write i2c OK [22:53:40]MH_I2C_Read... [22:53:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:53:40]Read from MH i2c: E2 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: E2 62 00 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: E2 62 00 3A 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E5 09 00 00 0E 04 04 00 16 00 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 E8 [22:53:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 E5 09 00 00 0E 04 04 00 16 00 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 [22:53:40]wFMCommunicate OK [22:53:40]SAM_PROTO_GetFieldsCounters done [22:53:40]requested_item shift.num is exist - process it [22:53:40]requested_item shift.opened is exist - process it [22:53:40]req_shift_opened [22:53:40]FM_GetShiftState [22:53:40]SAM_PROTO_GetShiftState [22:53:40]wFMCommunicate request_size=4 [22:53:40]MH_SAM_APDU [22:53:40]CAPDU: 80 13 01 00 [22:53:40]Write to MH i2c: E2 08 00 3B 3E 80 13 01 00 00 00 00 00 F6 [22:53:40]Write i2c OK [22:53:40]MH_I2C_Read... [22:53:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:53:40]Read from MH i2c: E2 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: E2 0E 00 [22:53:40]MH_I2C_Read... [22:53:40]Read from MH i2c: E2 0E 00 3B 3E 00 09 00 01 75 A5 11 67 00 00 00 00 90 00 94 [22:53:40]RAPDU: 09 00 01 75 A5 11 67 00 00 00 00 90 00 [22:53:40]wFMCommunicate OK [22:53:40]SAM_PROTO_GetShiftState done [22:53:40]FM_GetShiftState done [22:53:40]req_shift_opened done [22:53:40]requested_item shift.open_date is exist - process it [22:53:40]req_shift_open_date [22:53:40]req_shift_open_date done [22:53:40]produce_requested_data done [22:53:40]produce_requested_data return {"fm.sn":"0000000002342820","fd.num":2533,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717} [22:53:40]process_action_free close_receipt [22:53:40]json_value_free [22:53:40]json_value_free done [22:53:40]process_json_proto returns [22:53:40]Send response to host [22:53:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000002342820","fd.num":2533,"shift.num":22,"shift.opened":1,"shift.open_date":1729209717}}} [22:53:40]free response buf [22:53:40]execute_script done [22:53:40]execute_script returns [22:53:40]free content buf [22:53:40]Sock 9.Close socket [22:53:40]Sock 9.Thread stoped [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:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:19]OFD Sender: No OFD packet to send [22:59:24]OFD Sender: No OFD packet to send [22:59:29]OFD Sender: No OFD packet to send [22:59:34]OFD Sender: No OFD packet to send [22:59:39]OFD Sender: No OFD packet to send [22:59:44]OFD Sender: No OFD packet to send [22:59:49]OFD Sender: No OFD packet to send [22:59:54]OFD Sender: No OFD packet to send [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]OFD Sender: No OFD packet to send [23:00:14]OFD Sender: No OFD packet to send [23:00:19]OFD Sender: No OFD packet to send [23:00:24]OFD Sender: No OFD packet to send [23:00:29]OFD Sender: No OFD packet to send [23:00:34]OFD Sender: No OFD packet to send [23:00:39]OFD Sender: No OFD packet to send [23:00:44]OFD Sender: No OFD packet to send [23:00:49]OFD Sender: No OFD packet to send [23:00:54]OFD Sender: No OFD packet to send [23:00:59]OFD Sender: No OFD packet to send [23:01:04]OFD Sender: No OFD packet to send [23:01:09]OFD Sender: No OFD packet to send [23:01:14]OFD Sender: No OFD packet to send [23:01:19]OFD Sender: No OFD packet to send [23:01:24]OFD Sender: No OFD packet to send [23:01:29]OFD Sender: No OFD packet to send [23:01:34]OFD Sender: No OFD packet to send [23:01:39]OFD Sender: No OFD packet to send [23:01:44]OFD Sender: No OFD packet to send [23:01:49]OFD Sender: No OFD packet to send [23:01:54]OFD Sender: No OFD packet to send [23:01:59]OFD Sender: No OFD packet to send [23:02:04]OFD Sender: No OFD packet to send [23:02:09]OFD Sender: No OFD packet to send [23:02:14]OFD Sender: No OFD packet to send [23:02:19]OFD Sender: No OFD packet to send [23:02:24]OFD Sender: No OFD packet to send [23:02:29]OFD Sender: No OFD packet to send [23:02:34]OFD Sender: No OFD packet to send [23:02:39]OFD Sender: No OFD packet to send [23:02:44]OFD Sender: No OFD packet to send [23:02:49]OFD Sender: No OFD packet to send [23:02:54]OFD Sender: No OFD packet to send [23:02:59]OFD Sender: No OFD packet to send [23:03:04]OFD Sender: No OFD packet to send [23:03:09]OFD Sender: No OFD packet to send [23:03:14]OFD Sender: No OFD packet to send [23:03:19]OFD Sender: No OFD packet to send [23:03:24]OFD Sender: No OFD packet to send [23:03:29]OFD Sender: No OFD packet to send [23:03:34]OFD Sender: No OFD packet to send [23:03:39]OFD Sender: No OFD packet to send [23:03:44]OFD Sender: No OFD packet to send [23:03:49]OFD Sender: No OFD packet to send [23:03:54]OFD Sender: No OFD packet to send [23:03:59]OFD Sender: No OFD packet to send [23:04:04]OFD Sender: No OFD packet to send [23:04:09]OFD Sender: No OFD packet to send [23:04:14]OFD Sender: No OFD packet to send [23:04:19]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:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:05]OFD Sender: No OFD packet to send [23:14:10]OFD Sender: No OFD packet to send [23:14:15]OFD Sender: No OFD packet to send [23:14:20]OFD Sender: No OFD packet to send [23:14:25]OFD Sender: No OFD packet to send [23:14:30]OFD Sender: No OFD packet to send [23:14:35]OFD Sender: No OFD packet to send [23:14:40]OFD Sender: No OFD packet to send [23:14:45]OFD Sender: No OFD packet to send [23:14:50]OFD Sender: No OFD packet to send [23:14:55]OFD Sender: No OFD packet to send [23:15:00]OFD Sender: No OFD packet to send [23:15:05]OFD Sender: No OFD packet to send [23:15:10]OFD Sender: No OFD packet to send [23:15:15]OFD Sender: No OFD packet to send [23:15:20]OFD Sender: No OFD packet to send [23:15:25]OFD Sender: No OFD packet to send [23:15:30]OFD Sender: No OFD packet to send [23:15:35]OFD Sender: No OFD packet to send [23:15:40]OFD Sender: No OFD packet to send [23:15:45]OFD Sender: No OFD packet to send [23:15:50]OFD Sender: No OFD packet to send [23:15:55]OFD Sender: No OFD packet to send [23:16:00]OFD Sender: No OFD packet to send [23:16:05]OFD Sender: No OFD packet to send [23:16:10]OFD Sender: No OFD packet to send [23:16:15]OFD Sender: No OFD packet to send [23:16:20]OFD Sender: No OFD packet to send [23:16:25]OFD Sender: No OFD packet to send [23:16:30]OFD Sender: No OFD packet to send [23:16:35]OFD Sender: No OFD packet to send [23:16:40]OFD Sender: No OFD packet to send [23:16:45]OFD Sender: No OFD packet to send [23:16:50]OFD Sender: No OFD packet to send [23:16:55]OFD Sender: No OFD packet to send [23:17:00]OFD Sender: No OFD packet to send [23:17:05]OFD Sender: No OFD packet to send [23:17:10]OFD Sender: No OFD packet to send [23:17:15]OFD Sender: No OFD packet to send [23:17:20]OFD Sender: No OFD packet to send [23:17:25]OFD Sender: No OFD packet to send [23:17:30]OFD Sender: No OFD packet to send [23:17:35]OFD Sender: No OFD packet to send [23:17:40]OFD Sender: No OFD packet to send [23:17:45]OFD Sender: No OFD packet to send [23:17:50]OFD Sender: No OFD packet to send [23:17:55]OFD Sender: No OFD packet to send [23:18:00]OFD Sender: No OFD packet to send [23:18:05]OFD Sender: No OFD packet to send [23:18:10]OFD Sender: No OFD packet to send [23:18:15]OFD Sender: No OFD packet to send [23:18:20]OFD Sender: No OFD packet to send [23:18:25]OFD Sender: No OFD packet to send [23:18:30]OFD Sender: No OFD packet to send [23:18:35]OFD Sender: No OFD packet to send [23:18:40]OFD Sender: No OFD packet to send [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]OFD Sender: No OFD packet to send [23:23:15]OFD Sender: No OFD packet to send [23:23:20]OFD Sender: No OFD packet to send [23:23:25]OFD Sender: No OFD packet to send [23:23:30]OFD Sender: No OFD packet to send [23:23:35]OFD Sender: No OFD packet to send [23:23:40]OFD Sender: No OFD packet to send [23:23:45]OFD Sender: No OFD packet to send [23:23:50]OFD Sender: No OFD packet to send [23:23:55]OFD Sender: No OFD packet to send [23:24:00]OFD Sender: No OFD packet to send [23:24:05]OFD Sender: No OFD packet to send [23:24:10]OFD Sender: No OFD packet to send [23:24:15]OFD Sender: No OFD packet to send [23:24:20]OFD Sender: No OFD packet to send [23:24:25]OFD Sender: No OFD packet to send [23:24:30]OFD Sender: No OFD packet to send [23:24:35]OFD Sender: No OFD packet to send [23:24:40]OFD Sender: No OFD packet to send [23:24:45]OFD Sender: No OFD packet to send [23:24:50]OFD Sender: No OFD packet to send [23:24:55]OFD Sender: No OFD packet to send [23:25:00]OFD Sender: No OFD packet to send [23:25:05]OFD Sender: No OFD packet to send [23:25:10]OFD Sender: No OFD packet to send [23:25:15]OFD Sender: No OFD packet to send [23:25:20]OFD Sender: No OFD packet to send [23:25:25]OFD Sender: No OFD packet to send [23:25:30]OFD Sender: No OFD packet to send [23:25:35]OFD Sender: No OFD packet to send [23:25:40]OFD Sender: No OFD packet to send [23:25:45]OFD Sender: No OFD packet to send [23:25:50]OFD Sender: No OFD packet to send [23:25:55]OFD Sender: No OFD packet to send [23:26:00]OFD Sender: No OFD packet to send [23:26:05]OFD Sender: No OFD packet to send [23:26:10]OFD Sender: No OFD packet to send [00:24:24]ConnectInit Can't connect to host [00:24:25]ConnectInit Can't take IP for lk.salyk.kg [00:24:25]CommunicateWithHost connect error [00:24:25]CommunicateWithHost err = -1 [00:24:25]OFD Sender: Server communicate error [00:24:30]OFD Sender: Processing packet 2534 [packets to send 6, broken 0] [00:24:30]ProducePacketName [00:24:30]name=ofd_packets/00002534 [00:24:30]OFD Sender: To server: ‡•öpG, [00:24:30]CommunicateWithHost lk.salyk.kg:30040 [00:24:30]ConnectInit lk.salyk.kg [00:24:30]Connected sock=7 [00:24:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 A5 01 00 00 20 35 9D 01 3D CA 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 7B 00 8A 04 0D 00 38 38 30 39 30 31 30 30 38 33 34 36 39 06 04 37 00 D0 A1 D0 B0 D0 BB D1 84 D0 B5 D1 82 D0 BA D0 B0 20 4E 45 57 20 4B 55 4D 4F 20 D0 BC D0 B8 D0 BA D1 80 D0 BE D1 84 D0 B8 D0 B1 20 D0 B6 D0 B5 D0 BB D1 82 D0 B0 D1 8F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 38 4A 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0C 00 37 34 35 32 34 30 30 37 35 39 34 33 06 04 21 00 D0 90 D0 B2 D1 82 D0 BE D0 BF D0 B0 D1 80 D1 84 D1 8E D0 BC 20 35 20 48 4F 4D 45 20 53 50 4F 52 54 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 75 00 00 00 00 13 04 06 00 30 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 BF 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 54 14 00 00 00 00 07 04 06 00 68 BF 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 44 EF 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E6 09 00 00 35 04 06 00 67 36 62 76 D4 EF CD FA B2 B3 98 22 2D 17 [00:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 2B FE 47 00 63 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E6 09 00 00 F4 03 04 00 A6 A7 12 67 B6 04 01 00 00 94 12 A2 29 F9 9B 6A 74 [00:24:31]CommunicateWithHost err = 0 [00:24:31]CheckOFDResponse [00:24:31]1017 (14) - 77093643461234 [00:24:31]1041 (16) - 0000000002342820 [00:24:31]1040 (4) - 2534 [00:24:31]1012 (4) - 18.10.2024 18:23 [00:24:31]1206 (1) - 0 [00:24:31]OFD Sender: Remove packet 2534 [00:24:31]ProducePacketName [00:24:31]name=ofd_packets/00002534 [00:24:31]NVStorageDeleteData [00:24:31]OFD Sender: Processing packet 2535 [packets to send 5, broken 0] [00:24:31]ProducePacketName [00:24:31]name=ofd_packets/00002535 [00:24:31]OFD Sender: To server: ‡•öpG, [00:24:31]CommunicateWithHost lk.salyk.kg:30040 [00:24:31]ConnectInit lk.salyk.kg [00:24:31]Connected sock=7 [00:24:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 28 01 00 00 75 66 20 01 3D A2 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 38 30 30 32 32 34 36 30 34 35 32 06 04 22 00 D0 90 D0 BD D1 82 D0 B8 D1 84 D1 80 D0 B8 D0 B7 20 59 75 6D 69 6B 6F 20 67 6F 6C 64 20 31 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 08 52 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 08 00 00 00 00 07 04 06 00 08 52 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 CD F1 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E7 09 00 00 35 04 06 00 22 A9 D9 D7 A6 8F 58 A3 C0 04 0B 4C 09 E1 [00:24:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 00 52 47 00 03 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E7 09 00 00 F4 03 04 00 A6 A7 12 67 B6 04 01 00 00 FF FA 67 14 3D 69 92 BF [00:24:31]CommunicateWithHost err = 0 [00:24:31]CheckOFDResponse [00:24:31]1017 (14) - 77093643461234 [00:24:31]1041 (16) - 0000000002342820 [00:24:31]1040 (4) - 2535 [00:24:31]1012 (4) - 18.10.2024 18:23 [00:24:31]1206 (1) - 0 [00:24:31]OFD Sender: Remove packet 2535 [00:24:31]ProducePacketName [00:24:31]name=ofd_packets/00002535 [00:24:31]NVStorageDeleteData [00:24:32]OFD Sender: Processing packet 2536 [packets to send 4, broken 0] [00:24:32]ProducePacketName [00:24:32]name=ofd_packets/00002536 [00:24:32]OFD Sender: To server: ‡•öpG, [00:24:32]CommunicateWithHost lk.salyk.kg:30040 [00:24:32]ConnectInit lk.salyk.kg [00:24:32]Connected sock=7 [00:24:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 25 01 00 00 D7 30 1D 01 E6 C0 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 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 58 53 74 79 6C 65 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 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 16 F2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E8 09 00 00 35 04 06 00 5B 1C A5 CB 2F 89 B7 CB B4 45 CE AF A5 C4 [00:24:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 8A ED 47 00 35 16 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E8 09 00 00 F4 03 04 00 A7 A7 12 67 B6 04 01 00 00 C9 EE 63 AC CC 6D 8F 01 [00:24:32]CommunicateWithHost err = 0 [00:24:32]CheckOFDResponse [00:24:32]1017 (14) - 77093643461234 [00:24:32]1041 (16) - 0000000002342820 [00:24:32]1040 (4) - 2536 [00:24:32]1012 (4) - 18.10.2024 18:23 [00:24:32]1206 (1) - 0 [00:24:32]OFD Sender: Remove packet 2536 [00:24:32]ProducePacketName [00:24:32]name=ofd_packets/00002536 [00:24:32]NVStorageDeleteData [00:24:33]OFD Sender: Processing packet 2537 [packets to send 3, broken 0] [00:24:33]ProducePacketName [00:24:33]name=ofd_packets/00002537 [00:24:33]OFD Sender: To server: ‡•öpG, [00:24:33]CommunicateWithHost lk.salyk.kg:30040 [00:24:33]ConnectInit lk.salyk.kg [00:24:33]Connected sock=7 [00:24:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 33 01 00 00 8E 4F 2B 01 1A 8F 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 BC 02 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 02 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 00 00 00 00 00 07 04 06 00 BC 02 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 28 F2 12 67 0E 04 04 00 16 00 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 E9 09 00 00 35 04 06 00 77 0B 27 67 14 08 EA 12 53 16 2F 38 69 4A [00:24:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 64 14 47 00 49 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 32 33 34 32 38 32 30 10 04 04 00 E9 09 00 00 F4 03 04 00 A8 A7 12 67 B6 04 01 00 00 6A 8B F5 59 17 C6 9B 73 [00:24:33]CommunicateWithHost err = 0 [00:24:33]CheckOFDResponse [00:24:33]1017 (14) - 77093643461234 [00:24:33]1041 (16) - 0000000002342820 [00:24:33]1040 (4) - 2537 [00:24:33]1012 (4) - 18.10.2024 18:23 [00:24:33]1206 (1) - 0 [00:24:33]OFD Sender: Remove packet 2537 [00:24:33]ProducePacketName [00:24:33]name=ofd_packets/00002537 [00:24:33]NVStorageDeleteData [00:24:33]OFD Sender: Processing packet 2538 [packets to send 2, broken 0] [00:24:33]ProducePacketName [00:24:33]name=ofd_packets/00002538 [00:24:33]OFD Sender: To server: ‡•öpG, [00:24:33]CommunicateWithHost lk.salyk.kg:30040 [00:24:33]ConnectInit lk.salyk.kg [00:24:34]Connected sock=7 [00:24:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 79 05 00 00 33 EC 71 05 D1 8D 5A 05 01 00 05 00 65 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 17 00 D0 9D D1 83 D1 80 D0 B0 D0 BB D0 B8 D0 B5 D0 B2 D0 B0 20 D0 9D 2E 20 F4 03 04 00 DE F5 12 67 0E 04 04 00 16 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 5E 04 04 00 A2 00 00 00 57 04 04 00 A4 00 00 00 AA 04 D5 04 6E 04 04 00 A2 00 00 00 69 04 A2 00 6F 04 04 00 A2 00 00 00 B1 04 03 00 CC 31 5E 70 04 03 00 7C 38 41 72 04 03 00 50 F9 1C 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 04 01 0A 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 5B D5 6A 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 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 EA 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 35 04 06 00 26 9A B6 DF 4C C3 60 81 23 75 06 4A F8 44 [00:24:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 1E 04 47 00 DD 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 32 33 34 32 38 32 30 10 04 04 00 EA 09 00 00 F4 03 04 00 A9 A7 12 67 B6 04 01 00 00 22 A5 9D EB 4C 71 AB 74 [00:24:34]CommunicateWithHost err = 0 [00:24:34]CheckOFDResponse [00:24:34]1017 (14) - 77093643461234 [00:24:34]1041 (16) - 0000000002342820 [00:24:34]1040 (4) - 2538 [00:24:34]1012 (4) - 18.10.2024 18:23 [00:24:34]1206 (1) - 0 [00:24:34]OFD Sender: Remove packet 2538 [00:24:34]ProducePacketName [00:24:34]name=ofd_packets/00002538 [00:24:34]NVStorageDeleteData [00:24:34]OFD Sender: Processing packet 2539 [packets to send 1, broken 0] [00:24:34]ProducePacketName [00:24:34]name=ofd_packets/00002539 [00:24:34]OFD Sender: To server: ‡•öpG, [00:24:34]CommunicateWithHost lk.salyk.kg:30040 [00:24:34]ConnectInit lk.salyk.kg [00:24:34]Connected sock=7 [00:24:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 15 01 00 00 1E DD 0D 01 E0 1E 5A 02 01 00 02 00 01 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 15 00 D0 AD D1 80 D0 B3 D0 B5 D1 88 D0 BE D0 B2 D0 B0 20 D0 90 2E 20 F1 03 55 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 9A D1 83 D0 BC D1 83 D1 88 20 D0 90 D0 B7 D0 B8 D0 B7 2C 20 D1 83 D0 BB 2E 20 D0 9C D0 B0 D0 B4 D1 83 D0 BC D0 B0 D1 80 20 D0 90 D1 82 D0 B0 20 33 31 2C 20 34 31 2E 30 34 35 38 33 35 2C 20 37 32 2E 35 38 36 31 33 30 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 36 32 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 2D F7 12 67 0E 04 04 00 17 00 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 32 30 37 32 39 35 10 04 04 00 EB 09 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 35 04 06 00 26 4E 57 A0 03 D6 AB C1 8E F5 3D 03 5E B8 [00:24:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 4F 00 00 00 17 1C 47 00 F3 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 32 33 34 32 38 32 30 10 04 04 00 EB 09 00 00 F4 03 04 00 A9 A7 12 67 B6 04 01 00 00 6D A3 13 83 47 99 00 25 [00:24:35]CommunicateWithHost err = 0 [00:24:35]CheckOFDResponse [00:24:35]1017 (14) - 77093643461234 [00:24:35]1041 (16) - 0000000002342820 [00:24:35]1040 (4) - 2539 [00:24:35]1012 (4) - 18.10.2024 18:23 [00:24:35]1206 (1) - 0 [00:24:35]OFD Sender: Remove packet 2539 [00:24:35]ProducePacketName [00:24:35]name=ofd_packets/00002539 [00:24:35]NVStorageDeleteData [00:24:35]OFD Sender: No OFD packet to send [00:24:40]OFD Sender: No OFD packet to send [00:24:45]OFD Sender: No OFD packet to send [00:24:50]OFD Sender: No OFD packet to send [00:24:55]OFD Sender: No OFD packet to send [00:25:00]OFD Sender: No OFD packet to send [00:25:05]OFD Sender: No OFD packet to send [00:25:10]OFD Sender: No OFD packet to send [00:25:15]OFD Sender: No OFD packet to send [00:25:20]OFD Sender: No OFD packet to send [00:25:25]OFD Sender: No OFD packet to send [00:25:30]OFD Sender: No OFD packet to send [00:25:35]OFD Sender: No OFD packet to send [00:25:40]OFD Sender: No OFD packet to send [00:25:45]OFD Sender: No OFD packet to send [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:30]OFD Sender: No OFD packet to send [00:27:35]OFD Sender: No OFD packet to send [00:27:40]OFD Sender: No OFD packet to send [00:27:45]OFD Sender: No OFD packet to send [00:27:50]OFD Sender: No OFD packet to send [00:27:55]OFD Sender: No OFD packet to send [00:28:00]OFD Sender: No OFD packet to send [00:28:05]OFD Sender: No OFD packet to send [00:28:10]OFD Sender: No OFD packet to send [00:28:15]OFD Sender: No OFD packet to send [00:28:20]OFD Sender: No OFD packet to send [00:28:25]OFD Sender: No OFD packet to send [00:28:30]OFD Sender: No OFD packet to send [00:28:35]OFD Sender: No OFD packet to send [00:28:40]OFD Sender: No OFD packet to send [00:28:45]OFD Sender: No OFD packet to send [00:28:50]OFD Sender: No OFD packet to send [00:28:55]OFD Sender: No OFD packet to send [00:29:00]OFD Sender: No OFD packet to send [00:29:05]OFD Sender: No OFD packet to send [00:29:10]OFD Sender: No OFD packet to send [00:29:15]OFD Sender: No OFD packet to send [00:29:20]OFD Sender: No OFD packet to send [00:29:25]OFD Sender: No OFD packet to send [00:29:30]OFD Sender: No OFD packet to send [00:29:35]OFD Sender: No OFD packet to send [00:29:40]OFD Sender: No OFD packet to send [00:29:45]OFD Sender: No OFD packet to send [00:29:50]OFD Sender: No OFD packet to send [00:29:55]OFD Sender: No OFD packet to send [00:30:00]OFD Sender: No OFD packet to send [00:30:05]OFD Sender: No OFD packet to send [00:30:10]OFD Sender: No OFD packet to send [00:30:15]OFD Sender: No OFD packet to send [00:30:20]OFD Sender: No OFD packet to send [00:30:25]OFD Sender: No OFD packet to send [00:30:30]OFD Sender: No OFD packet to send [00:30:35]OFD Sender: No OFD packet to send [00:30:40]OFD Sender: No OFD packet to send [00:30:45]OFD Sender: No OFD packet to send [00:30:50]OFD Sender: No OFD packet to send [00:30:55]OFD Sender: No OFD packet to send [00:31:00]OFD Sender: No OFD packet to send [00:31:05]OFD Sender: No OFD packet to send [00:31:10]OFD Sender: No OFD packet to send [00:31:15]OFD Sender: No OFD packet to send [00:31:20]OFD Sender: No OFD packet to send [00:31:25]OFD Sender: No OFD packet to send [00:31:30]OFD Sender: No OFD packet to send [00:31:35]OFD Sender: No OFD packet to send [00:31:40]OFD Sender: No OFD packet to send [00:31:45]OFD Sender: No OFD packet to send [00:31:50]OFD Sender: No OFD packet to send [00:31:55]OFD Sender: No OFD packet to send [00:32:00]OFD Sender: No OFD packet to send [00:32:05]OFD Sender: No OFD packet to send [00:32:10]OFD Sender: No OFD packet to send [00:32:15]OFD Sender: No OFD packet to send [00:32:20]OFD Sender: No OFD packet to send [00:32:25]OFD Sender: No OFD packet to send [00:32:30]OFD Sender: No OFD packet to send [00:32:35]OFD Sender: No OFD packet to send [00:32:40]OFD Sender: No OFD packet to send [00:32:45]OFD Sender: No OFD packet to send [00:32:50]OFD Sender: No OFD packet to send [00:32:55]OFD Sender: No OFD packet to send [00:33:00]OFD Sender: No OFD packet to send [00:33:05]OFD Sender: No OFD packet to send [00:33:10]OFD Sender: No OFD packet to send [00:33:15]OFD Sender: No OFD packet to send [00:33:20]OFD Sender: No OFD packet to send [00:33:25]OFD Sender: No OFD packet to send [00:33:30]OFD Sender: No OFD packet to send [00:33:35]OFD Sender: No OFD packet to send [00:33:40]OFD Sender: No OFD packet to send [00:33:45]OFD Sender: No OFD packet to send [00:33:50]OFD Sender: No OFD packet to send [00:33:55]OFD Sender: No OFD packet to send [00:34:00]OFD Sender: No OFD packet to send [00:34:05]OFD Sender: No OFD packet to send [00:34:10]OFD Sender: No OFD packet to send [00:34:15]OFD Sender: No OFD packet to send [00:34:20]OFD Sender: No OFD packet to send [00:34:26]OFD Sender: No OFD packet to send [00:34:31]OFD Sender: No OFD packet to send [00:34:36]OFD Sender: No OFD packet to send [00:34:41]OFD Sender: No OFD packet to send [00:34:46]OFD Sender: No OFD packet to send [00:34:51]OFD Sender: No OFD packet to send [00:34:56]OFD Sender: No OFD packet to send [00:35:01]OFD Sender: No OFD packet to send [00:35:06]OFD Sender: No OFD packet to send [00:35:11]OFD Sender: No OFD packet to send [00:35:16]OFD Sender: No OFD packet to send [00:35:21]OFD Sender: No OFD packet to send [00:35:26]OFD Sender: No OFD packet to send [00:35:31]OFD Sender: No OFD packet to send [00:35:36]OFD Sender: No OFD packet to send [00:35:41]OFD Sender: No OFD packet to send [00:35:46]OFD Sender: No OFD packet to send [00:35:51]OFD Sender: No OFD packet to send [00:35:56]OFD Sender: No OFD packet to send [00:36:01]OFD Sender: No OFD packet to send [00:36:06]OFD Sender: No OFD packet to send [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:21]OFD Sender: No OFD packet to send [00:38:26]OFD Sender: No OFD packet to send [00:38:31]OFD Sender: No OFD packet to send [00:38:36]OFD Sender: No OFD packet to send [00:38:41]OFD Sender: No OFD packet to send [00:38:46]OFD Sender: No OFD packet to send [00:38:51]OFD Sender: No OFD packet to send [00:38:56]OFD Sender: No OFD packet to send [00:39:01]OFD Sender: No OFD packet to send [00:39:06]OFD Sender: No OFD packet to send [00:39:11]OFD Sender: No OFD packet to send [00:39:16]OFD Sender: No OFD packet to send [00:39:21]OFD Sender: No OFD packet to send [00:39:26]OFD Sender: No OFD packet to send [00:39:31]OFD Sender: No OFD packet to send [00:39:36]OFD Sender: No OFD packet to send [00:39:41]OFD Sender: No OFD packet to send [00:39:46]OFD Sender: No OFD packet to send [00:39:51]OFD Sender: No OFD packet to send [00:39:56]OFD Sender: No OFD packet to send [00:40:01]OFD Sender: No OFD packet to send [00:40:06]OFD Sender: No OFD packet to send [00:40:11]OFD Sender: No OFD packet to send [00:40:16]OFD Sender: No OFD packet to send [00:40:21]OFD Sender: No OFD packet to send [00:40:26]OFD Sender: No OFD packet to send [00:40:31]OFD Sender: No OFD packet to send [00:40:36]OFD Sender: No OFD packet to send [00:40:41]OFD Sender: No OFD packet to send [00:40:46]OFD Sender: No OFD packet to send [00:40:51]OFD Sender: No OFD packet to send [00:40:56]OFD Sender: No OFD packet to send [00:41:01]OFD Sender: No OFD packet to send [00:41:06]OFD Sender: No OFD packet to send [00:41:11]OFD Sender: No OFD packet to send [00:41:16]OFD Sender: No OFD packet to send [00:41:21]OFD Sender: No OFD packet to send [00:41:26]OFD Sender: No OFD packet to send [00:41:31]OFD Sender: No OFD packet to send [00:41:36]OFD Sender: No OFD packet to send [00:41:41]OFD Sender: No OFD packet to send [00:41:46]OFD Sender: No OFD packet to send [00:41:51]OFD Sender: No OFD packet to send [00:41:56]OFD Sender: No OFD packet to send [00:42:01]OFD Sender: No OFD packet to send [00:42:06]OFD Sender: No OFD packet to send [00:42:11]OFD Sender: No OFD packet to send [00:42:16]OFD Sender: No OFD packet to send [00:42:21]OFD Sender: No OFD packet to send [00:42:26]OFD Sender: No OFD packet to send [00:42:31]OFD Sender: No OFD packet to send [00:42:36]OFD Sender: No OFD packet to send [00:42:41]OFD Sender: No OFD packet to send [00:42:46]OFD Sender: No OFD packet to send [00:42:51]OFD Sender: No OFD packet to send [00:42:56]OFD Sender: No OFD packet to send [00:43:01]OFD Sender: No OFD packet to send [00:43:06]OFD Sender: No OFD packet to send [00:43:11]OFD Sender: No OFD packet to send [00:43:16]OFD Sender: No OFD packet to send [00:43:21]OFD Sender: No OFD packet to send [00:43:26]OFD Sender: No OFD packet to send [00:43:31]OFD Sender: No OFD packet to send [00:43:36]OFD Sender: No OFD packet to send [00:43:41]OFD Sender: No OFD packet to send [00:43:46]OFD Sender: No OFD packet to send [00:43:51]OFD Sender: No OFD packet to send [00:43:56]OFD Sender: No OFD packet to send [00:44:01]OFD Sender: No OFD packet to send [00:44:06]OFD Sender: No OFD packet to send [00:44:11]OFD Sender: No OFD packet to send [00:44:16]OFD Sender: No OFD packet to send [00:44:21]OFD Sender: No OFD packet to send [00:44:26]OFD Sender: No OFD packet to send [00:44:31]OFD Sender: No OFD packet to send [00:44:36]OFD Sender: No OFD packet to send [00:44:41]OFD Sender: No OFD packet to send [00:44:46]OFD Sender: No OFD packet to send [00:44:51]OFD Sender: No OFD packet to send [00:44:56]OFD Sender: No OFD packet to send [00:45:01]OFD Sender: No OFD packet to send [00:45:06]OFD Sender: No OFD packet to send [00:45:11]OFD Sender: No OFD packet to send [00:45:16]OFD Sender: No OFD packet to send [00:45:21]OFD Sender: No OFD packet to send [00:45:26]OFD Sender: No OFD packet to send [00:45:31]OFD Sender: No OFD packet to send [00:45:36]OFD Sender: No OFD packet to send [00:45:41]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:41]OFD Sender: No OFD packet to send [00:48:46]OFD Sender: No OFD packet to send [00:48:51]OFD Sender: No OFD packet to send [00:48:56]OFD Sender: No OFD packet to send [00:49:01]OFD Sender: No OFD packet to send [00:49:06]OFD Sender: No OFD packet to send [00:49:11]OFD Sender: No OFD packet to send [00:49:16]OFD Sender: No OFD packet to send [00:49:21]OFD Sender: No OFD packet to send [00:49:26]OFD Sender: No OFD packet to send [00:49:31]OFD Sender: No OFD packet to send [00:49:36]OFD Sender: No OFD packet to send [00:49:41]OFD Sender: No OFD packet to send [00:49:46]OFD Sender: No OFD packet to send [00:49:51]OFD Sender: No OFD packet to send [00:49:56]OFD Sender: No OFD packet to send [00:50:01]OFD Sender: No OFD packet to send [00:50:06]OFD Sender: No OFD packet to send [00:50:11]OFD Sender: No OFD packet to send [00:50:16]OFD Sender: No OFD packet to send [00:50:21]OFD Sender: No OFD packet to send [00:50:26]OFD Sender: No OFD packet to send [00:50:31]OFD Sender: No OFD packet to send [00:50:36]OFD Sender: No OFD packet to send [00:50:41]OFD Sender: No OFD packet to send [00:50:46]OFD Sender: No OFD packet to send [00:50:51]OFD Sender: No OFD packet to send [00:50:56]OFD Sender: No OFD packet to send [00:51:01]OFD Sender: No OFD packet to send [00:51:06]OFD Sender: No OFD packet to send [00:51:11]OFD Sender: No OFD packet to send [00:51:16]OFD Sender: No OFD packet to send [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:36]OFD Sender: No OFD packet to send [00:54:41]OFD Sender: No OFD packet to send [00:54:46]OFD Sender: No OFD packet to send [00:54:51]OFD Sender: No OFD packet to send [00:54:56]OFD Sender: No OFD packet to send [00:55:01]OFD Sender: No OFD packet to send [00:55:06]OFD Sender: No OFD packet to send [00:55:11]OFD Sender: No OFD packet to send [00:55:16]OFD Sender: No OFD packet to send [00:55:21]OFD Sender: No OFD packet to send [00:55:26]OFD Sender: No OFD packet to send [00:55:31]OFD Sender: No OFD packet to send [00:55:36]OFD Sender: No OFD packet to send [00:55:41]OFD Sender: No OFD packet to send [00:55:46]OFD Sender: No OFD packet to send [00:55:51]OFD Sender: No OFD packet to send [00:55:56]OFD Sender: No OFD packet to send [00:56:01]OFD Sender: No OFD packet to send [00:56:06]OFD Sender: No OFD packet to send [00:56:11]OFD Sender: No OFD packet to send [00:56:16]OFD Sender: No OFD packet to send [00:56:21]OFD Sender: No OFD packet to send [00:56:26]OFD Sender: No OFD packet to send [00:56:31]OFD Sender: No OFD packet to send [00:56:37]OFD Sender: No OFD packet to send [00:56:42]OFD Sender: No OFD packet to send [00:56:47]OFD Sender: No OFD packet to send [00:56:52]OFD Sender: No OFD packet to send [00:56:57]OFD Sender: No OFD packet to send [00:57:02]OFD Sender: No OFD packet to send [00:57:07]OFD Sender: No OFD packet to send [00:57:12]OFD Sender: No OFD packet to send [00:57:17]OFD Sender: No OFD packet to send [00:57:22]OFD Sender: No OFD packet to send [00:57:27]OFD Sender: No OFD packet to send [00:57:32]OFD Sender: No OFD packet to send [00:57:37]OFD Sender: No OFD packet to send [00:57:42]OFD Sender: No OFD packet to send [00:57:47]OFD Sender: No OFD packet to send [00:57:52]OFD Sender: No OFD packet to send [00:57:57]OFD Sender: No OFD packet to send [00:58:02]OFD Sender: No OFD packet to send [00:58:07]OFD Sender: No OFD packet to send [00:58:12]OFD Sender: No OFD packet to send [00:58:17]OFD Sender: No OFD packet to send [00:58:22]OFD Sender: No OFD packet to send [00:58:27]OFD Sender: No OFD packet to send [00:58:32]OFD Sender: No OFD packet to send [00:58:37]OFD Sender: No OFD packet to send [00:58:42]OFD Sender: No OFD packet to send [00:58:47]OFD Sender: No OFD packet to send [00:58:52]OFD Sender: No OFD packet to send [00:58:57]OFD Sender: No OFD packet to send [00:59:02]OFD Sender: No OFD packet to send [00:59:07]OFD Sender: No OFD packet to send [00:59:12]OFD Sender: No OFD packet to send [00:59:17]OFD Sender: No OFD packet to send [00:59:22]OFD Sender: No OFD packet to send [00:59:27]OFD Sender: No OFD packet to send [00:59:32]OFD Sender: No OFD packet to send [00:59:37]OFD Sender: No OFD packet to send [00:59:42]OFD Sender: No OFD packet to send [00:59:47]OFD Sender: No OFD packet to send [00:59:52]OFD Sender: No OFD packet to send [00:59:57]OFD Sender: No OFD packet to send [01:00:02]OFD Sender: No OFD packet to send [01:00:07]OFD Sender: No OFD packet to send [01:00:12]OFD Sender: No OFD packet to send [01:00:17]OFD Sender: No OFD packet to send [01:00:22]OFD Sender: No OFD packet to send [01:00:27]OFD Sender: No OFD packet to send [01:00:32]OFD Sender: No OFD packet to send [01:00:37]OFD Sender: No OFD packet to send [01:00:42]OFD Sender: No OFD packet to send [01:00:47]OFD Sender: No OFD packet to send [01:00:52]OFD Sender: No OFD packet to send [01:00:57]OFD Sender: No OFD packet to send [01:01:02]OFD Sender: No OFD packet to send [01:01:07]OFD Sender: No OFD packet to send [01:01:12]OFD Sender: No OFD packet to send [01:01:17]OFD Sender: No OFD packet to send [01:01:22]OFD Sender: No OFD packet to send [01:01:27]OFD Sender: No OFD packet to send [01:01:32]OFD Sender: No OFD packet to send [01:01:37]OFD Sender: No OFD packet to send [01:01:42]OFD Sender: No OFD packet to send [01:01:47]OFD Sender: No OFD packet to send [01:01:52]OFD Sender: No OFD packet to send [01:01:57]OFD Sender: No OFD packet to send [01:02:02]OFD Sender: No OFD packet to send [01:02:07]OFD Sender: No OFD packet to send [01:02:12]OFD Sender: No OFD packet to send [01:02:17]OFD Sender: No OFD packet to send [01:02:22]OFD Sender: No OFD packet to send [01:02:27]OFD Sender: No OFD packet to send [01:02:32]OFD Sender: No OFD packet to send [01:02:37]OFD Sender: No OFD packet to send [01:02:42]OFD Sender: No OFD packet to send [01:02:47]OFD Sender: No OFD packet to send [01:02:52]OFD Sender: No OFD packet to send [01:02:57]OFD Sender: No OFD packet to send [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]OFD Sender: No OFD packet to send [01:05:02]OFD Sender: No OFD packet to send [01:05:07]OFD Sender: No OFD packet to send [01:05:12]OFD Sender: No OFD packet to send [01:05:17]OFD Sender: No OFD packet to send [01:05:22]OFD Sender: No OFD packet to send [01:05:27]OFD Sender: No OFD packet to send [01:05:32]OFD Sender: No OFD packet to send [01:05:37]OFD Sender: No OFD packet to send [01:05:42]OFD Sender: No OFD packet to send [01:05:47]OFD Sender: No OFD packet to send [01:05:52]OFD Sender: No OFD packet to send [01:05:57]OFD Sender: No OFD packet to send [01:06:02]OFD Sender: No OFD packet to send [01:06:07]OFD Sender: No OFD packet to send [01:06:12]OFD Sender: No OFD packet to send [01:06:17]OFD Sender: No OFD packet to send [01:06:22]OFD Sender: No OFD packet to send [01:06:27]OFD Sender: No OFD packet to send [01:06:32]OFD Sender: No OFD packet to send [01:06:37]OFD Sender: No OFD packet to send [01:06:42]OFD Sender: No OFD packet to send [01:06:47]OFD Sender: No OFD packet to send [01:06:52]OFD Sender: No OFD packet to send [01:06:57]OFD Sender: No OFD packet to send [01:07:02]OFD Sender: No OFD packet to send [01:07:07]OFD Sender: No OFD packet to send [01:07:12]OFD Sender: No OFD packet to send [01:07:17]OFD Sender: No OFD packet to send [01:07:22]OFD Sender: No OFD packet to send [01:07:27]OFD Sender: No OFD packet to send [01:07:32]OFD Sender: No OFD packet to send [01:07:37]OFD Sender: No OFD packet to send [01:07:42]OFD Sender: No OFD packet to send [01:07:47]OFD Sender: No OFD packet to send [01:07:52]OFD Sender: No OFD packet to send [01:07:57]OFD Sender: No OFD packet to send [01:08:02]OFD Sender: No OFD packet to send [01:08:07]OFD Sender: No OFD packet to send [01:08:12]OFD Sender: No OFD packet to send [01:08:17]OFD Sender: No OFD packet to send [01:08:22]OFD Sender: No OFD packet to send [01:08:27]OFD Sender: No OFD packet to send [01:08:32]OFD Sender: No OFD packet to send [01:08:37]OFD Sender: No OFD packet to send [01:08:42]OFD Sender: No OFD packet to send [01:08:47]OFD Sender: No OFD packet to send [01:08:52]OFD Sender: No OFD packet to send [01:08:57]OFD Sender: No OFD packet to send [01:09:02]OFD Sender: No OFD packet to send [01:09:07]OFD Sender: No OFD packet to send [01:09:12]OFD Sender: No OFD packet to send [01:09:17]OFD Sender: No OFD packet to send [01:09:22]OFD Sender: No OFD packet to send [01:09:27]OFD Sender: No OFD packet to send [01:09:32]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: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:12]OFD Sender: No OFD packet to send [01:14:17]OFD Sender: No OFD packet to send [01:14:22]OFD Sender: No OFD packet to send [01:14:27]OFD Sender: No OFD packet to send [01:14:32]OFD Sender: No OFD packet to send [01:14:37]OFD Sender: No OFD packet to send [01:14:42]OFD Sender: No OFD packet to send [01:14:47]OFD Sender: No OFD packet to send [01:14:52]OFD Sender: No OFD packet to send [01:14:57]OFD Sender: No OFD packet to send [01:15:02]OFD Sender: No OFD packet to send [01:15:07]OFD Sender: No OFD packet to send [01:15:12]OFD Sender: No OFD packet to send [01:15:17]OFD Sender: No OFD packet to send [01:15:22]OFD Sender: No OFD packet to send [01:15:27]OFD Sender: No OFD packet to send [01:15:32]OFD Sender: No OFD packet to send [01:15:37]OFD Sender: No OFD packet to send [01:15:42]OFD Sender: No OFD packet to send [01:15:47]OFD Sender: No OFD packet to send [01:15:52]OFD Sender: No OFD packet to send [01:15:57]OFD Sender: No OFD packet to send [01:16:02]OFD Sender: No OFD packet to send [01:16:07]OFD Sender: No OFD packet to send [01:16:12]OFD Sender: No OFD packet to send [01:16:17]OFD Sender: No OFD packet to send [01:16:22]OFD Sender: No OFD packet to send [01:16:27]OFD Sender: No OFD packet to send [01:16:32]OFD Sender: No OFD packet to send [01:16:37]OFD Sender: No OFD packet to send [01:16:42]OFD Sender: No OFD packet to send [01:16:47]OFD Sender: No OFD packet to send [01:16:52]OFD Sender: No OFD packet to send [01:16:57]OFD Sender: No OFD packet to send [01:17:02]OFD Sender: No OFD packet to send [01:17:07]OFD Sender: No OFD packet to send [01:17:12]OFD Sender: No OFD packet to send [01:17:17]OFD Sender: No OFD packet to send [01:17:22]OFD Sender: No OFD packet to send [01:17:27]OFD Sender: No OFD packet to send [01:17:32]OFD Sender: No OFD packet to send [01:17:37]OFD Sender: No OFD packet to send [01:17:42]OFD Sender: No OFD packet to send [01:17:47]OFD Sender: No OFD packet to send [01:17:52]OFD Sender: No OFD packet to send [01:17:57]OFD Sender: No OFD packet to send [01:18:02]OFD Sender: No OFD packet to send [01:18:07]OFD Sender: No OFD packet to send [01:18:12]OFD Sender: No OFD packet to send [01:18:17]OFD Sender: No OFD packet to send [01:18:22]OFD Sender: No OFD packet to send [01:18:27]OFD Sender: No OFD packet to send [01:18:32]OFD Sender: No OFD packet to send [01:18:37]OFD Sender: No OFD packet to send [01:18:42]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:38]OFD Sender: No OFD packet to send [01:20:43]OFD Sender: No OFD packet to send [01:20:48]OFD Sender: No OFD packet to send [01:20:53]OFD Sender: No OFD packet to send [01:20:58]OFD Sender: No OFD packet to send [01:21:03]OFD Sender: No OFD packet to send [01:21:08]OFD Sender: No OFD packet to send [01:21:13]OFD Sender: No OFD packet to send [01:21:18]OFD Sender: No OFD packet to send [01:21:23]OFD Sender: No OFD packet to send [01:21:28]OFD Sender: No OFD packet to send [01:21:33]OFD Sender: No OFD packet to send [01:21:38]OFD Sender: No OFD packet to send [01:21:43]OFD Sender: No OFD packet to send [01:21:48]OFD Sender: No OFD packet to send [01:21:53]OFD Sender: No OFD packet to send [01:21:58]OFD Sender: No OFD packet to send [01:22:03]OFD Sender: No OFD packet to send [01:22:08]OFD Sender: No OFD packet to send [01:22:13]OFD Sender: No OFD packet to send [01:22:18]OFD Sender: No OFD packet to send [01:22:23]OFD Sender: No OFD packet to send [01:22:28]OFD Sender: No OFD packet to send [01:22:33]OFD Sender: No OFD packet to send [01:22:38]OFD Sender: No OFD packet to send [01:22:43]OFD Sender: No OFD packet to send [01:22:48]OFD Sender: No OFD packet to send [01:22:53]OFD Sender: No OFD packet to send [01:22:58]OFD Sender: No OFD packet to send [01:23:03]OFD Sender: No OFD packet to send [01:23:08]OFD Sender: No OFD packet to send [01:23:13]OFD Sender: No OFD packet to send [01:23:18]OFD Sender: No OFD packet to send [01:23:23]OFD Sender: No OFD packet to send [01:23:28]OFD Sender: No OFD packet to send [01:23:33]OFD Sender: No OFD packet to send [01:23:38]OFD Sender: No OFD packet to send [01:23:43]OFD Sender: No OFD packet to send [01:23:48]OFD Sender: No OFD packet to send [01:23:53]OFD Sender: No OFD packet to send [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:28]OFD Sender: No OFD packet to send [01:24:33]OFD Sender: No OFD packet to send [01:24:38]OFD Sender: No OFD packet to send [01:24:43]OFD Sender: No OFD packet to send [01:24:48]OFD Sender: No OFD packet to send [01:24:53]OFD Sender: No OFD packet to send [01:24:58]OFD Sender: No OFD packet to send [01:25:03]OFD Sender: No OFD packet to send [01:25:08]OFD Sender: No OFD packet to send [01:25:13]OFD Sender: No OFD packet to send [01:25:18]OFD Sender: No OFD packet to send [01:25:23]OFD Sender: No OFD packet to send [01:25:28]OFD Sender: No OFD packet to send [01:25:33]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:28]OFD Sender: No OFD packet to send [01:29:33]OFD Sender: No OFD packet to send [01:29:38]OFD Sender: No OFD packet to send [01:29:43]OFD Sender: No OFD packet to send [01:29:48]OFD Sender: No OFD packet to send [01:29:53]OFD Sender: No OFD packet to send [01:29:58]OFD Sender: No OFD packet to send [01:30:03]OFD Sender: No OFD packet to send [01:30:08]OFD Sender: No OFD packet to send [01:30:13]OFD Sender: No OFD packet to send [01:30:18]OFD Sender: No OFD packet to send [01:30:23]OFD Sender: No OFD packet to send [01:30:28]OFD Sender: No OFD packet to send [01:30:33]OFD Sender: No OFD packet to send [01:30:38]OFD Sender: No OFD packet to send [01:30:43]OFD Sender: No OFD packet to send [01:30:48]OFD Sender: No OFD packet to send [01:30:53]OFD Sender: No OFD packet to send [01:30:58]OFD Sender: No OFD packet to send [01:31:03]OFD Sender: No OFD packet to send [01:31:08]OFD Sender: No OFD packet to send [01:31:13]OFD Sender: No OFD packet to send [01:31:18]OFD Sender: No OFD packet to send [01:31:23]OFD Sender: No OFD packet to send [01:31:28]OFD Sender: No OFD packet to send [01:31:33]OFD Sender: No OFD packet to send [01:31:38]OFD Sender: No OFD packet to send [01:31:43]OFD Sender: No OFD packet to send [01:31:48]OFD Sender: No OFD packet to send [01:31:53]OFD Sender: No OFD packet to send [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]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: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:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:54]OFD Sender: No OFD packet to send [01:41:59]OFD Sender: No OFD packet to send [01:42:04]OFD Sender: No OFD packet to send [01:42:09]OFD Sender: No OFD packet to send [01:42:14]OFD Sender: No OFD packet to send [01:42:19]OFD Sender: No OFD packet to send [01:42:24]OFD Sender: No OFD packet to send [01:42:29]OFD Sender: No OFD packet to send [01:42:34]OFD Sender: No OFD packet to send [01:42:39]OFD Sender: No OFD packet to send [01:42:44]OFD Sender: No OFD packet to send [01:42:49]OFD Sender: No OFD packet to send [01:42:54]OFD Sender: No OFD packet to send [01:42:59]OFD Sender: No OFD packet to send [01:43:04]OFD Sender: No OFD packet to send [01:43:09]OFD Sender: No OFD packet to send [01:43:14]OFD Sender: No OFD packet to send [01:43:19]OFD Sender: No OFD packet to send [01:43:24]OFD Sender: No OFD packet to send [01:43:29]OFD Sender: No OFD packet to send [01:43:34]OFD Sender: No OFD packet to send [01:43:39]OFD Sender: No OFD packet to send [01:43:44]OFD Sender: No OFD packet to send [01:43:49]OFD Sender: No OFD packet to send [01:43:54]OFD Sender: No OFD packet to send [01:43:59]OFD Sender: No OFD packet to send [01:44:04]OFD Sender: No OFD packet to send [01:44:09]OFD Sender: No OFD packet to send [01:44:14]OFD Sender: No OFD packet to send [01:44:19]OFD Sender: No OFD packet to send [01:44:24]OFD Sender: No OFD packet to send [01:44:29]OFD Sender: No OFD packet to send [01:44:34]OFD Sender: No OFD packet to send [01:44:39]OFD Sender: No OFD packet to send [01:44:44]OFD Sender: No OFD packet to send [01:44:49]OFD Sender: No OFD packet to send [01:44:54]OFD Sender: No OFD packet to send [01:44:59]OFD Sender: No OFD packet to send [01:45:04]OFD Sender: No OFD packet to send [01:45:09]OFD Sender: No OFD packet to send [01:45:14]OFD Sender: No OFD packet to send [01:45:19]OFD Sender: No OFD packet to send [01:45:24]OFD Sender: No OFD packet to send [01:45:29]OFD Sender: No OFD packet to send [01:45:34]OFD Sender: No OFD packet to send [01:45:39]OFD Sender: No OFD packet to send [01:45:44]OFD Sender: No OFD packet to send [01:45:49]OFD Sender: No OFD packet to send [01:45:54]OFD Sender: No OFD packet to send [01:45:59]OFD Sender: No OFD packet to send [01:46:04]OFD Sender: No OFD packet to send [01:46:09]OFD Sender: No OFD packet to send [01:46:14]OFD Sender: No OFD packet to send [01:46:19]OFD Sender: No OFD packet to send [01:46:24]OFD Sender: No OFD packet to send [01:46:29]OFD Sender: No OFD packet to send [01:46:34]OFD Sender: No OFD packet to send [01:46:39]OFD Sender: No OFD packet to send [01:46:44]OFD Sender: No OFD packet to send [01:46:49]OFD Sender: No OFD packet to send [01:46:54]OFD Sender: No OFD packet to send [01:46:59]OFD Sender: No OFD packet to send [01:47:04]OFD Sender: No OFD packet to send [01:47:09]OFD Sender: No OFD packet to send [01:47:14]OFD Sender: No OFD packet to send [01:47:19]OFD Sender: No OFD packet to send [01:47:24]OFD Sender: No OFD packet to send [01:47:29]OFD Sender: No OFD packet to send [01:47:34]OFD Sender: No OFD packet to send [01:47:39]OFD Sender: No OFD packet to send [01:47:44]OFD Sender: No OFD packet to send [01:47:49]OFD Sender: No OFD packet to send [01:47:54]OFD Sender: No OFD packet to send [01:47:59]OFD Sender: No OFD packet to send [01:48:04]OFD Sender: No OFD packet to send [01:48:09]OFD Sender: No OFD packet to send [01:48:14]OFD Sender: No OFD packet to send [01:48:19]OFD Sender: No OFD packet to send [01:48:24]OFD Sender: No OFD packet to send [01:48:29]OFD Sender: No OFD packet to send [01:48:34]OFD Sender: No OFD packet to send [01:48:39]OFD Sender: No OFD packet to send [01:48:44]OFD Sender: No OFD packet to send [01:48:49]OFD Sender: No OFD packet to send [01:48:54]OFD Sender: No OFD packet to send [01:48:59]OFD Sender: No OFD packet to send [01:49:04]OFD Sender: No OFD packet to send [01:49:09]OFD Sender: No OFD packet to send [01:49:14]OFD Sender: No OFD packet to send [01:49:19]OFD Sender: No OFD packet to send [01:49:24]OFD Sender: No OFD packet to send [01:49:29]OFD Sender: No OFD packet to send [01:49:34]OFD Sender: No OFD packet to send [01:49:39]OFD Sender: No OFD packet to send [01:49:44]OFD Sender: No OFD packet to send [01:49:49]OFD Sender: No OFD packet to send [01:49:54]OFD Sender: No OFD packet to send [01:49:59]OFD Sender: No OFD packet to send [01:50:04]OFD Sender: No OFD packet to send [01:50:09]OFD Sender: No OFD packet to send [01:50:14]OFD Sender: No OFD packet to send [01:50:19]OFD Sender: No OFD packet to send [01:50:24]OFD Sender: No OFD packet to send [01:50:29]OFD Sender: No OFD packet to send [01:50:34]OFD Sender: No OFD packet to send [01:50:39]OFD Sender: No OFD packet to send [01:50:44]OFD Sender: No OFD packet to send [01:50:49]OFD Sender: No OFD packet to send [01:50:54]OFD Sender: No OFD packet to send [01:50:59]OFD Sender: No OFD packet to send [01:51:04]OFD Sender: No OFD packet to send [01:51:09]OFD Sender: No OFD packet to send [01:51:14]OFD Sender: No OFD packet to send [01:51:19]OFD Sender: No OFD packet to send [01:51:24]OFD Sender: No OFD packet to send [01:51:29]OFD Sender: No OFD packet to send [01:51:34]OFD Sender: No OFD packet to send [01:51:39]OFD Sender: No OFD packet to send [01:51:44]OFD Sender: No OFD packet to send [01:51:49]OFD Sender: No OFD packet to send [01:51:54]OFD Sender: No OFD packet to send [01:51:59]OFD Sender: No OFD packet to send [01:52:04]OFD Sender: No OFD packet to send [01:52:09]OFD Sender: No OFD packet to send [01:52:14]OFD Sender: No OFD packet to send [01:52:19]OFD Sender: No OFD packet to send [01:52:24]OFD Sender: No OFD packet to send [01:52:29]OFD Sender: No OFD packet to send [01:52:34]OFD Sender: No OFD packet to send [01:52:39]OFD Sender: No OFD packet to send [01:52:44]OFD Sender: No OFD packet to send [01:52:49]OFD Sender: No OFD packet to send [01:52:54]OFD Sender: No OFD packet to send [01:52:59]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:54]OFD Sender: No OFD packet to send [01:56:59]OFD Sender: No OFD packet to send [01:57:04]OFD Sender: No OFD packet to send [01:57:09]OFD Sender: No OFD packet to send [01:57:14]OFD Sender: No OFD packet to send [01:57:19]OFD Sender: No OFD packet to send [01:57:24]OFD Sender: No OFD packet to send [01:57:29]OFD Sender: No OFD packet to send [01:57:34]OFD Sender: No OFD packet to send [01:57:39]OFD Sender: No OFD packet to send [01:57:44]OFD Sender: No OFD packet to send [01:57:49]OFD Sender: No OFD packet to send [01:57:54]OFD Sender: No OFD packet to send [01:57:59]OFD Sender: No OFD packet to send [01:58:04]OFD Sender: No OFD packet to send [01:58:09]OFD Sender: No OFD packet to send [01:58:14]OFD Sender: No OFD packet to send [01:58: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: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: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:55]OFD Sender: No OFD packet to send [02:03:00]OFD Sender: No OFD packet to send [02:03:05]OFD Sender: No OFD packet to send [02:03:10]OFD Sender: No OFD packet to send [02:03:15]OFD Sender: No OFD packet to send [02:03:20]OFD Sender: No OFD packet to send [02:03:25]OFD Sender: No OFD packet to send [02:03:30]OFD Sender: No OFD packet to send [02:03:35]OFD Sender: No OFD packet to send [02:03:40]OFD Sender: No OFD packet to send [02:03:45]OFD Sender: No OFD packet to send [02:03:50]OFD Sender: No OFD packet to send [02:03:55]OFD Sender: No OFD packet to send [02:04:00]OFD Sender: No OFD packet to send [02:04:05]OFD Sender: No OFD packet to send [02:04:10]OFD Sender: No OFD packet to send [02:04:15]OFD Sender: No OFD packet to send [02:04:20]OFD Sender: No OFD packet to send [02:04:25]OFD Sender: No OFD packet to send [02:04:30]OFD Sender: No OFD packet to send [02:04:35]OFD Sender: No OFD packet to send [02:04:40]OFD Sender: No OFD packet to send [02:04:45]OFD Sender: No OFD packet to send [02:04:50]OFD Sender: No OFD packet to send [02:04:55]OFD Sender: No OFD packet to send [02:05:00]OFD Sender: No OFD packet to send [02:05:05]OFD Sender: No OFD packet to send [02:05:10]OFD Sender: No OFD packet to send [02:05:15]OFD Sender: No OFD packet to send [02:05:20]OFD Sender: No OFD packet to send [02:05:25]OFD Sender: No OFD packet to send [02:05:30]OFD Sender: No OFD packet to send [02:05:35]OFD Sender: No OFD packet to send [02:05:40]OFD Sender: No OFD packet to send [02:05:45]OFD Sender: No OFD packet to send [02:05:50]OFD Sender: No OFD packet to send [02:05:55]OFD Sender: No OFD packet to send [02:06:00]OFD Sender: No OFD packet to send [02:06:05]OFD Sender: No OFD packet to send [02:06:10]OFD Sender: No OFD packet to send [02:06:15]OFD Sender: No OFD packet to send [02:06:20]OFD Sender: No OFD packet to send [02:06:25]OFD Sender: No OFD packet to send [02:06:30]OFD Sender: No OFD packet to send [02:06:35]OFD Sender: No OFD packet to send [02:06:40]OFD Sender: No OFD packet to send [02:06:45]OFD Sender: No OFD packet to send [02:06:50]OFD Sender: No OFD packet to send [02:06:55]OFD Sender: No OFD packet to send [02:07:00]OFD Sender: No OFD packet to send [02:07:05]OFD Sender: No OFD packet to send [02:07:10]OFD Sender: No OFD packet to send [02:07:15]OFD Sender: No OFD packet to send [02:07:20]OFD Sender: No OFD packet to send [02:07:25]OFD Sender: No OFD packet to send [02:07:30]OFD Sender: No OFD packet to send [02:07:35]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]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: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: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:46]OFD Sender: No OFD packet to send [02:24:51]OFD Sender: No OFD packet to send [02:24:56]OFD Sender: No OFD packet to send [02:25:01]OFD Sender: No OFD packet to send [02:25:06]OFD Sender: No OFD packet to send [02:25:11]OFD Sender: No OFD packet to send [02:25:16]OFD Sender: No OFD packet to send [02:25:21]OFD Sender: No OFD packet to send [02:25:26]OFD Sender: No OFD packet to send [02:25:31]OFD Sender: No OFD packet to send [02:25:36]OFD Sender: No OFD packet to send [02:25:41]OFD Sender: No OFD packet to send [02:25:46]OFD Sender: No OFD packet to send [02:25:51]OFD Sender: No OFD packet to send [02:25:56]OFD Sender: No OFD packet to send [02:26:01]OFD Sender: No OFD packet to send [02:26:06]OFD Sender: No OFD packet to send [02:26:11]OFD Sender: No OFD packet to send [02:26:16]OFD Sender: No OFD packet to send [02:26:21]OFD Sender: No OFD packet to send [02:26:26]OFD Sender: No OFD packet to send [02:26:31]OFD Sender: No OFD packet to send [02:26:36]OFD Sender: No OFD packet to send [02:26:41]OFD Sender: No OFD packet to send [02:26:46]OFD Sender: No OFD packet to send [02:26:51]OFD Sender: No OFD packet to send [02:26:56]OFD Sender: No OFD packet to send [02:27:01]OFD Sender: No OFD packet to send [02:27:06]OFD Sender: No OFD packet to send [02:27:11]OFD Sender: No OFD packet to send [02:27:16]OFD Sender: No OFD packet to send [02:27:21]OFD Sender: No OFD packet to send [02:27:26]OFD Sender: No OFD packet to send [02:27:31]OFD Sender: No OFD packet to send [02:27:36]OFD Sender: No OFD packet to send [02:27:41]OFD Sender: No OFD packet to send [02:27:46]OFD Sender: No OFD packet to send [02:27:51]OFD Sender: No OFD packet to send [02:27:56]OFD Sender: No OFD packet to send [02:28:01]OFD Sender: No OFD packet to send [02:28:06]OFD Sender: No OFD packet to send [02:28:11]OFD Sender: No OFD packet to send [02:28:16]OFD Sender: No OFD packet to send [02:28:21]OFD Sender: No OFD packet to send [02:28:26]OFD Sender: No OFD packet to send [02:28:31]OFD Sender: No OFD packet to send [02:28:36]OFD Sender: No OFD packet to send [02:28:41]OFD Sender: No OFD packet to send [02:28:46]OFD Sender: No OFD packet to send [02:28:51]OFD Sender: No OFD packet to send [02:28:56]OFD Sender: No OFD packet to send [02:29:01]OFD Sender: No OFD packet to send [02:29:06]OFD Sender: No OFD packet to send [02:29:11]OFD Sender: No OFD packet to send [02:29:16]OFD Sender: No OFD packet to send [02:29:21]OFD Sender: No OFD packet to send [02:29:26]OFD Sender: No OFD packet to send [02:29:31]OFD Sender: No OFD packet to send [02:29:36]OFD Sender: No OFD packet to send [02:29:41]OFD Sender: No OFD packet to send [02:29:46]OFD Sender: No OFD packet to send [02:29:51]OFD Sender: No OFD packet to send [02:29:56]OFD Sender: No OFD packet to send [02:30:01]OFD Sender: No OFD packet to send [02:30:06]OFD Sender: No OFD packet to send [02:30:11]OFD Sender: No OFD packet to send [02:30:16]OFD Sender: No OFD packet to send [02:30:21]OFD Sender: No OFD packet to send [02:30:26]OFD Sender: No OFD packet to send [02:30:31]OFD Sender: No OFD packet to send [02:30:36]OFD Sender: No OFD packet to send [02:30:41]OFD Sender: No OFD packet to send [02:30:46]OFD Sender: No OFD packet to send [02:30:51]OFD Sender: No OFD packet to send [02:30:56]OFD Sender: No OFD packet to send [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]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:52]OFD Sender: No OFD packet to send [02:46:57]OFD Sender: No OFD packet to send [02:47:02]OFD Sender: No OFD packet to send [02:47:07]OFD Sender: No OFD packet to send [02:47:12]OFD Sender: No OFD packet to send [02:47:17]OFD Sender: No OFD packet to send [02:47:22]OFD Sender: No OFD packet to send [02:47:27]OFD Sender: No OFD packet to send [02:47:32]OFD Sender: No OFD packet to send [02:47:37]OFD Sender: No OFD packet to send [02:47:42]OFD Sender: No OFD packet to send [02:47:47]OFD Sender: No OFD packet to send [02:47:52]OFD Sender: No OFD packet to send [02:47:57]OFD Sender: No OFD packet to send [02:48:02]OFD Sender: No OFD packet to send [02:48:07]OFD Sender: No OFD packet to send [02:48:12]OFD Sender: No OFD packet to send [02:48:17]OFD Sender: No OFD packet to send [02:48:22]OFD Sender: No OFD packet to send [02:48:27]OFD Sender: No OFD packet to send [02:48:32]OFD Sender: No OFD packet to send [02:48:37]OFD Sender: No OFD packet to send [02:48:42]OFD Sender: No OFD packet to send [02:48:47]OFD Sender: No OFD packet to send [02:48:52]OFD Sender: No OFD packet to send [02:48:57]OFD Sender: No OFD packet to send [02:49:02]OFD Sender: No OFD packet to send [02:49:07]OFD Sender: No OFD packet to send [02:49:12]OFD Sender: No OFD packet to send [02:49:17]OFD Sender: No OFD packet to send [02:49:22]OFD Sender: No OFD packet to send [02:49:27]OFD Sender: No OFD packet to send [02:49:32]OFD Sender: No OFD packet to send [02:49:37]OFD Sender: No OFD packet to send [02:49:42]OFD Sender: No OFD packet to send [02:49:47]OFD Sender: No OFD packet to send [02:49:52]OFD Sender: No OFD packet to send [02:49:57]OFD Sender: No OFD packet to send [02:50:02]OFD Sender: No OFD packet to send [02:50:07]OFD Sender: No OFD packet to send [02:50:12]OFD Sender: No OFD packet to send [02:50:17]OFD Sender: No OFD packet to send [02:50:22]OFD Sender: No OFD packet to send [02:50:27]OFD Sender: No OFD packet to send [02:50:32]OFD Sender: No OFD packet to send [02:50:37]OFD Sender: No OFD packet to send [02:50:42]OFD Sender: No OFD packet to send [02:50:47]OFD Sender: No OFD packet to send [02:50:52]OFD Sender: No OFD packet to send [02:50:57]OFD Sender: No OFD packet to send [02:51:02]OFD Sender: No OFD packet to send [02:51:07]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